The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 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">
This is a major necessity to my site! Thank you so much to anyone that can help me ! |
#2
|
|||
|
|||
Anyone?
|
#3
|
|||
|
|||
Sorry but i don't have any clue on what you want to do.
|
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
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.
|
#6
|
|||
|
|||
I was affraid of that. The Main reason for so may diffrent instances is organazation.
PHP Code:
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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|