![]() |
I had tried a version suggested by someone else instead of my own and well, all it did was send the load average up by about 10 times what it was.
This version inserts the last title into the forum database when it is updating the last post name and time. There is no difference in loading time as everything is called normally by vBulletin. This works on 2.0.x and 2.2.x Updated at 11:34 GMT on 28th September 2002 Thanks to floren for the latest update. |
DEMO? Screenshot?
anything? |
ok here is a screen shot
|
PPN, if you move a thread, will it display the correct title? That was the problem in all the other "Last post on forum home" versions.
|
yes, i just tested it and it worked ok, but for some reason it left the date and last poster the same in the forum it was being moved from, i will have a look at the vB code just now for that reason.
Delete Merge Edit Copy all work well its just the move one. |
Yep, many code hackers had this problem, but never solved it ;)
|
ok delete works, it just doesn' t work if the post being deleted is the only post in the forums.
In an unhacked version it still shows date and name even if the hack is not installed, a bug in vBulletin maybe? anyway everything works apart from if your delete/moving a thread which is the only one within the forum. |
After I tried out the other 2 hacks, I thought this one works.
But it doesn't. I'm running 2.0.3 and either I'm gettin' a Parse Error (as you mentioned the variable in your hack "$form['lasttitle']") or nothing appears ($forum[lasttitle]). What I'm doing wrong ? Regards, Chris. |
paste in the parse error pls.
the new topics won't take effect until someone posts a reply or new thread. |
As you stated in your installation textfile
Quote:
I changed it to this: Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right"> (I think there is nothing in the variable "$forum[lasttitle]" or it's also not legal, therefore nothing appears) Regards, Chris. |
ok, i discovered what it was, i will re-document in about 20mins after i have had some nice kebab :P
|
Roger, have a nice eating. ;)
|
ok, i updated the documentation now to go have a beer :P
|
Cheers!:)
Thanks for updating. I'll try it in a few hours. Thanks. Regards, Chris. |
In last post column it is displayed New worm &quot;Ni.. Ni. though original thread title New worm [u]"Nimida"[/u.] Please fix it.
And how to reduce quantity of symbols deduced in the title of a thread? |
sorry about this i forgot to unhtmlspecialchars the title.
within index.php and forumdisplay.php look for the follow lines which you added. PHP Code:
PHP Code:
Also the decision on length is made by the top code a quick explanation is, if the length is over 30, remove everything after 28 characters and add two dots to the end. Hope this helps, instruction file now updated. |
Thx, PPN!
GOOD WORK!:) |
so this is one of the first versions to work without bringing the server to its knees?
:P |
Mine works perfectly fine... Although I just combined a bunch of the ones that were posted before, sorta mad my own... don't remember what I did...
|
Works great, you did a really good job on this... Thanks so much!
I do have a question though.. How would I get the title to link to the actual post? Thanks again!. :D |
change
$forum[lasttitle] to <a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">$forum[lasttitle]</a> within the "forumhome_lastpostby" template and didn't you forums use to be UBB? |
i have posted the new code of similar hack:
http://www.vbulletin.com/forum/show...&threadid=28489 maybe it interests you... :) |
PPN: Any way to get that to link to the BEGINNING of that particular topic, since the -> arrow already goes to the last *post*?
This possible too? ...and yes, formally UBB. |
ok open showthread.php and above
PHP Code:
PHP Code:
PHP Code:
|
Thanks so much!
Hey, what sorta resource difference does it take to run this new link, as opposed to doing it the previous way without the extra query above? I have over 35 forums.. Want to keep things snappy. :) |
none, you are still running one query if you use the current vBulletin equivalent or the one i posted. It should have no adverse effect on the forums.
|
Kick ass. :)
Final question (yeah right lol): Occasionally there is a topic with a quote in it like: What are "Private Messages"? For the quotes above, it would only show " Any way around that? I know it's filtering out junk, was just wondering if it was possible to get quotes back (but only if it does not introduce a security problem. Thanks again! |
i just posted the topic identical to what you used, make sure in index.php that
PHP Code:
|
[QUOTE]first thing to do is to run this mysql query :P
ALTER TABLE `forum` ADD `lasttitle` VARCHAR(100) NOT NULL AFTER `lastposter` |
in phpmyadmin
|
Hey..
Yeah, I checked my index.php file and it does contain that code below.. I see it is working well on your forum, so it must just be something minor somehow... Hmmm. :) Quote:
|
PPN any updates for this hack
|
updated to work with 2.2.0 there was a small difference with the functions.php, it was just a change in the way the query was run, the update file has been updated to accomodate this.
I also adjust what i presumed was the problem that Alien was experiencing. |
Hi,
does it let you edit & update the length of the last title through the cp? Does it support different settings depending on the forum (on/off & length)? Thanks, -Tom |
hi there PPN
I just downloaded your file and I cant find this PHP Code:
PHP Code:
and also this query seems to be changed a bit PHP Code:
PHP Code:
I tried to work on them but with no success :( |
Ok instructions updated.
PHP Code:
|
Quote:
-Tom |
Sorry PPN I got lost here ... the instruction file in the first post of this hack is still not updated ....
and million thanks for your :) |
It won't let me update the file or add a new one i keep getting this error.
Will bring it up to FireFly |
yep its been updated, Firefly made sure it was now...
I don't want to post the contents of the file but try making sure its not your cache causing problems. |
All times are GMT. The time now is 04:49 PM. |
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:
|