The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Create "Latest Threads" Custom Page
A simple [HOWTO] to display latest threads on a custom page. If you don't have GTCUSTOM PAGES installed .. go download and upload product via Plugin Manager. You need GTCUSTOM PAGES to follow this article. LETS GET STARTED INSTRUCTIONS:
1)__ CREATE 2 TEMPLATES Create "custom_thread" template: HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tbody> <tr> <td class="tcat" colspan="5"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('gtcthreads')"><img id="collapseimg_gtcthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_gtcthreads].gif" alt="" border="0" /></a>$vbphrase[header_title]</td> </tr> <tr class="thead"> <td> </td> <td class="smallfont" align="$stylevar[left]" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td> <td class="smallfont" align="center" style="white-space:nowrap">$vbphrase[last_post]</td> <td class="smallfont" align="center">$vbphrase[replies]</td> <td class="smallfont" align="center">$vbphrase[views]</td> </tr> </tbody> <tbody id="collapseobj_gtcthreads" style="$vbcollapse[collapseobj_gtcthreads]"> $threadrows </tbody> </table> <br /> HTML Code:
<tr> <td class="alt2" align="center"><if condition="$show['threadicon']"><img class="inlineimg" src="$thread[iconpath]" alt="" border="0" title="" /> <else /> </if></td> <td class="alt1"><a href="showthread.php?t=$thread[threadid]"><strong>$thread[title]</strong></a> <div class="smallfont"> - by $thread[postusername]</div></td> <td class="alt2" align="center"><div class="smallfont time" style="white-space:nowrap">$thread[lastpostdate] $thread[lastposttime]<br />by $thread[lastposter]</div></td> <td class="alt1" align="center">$thread[replycount]</td> <td class="alt2" align="center">$thread[views]</td> </tr> Phrase Type: GTCustom Pages Product: GTCustom Pages Varname: gtcustom_newthreads_header Text: Latest Threads 3)__ ADD FUNCTION TO functions_gtcustom.php Copy the following function to functions_gtcustom.php (functions_gtcustom.php is included in GTCUSTOM PAGES product) PHP Code:
FIND IN goto.php: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Now, go visit the page that you just created: $vboptions[bburl]/goto.php?section=newthreads Need any help? Contact me personally via private message. NOTE:
|
#12
|
|||
|
|||
K thanks but what if I want to show only 3,4 thread on the lastest thread, not 15 of them, how do i reduce the number of thread shown?
|
#13
|
||||
|
||||
edit this line
PHP Code:
PHP Code:
|
#14
|
|||
|
|||
thank you, princton, it works liek a champ, now the problem is, what if i want to change the font and style on that custom thread page, cause it use the forum css and it is bigger than my custom page font and size, is there a way?
|
#15
|
|||
|
|||
Nvm, i got this.
|
#16
|
|||
|
|||
Im looking to use something like this but instead of threads I would like to list members in order of the highest number in a custom profile field....I run a trading site and each time a member makes a trade we add 1 point to a custom profile field...I want to start from highest to lowest and list the member and how many trades they have. Would this work and if so what would I need to change?
|
#17
|
||||
|
||||
Quote:
You will need to create the function and queries to do this ... once you have that you can add it to the GTCUSTOM PAGE product. |
#18
|
||||
|
||||
Thanks!
Could you help me to add a column with the forum name where the threads belongs? |
#19
|
|||
|
|||
How do I have the hot topic thread to show or most active usersname instead of recent threads?
|
#20
|
|||
|
|||
I have a "back room" on my pet forum where we discuss board/moderator issues. This will show those threads? Is there anyway to eliminate that?
|
#21
|
||||
|
||||
you will have to edit the script to fetch rows based on permissions
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|