Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 11-04-2005, 09:27 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Combining several <? Include "link" ?> statements?

Ok I have several instanced os PSNews installed on my site due to the fact it is a very simple program that takes up roughly less then a MB per instance and as you see we have 6 instances on our site. We will probably upgrade to a better news script when we upgrade hosting next year.

As it is say I post something in Post 2-1 and the go to post something on Post5, well the post from 2-1 is still at the top of the list even though Post5 has the newer article.


HTML Code:
<? include "http://www.xtremepain.net/news/post2-1/Data/topheadlines.txt" ?>
<? include "http://www.xtremepain.net/news/post2-2/Data/topheadlines.txt" ?>
<? include "http://www.xtremepain.net/news/post2-3/Data/topheadlines.txt" ?>
<? include "http://www.xtremepain.net/post3/Data/topheadlines.txt" ?>
<? include "http://www.xtremepain.net/post4/Data/topheadlines.txt" ?>
<? include "http://www.xtremepain.net/post5/Data/topheadlines.txt" ?>
I could use some major help with combining these so the latest post shows up on top.

I was thinking of something along the lines of:
HTML Code:
<? include="<if condition=http://www.xtremepain.net/post4/Data/topheadlines.txt" AND "http://www.xtremepain.net/post4/Data/topheadlines.txt">
may work.

This is a major necessity to my site! Thank you so much to anyone that can help me !
Reply With Quote
  #2  
Old 12-07-2005, 01:56 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #3  
Old 12-07-2005, 04:30 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but i don't have any clue on what you want to do.
Reply With Quote
  #4  
Old 12-07-2005, 05:11 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I want to run 5 instances of PSNews. On my main website, the articles will show up in the order of the txt files.

Say I post something on Post2-1. Then something on post 5. Post 5 will remain at the bottom of the list where post5/Data/topheadlines.txt is.

I either need the articles to apear in order of of when they were posted, not in order of these text files.
Reply With Quote
  #5  
Old 12-07-2005, 06:02 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well without any knowledge of how PSNews works, it would be impossible to answer. My instincts tell me that in order to compair the post dates, they would have to be pulled by 1 script from 1 database.
Reply With Quote
  #6  
Old 12-07-2005, 06:20 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was affraid of that. The Main reason for so may diffrent instances is organazation.

PHP Code:
HEADLINE_DIR => q?/public_html/Area51XP/post3/headlines?,
HEADLINE_URL => q?http://www.yoursite.net/Area51XP/post3/headlines?, 
Above is two lines of config.php file. Well these two lines in paticular refer the program where to print the headlines to. Would it be possible to add an "AND" condition to make the file print to two diffrent headlines files?

On a diffrent note, I tried PHPNuke but it was to confusing. I could really use a bassic free catgorized news script but no one answers me when I ask for suggestions.

I am attemtping to set up one called Easy Content Managment. Not so easy. to configure it I need to set site.xml to read form a datbase which I have already set up using there installer file which sets up the tables and so forth. In site.xml it lists:
Code:
<database type="mysql"> 
		<server>localhost</server> 
		<login>root</login> 
		<password></password> 
		<default>onews</default> 
	</database>
I can not seem to configure this properley. Should server be "localhost" and "osnews" be changes to the datbase name?
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:05 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.03650 seconds
  • Memory Usage 2,213KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete