![]() |
Last / Next Thread Name in thread view
Showing in thread view the last thread name and next thread name instead of "last thread" and "next thread".
Advantage: -I know before whether the thread is interesting for me. -The link to the thread isn't shown, if there is not any next or last thread. -Additional information possible (for example thread starter, views etc.). Disadvantage: - The previous thread isn't the previous thread any more, if somebody writes into this in the meantime :nervous: See the screenshot for more informations. |
hey mate, very good idea, so this links can be usefull :)
i don't think the old style is used so much ;) |
Ups. Have forgotten the code :rolleyes:
Search in showthread.php for: Code:
if ($goto=="nextnewest") { Code:
if ($nextthread=$DB_site->query_first("SELECT threadid,title,views,replycount,postusername FROM thread WHERE forumid='$thread[forumid]' AND lastpost>'$thread[lastpost]' AND visible=1 AND open<>10 ORDER BY lastpost LIMIT 1")) {$nextthr=$nextthread[title]; if(strlen($nextthr)>45) $nextthr=substr($nextthr,0,42)."...";} Code:
<smallfont> Code:
$nextlastthread |
i was sure you want to post the code in the next post ;)
A tip for the next version: Don't make the Design hardcoded as you made here, would be better if you can set own designs in a template :) |
Hmm. Right. Thx for the tip. I always make this to my Hacks actually, too ;)
Quote:
|
Nice ;)
I will probably only use the title of the thread though, that extra information seems to make it look cluttered. |
Can someone make it so it uses a template instead of being so hard coded because i have different styles and I have different pics for each style for the next and previous buttons. Thanks. That would really really help.
|
i'm not the creator of it, and i think he'll do it more comfortable hisself, but you can do this:
replace PHP Code:
PHP Code:
|
Thx Xenen :)
I will publish a new version with Templates - soon... :D |
i'm looking for this hack since a long time
do you think that you can publish the new version soon ? ;) up one year later :D |
All times are GMT. The time now is 10:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|