![]() |
Surely it can't be that easy, can it?
|
Yes it's that easy.
You bought vbulletin , might as well use it :) |
Not to seem completely ignorant, but I am.. How would I use that with the file from this thread?
|
Quote:
|
Ok a little explanation.
In news.php (located in my vbulletin directory) Line 5 add the require statement Add the $bericht= line right before the part where the html is put in (echo ") Use $bericht instead of $pagetext in your html part here's the output on my server http://www.neowin.net/index1.php If things still dont work I'll post the complete news.php :) |
Thank you! Works like a charm :)
|
Quote:
im going to try that now |
[QUOTE]Originally posted by Redmak
If things still dont work I'll post the complete news.php :) |
This is it :)) Thank you so much Kayn and Redmak!
|
Quote:
but should Use $bericht instead of $pagetext in the whole file.;) |
works perfect thank you red
|
[QUOTE]Originally posted by Bane
This is it :)) Thank you so much Kayn and Redmak! |
Great hack! I'm gonna really love it when you have support for VBCode rather than HTML :)
Also, what about headlines? I saw somebody have news source....how would I go about doing that? |
Great hack works very well and took less than 2 minutes to install.
Thank you very much |
Is there a way that you could have script check and pull from more than one forumid. Say pull from forums 3,4,5 instead of just forum 3 in this example.
If so how would a person do that? Thanks |
Well I tried to put in the added code but I am getting a parse error.
Fatal error: Call to undefined function: bbcodeparse2() in /usr/local/apache/htdocs/forums/news.php on line 85 any ideas? thank goodness for backups :) |
Did you use the news.txt that I attached above as your news.php? Maybe you didnt add the require?
|
Bane
Quote:
|
Stupid stupid stupid me..
yeah I forgot to put int he require field on line 5 I didnt use the name txt becuase I wanted to keep my old code for parsing. All is working now. I hope kayn can pick this up and add it to his zip. Thanks bane |
White Knight - Glad you got it :)
Webhost - I really dont know.. |
Whew, sorry I was away for a few days. ;)
Okay, I'm going to go over all these additions and clean up the HTML code tonight most likely. I'll give credit where the credit is due! As far as multiple news forums, I'll get cracking on that. Any suggestions on how to do this would be great. Ohh, and headlines...I have a script for that too that I'll release with the next version! ;) |
Quote:
i tried and i get an error |
Okay, I have the script almost ready. I need Dark Wizard to send me those little fixes he made to the time bug (I seem to have misplaced them the first time he sent it to me).
You can see everything functioning (except for the fixes Dark Wizard sent me) for the news (including VBcode, smilies, and line breaks) here: http://pluh.com/forums/PluhNews.php And here is what the headlines look like: http://pluh.com/forums/PluhHeadlines.php I'll be tweaking the HTML here and there as well. |
Kayn
I have the news.php working fine. I must have missed the headlines.php or is this something new you are working on? |
Headlines is brand new to this script. I should be releasing it today - :)
|
Kayn, would it be possible for you to implement the ability to use a header and footer? I would rather not use this in a call if at all possible.
|
Hmm...
I now have it where it calls the configuration from a separate php file, but that's it. Elaborate please? |
Sorry, what I had meant is that instead of using an include from a shtml file, it could be used by itself by using a header and footer file. For example head.txt and foot.txt to set the page up and then the news files within it. so I could just put http://www.??.com/news.php and it would pull up the full page.
|
That would be easy...
You can include files inside the news script form separate new files, and it can be completely optional. Am I right? If people would rather just include the news file on another page like it's set up now, they can. Sound right to ya? |
Sounds downright perfect to me :)
|
I saw one sites example where he had a source site which showed up as a seperate field in his news posts....how would i go about doing that?
|
I'm using it as an include, and it worked flat out right the first time.
I especially LIKE using it as an include because I can hide the php source filename from public consumption. I wasn't particularly happy with the database name/password hanging out there. Yes, yes, I know, it's executed by the server, but now it's just that much harder to know where to look. You should *see* the name I gave it... Heh. And the page with the header and footer in it has a nice predictable page template named, news.shtml :) But there's no news.php in my directory... -deb (only mildly paranoid...) |
Kayn >>> I sent you the fixes again....check your email! I can also add the multiple forums for you if you want but would like to see what you have so far....actual code that is ;)
|
Actually, I think I've got that figured out! :)
I'm making some changes now...you'll see the new version out tonight. |
New Version is out. Go to the first page to get it!
Thanks for all your help ya'll! :) :) |
Quote:
The script is looking good :) |
Doesn't seem to work for me. I just get a white screen on both pluhnews.php and pluhheadlines.php
Richard |
Did you make the necessary changes to PluhConfig.php?
|
This is my config file...
<? //This is the Config file to get PluhNews running. //********************** //Set some Variables //Retrieve news from the correct forum, which is the forumid $newsforums = 32; //Number of news items to show at once $newsitems = 10; //Path to your forums directory (leave out trailing slash) $forumspath = "/vb"; ?> |
Can I have a URL?
|
All times are GMT. The time now is 03:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|