View Full Version : PluhNews 1.5
amykhar
12-15-2001, 01:54 AM
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
Goldfinger
12-15-2001, 04:46 AM
Originally posted by Xube
(and here's the tricky(?) part....), the first sentence or so of the text of the post (not the entire post).
That isnt that hard to do.. :).
Modification email sent :)
yulee
12-15-2001, 09:29 AM
Originally posted by amykhar
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
Thank you very much Amy, I need to be sure before filling the license. I'm really excited with vbulletin!
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.
amykhar
12-16-2001, 03:27 PM
You'll have to do what I did. Go to your smilies and make them reflect the full url.
Amy
sianews
12-18-2001, 04:33 PM
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.
sianews
12-18-2001, 04:50 PM
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?
KuraFire
12-18-2001, 06:26 PM
Originally posted by amykhar
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.
Let me get this straight (haven't had the time to read the entire thread) - if I want to include the news script and the headline script on other domains I have to put the full URL's to everything in my forum's global.php and the Pluhconfig.php and that's it? Not in any other script(s) or forum files?
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. :)
KuraFire
12-18-2001, 10:10 PM
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
yulee
12-20-2001, 05:07 PM
Originally posted by amykhar
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
Sorry, could you point me where in global.php? I only changed in Pluhconfig.php and sure it doesn't runs properly. The coments links are using a wrong url.
Thank you!
yulee
12-20-2001, 05:25 PM
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. :)
yulee
12-21-2001, 10:45 PM
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. :)
KuraFire
12-22-2001, 05:06 PM
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.
SystemLogic
12-24-2001, 02:37 AM
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.
sianews
12-26-2001, 04:43 PM
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?
sianews
12-27-2001, 01:26 AM
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.
sianews
12-27-2001, 02:38 PM
Originally posted by usbnuts
I think you just have to change one line to grab any thread titles forum catergoies you want.
// create sql statement
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "1" AND forumid = "2" AND forumid = "3" ORDER BY dateline DESC LIMIT $newsitems";
That's not working for me either. I'm getting no news displayed, but the "search for news" and "view all news" as well as the footer are all displayed.
If a delete both AND statements, the code works fine. Any way around this?
Brian Cruz
12-27-2001, 06:35 PM
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
sianews
12-28-2001, 01:42 AM
I agree, the script is great - but someone must make a category addon :(.
Yes, a Category addon would be awesome.
sianews
12-28-2001, 07:25 PM
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
sianews
12-31-2001, 11:46 AM
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..
sianews
12-31-2001, 12:12 PM
Can you post the code here? I'm to new to PHP to figure it out :).
Sure.. Ok, now just change the path and stuff to the path to whatever PHP file you put this on:
<?
require("/path/to/global.php");
require("/path/to/admin/config.php");
//first load global.php & the vB config file
//use this if you want two variables at the top /?var1=blah&var2=blah
if (isset($var1) && isset($var2)) {include ("/path/to/var1.php");}
//You can also use var2 in the path, or use it to determine what conf file you want to load...
//Use this if you want one variable /?var1=blah
if (isset($var1)) {include ("/path/to/var1.php");}
//Ok, now on the page load the conf_$var1 file (specified above) than include the news.php file
include("/path/to/news/conf_$var1");
include("/path/to/PluhNews.php");
?>
Now, if their are any errors, let me relook the code, I sorta wrote the whole thing in here.. BTW: I am no PHP pro. i just know this stuff. :)
sianews
12-31-2001, 12:28 PM
I must be dumbed then I thought :).
What/Where is "path/to/var1.php" and "path/to/news/conf_$var1"?
And I was replacing </path to pluhnews.php> with this script. Was that correct?
Oops, that was suppose to be a variable..
Alright..that "path.to/varl" is suppose to be "/path/to/$var1" This is determined by whatever the variable is... HOWEVER, you are not doing the same thing I am doing..let me re-write this for what you want to do.
Give me a few minutes. :)
<?
require("/path/to/global.php");
require("/path/to/admin/config.php");
//first load global.php & the vB config file
//Use this if you want one variable /?var1=blah
//conf_$var1.php is the different Configuration file for PluhNews...So, if you put this code in file.php,
//and loaded file.php like this: file.php?var1=news, it
//would load the configuration file called: conf_news.php
//(this would have the contents of PluhConfig.pgp in it.
if (isset($var1)) {include("/path/to/news/conf_$var1.php");
} else {}
//than include the news.php file
include("/path/to/PluhNews.php");
?>
BTW: You can $var1 to ANYTHING you want.. to load for example, or file, or news, or forums, or absolutly anything, as long as I starts with a letter and doesn't end with a _.. :)
Make sure you change them both if you do.
ALSO. After loading the different config file, you can load PluhHeadlines.php, and it will be different depending on your config file..
include this before or after the news.php include, or just replace it with this:
include("/path/to/PluhHeadlines.php");
I hope this all works for you.
Categories...I have a weird way of working the categories when I wrote PluhNews initially.
I left it out though, mostly because it was a quick fix, but here's what I did.
Basically, when you post news, you select a certain icon that would represent the category.
See here: http://pluh.com/forums/newthread.php?s=&action=newthread&forumid=1
If you look at the last four icons, they represent the categories: Gaming is the gaming category, Music is the music category, and so forth.
Could you all work with something like that? I did this so I wouldn't have to make any database changes or MAJOR code rewriting. :D
sianews
12-31-2001, 02:22 PM
Isn't there a way to assign, say, "fourumid1" = "Category1", and so fouth?
sianews
01-07-2002, 03:38 PM
Never did get that to work.
Still looking for a way to call news from multiple forums.
bobbydavro
01-08-2002, 04:27 PM
I have installed this along with admins can bump without posting. However when you do bump a post without posting (in your news group) it brings the post to the top in the forum but not on the news page.
Any way to change this?
sianews
01-10-2002, 12:48 PM
Originally posted by sianews
Still looking for a way to call news from multiple forums.
bump
Martz
01-24-2002, 10:49 AM
Good hack apart from the fact smilies are not parsed - and I cannot and will not change the path of the smilies relative to my domain - that defeats the whole purpose and creates loads of work.
Thanks :)
FleaBag
01-25-2002, 03:59 PM
Right here's my situation. The script works fine in the /board subfolder where my forums are. But SSI and PHPInclude on other pages is refusing to work. Hence, is there a way to get these scripts running above the path of the forums folder. So then for example you could rename PluhNews.php to be the index file of your site?
Thanks in advance. Great script, keep up the good work. :)
sianews
01-26-2002, 01:16 AM
I ended up using the full URL path rather than the relative path.
Snake~eyes
01-28-2002, 05:19 PM
a little note
If you have a site where people submit news. I came up with this little idea. Maybe you guys have, maybe not but its very helpful.
Instead of submitting news via email they have to submit them via forums
-I created a seperate forum, call it submit news and what not.
-I changed the permissions so that people can't see other peoples posts. That way no one knows about the news 'cept for the poster and the admins.
-If someoen posts news and yo think its worthy material just move it to the news forum. If not just reply and say its not.
Simple I think. :D
The only thing is, it says posted by instead of submitted by. But that's okay with me.
sccr410
01-29-2002, 07:24 PM
I set it up straight from the zip file, and I get:
Fatal error: Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/sandieg/public_html/forum/PluhNews.php on line 6
I do absolute paths for the require and I get:
Fatal error: Call to undefined function: bbcodeparse2() in /home/sandieg/public_html/forum/PluhNews.php on line 80
So, now what?
Also, I would like to have the ability to show attached files on the main page. A lot of the time, the people who add news posts are uploading schedules written in a Word doc and load them along with the post. Can this be added?
sccr410
01-30-2002, 08:03 PM
Nobody?
DiscussAnything
01-31-2002, 11:34 PM
Great script!
Got it working in its simple form...
Now to tackle the look and feel issue and multiple forums.
Thanks!
If anyone has insight on how to do multiple forums wihtout multiple instances of the files that'd be great.
DrkFusion
02-01-2002, 12:21 AM
Hey, how would I go about displaying avatars?
Jackyl
02-01-2002, 12:57 PM
############## EXAMPLE ERROR #######
Warning: Undefined variable: REQUEST_URI in D:\SITES\site34\www\forums\global.php on line 60
Warning: Undefined variable: QUERY_STRING in D:\SITES\site34\www\forums\global.php on line 68
Warning: Undefined index: HTTP_POST_VARS in D:\SITES\site34\www\forums\global.php on line 85
Warning: Undefined index: action in D:\SITES\site34\www\forums\global.php on line 85
Warning: Undefined index: action in D:\SITES\site34\www\forums\global.php on line 88
Warning: Cannot add header information - headers already sent by (output started at D:\SITES\site34\www\forums\global.php:60) in D:\SITES\site34\www\forums\admin\functions.php on line 1490
####################################
ok guys - I saw a similar error posted a few pages back - I read this entire thread 3 times, and if there was a fix posted I missed it. I'm running IIS 5 if that makes a difference...
I copy all files into the /forums directory - when I go directly to the PluhNews.php I get the above error, but below that the news is displayed - same thing if I use a PHP include in another page - the news is there, right below the same list of errors - I inserted the chdir code above the include global line in the PluhNews.php file - same error. I have tried relative and absolute paths...
This isn't an include problem because it shows the error if I go directly to the nPluhNews.php page - I peeked around in the source, but I'm not too handy with php (or VB for that matter)
The only think I changed during installation was the forums ID - everything else works with the default settings - after getting the error I did change several things playing with variables and paths - various errors came up - the closest I get is a fresh install with no changes because at least the news is displayed under the above errors...
If someone knows what's wrong or could steer me in the right direction I would be grateful.
Thanks in advance for any assistance!
Jackyl
02-01-2002, 12:57 PM
oops dbl post arg
DrkFusion
02-02-2002, 01:42 PM
So how would I go about making my avatar viewable?
Darren Evans
02-03-2002, 12:26 AM
I've followed the instructions to a tee and can not get this script to run including it in a page.
I ran it in raw form from PluhNews.php and PluhHeadlines.php with no problems.
Included in a root index.php file will not work. I keep getting the following error:
Fatal error: Failed opening required './global.php' (include_path='') in /home/site/public_html/forums/PluhNews.php on line 5
The include looks like this:
<? include ("forums/PluhNews.php"); ?>
My PluhConfig file (placed in the forums directory) was tried with vared paths with out success:
require("global.php");
require("PluhConfig.php");
require("admin/config.php");
Yes, I tried it with full path info (ie, /home/site/public_html/forums).
This thread is very confusing with posts from way back in July 2001.
Any help would be greatly appreciated.
DrkFusion
02-03-2002, 01:06 AM
Originally posted by Darren Evans
I've followed the instructions to a tee and can not get this script to run including it in a page.
I ran it in raw form from PluhNews.php and PluhHeadlines.php with no problems.
Included in a root index.php file will not work. I keep getting the following error:
The include looks like this:
<? include ("forums/PluhNews.php"); ?>
My PluhConfig file (placed in the forums directory) was tried with vared paths with out success:
require("global.php");
require("PluhConfig.php");
require("admin/config.php");
Yes, I tried it with full path info (ie, /home/site/public_html/forums).
This thread is very confusing with posts from way back in July 2001.
Any help would be greatly appreciated.
DrkFusion
02-03-2002, 01:07 AM
Originally posted by DrkFusion
So how would I go about making my avatar viewable? For every post, so for example on news.php my avatar will show as well.
Anyone Know?
sccr410
02-03-2002, 01:54 AM
Darrenn Evans...
I am having the same problems, but I have managed to get it working, but not completely. Do the following and at least it should show up:
Change:
require("global.php");
require("PluhConfig.php");
require("admin/config.php");
to:
include("/home/site/public_html/forums/admin/functions.php");
Then, change:
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
to:
$bericht=bbcodeparse2($pagetext,"1","1","0","0");
Then, you have manually set the variables for your database (i.e. $servername, $dbusername, $dbpassword, and $dbname)
It should work on your main page, however it won't parse the bbcode.
I am having the exact same problem as you, so hopefully we can bug the hack creator enough to help us out!
DrkFusion
02-03-2002, 02:16 AM
Originally posted by DrkFusion
So how would I go about making my avatar viewable? For every post, so for example on news.php my avatar will show as well.
So umm, anyone here?
monitox
02-03-2002, 05:53 PM
I want to include the title of the news in an shtml page... with this : <!--#include virtual="PluhHeadlines.php" -->
Well.. is NOT working :(
Any1 can help me ? Without this thing I can not use it :(
Darren Evans
02-03-2002, 06:01 PM
Is this hack not being supported any more? :(
monitox
02-03-2002, 06:07 PM
This hack is REALLY GREAT.. PLS someone help us :(
Even if you are not the author.. maybe YOU can help us..
* you = ANY good ppl on php :)
DrkFusion
02-03-2002, 11:37 PM
Originally posted by monitox
This hack is REALLY GREAT.. PLS someone help us :(
Even if you are not the author.. maybe YOU can help us..
* you = ANY good ppl on php :)
Yea Please :(
monitox
02-04-2002, 11:27 AM
Ok is WORKING !
<!--#include virtual="/forum/PluhHeadlines.php" -->
Try it ! :up:
You can see it in action here : www.softnews.ro ( I will update it after 20.00 GMT )... :pleased:
Hamma
02-04-2002, 02:16 PM
I have a couple different variations of this script configured and they all work. However I get a vbdb error when I try and include the headlines and the news on the same page.
It doesent say specificly what the error is :| the headlines appear but there is a db error.. I am trying to include 3 versions of the script on the same page as I want to pull news from our subsites.
Here is the vB error I get
Database error in vBulletin 2.2.1:
Invalid SQL: UPDATE session SET lastactivity=1012596337,location='' WHERE sessionhash='4fe525994dc6e5db159e451f0feb7ad1'
mysql error:
mysql error number:
Date: Friday 01st of February 2002 12:45:37 PM
Script: http://www.dragonwolves.com/forums/index2.php
Referer:
Anyone got any ideas? (btw that file location it gives is not correct, the file is not in the /forums directory)
Hamma
02-04-2002, 03:03 PM
BTW I get this when includeing headlines and news on the same page. EVEN when I use the same config file (the way im doing this it would be using multiple config files)
DrkFusion
02-04-2002, 08:15 PM
Originally posted by DrkFusion
So how would I go about making my avatar viewable? For every post, so for example on news.php my avatar will show as well.
Please anyone?
Hamma
02-05-2002, 11:35 AM
Any ideas on this error?
voogru
02-05-2002, 09:07 PM
im trying to make this html work
<style>
.pluhpost{ border: 1px #616889 solid; background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; text-decoration: none}
</style>
<table width=\"100%" border=\"0" cellpadding=\"0" cellspacing=\"0" class=\pluhpost>
<tr>
<td width=\"100%" height=\"245" valign=\"top">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>
<blockquote>$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>
";
}
}
//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo \"<center><a href=\"$forumspath/search.php?s=\">Search the News</a> | <a href=\"$forumspath/forumdisplay.php?s=&forumid=$newsforums\">View All News Posts</a></center>";
</td>
</tr>
</table>
can someone guide me in getting it to work properly, i just get parse errors :(
Snake~eyes
02-05-2002, 09:14 PM
I believe it says in the readme
Where evr you have quotes you need to put a \ before it
for instances this line
<table width=\"100%" border=\"0" cellpadding=\"0" cellspacing=\"0" class=\pluhpost>
should be...
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\pluhpost>
voogru
02-05-2002, 09:32 PM
still get parse error :(
Hamma
02-07-2002, 08:47 PM
Still need help with this error =\
Hello,
I just received an e-mail asking if I was supporting my hack, PluhNews. As of now, I'm am WAY to busy to provide tech support and help. Fortunately, there are many here who have had problems AND have had them resolved by helping each other out where needed.
I am not abandoning this hack, I do plan on returning and adding new stuff to it in the future. As of now, my schedule is much to crazy.
Thanks! Good luck. :up:
Gutspiller
02-08-2002, 09:28 PM
OK here's my page. http://www.gameforumz.com
First off, how do I change font size and font color?
I tried this: <font face=\"#FF7800\"></font>, but it didn't work. :(
I am also having this error displayed at the top of the news:
Warning: Cannot add header information - headers already sent by (output started at /my/path/forumz/news.php:6) in /my/path/forumz/admin/functions.php on line 1500
(I added the /my/path/ instead of my real path though :) )
But the wierd thing is, when I click "Search The News" and then click my browser back button, it's gone. What does that mean? My users complained about this too. How do I fix this error? :confused:
Also I would like to get the news and headlines on the same page, but one or the other error out.
Instead of the headlines taking you to the forum, how about having it take you down the page to that news post?
I tried to put this on a forum with a moderators queue and I got an error. Is this just my board, or does it not support that? If it doesn't support it, that is a really needed feature.
It would be nice if it got the time of the post from the CP of the person that has logged in and their time settings instead of the server.
It would be a nice feature to only show a certain amount of lines of the full post. That way you could post something big and it would be say 250 characters or so and then it would have some text at the end saying "read more" that you could click and it would take you to the actual post in the forum.
When clicking the comments it would be nice if it took you straight to the 2nd post and not the very first which is just a repeat of where you just came from.
It would be cool to set the search to be defaulted to the forum where the hack is getting the news.
To have an archived news by day, with text buttons on the front page that says, see yesterdays news, etc. maybe up to week old news, then it goes into a main archive or something.
The catagories that you have talked about are much needed. It would be nice to have some check boxes where you could check what catagories you would like to see.
Just a few ;) ideas I have that I think could make this hack even better.
If somebody can help me with my problem up at the top of this post though, that would be great.
Thanks! :)
Originally posted by Gutspiller
First off, how do I change font size and font color?
I tried this: <font face=\"#FF7800\"></font>, but it didn't work. :(No, that wouldn't work. You are assigning a color where you should be assigning a family.
It should be something like this:
<font face=\"Verdana\" color=\"#FF7800\">
Gutspiller
02-08-2002, 09:49 PM
got it. Thanks. What about that other error? I editted it in. :)
DrkFusion
02-09-2002, 10:26 PM
I want to include my avatar on the news display. How would I go about doing this?
anders
02-10-2002, 05:42 AM
This script doesent work out of the box in another directory than within the forum directory any plans on releasing something that does?
Gutspiller
02-11-2002, 04:00 PM
Can somebody please help me with this error. Sometimes it shows and sometimes it doesn't. It seems like I can get the error toe quit showing if I go to the actual forumz and then come back to the news page and it doesn't show the error again. Here's the error:
Warning: Cannot add header information - headers already sent by (output started at /my/path/forumz/news.php:6) in /my/path/forumz/admin/functions.php on line 1500
(I added the /my/path/ instead of my real path though :))
I posted it a few messages above and got no reply. Also in my admin/functions here are lines 1496 - 1504
// ###################### Start show_nopermission #######################
function vbdate($format,$timestamp) {
global $bbuserinfo,$timeoffset;
return date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
}
// ##################### Save birthdays into template ###################
Can somebody please help me with this problem? :(
Thanks.
SaintDog
02-11-2002, 06:05 PM
This may have already been done by someone, or maybe I missed it already, but could someone please bare with me and try to help me out?
Instead of all of the news appearing at once from a single post, is there a way to shorten it to a few sentences? (See below)
Say I have this:
Welcome to my site, this is the grand opening, I hope you like the site. We have been working hard to get the site up and running and we hope that you will enjoy your stay here.
But I would like it to be like this:
Welcome to my site, this is the grand opening, I hope you like the site. We have been working hard to get the site up and running and we hope that...... Click Here To Read More
Has someone already done this or would someone know how to do this, help is appreciated with this modifications.
Thanks ahead of time :),
- SaintDog
Gutspiller
02-11-2002, 06:44 PM
Originally posted by SaintDog
This may have already been done by someone, or maybe I missed it already, but could someone please bare with me and try to help me out?
Instead of all of the news appearing at once from a single post, is there a way to shorten it to a few sentences? (See below)
Say I have this:
Welcome to my site, this is the grand opening, I hope you like the site. We have been working hard to get the site up and running and we hope that you will enjoy your stay here.
But I would like it to be like this:
Welcome to my site, this is the grand opening, I hope you like the site. We have been working hard to get the site up and running and we hope that...... Click Here To Read More
Has someone already done this or would someone know how to do this, help is appreciated with this modifications.
Thanks ahead of time :),
- SaintDog
You may want to try this hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=12324&highlight=latest
There is a setting that allows the latest threads to show part of the first post. The only modifing it would really need would be to make it so that when somebody replied to a post it DIDN'T move up.
Gutspiller
02-12-2002, 07:50 PM
Can somebody help me. I keep getting tons of emails getting these errors in them:
Database error in vBulletin: Invalid SQL: DELETE FROM session WHERE sessionhash=''
mysql error:
mysql error number:
Date: Tuesday 12th of February 2002 01:37:52 PM
Script: /forumz/news.php
Referer:
here's another:
Database error in vBulletin: Invalid SQL: UPDATE session SET lastactivity=1013550154,location='/forumz/news.php',styleid=1 WHERE sessionhash='5a3ac06c8b6e9a7bceb5f8fd6f6b70d0'
mysql error:
mysql error number:
Date: Tuesday 12th of February 2002 01:42:39 PM
Script: /forumz/news.php
Referer:
and another:
Database error in vBulletin: Invalid SQL: UPDATE session SET lastactivity=1013550104,location='/forumz/news.php' WHERE sessionhash='b2b3b1dcce9e3cd2f3efec7496232263'
mysql error:
mysql error number:
Date: Tuesday 12th of February 2002 01:41:54 PM
Script: /forumz/news.php
Referer:
Can somebody please help me resolve these errors. :(
Thanks for any help you can provide.
Hamma
02-12-2002, 07:59 PM
I am getting almost the same:
Invalid SQL: UPDATE session SET lastactivity=1013550858,location='' WHERE sessionhash='553fdfe1c73db55a6e4db8d940df67b4'
mysql error:
mysql error number:
This happens when I try to include headlines and news on the same page.. I want to be able to include at least 3 headline files.. and the news.
I posted about this before but I really need help :(
Hamma
02-12-2002, 08:03 PM
btw, I also get an error on the page..
Warning: 1 is not a valid MySQL-Link resource in /path/edited/forums/admin/db_mysql.php on line 93
Check it out here:
http://www.dragonwolves.com/index2.php
Gutspiller
02-12-2002, 09:16 PM
Originally posted by Hamma
I am getting almost the same:
Invalid SQL: UPDATE session SET lastactivity=1013550858,location='' WHERE sessionhash='553fdfe1c73db55a6e4db8d940df67b4'
mysql error:
mysql error number:
This happens when I try to include headlines and news on the same page.. I want to be able to include at least 3 headline files.. and the news.
I posted about this before but I really need help :(
If you are having the problem, with only 1 headline and 1 news on 1 page, then go around pages 12 - 15 of this thread and they talk about running the include statement in the header or the index file you are running to call your news. That should fix it with just using 1 headline, 1 news, per page.
My problem is that I need to run 4 headlines, 4 news, that look at 4 different configs, but they all need to be on one page.
Any help for me? :confused:
Hamma
02-12-2002, 09:20 PM
Exact same thing I am trying to do ;) I will want to run 4 headlines if not more, and one news. With different config files
Gutspiller
02-13-2002, 01:30 AM
Originally posted by anders
This script doesent work out of the box in another directory than within the forum directory any plans on releasing something that does?
Why don't you just put it in your forum directory like I did? Full functional using vbcode, etc.
just use the refresh command to redirect to it. No biggie.
See: http://www.GameForumz.com :)
Gutspiller
02-13-2002, 02:03 AM
Originally posted by Hamma
Exact same thing I am trying to do ;) I will want to run 4 headlines if not more, and one news. With different config files
Don't use 1 news, use 4 different news and just place them right under each other. :up: That is what I am planning to do. I have read every single post in this thread and I saw what you are trying to do hamma and that is the same error I get. It gives that error when you try to have multiple headlines, but it is ok to have multiple news and 1 headline, but as soon as you add 2 headlines into the index file it gives the error.
Maybe this info will help somebody troubleshoot this problem.
Hamma
02-13-2002, 10:50 AM
This happens even when I use one news and one headline =\ The second i post the headline file it errors
Gutspiller
02-13-2002, 02:29 PM
Originally posted by Hamma
This happens even when I use one news and one headline =\ The second i post the headline file it errors
Are you inlcuding them correctly into your file? Some people use the pluhnews file and then put their stuff in the header and footer, but I just created a brand new php file and then included the headline and news parts into it. Either way, you need to make sure you have the require statements for the config,and admin/config in there. That could be your problem. Check on pages 10-15 on this thread. I believe it's in there. They talk about making sure to put it before the < html > tag in the file.
let me know if you need more help. :up:
Hamma
02-13-2002, 02:41 PM
Yep, did all that ;) I have the includes on the top of my index page. Like I said it works perfect till I place headlines on the same page. Ive messed with the Pluhheadlines file a bit and still havent been able to get it going
Gutspiller
02-13-2002, 02:54 PM
You have taken out the require lines at the top of your headline file, or placed "//" infront of the lines?
Hamma
02-13-2002, 03:09 PM
hmm, I didnt put in any //'s
But I took out the require lines that i moved to the top of the page... the require line for the config file remains in it. Because im using multiple config files
grrrrrrrrrrrrrrrrrrrreat script and my first post w00tit00t I feel so good to own vb finnally I love the community.
/me smiles
SystemLogic
02-14-2002, 02:03 PM
I have another question. Is it possible to output something along the lines of this:
Title of thread with link to thread
First paragraph of the post <IMAGE HERE TO READ ON (Goes to actual thread)>
So it would like something like this:
http://www.slcentral.com/sldbbetatemplate (Where it says news coverage)
Gutspiller
02-14-2002, 02:30 PM
I think so if I am understanding you right. Are you saying you want both the title and the image to link to the thread?
If so I believe that is possible, infact I think the title links to the thread by default. I took mine off, because with such a big ass page it loads slow, and I figured cutting those urls out of 50+ messages on the page would help out a lot.
if you want to see what I have done with the hack you can check it out here:
http://www.GameForumz.com
SystemLogic
02-14-2002, 04:52 PM
Actually the main issue is getting it to just take the first paragraph of a post rather then an entire post. So for example if my post looks like this:
Mozilla has reached another milestone, and is now at version 0.9.8. While it's obvious that this is a horrendously slow process for one of the largest open-source program developments, it is happening.
A number of improvements have been made since the last release, including load times, RAM usage, and of course numerous bug fixes (and, as is the usual fair, a few new bugs too). I have actually come to the point where I can use it in place of either Opera 6, or IE 6. It loads quickly enough so that it is no longer horrendous waiting in comparison to the integrated IE (though there is an option to keep Mozilla in memory even after it's closed).
What does everyone else think? Of all the sites that I go to, I've had few, if any problems. The only thing I currently find lacking is the dearth of usage for the scroll wheel on my mouse (admittedly a microsoft one). Does anyone know of a workaround for this? I'm too lazy to look it up myself
On the frontpage it will only show this line:
Mozilla has reached another milestone, and is now at version 0.9.8. While it's obvious that this is a horrendously slow process for one of the largest open-source program developments, it is happening.
with a link to read more which will go to the actual thread with the rest of stuff on it...
Gutspiller
02-14-2002, 05:20 PM
Originally posted by SystemLogic
Actually the main issue is getting it to just take the first paragraph of a post rather then an entire post. So for example if my post looks like this:
On the frontpage it will only show this line:
Mozilla has reached another milestone, and is now at version 0.9.8. While it's obvious that this is a horrendously slow process for one of the largest open-source program developments, it is happening.
with a link to read more which will go to the actual thread with the rest of stuff on it...
See this post in this thread: https://vborg.vbsupport.ru/showthread.php?postid=178323#post178323
It helps, because I have been through every post in this thread a few times so I know it pretty well. :D :up:
As long as you know basic html, I believe you should be able to change the "...More..." text to an image, and probably be able to adjust the character limit to your liking.
SystemLogic
02-14-2002, 05:22 PM
Yeah I can figure out the image thing....but as for the character limit, I don't even want that....I need it to be specifically the first paragraph because it will purposely be an overview of what the actual post is about...
Gutspiller
02-14-2002, 05:38 PM
hmm, so you want the first paragraph, no matter how many characters it has in it? I believe that could take some serious work. I don't know about that. You may want to ask FireFly, but I doubt you will get somebody to do this, without paying. But, you may get lucky.
Or did I completely misunderstand? :D
SystemLogic
02-14-2002, 07:37 PM
You're right, but it really shouldn't be too hard to do....I don't know enough PHP but I remember reading about something along these lines......for example, what if it just looks for 3 a break...Not really sure though as I don't know how to do it myself.
Courage
02-16-2002, 06:10 PM
When I acces the online userlist i see something like:
Unknown Location:...
Those ppl are seyng the newsboard..
I want to know what modifications i need to make in online.php
10x
sianews
02-17-2002, 05:13 AM
Is there anyway to force the headlines to be written in all lowercase letters?
Gutspiller
02-17-2002, 07:01 AM
Can I get some help here? Anytime I try to add the hack mutliple times I get errors. Can somebody PLEASE help me with this?
Also when I run the error just once on a page I get this at the very bottom of the page:
Warning: 1 is not a valid MySQL-Link resource in /my/path/forumz/admin/db_mysql.php on line 93
(changed the path for privacy)
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin: Invalid SQL: UPDATE session SET lastactivity=1013936279,location='/forumz/news.php' WHERE sessionhash='ec886e6a12d4f5e1118d7cc698d1884a'
mysql error:
mysql error number:
Date: Sunday 17th of February 2002 12:58:01 AM
Script: /forumz/news.php
Referer:
Gutspiller
02-18-2002, 08:12 PM
I would I get it so that the headlines and news only show the latest news that was posted within the last 24 hours?
This would be really useful, that pages that have a lot of news don't take so long to load up, from loading old news.
If anybody can help with this, it would be greatly, appreciated.
Thanks!
SystemLogic
02-20-2002, 01:51 PM
I'm getting this error in the headlines:
Warning: Cannot add header information - headers already sent by (output started at /root/path/indexcopy.php:16) in /root/path/boards/admin/functions.php on line 1490
And this when I call the news:
Fatal error: Cannot redeclare stripslashesarray() in /root/path/boards/global.php on line 11
Any ideas what it is?
Gutspiller
02-20-2002, 03:31 PM
SL you are only running 1 headlines and 1 news on the same page right?
SystemLogic
02-20-2002, 03:34 PM
Right, http://www.slcentral.com/temp2/indexcopy.php
Gutspiller
02-20-2002, 03:45 PM
OK, make sure in your headlines php file that the only require line in there is
require("./PluhConfig.php");
Then in your php file that is calling the headlines and news files make sure that that these are before the < html > tag
<?
require("global.php");
require("admin/config.php");
require("PluhConfig.php");
?>
Rename the PluhConfig.php line if you renamed your headlines/news/config files. Let me know if this fixed it. :up:
SystemLogic
02-20-2002, 03:48 PM
It looks like it fixed the first error with the headlines header thing, but I'm still getting this error from the news:
Fatal error: Cannot redeclare stripslashesarray() in /usr/home/syslogic/public_html/boards/global.php on line 11
Any ideas on that one?
Gutspiller
02-20-2002, 03:56 PM
Oh I forgot. Check your news file and take out all the require lines there. I was messing around and I think we can actually take the require line out of the headlines file as well. So all the required lines should be in the main file calling the headlines and news. I think that should fix the news problem too.
SystemLogic
02-20-2002, 03:59 PM
Now I'm getting this:
Database error in vBulletin 2.2.1:
Invalid SQL: SELECT smilietext,smiliepath FROM smilie
mysql error:
mysql error number: 0
Date: Wednesday 20th of February 2002 09:49:54 AM
Script: http://www.slcentral.com/boards/temp2/indexcopy.php
Referer:
Gutspiller
02-20-2002, 04:08 PM
hmm, I think I have seen that error before. I believe these are the only changes I made from the install. I do know that the hack was designed to place the files in your forum directory and not in a site root or anywhere else. Try looking through this thread. The most helpful stuff is around pages 10 - 15 I have read this entire thread a few times over so I know what most peeps problems are.
For those lines I gave to you, did you put the right path in?
Like I said put this line in
require("global.php");
but that's because my file that is calling global.php is in the same directory as global.php so if yours is in another directory then you would need to change the path to the global, admin/config, and news config files.
Right now that's the only thing I can think of. If that doesn't work you may want to try putting the file that is including the headlines, news, etc. in your forum directory where VB is installed in and see if that works. I think that could be a lot of peoples problems, but I'm not sure. :confused:
SystemLogic
02-20-2002, 04:14 PM
Yeah they are calling the right path, also PluhNews, PluhHeadlines, and PluhConfig are all located in the VB directory.....
Gutspiller
02-20-2002, 04:31 PM
Yes they have to be in there, but the file that they are included in, the file that I told you to put those required lines before the < html > tag. That file has to be in there as well.
This simple post here: https://vborg.vbsupport.ru/showthread.php?postid=219397#post219397
Puts it out there, and I think it's pretty much the truth.
You can use the refresh html command to make it go there like I do. When people go to www.GameForumz.com it loads an index file that has this line
<META http-equiv=Refresh content=0;URL=http://www.theforumz.com/forumz/news.php>
right after the <html > tag. Is what it tells the browser to do, is instantly refresh the browser and go to my news page that IS within my vb directory. This is the easiest way I have foudn to get this script to work. Then in my news page I have this line
<meta http-equiv="Refresh" content="300">
Which tells the news page to refresh ever 5 minutes. This makes it so that when the page is updated, people will know about it, at a maximum time of 5 minutes since it was last updated. You can use longer if it's a page that is only updated a few times a day or something. This is what I do and it seems to work. MY only problem is that the script gets this error at the bottom of the page:
Warning: 1 is not a valid MySQL-Link resource in /home/theforum/public_html/forumz/admin/db_mysql.php on line 93
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin: Invalid SQL: UPDATE session SET lastactivity=1014229334,location='/forumz/gamingnews.php',styleid=1 WHERE sessionhash='58b532c55d874f83029b1708f688821d'
mysql error:
mysql error number:
Date: Wednesday 20th of February 2002 10:22:20 AM
Script: /forumz/gamingnews.php
Referer:
which I have narrowed down to if you have both the headlines and the news file running on the same page it gives that error. The news by itself doesn't give that error and the headlines by itself doesn't give that error. I have been working on getting rid of this error for quite some time, but have still been unsuccessful on doing so. :(
I am going to email Kayn today and see if he can help with this error. If not, then even after all the tweaking and hacking on this error and 25 pages of posts, nobody will know how to get this hack to run. If I find out more I will let you know though. :up:
SystemLogic
02-20-2002, 04:43 PM
Well I do have those require's before <html> in the index file....
Gutspiller
02-20-2002, 04:46 PM
Do you have the index file in your vb directory though? and if you don't and you move it, make sure you change the paths in those require lines and let me know if that works. If it does, then that is as much as anybody has gotten this hack to work. If it doesn't then you do have other problems.... which I wouldn't know how to fix really, because my file is in my forum directory and it works. :confused:
SystemLogic
02-20-2002, 04:50 PM
Just tried it in there and it didn't work still...
Gutspiller
02-20-2002, 04:59 PM
hmm. Well if you can, email me your news,headlines,config and the index file calling them and I will take a look at them and see if I can see what's wrong.
Webmaster@CuttingTheEdge.com
Hamma
02-20-2002, 05:00 PM
My file is outside of my forum directory. I had those stripslash and header errors at one point too. I ended up haxing the code that was causing the error and making a global2.php, that fixed it :p I am able to include my news on a file outside of the forum dir now.
However I dont recall getting that smily error
SystemLogic
02-20-2002, 07:30 PM
Hamma, how did you fix that striplash error?
Hamma
02-20-2002, 08:39 PM
I removed a few lines of code from global.php and saved a second copy, global2.php
Im not exactly sure what I removed.. since it was a while ago. I suppose I could attach the file.. ill have to get it when I get home.
SystemLogic
02-20-2002, 08:44 PM
Thanks ;)
Hamma
02-20-2002, 10:45 PM
Alright I am on roll today.. first of all attached to this post is my modified global.php that works with my news. Just require it, instead of global.php (I have had no problems doing this) this will address stripslash errors
Second I have resolved the issue with including multiple news, and headlines on one page. The problem seems to be the script trying to do everything on one SQL connection. This is easily fixed:
Find this
$connection = mysql_connect("$servername","$dbusername","$dbpassword") or die ("Cannot connect to server.");
And change it to
$connection2 = mysql_connect("$servername","$dbusername","$dbpassword") or die ("Cannot connect to server.");
Now, after you do this you will have to find every instance of $connection and change it to what you set on that line. You can call it whatever.. $connectionilikecheese for example :p Put any further questions here, all these things worked for me :D
Check it all out here: http://www.dragonwolves.com
sccr410
02-21-2002, 06:23 AM
I get the following error:
Warning: Cannot add header information - headers already sent by (output started at /home/sandieg/public_html/index.php:3) in /home/sandieg/public_html/forum/admin/functions.php on line 1530
I just uploaded and required only your global2.php (making sure to change all the path info to my own paths)
Hamma
02-21-2002, 10:55 AM
Ok, did you put the include lines at the top of your index page? (the page your including the news on)
<?
require("/path/to/global2.php");
require("/path/to/admin/config.php");
require("/path/to/PluhConfig.php");
?>
The only require line in the phuhnews.php should be
require("PluhConfig.php");
Rename and update to your paths of course.
Gutspiller
02-21-2002, 03:12 PM
Hamma, did you ever get this error:
Warning: 1 is not a valid MySQL-Link resource in /my/path/forumz/admin/db_mysql.php on line 93
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin: Invalid SQL: UPDATE session SET lastactivity=1014310822,location='/forumz/testpage.php',styleid=1 WHERE sessionhash='864316a4ee913aaef151a03edd678015'
mysql error:
mysql error number:
Date: Thursday 21st of February 2002 09:00:24 AM
Script: /forumz/testpage.php
Referer:
and If you did, how did you fix it? I keep getting it at the bottom of my page. I only have 1 headlines and 1 news on the page, but it gives that error, and I have no idea how to get rid of it. :(
Any help from anybody would be appreciated.
Thanks.
Hamma
02-21-2002, 03:31 PM
My post above entitled "2 for 2" explains how i fixed that. Its trying to do all those DB queries on one connection and dying out. I made it so it does the query on a different connection for each script :D
Gutspiller
02-21-2002, 04:26 PM
Hamma, so if I have say 2 different news things on one page, both headlines and news, I would rename all the $connection in one headline file to $connection1, and in one news file $connection2 and in the other news file $connection3?
So that in one headline it called $connection (the default), the 2nd headlines it called $connection1, in one of the news in called $connection2 and in the 2nd news it called $connection3.
Is that correct?
Hamma
02-21-2002, 04:45 PM
Yes, thats pretty much it.. each script needs its own connection name. So each headline/news script would have a seperate one.. make sure you rename every instance of $connection (im pretty sure it shows in only the script, and not the config file)
This worked like a charm for me :D And you were getting pretty much the same errors.
Example:
Ive incuded 1 news, and 2 headlines on my index.php
News
$connection in the mainnews.php was renamed to
$connectionnews
Headlines
$connection in the t2headlines.php script was renamed to
$connectiont2
$connectoin in my daocheadlines.php was renamed to
$connectiondaoc
Let me know how it works out..
Gutspiller
02-21-2002, 05:09 PM
Seems to work. Got rid of the error and everything. Great work. After how many times and people have been to this thread, it's surprizing it was something soo simple... Although I had a feeling that it would be something simple.
Many thanks.
Also for anybody using a lot of different connections you may want to double check your config.php file in your admin directory and make sure that you DON'T have persistant connection on, because if you have a lot of different news scripts each taking a spot on your mysql connections to the database, it could limit the access to your site.
Thanks Hamma, we finally traced down that pesky bug. I doubt everybody else that replied in those earlier pages knows that we fixed it. Maybe you should post something on one of the main forum pages and let everybody know that the PluhNews script is working again. :D
Good job.
sccr410
02-21-2002, 05:21 PM
In my index.php file:
<?php
require("/home/sandieg/public_html/forum/global2.php");
require("/home/sandieg/public_html/forum/admin/config.php");
include('/home/sandieg/public_html/forum/PluhNews.php');
?>
I don't have PluhConfig.php because all the config options were moved into the PluhNews.php. I have multiple pages that access different news forums, so I had to do this.
I still get the following error:
Warning: Cannot add header information - headers already sent by (output started at /home/sandieg/public_html/index.php:3) in /home/sandieg/public_html/forum/admin/functions.php on line 1530
Gutspiller
02-21-2002, 07:59 PM
Check your other files sccr410 and make sure they aren't "requiring" the same files that you are requiring in the index.php file. I know I had that problem before too, and I think that was the cause, is that there were multiple files requiring the same files.
Let me know.
sccr410
02-21-2002, 08:11 PM
In global2.php there was a require to admin/config.php and in the require statements on my index.php the suggestion was to require the same file. I commented out the require on the index page, that didn't work. Commented out the one on the global2.php file, that made things even worse.
I have it working fine, but mine doesn't know how to read bbcode. I was hoping all this would fix that.
http://www.sandiegopegasus.com
Hamma
02-21-2002, 08:15 PM
hmm, You removed my path from the global2.php and added your own correct? (I think there were a few instances)
sccr410
02-21-2002, 08:28 PM
Yep, sure did.
Hamma
02-21-2002, 08:34 PM
k hmm if i remember correctly that is related to cookies, did you change the cooking setting in the CP to .yourdomain.com ?
Hamma
02-21-2002, 08:37 PM
also you dont want to include the file in the top line with the other files, you would want to include it somewhere else on the page
<? include('/home/sandieg/public_html/forum/PluhNews.php'); ?>
sccr410
02-21-2002, 08:46 PM
Ahh, I made the require statements the first thing on my index page and it worked :)
Now, the only problem is that the path to the smilies is wrong and I get the red x box :(
sccr410
02-21-2002, 08:51 PM
Nevermind, now the smilies work too :) It's all working 100% now! WOOHAW!
Now I shouldn't get any "Why doesn't this work?" questions from all the team managers trying to use it :)
Hamma
02-21-2002, 09:55 PM
lol congrats, always ends up bein somthin easy ;) Im gonna end up being an expert on this script lol
SirSteve
02-22-2002, 07:08 PM
What about a teaser line and "Click here" for the full story where you get a separate page with the full article (that doesn't look like the forums)? And the ability to included attachments within the article...
sianews
02-23-2002, 01:26 AM
Steve, we alreasdy have that in the character limit on page 11 or 13 I think. The problem is, only the latest article from any given forum can be shown on the websites template. See www.sianews.com/columnists.php for example. On each columnists page, I have their latest article, but PluhHeadlines can only link to the forum :(.
I was thinking of linking to www.sianews.com/forums/authorid.php?threadid in the Headlines file, but I don't know how to pullt hat threadid back out of the URL to make it display.
Does that even make sense :).
Abbas
02-25-2002, 01:45 PM
I wanted to add the "icon" that you can select in vB while posting a new item to appear on the news as well. Can someone tell me what vB command do I need to add to display that...One of those commands that start with a $
Thanks
Abbas
Ian Cunningham
02-28-2002, 02:07 PM
Um... this is wierd... I have included the headlines.php file into my template footer (removing the call for global.php) but my forums arent displaying!? I am just getting the bottom "Private Message" bar when this script in included in the page!?
SugarChick
03-01-2002, 09:56 PM
nm my host is gay it fixed itself...
princess
03-11-2002, 11:09 PM
Anyone know how I could add the first few lines of a news post to the headlines? For example, headlines would look like this:
news article 1
here are the first few lines of the first news article [ read more ]
news article 2
here are the first few lines of the second news artcile [ read more ]
news article 3
and just for fun this one gets a different first few lines [ read more ]
news article 4
so does this one, see what i'm saying?[ read more ]
sianews
03-14-2002, 02:51 AM
Limit characters here :).
Gutspiller
03-14-2002, 07:28 PM
Can somebody help me to get this hack work across domains?
I take this page: http://www.theforumz.com/forumz/frontpage.php
and change all the stuff to look at: http://www.theforumz.com/forumz/plugnews.php or whatever the file name is.
I changed the requiring files to the same thing where I tell it the full domain path. When I try to use the page across a domain it gives me this error:
Fatal error: Failed opening required 'http:www//TheForumz.com/forumz/global.php' (include_path='') in (my domain path)\testfrontpage.php on line 1
So it is having a problem even doing the requiring the global.php part.
Can somebody please help me on how I can get this to work.
Thanks for any help you guys can provide.
SystemLogic
03-14-2002, 07:33 PM
I think on global.php you need to require the files with the entire URL path....try that....
Dherkhon
03-16-2002, 04:20 AM
sorry for by bad english :p
here is my error lol
Parse error: parse error in /homepages/32/d34562187/htdocs/forums/PluhNews.php on line 81
and here is my html
//Edit the HTML here (keep in mind that any double quote that is HTML requires a backslash in front of it)
<table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"> <- Line 81
<tr>
<td bgcolor=\"#000000\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td bgcolor=\"#6B7E89\">
echo "
<a href=\"$forumspath/forums/showthread.php?s=&threadid=$threadid\"><b>$title</b></a> - <a href=\"$forumspath/forums/showthread.php?s=&threadid=$threadid\"><b>$replycount</b> $commenttext</a><br>
Posted By <a href=\"$forumspath/forums/member.php?s=&action=getinfo&userid=$postuserid\"><b>$postusername</b></a> at <i>$dateposted</i>
</center>
</td>
</tr>
<tr>
<td bgcolor=\"#6B7E89\">
<blockquote></a>$bericht</blockquote><center><a href=\"$forumspath/forums/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>
";
</td>
</tr>
</table>
</td>
</tr>
</table>
}
}
//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo "<center><a href=\"$forumspath/forums/search.php?s=\">Search the News</a> | <a href=\"$forumspath/forums/forumdisplay.php?s=&forumid=$newsforums\">View All News Posts</a></center>";
//end HTML edit
//**********************
Thanks for help :cheeky:
Brian Cruz
03-16-2002, 05:13 AM
I'd really like to be able to display the avatar and thread icon for each news post. How can the script be modifed to call those up?
Brian Cruz
03-20-2002, 03:28 AM
Originally posted by Brian Cruz
I'd really like to be able to display the avatar and thread icon for each news post. How can the script be modifed to call those up?
Anyone? Please?
Ian Cunningham
03-25-2002, 07:04 PM
I've installed this hack, and I am using the headlines and news all in the actual template of my VB page.... I have the headlines on all pages in the sidebar, and the news only on the main page.
But, I have a large problem! When I visit my actual forums, they dont appear! I get my headlines working fine, but I just see:
Forum Posts Threads Last Post
[BLANK!]
Private Messages
All of the actual catagories etc.. are gone! Does anyone know why?
DemiNeo0101
03-25-2002, 09:17 PM
Ok. Heres the Deal. I wanna include the Headlines in my welcome panel in the Forumhome template. I've tryed doing pretty much everything. And it still does not show up.
I want it right next to the Red "Forum News" letters in the welcome panel on http://forums.cheatlist.com(there may be stuff writen there allready.
My header file is at:
Http://forums.cheatlist.com/vbb/PluhHeadlines.php
Here is the Welcome Panel code:
<!-- welcomepanel -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center">
<tr>
<td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="#000000" colspan="7"><normalfont color="{categoryfontcolor}"><b>Welcome</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="middle" width="50" rowspan="2">$avatarimage</td>
<td bgcolor="{secondaltcolor}" align="left" valign"top" width="400"><smallfont>$unregwelcomemessage
$welcometext<br>
The time now is $timenow.<br>
You last visited: $bbuserinfo[lastvisitdate].<br>
<b>$newposts</b></smallfont> </td>
<td bgcolor="{secondaltcolor}" align="left" valign"top" width="300">
<smallfont>
Members: $numbermembers<br>
Threads: $totalthreads<br>
Posts: $totalposts<br>
Total Posts Today: $poststoday<br>
Newest Member: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a><br>
Member of The Day: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$memberoftheday[userid]">$memberoftheday[username]</a><br>
Top Poster: <a href="member.php?&action=getinfo&userid=$topposters[userid]\">$topposters[username]</a>($topposters[posts])<br>
Top Thread Starter: <a href="member.php?&action=getinfo&userid=$toptstarter[postuserid]">$toptstarter[postusername]</a>($toptstarter[count])
</smallfont>
</td>
<td bgcolor="{secondaltcolor}" align="center" valign="middle" width="400">$logincode
<br>
<smallfont>
<div align="center"><a href="/vbb/admin/">Administrator Control Panel</a> | <a href="/vbb/mod/">Moderater Control Panal</a></div>
</smallfont>
</td>
</tr>
<tr>
<tr id="cat">
<td id="ForumNews" bgcolor="{categorybackcolor}" colspan="7"><normalfont color="{categoryfontcolor}"><b>Forum
News</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="middle" width="80"><img src="{imagesfolder}/news.gif" alt=""></td>
<td bgcolor="{firstaltcolor}" colspan="6"><smallfont><!--#include file="Http://forums.cheatlist.com/vbb/PluhHeadlines.php"--></smallfont></td>
</tr>
$pminfo
</table>
</td>
</tr>
</table>
<!-- /welcomepanel -->
If one of you guys could help me out that would be great. Thx.
DemiNeo0101
03-25-2002, 09:57 PM
with the header include in my index.php i get:
Parse error: parse error in /home/forumc/www/vbb/index.php on line 53
DemiNeo0101
03-25-2002, 09:58 PM
here is the index.php i'm geting that error on. If you can fix this and re-post the fix i will love you long time :)
<?php
error_reporting(7);
$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php');
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
// start member of the day stuff
$thisdate=date('Y-m-d');
$getdaytemplate=$DB_site->query_first("SELECT template
FROM template
WHERE title='memberoftheday'
AND templatesetid=-2");
$daytemplate=$getdaytemplate['template'];
$daybits=explode('||vb||',$daytemplate);
if ($daybits[0]!=$thisdate or ($resetmember==1 and $bbuserinfo['usergroupid']==6)) {
/* This template is either outdated or the admin wants to reset it.
Either way, we need to choose a new member of the day. Aren't you excited?! */
$newmember=$DB_site->query_first("SELECT userid,username
FROM user
WHERE userid<>$daybits[1]
AND (usergroupid=5
OR usergroupid=6
OR usergroupid=7
OR usergroupid=2)
ORDER BY RAND()
LIMIT 1");
$newtemplate=$thisdate.'||vb||'.$newmember['userid'].'||vb||'.$newmember['username'];
$DB_site->query("UPDATE template
SET template='".addslashes($newtemplate)."'
WHERE templatesetid=-2
AND title='memberoftheday'");
$memberoftheday['userid']=$newmember['userid'];
$memberoftheday['username']=$newmember['username'];
} else {
$memberoftheday['userid']=$daybits[1];
$memberoftheday['username']=$daybits[2];
}
// end of member of the day stuff
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
<? include ("/vbb/pluhheadlines.php"); ?>
//check usergroup of user to see if they can use PMs
//$permissions=getpermissions($forumid);
if ($enablepms==1 and $permissions['canusepm'] and $bbuserinfo['receivepm']) {
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");
if ($newpm['messages']==0) {
$lightbulb='off';
} else {
$lightbulb='on';
}
if ($unreadpm['messages']==0) {
$pmblink='//';
} else {
$pmblink='';
}
eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");
} else {
$pminfo='';
}
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
// Top poster
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
// Top Threads starter
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);
// number of posts today
$datecut = mktime(0,0,0,date("m"), date("d"), date("y"));
$getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$datecut'");
$poststoday=$getpoststoday[count];
// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];
// if user is know, then welcome
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");
} else {
$welcometext = "";
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
}
$birthdaybits="";
if ($showbirthdays) {
$birthdays = gettemplate('birthdays',0,0);
$btoday = explode('|||',$birthdays);
$today = vbdate("Y-m-d",time());
if ($today != $btoday[0] and $today != $btoday[1]) { // Need to update!
getbirthdays();
$birthdays = $DB_site->query_first("SELECT template FROM template WHERE title='birthdays' and templatesetid = -2");
$birthdays = $birthdays[template];
$btoday = explode('|||',$birthdays);
}
if ($today == $btoday[0]) {
$birthdays = $btoday[2];
} elseif ($today == $btoday[1]) {
$birthdays = $btoday[3];
}
if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
}
}
//Forum info
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
while ($forum=$DB_site->fetch_array($forums)) {
$iforumcache["$forum[parentid]"]["$forum[displayorder]"]["$forum[forumid]"] = $forum;
}
$DB_site->free_result($forums);
unset($forum);
//Forum perms
$forumperms=$DB_site->query("SELECT forumid,canview,canpostnew FROM forumpermission WHERE usergroupid='$bbuserinfo[usergroupid]'");
while ($forumperm=$DB_site->fetch_array($forumperms)) {
$ipermcache["$forumperm[forumid]"] = $forumperm;
}
$DB_site->free_result($forumperms);
unset($forumperm);
if ($bbuserinfo['userid']!=0 AND $enableaccess) {
//Access table perms
$accessperms=$DB_site->query("SELECT forumid,accessmask FROM access WHERE userid='$bbuserinfo[userid]'");
while ($accessperm=$DB_site->fetch_array($accessperms)) {
$accesscache["$accessperm[forumid]"] = $accessperm;
}
$DB_site->free_result($accessperms);
unset($accessperm);
// usergroup defaults
$usergroupdef['canview'] = $permissions['canview'];
$usergroupdef['canpostnew'] = $permissions['canpostnew'];
// array for accessmask=0
$noperms['canview'] = 0;
$noperms['canpostnew'] = 0;
} else {
$accesscache = '';
}
$forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
FROM moderator
LEFT JOIN user
ON (moderator.userid=user.userid)
ORDER BY user.username');
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$imodcache["$moderator[forumid]"][] = $moderator;
$mod["$moderator[userid]"] = 1;
}
$DB_site->free_result($forummoderators);
unset($moderator);
$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
$datecut=time()-$cookietimeout;
$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
$numberguest=$loggedins['sessions'];
$numbervisible=0;
$numberregistered=0;
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
$DB_site->free_result($loggedins);
$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;
$maxusers=explode(" ", gettemplate('maxloggedin',0,0));
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
// Start makeforumbit
function makeforumbit($forumid,$depth=1,$permissions='') {
global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupdef,$noperm s;
global $showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,$timeformat,$enablea ccess;
global $bbforumview;
if ( !isset($iforumcache["$forumid"]) ) {
return;
}
$forumbits = '';
while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
while ( list($key2,$forum)=each($val1) ) {
// Permissions
if ( $enableaccess and is_array($accesscache["$forum[forumid]"]) ) {
if ($accesscache["$forum[forumid]"]['accessmask']==1) {
$forumperms = $usergroupdef;
} else {
$forumperms = $noperms;
}
} else if ( is_array($ipermcache["$forum[forumid]"]) ) {
$forumperms = $ipermcache["$forum[forumid]"];
} else {
$forumperms = $permissions;
}
if (!$hideprivateforums) {
$forumperms['canview']=1;
}
if (!$forumperms['canview']) {
continue;
} else {
$forumshown=1;
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (isset($bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
$userlastvisit=$bbforumview[$forum['forumid']];
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
// prepare template vars
if (!$showforumdescription) {
$forum['description']='';
}
// dates
if ($forum['lastpost']>0) {
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
} else {
$forum['lastpostinfo']='Never';
}
$listexploded=explode(",", $forum['parentlist']);
while ( list($mkey1,$mval1)=each($listexploded) ) {
if ( !isset($imodcache["$mval1"]) ) {
continue;
}
reset($imodcache["$mval1"]);
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
if ( !isset($forum['moderators']) ) {
eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
} else {
eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
}
}
}
if ( !isset($forum['moderators']) ) {
$forum['moderators'] = ' ';
}
if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
unset($iforumcache["$forumid"]);
return $forumbits;
}
if (!isset($forumid) or $forumid==0 or $forumid=='') {
$forumid=-1;
} else {
// need to get permissions for this specific forum
$permissions=getpermissions(intval($forumid));
}
$forumbits=makeforumbit(intval($forumid), 1, $permissions);
$unregwelcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
}eval("dooutput(\"".gettemplate('forumhome')."\");");
Gutspiller
03-26-2002, 03:17 AM
Can somebody tell me how I get this hack to work across domain urls?
The page that has the content that I want on another domain is here: http://www.theforumz.com/forumz/frontpage.php
I was hoping to get all those headlines capable of being on another site. Is that possible, and if so, how?
Thanks for any help you can provide. :cry:
DemiNeo0101
03-27-2002, 07:28 PM
I think you just have to use the include on the regulare page.
Brian Cruz
03-27-2002, 11:38 PM
I'd really, really like to have the thread icon and avatar appear for each post. If someone could figure out how to do it, I'd be forever in your debt.
DemiNeo0101
03-28-2002, 09:18 PM
should be able to do that in the templates.
DemiNeo0101
03-28-2002, 09:19 PM
think somne can awnser my question above?
Vivi Ornitier
03-29-2002, 04:09 AM
When I try to install it I get an error on line 50 which is...
$linkcode = "$forumspath/showthread.php?threadid=".$threadid";
keely
04-11-2002, 02:07 AM
Ok First Let me say I'm a newbie so please be gentle. Ok that being said I have the info coming into my PluhHeadlines.php & PluhNews.php files fine. I want to have this information come up in a table 1 cell for the headline and the next cell with the 1st post to come up with who posted and to read more, reply to article. I have seen this done just not sure where to put it in my HTML and how do i create the SSI or the connection to the database. Any help would be greatly aprceiated.
thanks in advance
Keely
www.ding60.com
PS also running front pages and not sure there is a way to do do...i warned you i'm a newbie :)
Lanigironu
04-11-2002, 02:50 AM
Originally posted by Vivi Ornitier
When I try to install it I get an error on line 50 which is...
$linkcode = "$forumspath/showthread.php?threadid=".$threadid";
Did you specify the path correctly?
GuruXL
04-11-2002, 04:37 PM
Fatal error: Failed opening required './global.php' (include_path='.:') in /path/to/forums/PluhNews.php on line 5
that's the error i get when i try to include PluhNews.php on the front index page which is located at the root directory. i've seen some post about this problem too but i don't quite get the solution, or if there was a solution posted at all -_-. I can sure use some help here thanks.
note* i edited the path in the code, but it points to the right place. privacy ^^.
GuruXL
04-11-2002, 07:47 PM
Can someone help me? i really want to use this script and i have no idea what went wrong.
can you post those lines (1 through 10)? i will tell you what is wrong.
GuruXL
04-11-2002, 09:16 PM
<?php
//PluhNews 1.5 released under GNU GPL Licence version 2.0 (see copying.txt file for more info)
//Set your permissions in your control panel to make sure that only YOU and who you specify can post news. Otherwise, everyone and their dog can register and post in your news forums, thus posting where your news will appear. But for this script to work it's extra magic, be sure your members can reply to your news posts.
require('./global.php');
require("./PluhConfig.php");
require("./admin/config.php");
//scroll down to edit the HTML for the news
//**********************
//Start the goodies (please do not edit to goodies unless you know what you are doing
//include the header
include("./PluhHeader.txt");
well that's the first few lines of PluhNews.php, what i want to do is include the news in one of my main pages in the root directory. but the global keeps getting in the way :(
GuruXL
04-11-2002, 09:21 PM
i don't know what i did now, but it works if i directly go to PluhNews.php, however, if i try to include PluhNews.php from the root directory (where my main files are), i don't get an error, but a blank page...
GuruXL
04-12-2002, 11:34 PM
I fixed the errors hehe :)
but now, for the character limit addon. how do i make it so that the "read more" only show up if it exceeds the character limit?
Lethal
04-22-2002, 08:34 AM
Ok , I have installed it and everything went ok. It works fine but I can not get it to come up on my index page in my home directory when I try to include it. My index is index.php It works fine when i use SSI but not with php include. Also, I am using vBHome and just adding the html to the template. I have tried so many things but nothing is working. Here is the code from where the include is:
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="100%" align="center"><!-- PluhNews Begin -->
<?php include("/forums/PluhNews.php"); ?><!-- PluhNews Ends -->
</td>
</tr>
</table>
</center>
That html is in my vBHome (home) template. I even tried having my home page in the same directory as PluhNews and still nothing. I don't know what is wrong. Someone help.
The link to my Pluhnews page: http://theinfected.com/forums/PluhNews.php
The link to where I want my news to be:
http://www.theinfected.com/index.php (in the center of the page.)
I have tried all of these includes but nothing happens with either of them. The SSI include works thou but I don't want to use .shtml
<? include("http://theinfected.com/forums/PluhNews.php"); ?>
<? include("/forums/PluhNews.php"); ?>
<?php include("http://theinfected.com/forums/PluhNews.php"); ?>
<?php include("/forums/PluhNews.php"); ?>
Here is the code in my PluhNews.php file where the html starts:
//<!- PluhHeader -->
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
echo "
<style fprolloverstyle>A:hover {color: #00cc00; font-family: Verdana; size=\"2\"; text-decoration: blink}
</style>
<body style=\"font-family: Verdana; size=\" link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" text=\"#999999\" bgcolor=\"#000000\">
<div align=\"center\">
<center>
<table border=\"1\" cellspacing=\"1\" width=\"472\" cellpadding=\"2\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<tr>
<td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#000000\" background=\"http://www.theinfected.com/images/header4.jpg\"><font face=\"Verdana\" size=\"2\"><b><font face=\"Terminal\" size=\"1\" color=\"#00CC00\">-></font><font size=\"2\">
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$title</a></font>
<font face=\"Terminal\" size=\"1\" color=\"#00CC00\"><-</font></b></font></td>
</tr>
<tr>
<td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#1E1E1E\">
<font face=\"Verdana\" size=\"2\">
<p style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">
Posted By </font>
<a href=\"$forumspath/member.php?s=&action=getinfo&userid=$postuserid\"><b><font size=\"1\">$postusername</font></b></a>
at <i>$dateposted</i></font></p>
<p style=\"margin-top: 0; margin-bottom: 0\"> </p>
<p style=\"margin-top: 0; margin-bottom: 0\"><font size=\"2\">$bericht</font></p>
</font>
<p align=\"center\">
<font face=\"Verdana\" size=\"2\">
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$replycount</b>$commenttext</a> Last comment
was by <b>$lastposter</b></font></p>
</td>
</tr>
</table>
</center>
</div>
<p style=\"margin-top: 0; margin-bottom: 0\"> </p>
</body>
";
}
}
//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo "<center><a href=\"$forumspath/search.php?s=\">Search the News</a> | <a href=\"$forumspath/forumdisplay.php?s=&forumid=$newsforums\">View All News Posts</a></center>";
//end HTML edit
//**********************
//include the footer
include("./PluhFooter.txt");
Lethal
04-22-2002, 07:53 PM
Anyone?
Lethal
04-23-2002, 02:17 AM
Hello???????
Hamma
04-23-2002, 01:56 PM
Try and use your full path for the include. ie:
<? include("/home/username/www/forums/PluhNews.php"); ?>
This is what I use on my website, I addapted it to work on multiple subdomains and multple forums.. etc.
http://www.dragonwolves.com
Lethal
04-24-2002, 06:13 AM
well i got this to work, this is what i put in my index.php page:
<?php include ("site url/forum/Pluhnews.php"); ?>
even thou my page is php I still had to put in the <?php why i dont' know cause I have that at the top as well. Don't know but this works. I swear I tried this before and it didn't work. Oh well.
AndyTSJ
05-06-2002, 08:26 PM
There must be some way of doing this, and I know it's been discussed before but I'm not sure if a solution was found. Is there a way of using pluhnews to display posts from more than on forum ?? If someone can figure out how to do this then that would be VERY cool :)
Gutspiller
05-07-2002, 06:30 PM
Originally posted by AndyTSJ
There must be some way of doing this, and I know it's been discussed before but I'm not sure if a solution was found. Is there a way of using pluhnews to display posts from more than on forum ?? If someone can figure out how to do this then that would be VERY cool :)
Search this thread around page 20 or 25 and look for my name and somebody else (can't remember who) I was talking with, we figured out the problem.
Want to see an example? http://www.3dNewz.com
wintz
05-14-2002, 04:54 PM
Originally posted by Courage
When I acces the online userlist i see something like:
Unknown Location:...
Those ppl are seyng the newsboard..
I want to know what modifications i need to make in online.php
10x
Yeah i have the same thing, anyone know how to fix this? thanks
wintz
05-15-2002, 09:12 AM
ok i`ve posted a pic of what it is doing, any ideas on how to fix/stop this? thanks
Dark_Wizard
05-15-2002, 09:53 AM
Originally posted by wintz
ok i`ve posted a pic of what it is doing, any ideas on how to fix/stop this? thanks
Add this hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32849) by FireFly....
wintz
05-15-2002, 10:30 AM
Your a star m8, thanks for the link it works a treat :)
Gutspiller
05-15-2002, 07:31 PM
I have that hack installed and I still sometimes get that error location. Don't expect that hack to fix the problem completely. :(
Gutspiller
05-15-2002, 07:31 PM
I have that hack installed and I still sometimes get that error location. Don't expect that hack to fix the problem completely. :(
Mithan
05-24-2002, 02:00 AM
This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?
Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?
My site is at www.ac2hq.com
Thank you.
Hi,
I really like this hack/addon, but I have a request for a new feature. I use coranto (new version of newspro) right now and it has an option to display a dividing table after a new day starts. You can see that at www.cscentral.com Here is how it looks in the code:
<If: Sub: isNewDate>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD ROWSPAN=3 width="206"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_01.gif" WIDTH=206 HEIGHT=48></TD>
<TD background="http://cscentral.barrysworld.com/images/devider_02.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_02.gif" WIDTH=10 HEIGHT=21 align="right">
</TD>
<TD ROWSPAN=3 width="44"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_04.gif" WIDTH=44 HEIGHT=48></TD>
</TR>
<TR>
<TD background="http://cscentral.barrysworld.com/images/devider_05.gif" height="25">
<div align="right"><font color="A7A7A5" size="4"><b><Field: Day> <Field: Month_Name> <Field: Year> </b></font></div>
</TD>
</TR>
<TR>
<TD HEIGHT=2 background="http://cscentral.barrysworld.com/images/devider_07.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_07.gif" WIDTH=10 HEIGHT=2></TD>
</TR>
</TABLE>
</If>
edit: I have thought of another feature, maybe edit the format of the news date, e.g. just the date and time instead of the day, since when you have a daily devider table you dont need the date to be displayed.
Would it be possible to implement this in pluhnews?
Thanks,
Sebastian
Originally posted by Mithan
This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?
Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?
My site is at www.ac2hq.com
Thank you.
Find this line in PluhHeadlins.php
// create sql statement
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = \"$newsforums\" ORDER BY threadid DESC LIMIT $newsitems";
replace $newsitems with the number of headlines you want to have displayed.
Hope this helps,
Sebastian
filburt1
06-25-2002, 12:17 PM
So has anybody figured out how to add avatars to the news events? I know others wanted this feature too.
Mithan
06-25-2002, 09:50 PM
Just a FYI:
I have version 1.0 installed on my site and it works great.
http://www.ac2hq.com
We had to put in some extra code to suppress an error message, but other than that, its great.
PS: Whats so good about 1.5?
dogbomb
06-29-2002, 02:27 PM
There seems to be a strange bug in this. Whe you are pulling an article from the selected forum, it runs fine. However, when you COPY an old article (one no longer on the main PluhNews page) from that forum to another this start to get a bit kooky.
The article reshows back on the page, but not the original article but a reply firther down.
Anyone else encountered this problem?
TooHectic
07-13-2002, 10:36 PM
Originally posted by GuruXL
i don't know what i did now, but it works if i directly go to PluhNews.php, however, if i try to include PluhNews.php from the root directory (where my main files are), i don't get an error, but a blank page...
I fixed the errors hehe
How did you fix this problem?
I'm having the same problem with my site. I can open http://my site/forums/pluhnews.php just fine, and it works as intended, but if I try to include pluhnews.php inside my http://my site/index.php, I just get a blank page.
Like everyone else, I know the error comes from global.php. Even if I add the full path to global.php in the pluhnews.php file, it still produces a blank page since inside global.php other requires are called. And since those other requires don't have a full path defined, the script cannot find them. (since all requires are called like "./global.php" and "./functions.php".... and since I'm requiring the file from the root directory, it's looking for functions.php, global.php, etc in the root rather than in /forums.)
How did you remedy this problem? Is there a command that will force require statements to look in the same directory as the required file versus the directory the initial call is made from?
Any help is appreciated! Thanks.
TooHectic
07-14-2002, 06:49 AM
ok, i fixed it. I just added added some chdir stuff to the beginning of pluhnews.php where the requires are called:
chdir("./forums");
require("./global.php");
require("./PluhConfig.php");
require("./admin/config.php");
chdir("..");
I'm not sure if that's the best way, but it works.... but then I started getting that weird "Cannot add header information" error. But luckily I found the answer a few pages back. I just moved the requires including the chdir statements out of the PluhNew.php file and put them above the <html> tag in my /index.php file. Seems to work.
If anyone knows of a better solution. Feel free to point it out. Optimization is good.
Lethal
07-14-2002, 04:51 PM
is there anyway to have pluhnews inherit vbulletin styles or code like <smallfont> and {categoryfont } ect. ect.
That would be great. I want to put my news in tables but I am going to have different styles and I want the news to inherit the different style colors when a user changes styles. Is this possible. I tried to do it but I kept getting errors and it just wouldn't work with the echo" being in the script.
Well what I want to do is, i have vbportal and the front page I am using the news from that, and then I am going to have different sections of within the site and each section is going to have a news forum. I need a script that will post the news from the specific forum on the sections front page. Pluhnews is great but I want something that will use vbulletins styles like vbportal does. I asked about this over at phpportals.com and I they didn't give me an answer. Any ideas?
Lethal
07-16-2002, 04:05 AM
bump
Lethal
07-19-2002, 05:03 PM
Would the output be able to be done through vb templates? I would then use your vb styles correct? Like instead of using the echo to do the output make it do an eval("\$variable = \"".gettemplate($templatename)."\";");
would that work?
Gutspiller
07-19-2002, 06:33 PM
Originally posted by Mithan
Just a FYI:
I have version 1.0 installed on my site and it works great.
http://www.ac2hq.com
We had to put in some extra code to suppress an error message, but other than that, its great.
PS: Whats so good about 1.5?
With a little tweaking 1.5 can do this -> www.3dNewz.com
Lethal
07-20-2002, 02:41 AM
that is nice, are you willing to tell what you did to make it look like that?
Gutspiller
07-23-2002, 07:05 PM
Sorry, it was a lot of tweaking here and there. Some of the stuff I can't even remember how to do it. Some of the things I have added though are in this thread around pages 15 - 20 I think that allows you to get multiple news headlines on the same page.
Lethal
08-03-2002, 05:53 AM
Ok is there a reason my smilies don't show up? I have my smilies path set to the full path but nothing. Anyone else have probs with smilies not showing?
Gutspiller
08-03-2002, 05:55 PM
I think we talked about this at around page 18 or so. Go 3 or 4 pages in both directions of page 18 and I think that's were we were talking about something like this.
Lethal
08-04-2002, 03:29 AM
ok thank you
Lethal
08-05-2002, 04:19 PM
Originally posted by Redmak
There's an easy way to have vbcode and linebreaks and stuff interpreted by vbulletin so it shows up on your main news page.
Make sure the following line is added to the news script
require("./global.php");
To have the message parsed by vbulletin add the following:
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
$bericht is now the formatted message
The 1's stand for "dohtml,dobbimagecode,dosmilies,dobbcode"
Enjoy :)
Ok this is already in the hack, but my smilies still don't show up, the links are good just not the smilies. I have the script in the forums directory and I am php including it in a file that is outside of the forums directory. Any ideas why my smilies aren't showing up. It really isn't a big deal cause I could just go with out smilies. So if know one knows why that's fine.
Caliber
08-15-2002, 10:48 AM
I love this script, but it is very hard on a large site's performance (40k+ visitors/day). We have dual servers running our vBulletin and MySQL set for max_connections of 1000, but it still caused our server to crash.
I would like to use cron to run it once a day and then SSI the results to the homepage. Any suggestions? Extra credit if anyone knows how to modify it to return the top most active threads from the previous day. That would make the most compelling content appear on the homepage I believe. Many thanks.
Lethal
08-30-2002, 12:03 PM
anyone know who to have this script use vbulletins styles for colors and stuff like that. I have the script in my forums directory and it is included on a page outside of the forums directory. I try using stuff like {categoryfontcolor} and stuff like that but it either gives me a parse error or shows a wierd color or just doesn't show up. Any ideas?
EnriqueHavoc
09-12-2002, 04:32 PM
im also wondering how to get avatars working for newsposts. im close but just cant seem to get it to work. I can get avatars showing up for whos logged in, but not for the damn news posts :P
anyone still supporting this hack? id hate to have to completely remove pluh and install a different one just for avatars
sauron2002
10-14-2002, 08:00 PM
i was wondering if you have fixed it so when your not logged into the forums and the forums is "logged in only" style you dont see the login page interfere with the site and not the recent posts
Lethal
10-15-2002, 03:02 AM
Is there going to be an updated version on this anytime soon?
Has anyone gotten this to work with PostNuke or PhPnuke?
I have applied every fix in this thread. I got it so I can go the pluhnews.php from the root and it displays fine.
But in PostNuke I have tried all the different block types there that would work and I either get blank pages or errors. I have included the pluhnews.php, I have used php type blocks and inserted all the code into that that is in pluhnews.php, I have used the php type blocks and used php includes.
Nothing has worked.
If this hack isn't the right one to work for getting news posted from vBulletin to a PostNuke main page can you tell me which hack it would take?
Thank you so much!
Brew
Crazy Pete
11-26-2002, 07:11 PM
Ok this is irritating me. I had previously had another news script working for me on my old board (not vB), but this one just doesn't want to.
It works fine if you go to the script directly... http://www.expectedmiracles.com/forums/PluhNews.php
But if you go to the page which calls that script, you get a blank section where it's supposed to be... http://www.expectedmiracles.com/index2.php
My include looks like:
<?php include("/s/expectedmiracles.com/httpdocs/forums/PluhNews.php");?>
Which is exactly how I had my old one working, the only difference being the script name. Anyone have any ideas?
Edit -- Nevermind, I got it going. Well, apart from the smilies but I guess I can live without them. How easy would it be to limit the output to a certain amount of characters rather than displaying the whole post at once?
todd.o.callen
11-27-2002, 08:39 PM
I have a headlines page that reads a moderated forum.
BIG PROBLEM: the headlines show, even if they have not been approved yet. The links to unapproved posts yield bad thread errors, so all is not lost, but if the unapproved thread says something like "You guys suck" , then some damage is already done. I use this on a corporate intranet homepage, and have been lucky thus far...
Zivilyn
12-03-2002, 08:20 PM
Hmm, I loaded my php page with the includes etc, but for
<? include ("PluhNews.php"); ?> I get this:
Fatal error: Cannot redeclare stripslashesarray() (previously declared in C:\forums\upload\global.php:31) in C:\forums\upload\global.php on line 31
Aaron1
12-15-2002, 05:53 PM
I installed the Pluhnews hack on my forum:
As you can see here it works fine:
http://www.housequake.com/forum/PluhNews.php
But what i want to do, just doesn't work for me somehow.
I can include <?php include ("http://www.housequake.com/forum/PluhNews.php"); ?>
in my index.php, that works for me aswell, but it parses the pluhnews in the beginning of my forum homepage, and that looks awfull.
I just like to add the pluhnews in a certain place in my forumhome template. Just like i can move the $pminfo or $loggedinusers in any place i want. Is this possible?
Or in other words, how do i incorperate the content generated by PluhNews.php, in my forumhome template?
Thanks for helping me out!
www.tfw2005.com
12-18-2002, 04:17 AM
AVATAR
AVATAR
AVATAR
AVATAR
ICONS
ICONS
ICONS
ICONS
ICONS
I finally find the perfect news script, install it in 2 minutes, and spend hours on trying to get it to pull the damn avatar or icon.
PLEASE, SOMEONE WRITE THIS OUT for us, Ill pay you!
thanks :)
neocivitas
01-20-2003, 03:06 PM
Originally posted by TWTCommish
chdir("/usr/home/web/path/to/forums");
Thank you thank you thank you thank you!!!
I've been trying for hrs to get this script to work on my home page but just got a blank white page.
I found this was because my forums are on a subdomain not in a directory.
My host wanted to charge ?25 GBP per year to enable a redirect from 'mysite.com/forums' to 'forums.mysite.com' so SSI would work.
My other options were frames (which screw up the hit counter) or...
iframe Akk!
Anyway.
I tried this, it works, it's free, and I'm happy :D
ga.net
02-05-2003, 10:24 AM
Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php
Thanks!
Aaron1
02-05-2003, 06:04 PM
Originally posted by ga.net
Question. Is there a way I could display only the first few lines of the post? Like this:
http://www.housequake.com/forum/PluhNews.php
Thanks!
Yes you can, a part of my pluhnews.php looks like this:
-----------------------------------
if (!$sql_result2) {
echo "<p>Could not get record in second statement.";
}
while ($row2 = mysql_fetch_array($sql_result2)) {
if (strlen($row2[pagetext]) > $car) {
$pagetext = substr($row2["pagetext"],0,$car);
$pagetext .= "...";
}
else {
$pagetext = $row2[pagetext];
}
//gotta convert that damn unix time crap
$dateposted = date("D j M Y, g:i A",$dateline);
//end the goodies
-----------------------------------
And my pluhconfig looks like this:
-----------------------------------
<?
//This is the Config file to get PluhNews running.
//**********************
//Set some Variables
//Retrieve news from the correct forum, which is the forumid
$newsforums = 12;
//Number of news items to show at once
$newsitems = 1;
//Path to your forums directory (leave out trailing slash)
$forumspath = "/forum";
//Number of characters to display for each news item
$car = 400;
?>
-----------------------------------
Hope this will help ya!
ga.net
02-06-2003, 11:23 AM
Did it! but how come there's no READ MORE link after the last character? http://www.greenarcher.net/forums/PluhNews.php
Thanks so much! :)
Btw. And is there away that it can display more than 1 news forums?
KuraFire
02-06-2003, 12:23 PM
*shows off the hack that is in his signature*
(newsportal hack, that is :))
(this one: https://vborg.vbsupport.ru/showthread.php?s=&threadid=38334 )
ga.net
02-09-2003, 01:46 AM
I think its too complicated. You see Ill be using frames in my main page so i think Pluh News is better.
Anyway just to repeat my question earlier, how come there's no READ MORE link after the last character?
And I notice If i set the character limit, unfinished sentences end with a "...." . Worse case, last words using VB code will display the unfinished code. Is there a way to limit it to the last paragraph or last sentence?
http://www.greenarcher.net/forums/PluhNews.php
Thanks dude! :)
ga.net
02-11-2003, 10:57 AM
bump
ga.net
02-16-2003, 09:31 PM
double bump
ProParadox
02-23-2003, 01:52 AM
Anyone having trouble getting it to work with VB 2.3.0?
why would you use pluhnews when there is vBhome lite, it is so much faster and better ;)
Gutspiller
03-08-2003, 09:15 PM
Originally posted by Seby
why would you use pluhnews when there is vBhome lite, it is so much faster and better ;)
let's see vbhome do THIS (http://www.3dnewz.com/forumz/frontpage.php)
:banana:
Xelation
04-03-2003, 10:50 PM
how can I include this into a vb page? im trying to do a php include but dont know how to.... anyone wanna help me?
Nebby
04-07-2003, 12:06 AM
From what I've seen this is a top class hack, but i get this:
Fatal error: Call to undefined function: bbcodeparse2() in /home/nebby/public_html/vb/PluhNews.php on line 111
and line 111 is $bericht=bbcodeparse2($pagetext,"1","1","1","1");
Nebby
04-07-2003, 03:16 AM
double post.
for those that have been having problems, change your required shiznit to this
$vbulletin_root_path = 'http://www.THEFULLURLTOYOURSITE.com/vb';
include($vbulletin_root_path . '/global.php');
include($vbulletin_root_path . '/PluhConfig.php');
include($vbulletin_root_path . '/admin/config.php');
that's the full URL, worked for me (on other hacks.)
Nebby
04-09-2003, 06:06 PM
Bump!
Argh. i urgently need this mod!
any help from anyone please!
Katman
04-10-2003, 09:05 PM
[i]04-06-03 at 08:00 PM Nebby said this in
and line 111 is $bericht=bbcodeparse2($pagetext,"1","1","1","1"); [/B]
Can't really help, it works for me! No errors! Maybe, just by chance you had a brainfart and uploaded the file as ASCII? Or maybe you need to chmod it to at least 755? I FTP all my PHP files as binary and they work fine.
Example:
http://www.tlplanet.com/new/
What I would like to know is, is there anyway to truncate the number of characters to display? And is there anyway to display posts from more than one forum?
Nebby
04-11-2003, 01:34 PM
Thank, i'll give it another try.
What version vb are you running?
and as for the cut of limit and multiple forums there's info deep inside this thread... somewhere.
Nebby
04-11-2003, 01:42 PM
EDIT: Heh, i'm such a dumbass.
Got it working! cheers.
Jujimufu
05-14-2003, 03:08 AM
I love this thing.. You rock *hugs guy that made this hacK*
I LOVE YOU HAHA!! THANKS SO MUCH MAN!! THANXXX!!
Nebby
05-18-2003, 10:48 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:49 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:49 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:49 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:49 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:50 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:51 PM
Is there any way I can add an avatar to show with this?
Nebby
05-18-2003, 10:51 PM
Is there any way I can add an avatar to show with this?
Nebby
05-27-2003, 12:44 PM
++++, what the hell happened there?
Hey all...
I know I suck at supporting this hack (hopefully that will change :) ), however I do plan on releasing a new version for vbulletin 3.0 when the time comes.
I'll be sure to post it once it's working and stuff. I'll be sure that it'll end up a lot easier to configure and maintain than this one (I've gotten a lot better at PHP since I created this hack).
Thanks ya'll! :D
This works great! I had to mod the hack a bit because I wanted 30 news post to show on my front news page and only 8 news headline to show on my right side nav bar.
Check it out at work: http://thetechzone.com/
Thanks for the great hack!
Splitfyre
06-12-2003, 08:46 PM
This hack has been something we've been looking to do for quite sometime. Great work to the author(s) of this hack.
We're just making slight tweaks to it here at: http://www.futurelooks.com
Splitfyre
06-13-2003, 03:51 AM
How do I get the print/email function in the news threads like it is on TheTechZone.com ?
Splitfyre
06-13-2003, 05:30 AM
Ignore my last post. Figured it out :)
With a little help from Moto, you can figure anything out. :D
Splitfyre
06-13-2003, 06:46 AM
Yup. Thanks Moto :)
Zachariah
06-17-2003, 11:50 PM
Any help would be cool.
I have this line in the body of a page: (content of the news to show up in a table)
The news shows up ok in the page but I get an error.
Error:
Warning: Cannot modify header information - headers already sent by (output started at c:\www\test\cs\index.php:5) in c:\www\test\forums\admin\functions.php on line 1649
Root of site /www/test
$siteroot/cs/Index.php: (page has its own <head> </head>)
<div align="left">
<?php include("/www/test/cs/news.php"); ?>
</div>
$siteroot/cs/News.php:
<?php
chdir("/www/test/forums");
include("/www/test/forums/PluhNews.php");
?>
only thing in the PluhHeader.txt :
<!-- Pluh Header -->
<font face="Verdana" size="2"><b>Today's News</b><p>
DarkSavior
06-25-2003, 09:00 PM
Sorry for being a newbie but how do I make the headlines show up in forum main page, my header for forums is quite big and I have a table there where I would want the headlines to show up...
I'm pretty much an idiot when it comes to php anyways. :/
santino
06-26-2003, 03:05 PM
Egad - I changed servers and am getting a line exactly similar to yours:
Warning: Cannot modify header information - headers already sent by (output started at /home/squareamp/public_html/index.php:6) in /home/squareamp/public_html/forum/admin/functions.php on line 1690
I have the output going to /home/squareamp/public_html/forum/PluhNews.php and when I load that by itself its just fine - it is only the file that has the include line in it that is producing that output.
-joshua
06-17-03 at 05:50 PM HarryButt said this in Post #496 (https://vborg.vbsupport.ru/showthread.php?postid=410100#post410100)
Any help would be cool.
I have this line in the body of a page: (content of the news to show up in a table)
The news shows up ok in the page but I get an error.
Error:
Warning: Cannot modify header information - headers already sent by (output started at c:\www\test\cs\index.php:5) in c:\www\test\forums\admin\functions.php on line 1649
Root of site /www/test
$siteroot/cs/Index.php: (page has its own <head> </head>)
<div align="left">
<?php include("/www/test/cs/news.php"); ?>
</div>
$siteroot/cs/News.php:
<?php
chdir("/www/test/forums");
include("/www/test/forums/PluhNews.php");
?>
only thing in the PluhHeader.txt :
<!-- Pluh Header -->
<font face="Verdana" size="2"><b>Today's News</b><p>
santino
06-30-2003, 10:26 PM
Re-uploading functions.php zaps this problem, fyi.
upnorth
07-10-2003, 07:29 PM
is there any way to set the number of characters that are displayed followed by "..."?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.