- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Page Template Setting: Sidebar auswählen
Über den Visual Composer legst du 3 Spalten an
Innerhalb der 3 Spalten legst “Block 3” an. Dort kannst du ja Kategorie auswählen und Anzeige auf z.B. 3 Artikel setzen Excerpt gibt es hier nicht, da müste man im der entsprechenden Datei “fummeln”. Oder hat er das mit Bordmitteln so hinbekommen?
Hello,
Take a look in td_ajax.php http://screencast.com/t/8IxNDBbdh
No, sorry for the inconvenience. If more client request it we will make it.
Thanks
Hello,
You can try to use a text widget and add a block with shortcode to see if work.
Thanks
I’ve got the custom block and module working. But I’ve run into another issue. I’m displaying sub categories and using the Load More button to load posts using Ajax. Except that when ajax loads more posts it’s not displaying them in the 4 column layout I’ve programmed into the custom block and module. I assume there is another file I have to modify to output the correct ajax?
Also, by any chance, will the Teaser Grid component of Visual Composer ever be supported?
Thanks for all of your help.
I found a solution. Here is it:
Edit Newspaper/includes/app/shortcodes/td_block_3.php:
$td_query = &$td_data_source->get_wp_query($atts); //by ref do the query
Add the following line before it:
$atts['offset'] = 5;
$td_query = &$td_data_source->get_wp_query($atts); //by ref do the query
Edit Newspaper/includes/content_builder/td_data_source.php
extract(shortcode_atts(
array(
'category_ids' => '',
'tag_slug' => '',
... ),
$atts
Add the following element to the above array:
'offset' => 0,
And add the following line after $args created:
$args['offset'] = $offset;
-
This reply was modified 12 years by
mertnuhoglu.
Hello,
use on .block-title without span
Hello,
That issue is fixed in 1.7.2
Thanks
Hello Marius,
Thanx for your answer ! Basically I used the page builder/visual composer, but not the way I should have (and now I’ve understood that I needed to use the block 3).
Now it looks like it’s ok…
Thanx for your answer, and congrats for your theme, good job !!
I ended up changing function inner($posts, $td_column_number = '') to force using 4 columns.
On a side note, I think I remember reading a post about search being broken for media upload/ selection… Is that going to be fixed still?
Thank you.
No I don’t want to select subcategories, but I in the end had to to make a brand new category and place all my categories as subcategories, in order for them to appear in the block2 tabs.
Besides that I have a new problem with google.
When google was crawling my site it keeps showing me that
Google detected a significant increase in the number of URLs we could not access.
Since I changed the theme I got over 400 Crawl Errors.
I spoke to my hosting and everything is fine with them?
Is there something that I have had to do so that google can crawl the new layout?
Hello,
We don’t have a block only with text posts without image, but you can edit on if you want.
You can see here a diagram how the blocks and module work http://import.tagdiv.com/newspaper/doc/#blocks
You can edit or create a new module without image(module 3 or 4) and remove the image. Also from CSS i thing should be a little adjusted. http://screencast.com/t/efK2k9nmGrZZ
Hope this help.
Thanks!
-
This reply was modified 12 years by
Marius.
Hello,
Each block, slider can be configured like you want to get article from what category you want, sorted like you want, latest, featured, popular, etc.
The homepages is build using Page Builder(Visual Composer) Do you use it before?
Just edit your homepage and start the Visual Composer(the blue button) Form there you can add, remove, edit all the components on the page.
Also please throw an eye on the documentation there you have some steps how to make things happen. http://import.tagdiv.com/newspaper/doc/
Thanks for the message and please feel free to ask us anything!
Hello,
Do you manage it? Here is how the columns are created http://screencast.com/t/WvljoGtQcvP
I done this but it hasn’t worked;
.block-title span {
background-color: #c6b28f !important;
border-color: #c6b28f !important;
}
Important worked. All i need to know now is the code to change the border (line) which leads on from that block.
Thanks
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
Hello,
Use Block 3 instead of Block 2 this is like you want see the icon http://screencast.com/t/es9uCYXk6
Remove Block 2 and add Block 3
Thanks
Just wanted to add a couple of feature requests for the theme. It would be great if in the blocks I could sort posts alphabetically by their post title. And I also would be interested in just the normal pagination (Page 1 | 2 | 3) instead of Load More or Ajax.
In the block, how would I tell it to do a 4 column layout? For example, I’ve started off copying Block 3, renaming it block 6 (and corresponding code), then added a case for 4 columns…
Hi,
I chose to use the “One click demo install” on my website, and chose this version, as I couldn’t find the way to get this appearance via the Visual Composer (it was ok for the big slide, but I couldn’t find the way to get the blocks organized in the category “Don’t Miss” on the exemple I showed you).
How to “manually” build such a homepage ? I also would like to know how to display different categories on the homepage, like in your exemple (i mean, for instance, how to select other articles in “Dont’ miss” ? Rather than the latest articles, which appear also in this line…).
And my last question is : is it possible to choose not to display every article on the big slide ?? As soon as I add an article, its pic appears on the big slide, wihch is not always what I want !
Thanx four your answer !!
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
Hi Radu,
I am sorry, I think you are still using the wrong thumbnail
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
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 #
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
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