The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#302
|
|||
|
|||
![]()
its the newreply code i think
as the newpost code works fine |
#303
|
|||
|
|||
![]()
hmm seemed to have fixed it
musta missed a line ![]() |
#304
|
||||
|
||||
![]() Code:
+-----------------------------------------------+ | File: FORUM/postings.php (1 change) | +-----------------------------------------------+ | 1. Find this code: +--------------------------------------------------------------------------+ updateforumcount($threadinfo[forumid]); if ($visible) { +--------------------------------------------------------------------------+ | +-----------------------------------------------+ | Replace it with: +--------------------------------------------------------------------------+ updateforumcount($threadinfo[forumid]); $lastpost=$DB_site->query_first("SELECT * FROM forum WHERE forumid='$threadinfo[forumid]'"); if($lastpost['lastpost']==$threadinfo['dateline']) { $DB_site->query("UPDATE forum SET lastthread='".addslashes(htmlspecialchars($title))."' WHERE forumid='$threadinfo[forumid]'"); } if ($visible) { +--------------------------------------------------------------------------+ I don't have the " if ($visible) {" anywhere underneath any of the "updateforumcount($threadinfo[forumid]);" in the file... ![]() |
#305
|
|||
|
|||
![]()
sorry, may be you already talk about, but... how to add lastthread icon for that hack on forumhome?
thanx |
#306
|
||||
|
||||
![]()
^check back a few pages.
I read quickly through each page, but didnt see what I was looking for, at least not quite. I have a forum where almost every thread has a cuss word in the title. The forum can only be read and posted in for registered users, logged out/unreg users still see the forum in question listed on the index, but when they enter, they wont be able to see any threads. This hack works great on 2.2.9, have it working on my test installation on my workstation, however I'd really like to know if its possible, to disable the last post for this one forum I have? I know I can change permissions to make it invisible to unregistered users, but I dont want to do that, since the forum still needs to appear in the index. Thanks! |
#307
|
|||
|
|||
![]()
Has anyone figured out how to update the title on forumhome when the thread's title is edited?
|
#308
|
|||
|
|||
![]()
...Hmm...ok I just looked in the instructions once again and found this:
lastthread That's the row that's created in a table in the DB.... My guess is...upon editing a thread, the change is entered somewhere, but the code isn't calling it? |
#309
|
|||
|
|||
![]()
N9ne, use "Update Counters" in your AdminCP
![]() Mr. X, please, can you give me link to message, couse i have not time to search.... please! ![]() |
#310
|
|||
|
|||
![]()
M.C.: I could use update counters, but that would mean everytime someone edits a thread's title, I would have to update counters...not practical.
|
#311
|
|||
|
|||
![]()
hi there.. i just got a little error on my site: http://www.spieleplanet.org/forum
look on the main boards "Spieleplanet Communizty .. there it shows 2x times the last threads.. but only in this forums.. on all others its okay.. please give me an idea!? thx |
#312
|
|||
|
|||
![]() Quote:
that dont show for me either on vb 2.2.6 for the postings.php file. when i search for updateforumcount($threadinfo[forumid]); .. about 4 of them comes up without the invisible part. any help? |
#313
|
||||
|
||||
![]()
I just installed this on 2.2.9 but I got an error when I went to update the forum info. This is the error:
Quote:
![]() |
#314
|
||||
|
||||
![]()
Ok, I finally got the forum update counters to work by making the last post by someone other than the user with an apostrophe in the name. If they post any last posts in the future, then we are going to run into the problem again. I think it has something to do with adding htmlspecialchars or something like that to the last poster in the hack but I'm not sure where to add that to avoid the db error problem in the future. Can anyone lend a hand on that? Also, I get this error when I click on a last post link from a forum that has only 1 thread and 1 post in it.
Quote:
|
#315
|
||||
|
||||
![]() Quote:
Code:
open showthread.php and above: if ($goto=="nextnewest") { $thread = verifyid("thread",$threadid,1,1); add: // goto newest thread if ($goto=="newthread") { if (isset($forumid) and $forumid!=0) { $foruminfo=verifyid("forum",$forumid,1,1); $forumid=$foruminfo['forumid']; $lastthread=$DB_site->fetch_array($DB_site->query("SELECT threadid FROM post WHERE username='".addslashes($foruminfo[lastposter])."' AND dateline='$foruminfo[lastpost]'")); header("Location: showthread.php?s=$session[sessionhash]&threadid=$lastthread[threadid]"); exit; } } In the "forumhome_lastpostby" template: change: <a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]">$forum[lastthread]</a> to: <a href="showthread.php?s=$session[sessionhash]&goto=newthread&forumid=$forum[forumid]" title="Go to first post">$forum[lastthread]</a> |
#316
|
||||
|
||||
![]()
Is anyone still supporting this hack? I finally got it working ok, but I ran into a problem earlier tonight. I got the
Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|