The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Here is an easy setup to put a lot of Vbull content onto another page. You can use it to make an easy index page with some quick modification or just to access information quickly...
I realize that there are already a lot of similar hacks out there, but I felt like sharing. You can see an example of this script here: http://www.onandoffroad.com/GVCP/ You can get the files by downing them from the posts later in this thread where I have them in an attatched zip. ( I used to have the code posted here, but it has grown enough since then as to not fit as posted code anymore. ) Show Your Support
|
Comments |
#2
|
|||
|
|||
Thank you very much for this script, it's exactly what I have been looking for.
Since no modifications are required to Vbulletin, makes it even better. I've installed it and have just a slight problem with the line breaks. Look here Is there a code that can be inserted to correct this. |
#3
|
||||
|
||||
Moved to the appropriate forum. Next time please make sure it is posted correctly.
|
#4
|
|||
|
|||
Looks great! I can't wait to implement this on my site, I've been wanting to do something like this without having to hack vB apart. Thanks for sharing!!!
TigerLily |
#5
|
|||
|
|||
Sorry for posting in the wrong forum, I'll do better in the future.
As for the line break issue, If you enable html code in your news forum and use <br> tags that will fix it. I'm going to try and figure out how to automaticly parse text for line breaks and things, if I get that figured out I'll update the code for you. |
#6
|
|||
|
|||
I updated the code in the main file. It now will parse vbull image and link tags as well as line breaks etc... should make things look much nicer. Let me know if you have any problems.
|
#7
|
|||
|
|||
Works and looks great.
I'll do a little more customisation and move all the news from Newspro onto the forums. Thank you again. |
#8
|
|||
|
|||
Great, glad to help.
Let me know if have any problems with it. |
#9
|
||||
|
||||
Imp,
Questions.............. 1) Do you have any idea how would I get a date to post above all the days news within the news.php? I have this script working pretty good and getting much happier with it. I like it because I can make SSI calls out of my current shtml pages and create different forums and news.php's to catagorize what I need. If there was a way to have like some sort of command to say something like..... Well... written in Perl looks like this. if (!($Month_Day-11) ) { $DateExtension = 'th' } elsif (!($Month_Day-12) ) { $DateExtension = 'th' } elsif (!($Month_Day-13) ) { $DateExtension = 'th' } elsif (!(($Month_Day-1) % 10)) { $DateExtension = 'st' } elsif (!(($Month_Day-2) % 10)) { $DateExtension = 'nd' } elsif (!(($Month_Day-3) % 10)) { $DateExtension = 'rd' } else { $DateExtension = 'th' } if (&isNewDate) { This looks at the date and places the date above all the days posts within the same file and doesn't add the date above todays news unless the date has changed. 2) For some reason the formatting of the posts are not showing up as formatted. How would I go about having the same format come out as I have it in the forum posting? 3) Headline links? My current setup has an ssi call that holds a certain number of lastest article links. The links are automatically generated when a post is made. So if you post, it creates or changes 2 files, It changes the news file and the headlines file. The headline file links to the below thread. When you click on it, it takes you down the page to the post. 4) How would I add a printer version and email to a friend link to the news.php? If I can figure these few things out, Newspro is going out the door. Thank You Hooper |
#10
|
|||
|
|||
It seems like vbportal hehe
but good job man! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|