Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Outputting Threads Onto Non-vB Page Details »»
Outputting Threads Onto Non-vB Page
Version: , by ULTIMATESSJ ULTIMATESSJ is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-04-2003 Last Update: Never Installs: 0
 
No support by the author.

For my site i am trying to make a review system using the base of vBulletin, so i thought the easiest way would be to just add fields to the New Thread thing, now i got more fields added, but one thing i would like to be able to do would be to do would be to be able to output the threads onto a Non-vB PHP File, something like this

http://localhost/forums/showthread.php?s=&threadid=1168

would become

http://localhost/showreview.php?s=&threadid=1168
(preferably shorter, i'm not sure how far i can go with shortening the url, although once i get it sorted out i would like to output it into static html files)

What would i have to put into a PHP file to be able to call this stuff out?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-16-2003, 08:57 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trigunflame, that is a very complex way of doing it - you are using so much unnessacary code there.

If you were to require global.php, you could use a query to extract the last x threads, then eval a template in a while loop.
Reply With Quote
  #13  
Old 10-16-2003, 10:11 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes but, I was taking into account the forum might have been on another server (which is often), so making my own small mysql class works for a persons benefit.

Ive been coding for nearly 7 years and have been contracted on big projects in excess of $500 for a script. My knowledge of coding need not be questioned by you.

ps. I dont like using eval why use another function when i can simply <?php and ?> around things.

Thanks
Reply With Quote
  #14  
Old 10-17-2003, 07:15 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
Yes but, I was taking into account the forum might have been on another server (which is often), so making my own small mysql class works for a persons benefit.

Ive been coding for nearly 7 years and have been contracted on big projects in excess of $500 for a script. My knowledge of coding need not be questioned by you.

ps. I dont like using eval why use another function when i can simply <?php and ?> around things.

Thanks
I did not mean to offend by my post. I was merely suggesting that a more efficient way to it was to use something like (this is code from my portal, it wont work with vB2 so dont try it)

PHP Code:
        $news $DB_site->query("
        SELECT thread.threadid,thread.title,thread.replycount,thread.postusername,thread.postuserid,thread.dateline,thread.views,thread.iconid,post.pagetext
        FROM " 
TABLE_PREFIX "thread
        LEFT JOIN post ON (post.threadid = thread.threadid AND post.dateline = thread.dateline)
        WHERE forumid = '
$vboptions[ap_news_forumid]'
        ORDER BY thread.dateline DESC
        LIMIT 
$vboptions[ap_news_numofnews]
    "
);
        while (
$newss $DB_site->fetch_array($news))
        {
            
$newss['dateline'] = vbdate($vboptions['dateformat'], $newss['dateline'], 1);
            
$newss['pagetext'] = parse_bbcode($newss['pagetext']);
            eval(
'$portal_news .= "' fetch_template('portal_news') . '";');
        } 
Its almost the same with vB2, although I do believe it will require editing newreply.php but thats it.
Reply With Quote
  #15  
Old 11-03-2003, 10:17 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that would be for showing the last x threads though, right?

hell, i can't do this so i'm just not gonna bother, helps way out of my reach for this, and i don't feel like paying someone a load of money for something thats easily done
Reply With Quote
  #16  
Old 11-04-2003, 07:00 PM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is hope! Someone is putting the finishing touches on an article review system for vBulletin. There was a thread about it just posted recently on this site from what I can recall.

Patience!

Syl...
Reply With Quote
  #17  
Old 11-04-2003, 08:43 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sylvus
There is hope! Someone is putting the finishing touches on an article review system for vBulletin. There was a thread about it just posted recently on this site from what I can recall.

Patience!

Syl...
I know about that, but by that time, the web will be plastered with article systems meaning originality in that factor will be dead, making my system pretty pointness. I don't care for anyone elses system, all i want is to output my threads, i have my own article system made on my forums, i just need to know how to output the threads, and before someone releases an Article System and it gets plastered all over the net

EDIT: I used TrigunFlames code, worked perfectly, so thanks to TrigunFlame for solving a problem i've had for months
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:21 AM.


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.04316 seconds
  • Memory Usage 2,273KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete