![]() |
look for
if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; } } change to if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; $lasttitle=$lastposts['title']; } } your looking for the above one if you still can't find it your looking for $lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; this in specific |
I cannot find the above, the nearest I can find is the below:
$lastposts=$DB_site->query_first("SELECT 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 lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; } :( |
ok change the following
PHP Code:
PHP Code:
|
Its still has not updated the posts that have already been made. Its working if a member posts a current message but it does not update at all with any old posts.
I have change what you stated above and still no joy? :) |
This hack didn't work for me on 2.2 I get the following error.
Parse error: parse error in /www/htdocs/forums/newthread.php on line 375 It's the ?> at the end of the document. I use EditPlus 2 to edit my files, why is it doing this? |
also this may couse a problem
PHP Code:
PHP Code:
|
dxb >
i took that into account and its mentioned within the readme for how to do it to 2.2.x and 2.0.x because of the difference. Lubi > does EditPlus have syntax highlighting for PHP? if so then it should show where it went wrong, if not PHPed from http://soysal.com does and is useful for spotting errors. I honestly don't know what would cause an error like that, you were only updating 3 lines within newreply.php |
Well I dunno either I do have the sytax colors but the code isn't wrong I think the software must be doing something when I save the file. I've never had this problem with Textpad but I like Editplus 2 way better... I dunno but I can't install any hacks until I get this squared away :eek:
|
How can I make the title of the post/thread a link to the post..? Basically like below... Icon and all...
http://www.suprascene.com/temp/likethis.gif Ubb style.. Can someone maybe write the template because i don't have the slightest... :confused: thanks ;) I had it like this on 2.0.3 but I dunno what to do... |
Hi, great hack.
This typo gave me some problems: within it you may add $form['lasttitle'] to show Duh, I should have checked that! |
All times are GMT. The time now is 12:02 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:
|