qTranslate Multilanguage on NEXT PREV

Posted in: Newspaper
Post count: 6

Hi there,

Im currently using qTranslate with no problems however the next prev button on the posts show both images.

prev next

Can you please help me to sort this out?

Post count: 6

Sorry, not images but both titles

Post count: 6600

Hi,

Can you please send me your site URL so I can check this?

Thanks

Post count: 6

Hey Lucian,

onlinegames.cat, just open any post:
example: http://www.onlinegames.cat/los-sims-freeplay-trucos-iphoneipadandroid/

As you can see, in the Next / Prev button in the final of the post, there is 2 languages, in this case, spanish and catalan.

Luis

Post count: 6600

Hi,

Please add this lines:

get_the_title($prev_post->ID)

get_the_title($next_post->ID)

..like this in the td_module_blog.php file: http://screencast.com/t/vRMvyuFfg

Thanks

Post count: 6

Worked like a charm !!!

THANK YOU !

Post count: 6

Hi Lucian,

Updated the theme and this happen again. And now i cannot find the tb_module_blog.php, any idea where i need to change this?

Post count: 7909

Hi,

Here you can modify the code in version 6 of the theme – http://screencast.com/t/s2zx66Jnkp

Thanks!

Post count: 6

Hi Alin, thank you for your reply.

Didnt work.

if (!empty($next_post) or !empty($prev_post)) {
$buffy .= ‘<div class=”td-block-row td-post-next-prev”>’;
if (!empty($prev_post)) {
$buffy .= ‘<div class=”td-block-span6 td-post-prev-post”>’;
$buffy .= ‘<div class=”td-post-next-prev-content”><span>’ .__td(‘Previous article’, TD_THEME_NAME) . ‘</span>’;
$buffy .= ‘ID)) . ‘”>’ . get_the_title($prev_post->ID) . ‘‘;
$buffy .= ‘</div>’;
$buffy .= ‘</div>’;
} else {
$buffy .= ‘<div class=”td-block-span6 td-post-prev-post”>’;
$buffy .= ‘</div>’;
}
$buffy .= ‘<div class=”td-next-prev-separator”></div>’;
if (!empty($next_post)) {
$buffy .= ‘<div class=”td-block-span6 td-post-next-post”>’;
$buffy .= ‘<div class=”td-post-next-prev-content”><span>’ .__td(‘Next article’, TD_THEME_NAME) . ‘</span>’;
$buffy .= ‘ID)) . ‘”>’ . get_the_title($next_post->ID) . ‘‘;
$buffy .= ‘</div>’;
$buffy .= ‘</div>’;
}
$buffy .= ‘</div>’; //end fluid row

and i get

tets

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.