Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications

Reply
 
Thread Tools
[release] Last Thread Titles on Forumhome (Cleaner) Details »»
[release] Last Thread Titles on Forumhome (Cleaner)
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-15-2002 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-18-2002, 06:54 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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.
Reply With Quote
  #23  
Old 12-28-2002, 04:14 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: if you have PAPI 1.0.5, find:
Code:
else if (thisis("newthread") && actionis("postthread"))
{
    updatethreadtitlecache(false, $_POST['forumid'], $_POST['subject']);
}
After it, add:
Code:
else if (thisis("newreply") && actionis("postreply"))
{
    updatethreadtitlecache(false, $_POST['threadid']);
}
That will force the last post title to update after a reply to a thread.

Also an important note: for you to be able to cron the update all script, this mod must be in the default style set.
Reply With Quote
  #24  
Old 01-03-2003, 10:29 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind i fixed my problem..........
Reply With Quote
  #25  
Old 02-11-2003, 01:45 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #26  
Old 02-11-2003, 01:46 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 04-06-2003, 08:29 AM
zfrank zfrank is offline
 
Join Date: Feb 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #28  
Old 04-06-2003, 08:04 PM
Breaker's Avatar
Breaker Breaker is offline
 
Join Date: Jan 2002
Location: Derby, UK
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
using PAPI 1.0.9
Reply With Quote
  #29  
Old 04-12-2003, 01:18 PM
Breaker's Avatar
Breaker Breaker is offline
 
Join Date: Jan 2002
Location: Derby, UK
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm still having these problems, and am yet to find out the problem, any1 got ne ideas to help me
Reply With Quote
  #30  
Old 06-04-2003, 06:26 PM
imported_Digital Hybrid imported_Digital Hybrid is offline
 
Join Date: Dec 2002
Location: Norway
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must have dome something wrong since I don't get the threadtitle... perhaps I installed PAPI wrong?
Reply With Quote
  #31  
Old 06-17-2003, 02:59 AM
MGM MGM is offline
 
Join Date: Jan 2003
Location: Michigan
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having the same problem that Digital Hybrid is having, any clues?

MGM out
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06571 seconds
  • Memory Usage 2,293KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete