![]() |
[release] Last Thread Titles on Forumhome (Cleaner)
Requires PAPI. See the instructions for details.
Author: filburt1 Description: Includes the title of the last thread along with the last poster and date/time on forumhome. Screenshot: next post Demo: none yet An important note! The last title for a given forum will only update when you post a new thread (newthread.php). Editing, deleting, moving, etc. a thread will not change this cache. To get around this, run a cron job that executes "report.php?updatethreadtitlecache=1" every 10 minutes or so. This script uses about 6 queries on top of the few needed to run report.php. Once that script is ran, every last thread title will be updated. If you don't know what a cron job is, I don't suggest you try this mod unless you want to play around with the database manually. |
Screenshot:
|
hmm, dunno might make it look a bit cluttered, but nice nonethe less
|
aw dude - EXCELLENT mod!
ive been wanting this for a LONG time!! thanks man...10/10 -Cypher |
Is it working for you?
|
didnt try yet - i got lots of work. maybe later tonight ill install it o a test board...why...is there a problem?
|
No, I'm just getting the feeling that I forgot something from the instructions. It's also the first real test of PAPI :)
|
There are two of this you released right filbie? PAPI and normal?
|
Yes. The other one requires fewer queries but is incredibly cheap how it works and doesn't need PAPI.
|
i havent used PAPI yet - ill test it later:)
|
It's not showing the title nor the link of the last post. It just showed the lastposter's username and time.
|
oh never mind, I got it. Thanks!
|
I'll test some of these PAPI mods out, I'm eager to see how it works.
|
would it be possable too update it too when u new post is posted it shows the title of that thread?
|
Remember the only time an update happens is when a new thread is posted. Any other situation requires that you update via the cron job. You should also run the cron job right after installing the mod to set all of the last titles with their initial values.
|
ok done that sorry i didnt read it :) anyways i set it 2 20 mins gonna see if it works ;)
|
ok my user cp for the host has a online cron job is this the command only?
report.php?updatethreadtitlecache=1 ? |
here also would i have too run the query again?
|
I think it's just php /path/to/vb/report.php?updatethreadtitlecache=1. I haven't tried it yet though because I can't change my live style until January 1 and my test board is only on Windows which doesn't include Cron.
|
whats url for the non papi one?
|
<a href="http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=2316" target="_blank">http://www.vbulletintemplates.com/mo...&threadid=2316</a> but this one is much better.
|
Update: if you have PAPI 1.0.5, find:
Code:
else if (thisis("newthread") && actionis("postthread")) Code:
else if (thisis("newreply") && actionis("postreply")) Also an important note: for you to be able to cron the update all script, this mod must be in the default style set. |
never mind i fixed my problem..........
|
So in what ways is this one better than the non papi release? I am just trying to figure this all out.
How many queries does this add? |
It's been a whlie since I wrote this but one or so when replying and a few with the cron job. It's better this way than the non-PAPI one because it works in any browser and doesn't reply on crazy Javascript. Also I think the other one has security issues.
|
What must I change to work with subforums..
in forumsummary I canĀ“t see the title of thread, if there is a new topic in subforum... any solution? |
ooo error.
Code:
Fatal error: Call to undefined function: thisis() in /usr/local/psa/home/vhosts/alixd.co.uk/httpdocs/global.php(929) : eval()'d code on line 8 |
i'm still having these problems, and am yet to find out the problem, any1 got ne ideas to help me
|
I must have dome something wrong since I don't get the threadtitle... perhaps I installed PAPI wrong?
|
I'm having the same problem that Digital Hybrid is having, any clues?
MGM out |
The instructions say:
In phpinclude, find: // --------------------------------------------------------------- // ------------------------- End PAPI ---------------------------- // --------------------------------------------------------------- But all I've got in phpinclude is the following: include("./customscripts/papi.php"); // This code is PHP4 only: // ob_start(); // require("yourheader.html"); // $header = ob_get_contents(); // ob_end_clean(); |
nvm, fixed it
l8er sonic |
I've got PAPI installed (note first line of my phpinclude above), but maybe I installed it wrong? I thought I just had to add that include statement to phpinclude and drop papi.php into a customscripts folder...
Thanks, Mbow |
Quote:
-Fish |
same problem either. :(
|
No more suppoet???
|
Quote:
|
I'm doing that, and still no title is appearing for me.
|
All times are GMT. The time now is 04:50 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:
|