Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-01-2007, 05:05 AM
Bradley_Wint Bradley_Wint is offline
 
Join Date: Jul 2007
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did some tinkering with my script and ended up removing a couple of lines that were not needed and it's all fixed now.
Reply With Quote
  #12  
Old 12-22-2007, 08:36 AM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to do this EXACT thing.

I've messed with vbadvanced and don't like how it takes over the entire page. All I want is ti pull news articles posted to a certain forum and have it displayed on a custom built page.

Bradly, can you provide the code you are using to accomplish this?
Reply With Quote
  #13  
Old 12-22-2007, 06:17 PM
Bradley_Wint Bradley_Wint is offline
 
Join Date: Jul 2007
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by !!!cyr0n_k0r View Post
I'm trying to do this EXACT thing.

I've messed with vbadvanced and don't like how it takes over the entire page. All I want is ti pull news articles posted to a certain forum and have it displayed on a custom built page.

Bradly, can you provide the code you are using to accomplish this?
well vbexternal does the trick.... as for the image problem, i can't remember...here is my vbexternal.php... adjust to suit for yourself...plus get the instructions from the original download.
Attached Files
File Type: php vBExternal.php (20.6 KB, 17 views)
Reply With Quote
  #14  
Old 12-22-2007, 07:04 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bradley, are you calling for this information in a template? If so, what does your template code look like for the section related to pulling the post info?

--------------- Added [DATE]1198357665[/DATE] at [TIME]1198357665[/TIME] ---------------

EDIT: nevermind, I see why your vbexternal is longer than the default. You are calling for multiple news postings.

Also, you mentioned you edited some lines of the code that wern't needed. What did you take out that solved the problem you were having?
Reply With Quote
  #15  
Old 12-22-2007, 07:20 PM
Bradley_Wint Bradley_Wint is offline
 
Join Date: Jul 2007
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I can't remember exactly...I remember having to put a // infront of a line of code to deactivate it. Read through the vBExternal 1.6 Lite thread, it's somewhere in there.

And yes I am pulling like three or four different feeds so I had to copy the code for different templates.
Reply With Quote
  #16  
Old 12-22-2007, 07:33 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, I've gotten everything uploaded and installed. But when I add output_NewestReplies(5,"1,2,3"); to the PHP file nothing is displayed when I load it up in IE.

PHP Code:
eval('print_output("' fetch_template('Index') . '");');
output_News(1,3);
output_NewestReplies(5,"1,2,3,4,5"); 
I've got a template that the PHP file pulls from called "index" What would I need to add in the index template to display the news post?

$news ??
Reply With Quote
  #17  
Old 12-25-2007, 12:52 AM
Bradley_Wint Bradley_Wint is offline
 
Join Date: Jul 2007
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well you don't need this line
Code:
eval('print_output("' . fetch_template('Index') . '");');
and i assume you put all that within php tags...?

sample
Code:
<?php
output_News(100,56);
?>
the 100 represents the numbers of articles you want shown, the 56 is the forum id of the forum posts you want outputted.

in my case .
Code:
http://www.grandtheftcentral.com/forum/forumdisplay.php?f=56
you could change the numbers to suit how much you want outputted and desired forum..


also remember to include


Code:
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
before the <html> tags in the head of the document...adjust the chdir to suit the location of ur forum.

and did you upload the relative files to your forum folder?

vBExternal.php > forum main folder
vBExternal folder > forum main folder


let me know if this helps.
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 01:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08746 seconds
  • Memory Usage 2,245KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (7)postbit
  • (1)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete