PDA

View Full Version : Latest Thread on Forumhome


Alan @ CIT
06 Dec 2005, 18:27
Requested: http://www.vbulletin.org/forum/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
06 Dec 2005, 18:55
At least you've made one user extremely grateful :)
Thanks alot.

rb290
06 Dec 2005, 20:09
thanks i installed.
How can I center it ?

Alan @ CIT
06 Dec 2005, 20:19
To center it, use something like:

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

rb290
06 Dec 2005, 20:32
this is all it says for me

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

Alan @ CIT
06 Dec 2005, 20:35
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
06 Dec 2005, 20:43
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
06 Dec 2005, 20:45
Sorry, but it only supports 1 forum.

FleaBag
14 Dec 2005, 23:11
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
04 Jan 2006, 22:57
Is there any way of getting more than 1 thread from a particular forum?

Good hack anyway! *Clicks install*

michaelbenson
07 Jan 2006, 23:04
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
08 Jan 2006, 20:36
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
24 Feb 2006, 01:33
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