![]() |
|
Article Options |
Create "Latest Threads" Custom Page
Princeton
Join Date: Nov 2001
Posts: 6,693
Joe Velez began developing for the web in 1998. He is an avid vBulletin user and volunteers his services as a vbulletin.org administrator. He currently spends his time maintaining and developing allnurses.com. Vineland, NJ
by
![]() 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:
Create "custom_threadrow" template:
2)__ CREATE 1 PHRASE 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)
4)__ EDIT goto.php FIND IN goto.php:
REPLACE WITH:
FIND:
REPLACE WITH:
5)__ DONE! 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:
The following members like this post: BCP Hung
Last edited by Princeton; 03 Mar 2006 at 02:23.. |
||||||||||||||||||||||||||||
Views: 24994
|
Comments |
#3
|
||||
|
||||
thanks for the feedback
![]()
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#4
|
||||
|
||||
hi princeton
some great work going on here i would like to the latest threads from one website[domain] and display it on another domain, would it be possible to do it with this hack, please? thank you C No members have liked this post.
|
#5
|
||||
|
||||
try xml/rss/javascript syndication:
http://www.vbulletin.com/docs/html/v...group_external
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#6
|
|||
|
|||
Whats the best way to put the:
"$vboptions[bburl]/goto.php?section=newthreads" on your non vb page? I've tried using iframe as you can see on http://www.h2survivor.com, but when you click on a link it loads in the iframe. Anyone know a better way to do this or fix the iframe problem? Also, I notice on the preview image that all the posts say 7:00PM. On my site, it also has every post as being posted at 7:00PM. I can't seem to figure this out on my own. No members have liked this post.
Last edited by justindwhite; 03 Mar 2006 at 00:32. Reason: Automerged Doublepost |
#7
|
||||
|
||||
I made some changes..
IN gtcustom_threadrow replace $thread[lastpost] with $thread[lastpostdate] in the print_gtcustom_newthreads() replace $thread['lastpost'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], 1); with $thread['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], 1); regarding the iframe ... add a target attribute to your link ie.
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#8
|
||||
|
||||
thanks princeton
will wait a little longer to see the different changes and then attempt to create the page with the forum threads on Thank you C No members have liked this post.
|
#9
|
|||
|
|||
Ok so i was sucessful add the latest thread into a custom php page, but i resize the table, and the thread title is too long, it wrap down, is there a way that it only show the first 10 characters and the rest is "..." without wraping the text to the next line?
No members have liked this post.
Last edited by theguywhoknowz; 14 Mar 2006 at 22:57. |
#10
|
||||
|
||||
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#11
|
|||
|
|||
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?
No members have liked this post.
|
#12
|
||||||||
|
||||||||
edit this line
to
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#13
|
|||
|
|||
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?
No members have liked this post.
|
#15
|
|||
|
|||
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?
__________________
www.rustysoaptraders.com No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:40.