![]() |
I did quite a bit of editing on this to get it to work with more than one inclusion of PluhNews.php on the same page. However, it's finally working here:
http://www.easilyaddictive.com This is really a powerful hack with a lot of possibilities. Amy |
What'd you do? And would you be willing to release the modifications?
|
I removed the require global.php and admin/config.php from the script.
Then, I modified the queries to use VBulletin functions. I added the ability to put a <pagebreak> tag in the article so that it will break where you want it to. My version also uses search engine friendly URLs, but I removed that from this one for you guys. I have included pretty close to my version. (minus the url changes). To use it, require global.php and admin/config.php in the CALLING script. Make a copy of this script and a copy of the config script for each instance that you want to include on your page. Edit the news script to point to the proper config script. Amy |
simple not if you don't want to escape all your " just delete the echo line and do this
?> Your stuff here <?= $somevvar?> <? thats what i did |
I just got back to this board, oh man, didn't know my hack was growing so much. :)
Hey Amy, could you send me your modifications? I've been really busy with my projects that I haven't had time to really work on PluhNews. Plus, any other modifications that people have made that improved PluhNews, please send 'em kayn@pluh.com Thanks! |
It's in the mail. :)
Amy |
Ok, here's my question. This pluhnews program seems to list the most recent THREADs created in a forum. I was hoping to get it to list whatever the most recent thread TOPIC postings are. What I mean is, I'd like to have it load the 5 threads that have the 5 most recent posts on my board.
In my General/Anything goes forum, I have it set so that whatever the most recent topics are.. that they float to the top of the forum (which is what I think most people are doing with their vB boards). I'd like my pluhnews to grab those most recent 5 threads and show them (not the most recent 5 newly created threads regardless of when the last post was on that thread as it pluhnews now does). Can this be done? I'm guessing that maybe all that I need to do is change some variables in my Pluhconfig.php file? Can anyone help me with some advice on this? Thanks. :) |
My other question is about using the posts that this program pulls as Highlights to drive more traffic to my board as opposed to having this program show the entire post. What I'm trying to get is the same effect like over on the Yahoo clubs boards if anyone is familiar with the way those work. What they have over there is when you visit a club, the most recent 5 messsges show with: the Headline of the message, the name of the poster, the Date of the posting, (and here's the tricky(?) part....), the first sentence or so of the text of the post (not the entire post).
Check out this club on Yahoo to see what I'm talking about http://clubs.yahoo.com/clubs/thelastline See how this welcome page over at this Yahoo club shows a "highlight" of the 5 most recent messages? Is there any way this can this be done with this PluhNews program? First off ... the PluhNews would have to get the 5 most recent thread posts based on date (not just get the 5 most recently created threads as it does now). Secondly, is there a way to have this program only show the first sentence or so of the text in the post? |
Yeah, all of that stuff is possible. :)
All it would really be is a few more queries and some string manipulation. I'm taking notes and will work on it for the next version of PluhNews. :) |
Hello there!
I need a bit help :) I'm going to install my vbulletin forum in a different subdomain than where I'm going to show the news. Could you help me to have it? I hope it could be done, but sure I'm waiting your replys because I don't want to miss my license. My idea is publishing news in http://www.mydomain.com/index.php and have the forum in http://forum.mydomain.com. So I'm going to put the last url in my license. Any ideas how could I include the files? Thank you very very much. You are a very helpful people!! :) |
It's not tough. Just make sure to get the full path to your Pluhconfig.php file, and then in your global.php, edit the requires to contain the full path as well.
Instead of include "PluhConfig.php" you would have include "/home/username/dirctory/PluhConfig.php"; I am doing it across 3 domains, and it works like a charm. Amy |
Quote:
Modification email sent :) |
Quote:
|
Ok, I am trying this script out. Very nice. I have my forums on a seperate sub-domain (I want the news on electron-designs.com, but my forums are on forums.electron-designs.com). I got the news working, but now my problem is getting the parsing to work. When smilies are parsed, it tries to find the images on that domain. Is there a way I can get it to look for them under the sub-domain? (Changing the URL to the images won't affect it, because the URL vB requires is a relative path..)
Thanks. |
You'll have to do what I did. Go to your smilies and make them reflect the full url.
Amy |
While were requesting things :)
I run a news site and post news in a news program I run and in my forum. Would there be anyway to. 1. Include a checkbox on the new thread page that says "Add this thread to front page"? Otherwise that particular thread isn't included. |
I finally got the script running and have an even better suggestion.
The way my news is set up now, the headline link goes to the acutal news source. Would there be anyway to have a "URL" field placed under the title field on the new post thread where the user would put the URL to the source? Then have Pluh use that, rather then the link to the post, for the headline? |
Quote:
|
No, not URL's, your ROOT PATH
eg: /usr/sites/yourname.com/forums/public_html/ You need the FULL PATH It is relative right now. :) |
Aww crap, it's gonna be hell setting up my network of sites then, cos I'm building them on my own computer, Win2K with Apache+PHP+MySQL installed, but it'll all be different on my webhost! :(
Crud.. So in Win2K, should I use directory paths then? I.e. g:\program files\apache\apache group\htdocs\board ? |
Same here, I wanted to get it running on ym computer, you could make two different globals, and just rename them when you upload...
That path, I am not sure of, because you may need c:\ (or whatever your drive is) in there. Try both.. GL |
Quote:
Thank you! |
And now a little help translating the news. I can manage it all, changing some variabkes and template, but I have a little problem with the date.
Could you help me on translate it into another language? I can have another format but only in english. I need them in Spanish, so any help with that please? Really new in PHP at this time :( Thank you! |
Yes, just do a search for ./ or ../ I don't remember which. Then ust replace it with your path.
Good luck. :) |
Thank you very much Sean. It's done!
Now I have my problem with date. Any idea to have date in another language. I know in PHP you can get the server time and get into the language you want, so it should not be very difficult. I tryed to do a simple replacement but it doesn't runs :( I'd ike to have all my forum dates in another language, so could you point me where in the PHP files of VBulletin is managed the date? Thank you very much. |
Good, glad I could help.
I am trying the same thing, with a header problem, which I will soon fix. The date it managed by PHP itself. That format is what PHP changes the UNIX time into. You'd probably have to look in the php.ini file. Good Luck. :) |
You can convert time and dates in PHP easily.
Just read up on how to use the date function (php.net/date or so) and you should be able to get it exactly the way you want to. |
Is there any way to setup the date per day....like these two sites for example:
www.techimo.com www.hardware-one.com I think that would prove to be very useful for many of the sites using this. |
When going to the Headlines page, it works great. I included it on my front page and got some errors. I fixed the errors and nothing shows up. I know it's included because I got the errors, and I know its working because the headlines page works. Also, everything in my HTML after the <include> tage is not there :(. What could be wrong?
|
I included the URL rather than the path and it worked.
Any plans for categories in the near future? I have close to 30 forums and there's not a chance I'm installing this 30 times. |
Quote:
If a delete both AND statements, the code works fine. Any way around this? |
I have a question...
Whenever I need to close my board, my main page (which displays headlines) becomes a broken mess, with the "forum closed" message appearing somewhere in the middle. Is there a way to make it display something like "Headlines are temporarily unavailable" whenever the board is closed? |
Sorry, can't help there, anyone else? :\
God, this script ROCKS! It is SOOO Easy to modify!!! http://g-designs.electron-designs.com/ I made that site for someone I host, that main page, and all the member's pages are news loaded off the boards. That is all inside a huge template. I also made the script say "Last Comment By: N/A" when there were no comments...AND I made it so if there is no news, it says so... :D I am so proud!!!! Now I just need to figure out where I will put the headlines... :) If anyone wants my code, just ask. :D |
I agree, the script is great - but someone must make a category addon :(.
|
Yes, a Category addon would be awesome.
|
So, anyone want to try and help with this category add-on?
|
Jeez... Now I am getting an error... It's from the smily parse thing...:
Database error in vBulletin 2.2.1: Invalid SQL: SELECT smilietext,smiliepath FROM smilie mysql error: mysql error number: 0 Date: Saturday 29th of December 2001 10:04:57 AM Script: http://forums.electron-designs.com/ Referer: The weird thing: It works 100% on MY computer, but once on my server, it gives me this error...What could it be? -Sean |
Doesn't anyone use this anymore?
If categories aren't possible, is there anyway to make the script draw headlines frommultiple forum? |
Yeah. I did.
What I did: I used isset($variable) in an if statement. Then, whatever that variable was, it loaded: conf_$variable. Hence, loading a different configuration file for a different name... I only had about 4-5 forums to do that with.. |
Can you post the code here? I'm to new to PHP to figure it out :).
|
All times are GMT. The time now is 07:40 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:
|