vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Latest Thread on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=102359)

Alan @ CIT 12-05-2005 10:00 PM

Latest Thread on Forumhome
 
Requested: https://vborg.vbsupport.ru/showthread.php?t=102351

What this does
This hack will display the latest thread details for a specific forum on your forumhome. See screenshot below for an idea of what it will look like.

Installation
Install the attached Product XML as normal. You then need to edit the FORUMHOME template and add $latest_thread where you would like the details to appear.

Now go to AdminCP -> vBulletin Options -> Latest Thread on Forumhome and set the Forum ID to pull the latest thread from.

Customization
The phrase is a Global phrase called latest_thread_link_text. In this phrase, there are 4 vars:

{1} is the link to the thread (/forum/showthread.php?t=... etc)
{2} is the Thread title
{3} is the name of the Thread author
{4} is the date the Thread was posted.

You can edit the phrase to say whatever you wish, you can also place $latest_thread anywhere in the FORUMHOME template.

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D

Thanks,
Alan.

michaelbenson 12-06-2005 05:55 PM

At least you've made one user extremely grateful :)
Thanks alot.

rb290 12-06-2005 07:09 PM

thanks i installed.
How can I center it ?

Alan @ CIT 12-06-2005 07:19 PM

To center it, use something like:

Code:

<div align="center">$latest_thread</div>
in the FORUMHOME template.

rb290 12-06-2005 07:32 PM

this is all it says for me

"Newest Thread: Posted by on December 31st, 1969"

Alan @ CIT 12-06-2005 07:35 PM

Ooops, forgot to mention in the release post that you need to set the Forum ID to pull the thread from.

Go to AdminCP -> vBulletin Options -> Latest Thread on Forumhome and set the Forum ID in there.

rb290 12-06-2005 07:43 PM

ok so if i wanna pull threads from more forums i would go 1,2,3 etc ?

edit: nevermind you can only choose one forum id, i thought it tells you the latest thread from any forum

Alan @ CIT 12-06-2005 07:45 PM

Sorry, but it only supports 1 forum.

FleaBag 12-14-2005 10:11 PM

Hey, didn't realise it didn't pull threads from every forum, but still, I have it installed and am certainly enjoying it!

In need 01-04-2006 09:57 PM

Is there any way of getting more than 1 thread from a particular forum?

Good hack anyway! *Clicks install*

michaelbenson 01-07-2006 10:04 PM

Quote:

Originally Posted by In need
Is there any way of getting more than 1 thread from a particular forum?

Good hack anyway! *Clicks install*

I guess you could then use;
http://www.vbulletin.com/forum/showthread.php?t=158887

Alan @ CIT 01-08-2006 07:36 PM

Hi all,

I have now returned from my holidays, hope you all had a good <insert-seasonal-holiday-name-here> :)

I'll start answering any questions, fixing any bugs, and adding any new features next week, but I've got a lot of hacks to update, so it might not be immediate :)

Thanks,
Alan.

DamasGate 02-24-2006 12:33 AM

hi Alan @ CIT

installed and very nice

but did there any way to view it in any page on my forum or it will be just on forumhome ?

Thanks


All times are GMT. The time now is 08:01 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
  • Page Generation 0.01098 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete