vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Outputting Threads Onto Non-vB Page (https://vborg.vbsupport.ru/showthread.php?t=56773)

assassingod 10-16-2003 08:57 PM

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.:)

Trigunflame 10-16-2003 10:11 PM

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

assassingod 10-17-2003 07:15 AM

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.

ULTIMATESSJ 11-03-2003 10:17 PM

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

Sylvus 11-04-2003 07:00 PM

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...

ULTIMATESSJ 11-04-2003 08:43 PM

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


All times are GMT. The time now is 12:24 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.01220 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete