![]() |
Quote:
|
works perfect on vb2.2.6
|
ok, here..
my problem was resolved! Find this bit of code in index.php PHP Code:
|
HMMMM....i think i might have found what i did wrong. I never ran the mysql command:
ALTER TABLE `forum` ADD `lasttitle` VARCHAR(100) NOT NULL AFTER `lastposter` If i didnt run that commmand what problems should i expect? SO far, when i move a post/or delete a post, it still shows that post title as the recent post. Is this a problem due to not running that command? |
VB Portal users: If anyone is intrested I found a way to hide the last post topic titles from private forums using the list of excluded forums in the vbp config file. It works on the forums and index page. email me
|
I am using vb 2.2.5 . it works but only if I delete the last post of the forum (This mean the last titles are updated manually)!. Any one faced such a problem ?
btw, I mad the modifications through the browser, should this be the reason ? |
I have the same problem...i beleive this code does not support deletions. So if you delete/move something, it will be screwed up for a bit until someone replies/posts a new topic.
|
i'm posting the new updated version for 2.2.7 in about 15min... :)
|
Ok, these are the new updated file instructions to install PPN's hack onto VB227...
Now you have the VB3 style onto your VB227. :) PPN, I hope you dont mind i did this update. If you find it usefull, please place it on your first post, and delete from it the sentence "updated by TECK". For the rest of you, please let me know if you got it up and running using this update. It's working great for me... |
Quote:
|
it's fixed now. make sure when you download the file, at the top it says version 1.1, not 1.0.
if it says 1.0, clear your browser temp files. for those of you who want to have a link the the thread itself, instead of going to the last post do this: open showthread.php and find: Code:
if ($goto=="nextnewest") { Code:
// goto newest thread Code:
<a href="showthread.php?s=$session[sessionhash]&goto=newthread&forumid=$forum[forumid]">$forum[lastthread]</a> update: i'm gonna look also in postings.php file, it needs to be also modified. for example if you edit a thread title, it wont update the thread... i will look into it and post the mod here... floren. |
ok.. another little bug discovered... and fixed.
in forum/postings.php, find: Code:
updateforumcount($threadinfo[forumid]); Code:
updateforumcount($threadinfo[forumid]); if you download the file, make sure it says version 1.2. |
now the only problem in postings.php is when you delete a thread, the title is not updated.. i'm working on this as we speak..
|
ok, in postings.php, under "start do delete thread", i added this way the code:
Code:
deletethread($threadid,$foruminfo[countposts]); |
Actually if you just change updateforumcount function to do it, as it gets called when a thread gets moved / deleted
I will write this in my diary to get done tonight just about to go out to work. |
thanks alot scott........... :)
wow it was faster then i expected your answer, i pm'ed you to your new lounge, vb.com... hihi :) |
Teck,
does your 'last post on forum home' display properly when a thread is deleted/moved? just curious. |
no. it will be fixed by PPN today, or whenever he can spare some time beside his school.
that's the only part i could not fix. the rest is all working great. |
just a kind request that PPN or someone post the complete info when it is completed. this thread is making my head spin. :O thanx! :)
|
hmm, it doesnt make sense scott. the way it is updateforumcount($forumid) function now, it should update it... what did i miss in the steps???
thanks. |
When I do update the foruminfo in the admin cp it removes all titles on the forum home. :(
|
Nice hack I installed on my vB but I need to know how to shorten the length if it exceeds so big it will be .......... instead of blabla because big thread names are stretching out my main page
|
Quote:
|
I guess not. I guess I will take a look at it myself but I doubt I can make it work. :ermm:
|
just be patient, scott is busy. i'm sure he didnt forget.
keep in mind that he's making us a favor that he posts his hacks, like any other hacker here. |
Yeah you're right. Btw will you (PPN) also include the posticon addon in the updated version?
|
I did the hack according to TecK's instructions and I am having the problem where by when a new reply is made to the post it does not update the title of the last posted thread until a new thread is made.
Replying to existing posts does not alter the thread title on forum home. Can anyone help as its driving me total looney tunes trying to get it to work. Cheers HM |
TECK, you need to fix your instructions a little.
This: ---------------------------------------- +-----------------------------------------------+ | Replace it with: +--------------------------------------------------------------------------+ $lastposts=$DB_site->query_first("SELECT MAX(title) as title,MAX(lastpost) AS lastpost FROM thread WHERE forumid=$forumid AND visible=1 AND open<>10"); if ($lastposts['lastpost']>$lastpost) { $lastposts=$DB_site->query_first(" SELECT lastpost,lastposter FROM thread WHERE forumid = $forumid AND lastpost = '$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastthread=$lastposts['title']; $lastposter=$lastposts['lastposter']; } $lastpostquery=",lastpost='$lastpost',lastthread=' ".addslashes($lastthread)."',lastposter='".addslas hes($lastposter)."'"; ----------------------------------- should be: ------------------------------------ +-----------------------------------------------+ | Replace it with: +--------------------------------------------------------------------------+ $lastposts=$DB_site->query_first("SELECT MAX(title) as title,MAX(lastpost) AS lastpost FROM thread WHERE forumid=$forumid AND visible=1 AND open<>10"); if ($lastposts['lastpost']>$lastpost) { $lastposts=$DB_site->query_first(" SELECT lastpost,lastposter,title FROM thread WHERE forumid = $forumid AND lastpost = '$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastthread=$lastposts['title']; $lastposter=$lastposts['lastposter']; } $lastpostquery=",lastpost='$lastpost',lastthread=' ".addslashes($lastthread)."',lastposter='".addslas hes($lastposter)."'"; ---------------------------------------- Now updating works in the admin cp. :) |
Hey, could someone help me out getting the posticons to update correctly in the admin cp? I updated the file and added the posticon stuff in it. It seems to work fine when posting but when I do a forum count update all posticons are gone (but titles work with my fix in the post above).
See the attached file. |
dark jim, i'm gonna ask you to take out my file and put a file only with your mods.
or even better, to post here using the [code] vb code. thanks. |
and you are right about the editing. i missed the title part. thank you.
i'm gonna ask scott to move it on top the file, since it fixed the last bug we all had problems with. |
Works with the current version of the lasttitle hack. (Not fully my work, read 2 pages earlier in this topic.) I will (try to) update it everytime PPN/Teck update the last title hack.
Run this query: PHP Code:
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: Code:
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">$forum[lastthread]</a> Code:
$icon <a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">$forum[lastthread]</a> |
If i could find your file ;)
its slow as your adding an extra query per forum so when it tries to update them it will take ages. |
i noticed another bug. when i post a poll, it will not update the title on forumhome.
to fix it, open newthread.php and find: Code:
//create new thread Code:
//create new thread |
Question: How many queries does this add to forumhome?
|
none. that's why i install it.
my goal on my board is to have a low query number, is the most important for the speed and performance of the site. |
That's my goal too! Is there a way I can contact you via MSN or AIM? I'd love to know, if it's ok with you how you keep your queries down...
I'm glad this doesn't add ANY queries at all! I need some help cutting queries down in some files.. |
sorry, i dont do support over IM's. that's why we have forums.
|
You'll find that as long as you dont go adding too many features or the author provides a way to combine queries you will have efficent code.
But please dont think that more queries means a slower execution time, it all depends on how big the table is, indexes, how many tables there is and what your scanning for. |
Yeah, well on my proper forums right now, I went over the top with hacks [60+ of them] and it slowed the forums down, had 46 queries on forumhome etc..
|
All times are GMT. The time now is 06:28 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:
|