![]() |
the title of the last post works but now time and date are not showing
|
Here I got another problem:
Some lastpost-thread-descriptions won't be shown. I used the utility "update counters", but it doesn't works. What can I do? Here is a sample: http://www.d-c-f.de/images/Pictures/lastpostby.jpg |
i just cleared my cache and downloaded the file and named it with a different name and still the file is not updated it's still says 2.0.1
|
I looked at your forums Amasov and all looks ok now? did it just sort itself?
dxb i can assure you its the new version i've tried it on multiple computers and Firefly to, pm me your email and i'll email you the file then. Scott |
Quote:
I just sorted it myself while I was posting in the latest thread and deleted that post. Anyhow, if there was a new post in that described forums, the thread-description was shown. Therefore I made that database-update "by hand". By now it works perfectly. Thanks overall. :) :) Regards, Chris. |
Installed as per instructions and got the following error:
Parse error: parse error in /home/sites/home/web/forum/admin/functions.php on line 2254 Warning: Cannot add header information - headers already sent by (output started at /home/sites/home/web/forum/admin/functions.php:2254) in /home/sites/home/web/forum/admin/functions.php on line 1524 Fatal error: Call to undefined function: makelogincode() in /home/sites/home/web/forum/global.php on line 332 Any help? :( |
yey thanks! :D
i made my own version...but i never could get the right code in functions.php to make it work there:o one suggestion could you add the last ico too, i already have this included in my version...i just can't code the correct stuff for functions.php to make it work there..ie when updating forums info or after a post is deleted :o |
Working now but Instructions a little bit confusing.
Were it says: 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']; } } This is not needed at all for 2.2.0 and users of 2.2.0 in fact need: FOR 2.2.x USE THE FOLLOWING ----------------------------------- look for $lastpostquery=",lastpost='$lastpost',lastposter=' ".addslashes($lastposter)."'; change it to $lastpostquery=",lastpost='$lastpost',lastposter=' ".addslashes($lastposter)."', lasttitle='".addslashes($lasttitle)."'"; save the file and upload then continue hack as normal Can the very first bit " if ($lastposts['lastpost']) { " be deleted and replaced with FOR 2.0.x USE THE FOLLOWING Info. :) |
The
PHP Code:
The last bit depends on which version as of 2.2.x they introduced $lastpostquery cause it wasn't needed some times.. |
I could not find the below txt in my version 2.2.0 /admin/functions.php .......
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']; } } So I left it out? :( |
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! |
em my bad
:D |
Well I did the layout myself, but how do I get the code for the icon with the last post? What's the code for the icon?
|
Yeah it would rock if you added the post icon too
|
PPN, this version works really fine on my testboard, some extreme testing, then i will do it on my main forum :)
|
This works great!! Thanks! (first post :) )
|
Ok, i'll look into doing the post icon as well, I hope i can do it by just adding to the existing query :)
|
Quote:
|
Tried to remove this hack, I uninstalled this hack form all my files backed out changed everything back from what the text told me to change it to. Anyhow so now with my fuctions.php I get this error:
Parse error: parse error in /www/htdocs/forums/admin/functions.php on line 1793 Fatal error: Call to undefined function: makelogincode() in /www/htdocs/forums/global.php on line 332 The code on the lines around it are as follow. PHP Code:
|
Didnt you backup functions.php?
|
Quote:
|
Well no one has been able to figure out why I get an error removing this hack. So I've decided to keep it, and wait for the icon addon. So I'll KIT waiting for that one, hurry PPN it's a killer.
|
PHP Code:
PHP Code:
|
Please, inform the complete working code for vb2.2.1 version.
|
It will work on vb 2.2.1 there will be no changes as 2.2.1 was just a bug fix and involves no changes to any of the functions which this edits.
Scott |
The last version of the code without bugs is necessary for me. Which works with version 2.2.1. Where it to take?
|
This does work perfectly fine on vb 2.2.1.. Ive been using it sense it was released...
-Syphin |
I understand! The version free from bugs is simply necessary for me!
|
does this hack exclude private forums to show last title?
|
Question how would this work if you are using access masks ?
|
The makeforum function already takes into account access masks when showing the last post time and last post user this is simply an addition with last post title so if they don't have permission to view others then they shouldn't see time, user or title.
Scott |
All times are GMT. The time now is 04:19 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:
|