Version: , by Kayn
Developer Last Online: Dec 2010
Version: 2.2.x
Rating:
Released: 07-02-2001
Last Update: Never
Installs: 59
No support by the author.
UPDATED! Woohoo!
I just fixed/added stuff from version 1.0!
Download the new version 1.5 if you have the old 1.0 - lots of better features.
From the readme.txt:
Quote:
This script isn't really a hack, just an external script that pulls information out of the VBulletin Database for news
or whatever reason you see fit. It's easy to install and configure, and has tons of the same features that many other
news scripts have, except you don't have to modify any Vbulletin source code (which I'm never comfortable doing
for some reason, but that's just me .
I had a really rough time finding a good, EASY news script that did what this does. I searched and found some, but
it really came down to easy installation. I didn't want to modify MySql tables or mess with the advanced Vbulletin
source (well, to me anyway). So I wrote this script. Yer.
This script was intended for VBulletin 2.0 only (I don't know if it will work with previous releases) and PHP4.
After you install, if at all possible, I would appreciate some credit to my script. A link to http://pluh.com
on your page before or after your news would be great. Let me know when you have it installed too - I love
seeing my stuff working on other websites!
if I go to /forums/Pluhcomments.php (I named it that for a differrent use on my site) it works fine, but if I include it in a php file in a /folder/ as
Code:
<?php Include ("/forums/Pluhcomments.php"); ?>
I get the following
Quote:
Fatal error: Failed opening required 'global.php' (include_path='.:/usr/lib/php') in /pathnamedeletedl/forums/Pluhcomments.php on line 5
So what do I change so that I don't get this error?
I also included the pluhconfig in the comments.php script I am changing since I want it to display the info for a certain thread (I will hard code the thread ID into each article and include the comments.php)
This is a great Hack Perfect. Or better yet, if you could post the code to do this
X Comments last post by user" line only and then set it so that I can have a var $threadid= that I have in the article that it grabs to tie the above to the thread for the article?
Ok I moved the require global/admin to the test page, and now I am getting
Quote:
Warning: Access denied for user: 'root@localhost' (Using password: NO) in /pathdeleted/forums/Pluhcomments.php on line 17
Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in pathdeleted/forums/Pluhcomments.php on line 17
Cannot connect to server.
??? what am I doing wrong?
I added .mydomain.mydomain.org to the cookies this (changed name of real domain).
So what am I doing wrong? I am still completely new to PHP.
Fatal error: Failed opening required './global.php' (include_path='.:/usr/lib/php') in /path/to/site/html/criticalmass/airport-made-for-mac-os-x.php on line 1
I also tried it with /forums/global.php and still no go
What am I missing? I am still completely new to PHP.
As I was writing this, I tried using Absolute paths, and it works. I have implemented the headlines.php to replace my "This Week @Mac Write" at the top of all pages.
Now to try out the Pluhnews.php but This afternoon it's 3AM and I need to get sleep (or finish watching TRUE LIES?)
Here's a minor improvement to the hack that will allow you to use more than one forum as your source for news.
In PluhNews.php Find:
PHP Code:
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "$newsforums" ORDER BY threadid DESC LIMIT $newsitems";
Replace with:
PHP Code:
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid IN ($newsforums) ORDER BY threadid DESC LIMIT $newsitems";
in PluhConfig.php you can now add multiple forums, surrounded by quotes and separated by commas:
example:
PHP Code:
$newsforums = "72,76";
I haven't tested the headlines script, but it goes like this:
In PluhHeadlines.php Find:
PHP Code:
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "$newsforums" ORDER BY threadid DESC LIMIT $newsitems";
Replace with:
PHP Code:
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid IN ($newsforums) ORDER BY threadid DESC LIMIT $newsitems";
This "tweak" is for people who installed fastforward's spider friendly urls.
In PluhNews.php Find:
//gotta convert that damn unix time crap
Add BEFORE:
PHP Code:
$linkcode = "$forumspath/t".$threadid .".html";
Find:
PHP Code:
echo "
<a href="$forumspath/showthread.php?s=&threadid=$threadid"><b>$title</b></a> - <a href="$forumspath/showthread.php?s=&threadid=$threadid"><b>$replycount</b> $commenttext</a><br>
Posted By <a href="$forumspath/member.php?s=&action=getinfo&userid=$postuserid"><b>$postusername</b></a> at <i>$dateposted</i>
</center>
<blockquote></a>$bericht</blockquote><center><a href="$forumspath/showthread.php?s=&threadid=$threadid"><b>$replycount</b> $commenttext</a> Last comment was by <b>$lastposter</b></center><hr noshade height="1" width="60%"><p>
";
Replace with:
PHP Code:
echo "
<a href="$linkcode"><b>$title</b></a> - <a href="$linkcode"><b>$replycount</b> $commenttext</a><br>
Posted By <a href="$forumspath/member.php?s=&action=getinfo&userid=$postuserid"><b>$postusername</b></a> at <i>$dateposted</i>
</center>
<blockquote></a>$bericht</blockquote><center><a href="$linkcode"><b>$replycount</b> $commenttext</a> Last comment was by <b>$lastposter</b></center><hr noshade height="1" width="60%"><p>
";