Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
dalandau
tagDiv Member

ok, just need to change this line in the code above

$postarray["td_video"] ="http://youtu.be/".$video['video_id'];

to

$postarray["td_video"] ="http://www.youtube.com/watch?v=".$video['video_id'];

Thank you

dalandau
tagDiv Member

Hi, I just purchased it. looks ok, but it imports videos as youtu.be instead of youtube.com

So it does not work in the featured video.

Thank you for helping

dalandau
tagDiv Member

How to update plugin, I have Envato WordPress Toolkit but it still shows there is a update for visual composer.

Thank you

dalandau
tagDiv Member

So basicly its not loading the customizations from the child theme. I have installed and activated the child theme

dalandau
tagDiv Member

Its also not loading the css from the child theme

/*

Theme Name:     Newspaper Child theme

Theme URI: 		http://themeforest.net/user/tagDiv/portfolio

Description:    Child theme made by tagDiv

Author:         tagDiv

Author URI: 	http://themeforest.net/user/tagDiv/portfolio

Template:       Newspaper                             

Version:        1

*/

@import url("../Newspaper/style.css");

/*  ----------------------------------------------------------------------------

    Your custom style.... here :)

*/

.post .thumb-wrap {
	text-align: center;
	margin-bottom: 5px;
	background-color: #f2f2f2;
	float: right;
	margin-left: 10px;
}

/* responsive portrait tablet */
@media (min-width: 768px) and (max-width: 1018px) {
    .post .entry-thumb {
      width:220px;
    }
}

/* responsive phone */
@media (max-width: 767px) {
    .post .entry-thumb {
      width:120px;
    }
}
dalandau
tagDiv Member

My question is, do I make changes in the functions.php in the child theme or in the main theme? when I add

//featured image
$td_crop_features_image = td_util::get_option('tds_' . 'crop_features_image');
if ($td_crop_features_image == '') {
    add_image_size('featured-image', 320, 0, true);
} else {
    add_image_size('featured-image', 320, 180, true);
}

in the child theme nothing happend

Thank you for helping

dalandau
tagDiv Member

Hi,

I had given up for a while, now with V3 it looks great, im exited.

What should I do now to get the result we achieved above?

In the functions.php of the theme I found:

<?php

/*  ----------------------------------------------------------------------------

    WordPress booster framework - this is our theme framework - all the content and settings are there

    It is not necessary to include it in the child theme only if you want to use the API

*/

if (!defined('TD_THEME_WP_BOOSTER')) {

	include TEMPLATEPATH . '/includes/td_wordpres_booster.php';

}

I am confused, thank you for your help.

dalandau
tagDiv Member

Oh, I just think I understood I can do this without having to be able to branch your git repo, do you understand about it?

dalandau
tagDiv Member

+1

Thank you

dalandau
tagDiv Member

Hi,

I have noticed the same thing, but I believe its not a bug, I think this is because the theme is supporting browser caching, I thinks this is what makes it get a high score for speed.

dalandau
tagDiv Member

Hi,

Thank you exactly what I was looking for.

Can you give me some more info on this responsive css.

@media (min-width: 768px) and (max-width: 1018px)

Can I change the width value ie 768px? or are these fixed values

are there other things like @media to know about.

I have very little experience with this new kind of css @ thing

Thank you

dalandau
tagDiv Member

I am glad I could help,

Will you be able to implement a shortcode to embed the video in the article, insted of replacing the featured image?

http://themeforest.net/item/newspaper/discussion/5489609?page=3#comment_4713830

tagDiv
tagDiv AUTHOR 2 months ago Flag
I’ve added this to the todo list – we already have a custom field that works with youtube, vimeo, daily motion but it also pulls the thumb automatically. I will make it work with embed codes also.

Radu from tagDiv

Will you add dailymotion publisher id support?

http://publisher.dailymotion.com/en/backoffice/developer-kit

Thank you

dalandau
tagDiv Member

did you check if your browser is in desktop mode?

dalandau
tagDiv Member

Hi,

By calling it a class I believe I am not expressing myself properly.

What I need to do is when someone clicks n a certain element in a page for it to scroll nicely to a certain element on the page.

Something like this
http://css-tricks.com/snippets/jquery/smooth-scrolling/

or

http://balupton.github.io/jquery-scrollto/

Actually wanted to know if I can use existing code in the theme to do it, or if I had to add code to the theme, and how

Thank you

dalandau
tagDiv Member

Hi,

Thank you for your answer

it is not quite ready to be used with classes.

Will it work with classes in the future?

Thank you

dalandau
tagDiv Member

Hi,

A plugin that watermarks images exists.

http://wordpress.org/plugins/image-watermark/

It does not seem to be hosting specific.

Can’t you do something similar? so that we will have a media query less for each image displayed on the page, and it will have the video icon in the image even on facebook, twitter, pinterest, google….

Thank you

dalandau
tagDiv Member

Hi Radu,

No I don’t need you to do it ;), but my result is not nice.

Can you help improve?

1) re-sized the image in functions.php

//featured image
$td_crop_features_image = td_util::get_customizer_option('crop_features_image');
if ($td_crop_features_image == '') {
 //add_image_size('featured-image', 700, 0, true); 
 add_image_size('featured-image', 320, 0, true);
} else {
 //add_image_size('featured-image', 700, 357, true); 
 add_image_size('featured-image', 320, 180, true);
}

2) added some custom css in wp-admin/themes.php?page=editcss
To make the image float on the right (not a good way does not play nice responsive, please tell me a better way)

.post .thumb-wrap {
	text-align: center;
	margin-bottom: 5px;
	background-color: #f2f2f2;
	float: right;
	margin-left: 10px;
}

Can you help improve, it does not play well on responsive

Thank you

dalandau
tagDiv Member

Hi Radu,

I am sorry, I think you are still using the wrong thumbnail

http://s1.dmcdn.net/CddhO.jpg

A bigger thumbnail exist

http://www.dailymotion.com/doc/api/obj-video.html

thumbnail_ratio – Change video thumbnails ratio. By default, the ratio is ‘original’
Accepted values (‘original’, ‘widescreen’, ‘square’) This parameter is applied to video/thumbnail_*_url (except thumbnail_url)

should maybe use thumbnail_original_url

dalandau
tagDiv Member

v 1.7.2
* new social counter – please delete the old plugin and get this one from /plugins
* filter on latest articles loop (category, tag, author + sort orders) http://screencast.com/t/5aSXLfDx8lf
* fixed the more tag
* fixed the media library search
* fixed missing translation strings
* fixed no link on featured image option, now it doesn’t add a link with #

dalandau
tagDiv Member

Hi Toui,

You can find the log if you download the zip file, its init

They forgot to update the themeforest page

dalandau
tagDiv Member

The reason dailymotion support is important and is a feature that if advertised will generate sales for your theme is that dailymotion lets you monetize on embedding there videos.

MAKE MONEY SHARING DAILYMOTION VIDEOS

Boost your website, blog and social pages with quality content and receive advertising revenues along the way!

Isnt that what newspaper/magazine owners are here for?

http://publisher.dailymotion.com/en/

http://publisher.dailymotion.com/en/backoffice/developer-kit

dalandau
tagDiv Member

Hi,

You said about dailymotion

I already tryed some time before to integrate it (you can still see old code in our file /includes/class/td_video_support.php) and it was not working very well due to the small thumbnails served by them (not useable on any of our sliders and form what I can remember smaller than our thumbs as well).

can this help? (I think your problem can be solved by using thumbnail_large_url )

	// dailymotion.com
			case 'dailymotion':
				//				domain 							 video ID
				preg_match('/dailymotion.com\/(?:embed\/)?video\/([^_#\?]+)/', $url, $url_data);
				if( !isset($url_data[1]) )
					break;

				$video_id = $url_data[1];

				// access API: http://www.dailymotion.com/doc/api/obj-video.html
				$url = 'https://api.dailymotion.com/video/'.$video_id.'?fields=title,description,created_time,owner.screenname,tags,thumbnail_url,thumbnail_large_url,url,aspect_ratio';
				$request = new WP_Http;
				$response = $request->request( $url, array( 'method' => 'GET', 'sslverify' => false) );
				if( is_wp_error($response) )
					break;
				$result = json_decode($response['body'], true);
				if( !isset($result) || (isset($result['error']['code']) && ($result['error']['code'] == 501 || $result['error']['code'] == 400) ) )
					break;

				// extract info of a time-link
				preg_match('/t=(?:(\d+)m)?(?:(\d+)s)?/', $url, $attr);
				if( !empty($attr[1] ) || !empty($attr[2]) ) {
					$min = !empty($attr[1]) ? $attr[1]*60 	: 0;
					$sek = !empty($attr[2]) ? $attr[2] 		: 0;
					$video_time = $min + $sek;
				} else {
					preg_match('/start=(\d+)/', $url, $attr);
					if( !empty($attr[1] ) )
						$video_time = $attr[1];
					else
						$video_time = 0;
				}

				// generate video metadata
				$data = array(
					'id' 			=> $video_id,
					'provider' 		=> $provider,
					'time' 			=> $video_time,
					'title' 		=> $result['title'],
					'description' 	=> $result['description'],
					'filename' 		=> sanitize_file_name($result['title']),
					'timestamp' 	=> $result['created_time'],
					'author' 		=> $result['owner.screenname'],
					'tags' 			=> implode(', ', $result['tags']),
					'img' 			=> ( isset($result['thumbnail_url']) && !empty($result['thumbnail_url']) ) ? $result['thumbnail_url'] : $result['thumbnail_large_url'],
					'url' 			=> 'http://dailymotion.com/video/'.$video_id. ( $video_time>0 ? '#t='.floor($video_time/60).'m'.($video_time%60).'s' : '')
				);

				break;

I found this code in the featuredvideoplus plugin

http://wordpress.org/plugins/featured-video-plus/

This is what I mean, these features you promised along time ago already exist. Why reinvent the wheel. Why waste your time stuck on this feature when you can look into opensource code and learn from it? Why reinvent the wheel when you can look at one for inspiration and make a better one for your racecar 😉

Is that not why wordpress is so good?

Once more, this theme has the potential of becoming the best theme ever.

Thank you

dalandau
tagDiv Member

What does this mean

1. Child themes are partially supported. You can override the css and the template files. You can’t override our code.

what can I override, what can’t I, I do not understand

can I use child theme for?

functions.php

/wp-content/themes/Newspaper/includes/app/modules/module_modifier/td_module_blog.php

/wp-content/themes/Newspaper/includes/content_builder/td_module.php

dalandau
tagDiv Member

Hi,

Its easy, edited /wp-content/themes/Newspaper/includes/app/modules/module_modifier/td_module_blog.php

function get_image($thumbType, $image_link = ”, $image_excerpt = ”) {
global $page;
if (!empty($page) and $page > 1) {
return;
}
//echo ‘raxxx’ . $page;

if (td_util::get_option(‘tds_show_featured_image’) == ‘hide’) {
return;
}

if (get_post_format($this->post->ID) == ‘gallery’) {
return;
// }

// if (get_post_format($this->post->ID) == ‘video’) {
//if it’s a video post…
// $td_post_video = get_post_meta($this->post->ID, ‘td_post_video’, true);
// $td_video_support = new td_video_support();
// if (!empty($td_post_video[‘td_video’])) {
// return $td_video_support->renderVideo($td_post_video[‘td_video’]);
// }
} else {
//if it’s a normal post, show the default thumb

//get the full url
$attachment_id = get_post_thumbnail_id($this->post->ID);

$td_temp_image_url = wp_get_attachment_image_src($attachment_id, ‘full’);

$image_excerpt = get_post_field(‘post_excerpt’, $attachment_id);
if (!empty($image_excerpt)) {
$image_excerpt = ‘<p class=”wp-caption-text td-featured-image-caption”>’ . $image_excerpt . ‘</p>’;
}

$post_image = ”;

if (!empty($td_temp_image_url[0])) { //if we have a full url, link the image to that
$post_image = parent::get_image($thumbType, $td_temp_image_url[0], $image_excerpt);
} else {
$post_image = parent::get_image($thumbType, ”, $image_excerpt);
}

return $post_image;

}
}

Now the problem is how to have it not being overridden when updating.

Viewing 25 posts - 1 through 25 (of 54 total)