vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Replace Previous and Next Link with Actual Thread Titles (https://vborg.vbsupport.ru/showthread.php?t=92407)

amykhar 07-17-2005 10:00 PM

Replace Previous and Next Link with Actual Thread Titles
 
This one is by request. At the bottom of each thread, rather than show links that show Previous or Next, it shows the actual titles of the previous and next threads.

It's a plugin that requires one small template edit.

Amy

Barakat 07-18-2005 01:05 AM

great hack and nice idea thanks and install.

Jenta 07-18-2005 02:05 AM

wow
very usefull

Dream 07-18-2005 02:09 AM

nice, you should put a heads up in the first post saying it adds 2 queries to showthread though, imo

i would install this but im not really willing to spend 2 queries doing that... good work tho

theArchitect 07-18-2005 02:19 AM

Quote:

Originally Posted by Barakat
great hack and nice idea thanks and install.

Fantastic idea. I never used these buttons much as I found them a little random. But now they are much more meaningful.

SouthernTn 07-18-2005 02:34 AM

Hey thanks nice Mod , Just installed

TTG 07-18-2005 03:47 AM

Some amazingly useful hacks being released every day for 3.5.0 .. thanks amy .. great hack.
Clicked install.

Neutral Singh 07-27-2005 08:23 AM

Cool !!

FleaBag 07-27-2005 11:23 PM

I really like this, thanks Amy!

poolking 08-11-2005 05:43 PM

/me installed

Zachariah 08-13-2005 12:33 AM

Thank You. :D

Tomek 10-31-2005 11:15 AM

How could I limit the actual thread title to 30 characters i.e.?

Example:
Very long Thread Tit... | A much longer Th...

Tomek 10-31-2005 07:19 PM

The solution:
PHP Code:


$maxchars 
30
if (
strlen($prevarray['title'])>$maxchars

   
$prevarray['title'] = substr($prevarray['title'], 0$maxchars) . '...'

if (
strlen($nextarray['title'])>$maxchars

   
$nextarray['title'] = substr($nextarray['title'], 0$maxchars) . '...'


Add this at the bottom of the plugin.

Saskia 12-10-2005 11:42 AM

Works excellent. Thank you!

Bounce 12-28-2005 11:07 PM

another cracker amy

[high]* Bounce installs :rolleyes:[/high]

BabyNameAddict 03-06-2006 04:33 PM

Awesome! I love this hack!

Btw, how do I go about adding the character limit after I've installed the plug-in? Do I remove it, then edit te plug-in, then add it again? Also, you said to enter that code at the end. The VERY end? Or before the </plugin>?

TIA!

coffee 05-21-2006 08:47 PM

Thank you Amykhar.

amykhar 05-22-2006 12:33 AM

you're welcome :)

maxicep 01-31-2007 11:47 AM

rulaz, installed.

Super Jinni 05-12-2008 12:07 PM

good one

thanks

codershark 05-15-2008 02:44 PM

dont works at 3.7 :(

DiverTree 05-16-2008 05:12 PM

Quote:

Originally Posted by codershark (Post 1520574)
dont works at 3.7 :(

you have to play around with it a little, but you can get it to work. ;)

yahsuah 11-01-2008 11:48 PM

it works at vb 3.7.3

munnakv 07-28-2013 04:53 PM

Installed. Works in (vBulletin 3.8.7 Patch Level 3).

Is this mod or anything similar available for Vbulletin 4?


All times are GMT. The time now is 04:40 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.01147 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete