vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Next/Previous Thread Title Replacements (https://vborg.vbsupport.ru/showthread.php?t=131093)

ThorstenA 12-17-2006 10:09 AM

Quote:

Originally Posted by magnus (Post 1113175)
. However, if an additional 2 queries is of concern to you this result could still be achieved with a quick file edit which would add no additional queries.

I would be glad if you could help me to show me how to maybe get the result with no additional query. A member of vbulletin team told me it has to be done with two additional queries. I would prefer a file edit for speed improvement.

ThorstenA 12-17-2006 10:16 AM

Quote:

Originally Posted by magnus (Post 1132356)
This behavior is default in vBulletin. See for yourself, hover over "Previous Thread" here on vBulletin.org.

It would be just very good for SEO, if there is a title and link that match together.

AzH 12-17-2006 10:33 AM

Thanks for this great addition. I was wondering if it would be possible to add a "New Post" option to future releases so that rather than:


We get this:


Possible?

ThorstenA 12-21-2006 09:12 AM

Quote:

Originally Posted by ThorstenA (Post 1140256)
It would be just very good for SEO, if there is a title and link that match together.

This is how it's done:

1. Open SHOWTHREAD style

2. Search for
Code:

$threadid&goto=nextoldest
3. Replace with
Code:

$getnextoldest[threadid]
4. Search for
Code:

$threadid&goto=nextnewest
5. Replace with
Code:

$getnextnewest[threadid]


I believe there are only remarkable SEO improvements if you also direct code the threadids the way I showed here. Because only this way there is a link to the previous / next topic.

I would be glad if this small enhancement would takes it way to this product!

nocte 01-03-2007 10:02 AM

i'd suggest to do this change on SHOWTHREAD:

Code:

<div class="smallfont" align="center">
        <strong>&laquo;</strong>
                <a href="showthread.php?$session[sessionurl]t=$getnextoldest[threadid]">$vbphrase[prev_thread]</a>
                <if condition="$getnextnewest[threadid] > 0">
                        |
                        <a href="showthread.php?$session[sessionurl]t=$getnextnewest[threadid]">$vbphrase[next_thread]</a>
                <strong>&raquo;</strong>
                </if>
</div>


FunaGuy 01-04-2007 11:05 PM

there is any way to show (No next or pervious thread) If we have no pervious or next thread ? (Dont show empty space)

E.g

Before:
« Post the bloody great picture of yourself. | »

After:
« Post the bloody great picture of yourself. | There is no next thread »

magnus 01-05-2007 04:52 PM

Quote:

Originally Posted by FunaGuy (Post 1150965)
there is any way to show (No next or pervious thread) If we have no pervious or next thread ? (Dont show empty space)

E.g

Before:
? Post the bloody great picture of yourself. | ?

After:
? Post the bloody great picture of yourself. | There is no next thread ?

Sure, in the showthread_getinfo hook -

FIND:
Code:

$nextthreadtitle = '</a>-<a href=\"#\">';
REPLACE WITH:
Code:

$nextthreadtitle = '</a>There is no next thread<a href=\"#\">';
FIND:
Code:

$prevthreadtitle = '</a>-<a href=\"#\">';
REPLACE WITH:
Code:

$prevthreadtitle = '</a>There is no previous thread<a href=\"#\">';
I'll see about adding a customizable text field in the settings, as well as the other suggested changes in this thread in the next release.

maxicep 01-31-2007 11:48 AM

rulaz, installed.

Dave-ahfb 02-03-2007 07:44 PM

Has anybody instaled on 3.6.4?

magnus 02-05-2007 12:10 PM

Quote:

Originally Posted by Dave-ahfb (Post 1173861)
Has anybody instaled on 3.6.4?

I don't see why it wouldn't work. Have you tried it?


All times are GMT. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01289 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete