PDA

View Full Version : Custom Random Forum Posts


Simplicity
08-04-2006, 06:45 AM
How could I alter the 'Random Forum Post' plugin so that it shows the content of the random post aswell as its title? Currently it just displays the title as a hyperlink to forward the user to the thread. I would like to use this as a testimonials feature to post random testimonials from the forum onto my website.

Any help would be greatly appreciated.

Simplicity
10-01-2006, 04:49 PM
I assume that I would need to somehow link from the lastpostid from the thread table and then using the postid grab the pagetext from the post table.

Eg.
=======================
Random Post Plugin (the plugin title) - selects $thread threadid randomly
---------------------
Test ($thread title)

Content ($post pagetext) - using postid which links the thread and post tables

Posted by User ($thread lastposter)
========================================

I just cant work out the code that needs to be entered to get this information from the vbulletin 3 database and display it!

Any help with this would be greatly appreciated

SSSlippy
10-02-2006, 01:45 PM
This is possible, ill look into the name for you tonight(at work). However im not sure if you want to do this. That can be ALOT of text to be displayed. I wonder if vbulletin keeps a short version of the msg for the forum category pages as they always have a short version on mouse over.

Simplicity
10-02-2006, 06:50 PM
I see what you mean, I wanted to set it up so that clients can enter testimonials into a forum and then these are shown randomly on my homepage.

david_elliot
09-18-2008, 01:07 AM
Hi Simplicity

have you given up on the testimonial plugin? I am finding it a bit bugged also with testimonials disapearing if opened in the edit section and only one being displayed to users. Good luck with finding an alternative method.

cheers

david