![]() |
Sure.. Ok, now just change the path and stuff to the path to whatever PHP file you put this on:
Code:
<? |
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. :) |
Code:
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: Code:
include("/path/to/PluhHeadlines.php"); |
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...read&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 |
Isn't there a way to assign, say, "fourumid1" = "Category1", and so fouth?
|
Never did get that to work.
Still looking for a way to call news from multiple forums. |
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? |
Quote:
|
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 :) |
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. :) |
I ended up using the full URL path rather than the relative path.
|
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. |
I set it up straight from the zip file, and I get:
Quote:
Quote:
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? |
Nobody?
|
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. |
Hey, how would I go about displaying avatars?
|
############## 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! |
oops dbl post arg
|
So how would I go about making my avatar viewable?
|
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: Quote:
PHP Code:
PHP Code:
This thread is very confusing with posts from way back in July 2001. Any help would be greatly appreciated. |
Quote:
|
Quote:
|
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
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! |
Quote:
|
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 :( |
Is this hack not being supported any more? :(
|
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 :) |
Quote:
|
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: |
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 Quote:
|
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)
|
Quote:
|
Any ideas on this error?
|
im trying to make this html work
Code:
<style> |
I believe it says in the readme
Where evr you have quotes you need to put a \ before it for instances this line Code:
<table width=\"100%" border=\"0" cellpadding=\"0" cellspacing=\"0" class=\pluhpost> Code:
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\pluhpost> |
still get parse error :(
|
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: |
All times are GMT. The time now is 07:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|