![]() |
doesnt work.
|
Yep ... fixed it ...
On my index I simply added the 3 includes before my header include. Cookies have to be loaded prior to the first < html > tag (I am positive, but quite often wrong) |
Quote:
Worked on my end ... Those includes must be loaded before ANY html is parsed. |
try deleting your cookies. because it wiill work if logged onto your board. cause your coookies are still there.
|
I did ... closed browser the works ...
It fixed it for me ... http://www.fnqgl.com/testindex.php You can go there for a test. |
require("forum/fnqglglob.php");
require("forum/fnqglconfig.php"); those 2 files which are they for the average person. |
fnqglglob.php is a copy of global.php edited with absolute references to admin/config.php
fnqglconfig.php is a copy of the admin config (which didnt work, and I havent deleted yet) I am guessing it didnt work for you ... Bugger ... I deleted the cookies, and closed the browser (i.e.6 delete cookies) and it didnt cause that. *looks into it further* |
Fatal error: Cannot redeclare stripslashesarray() in /path/to/sfiles/forum/global.php on line 11
i edited the path for privacy ;). thats the new error i get after i add the paths to these. |
Hmmm ... thats a new one for me
|
Is this what you guys are trying to do?
http://www.realwebhost.net/PluhHeadlines.php or something else |
No, including PluhNews.php into a php index page that already generated the HTML headers before the PluhNews.php inclusion (thus causing problems with vB cookies)
|
goto back to the previous page it'll explain the problem.
|
Guys go to your control panel under options and look for this.
Cookie Domain The domain on which you want the cookie to have effect. If you want this to affect all of yourhost.com rather than just forums.yourhost.com, enter .yourhost.com here (note the 2 dots!!!). Can be left blank. This may help |
I am pretty certain I have it sorted on my end ... I have got a half dozen friends to check it and its working no problem for them.
I think the .domain.com fixed it. Thanks |
stilll doesnt work for me. this is making me mad.
|
Which error are you getting ... still the header, or the stripslash ?
|
header error.. .. the only reason i was getting stripslash was because i was calling gobal.php and config.php twice. so like it didnt work..
|
Try adding the domain in like suggested .domain.com and then put the includes before any html in the file.
Delete the cookies and try again. Cookies have to be processed prior to any html with PHP (checked on that, its a fact) |
|
Lookin sweet to me ... no errors that I can see
:D What was it ? |
Great! I bet you are happy
|
i dunno.. i just required the global.php before my <html> tag and deleted the require global.php from PluhNews.php and did that domain cookie thing and it works :).
|
Yes i am very happy thanks for all the help guys. :)
|
Yep, thats exactly what I did
:D Cookies are evil dammit ... but they make life much easier than typing the username/password each time you visit :D |
webhost, thanks for the cookie domain suggestion :D
|
yes i think cookies were created by the devil. and are possesed. :)
|
Do you what is causing the header problem?
|
usbnuts
Go back and read the last 15 post's you will see how to fix the problem you are having. |
How can you make it so it only shows the last 4 headlines and still shows the last 10 news items? Cause i dont want it to show ALL of the headlines.
|
u have to define the two mySQL queries with different LIMIT value.
|
I use the PluhNews on my homepage and I would like to "ameliorate" it. I would like to log on my homepage and see new or updated news (pluhnews) with the arrow of the board.
PHP Code:
I would like to stay on the homepage and view the news for my session. I hope you understand what I said ;) Thx in advance for help |
Ok, 1 problem and one request
PROBLEM The PluhHeadlines.php file seems to be constantly connected to my forums as seen here: http://www.mainframetech.net/screencaps/headlines.gif This is wierd, any ideas as to why this would be happening? REQUEST Ok, if I turn off my board, here is how a section of my front page looks: http://www.mainframetech.net/screencaps/borked.gif It would be awesome if it would display a little message if the board was turned off instead of getting the templates and stuff in there too...any ideas or suggestions? thnx, ~Ian :) |
Nice hack but I need categories! I want to be able to pull the latest news from all forum categories!
Example Forum (NEWS) -Category 1 -Category 2 -Category 3 etc A few things like, "E-mail this to a friend" and "Print View" would be cool as well. |
SirSteve,
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"; |
Anyone knows what to change, that not the complete Article, but after 100 or 200 letters it ends with a "...more..." linked to the complete article???
|
Quote:
Here's a working demo: http://www.coldplayonline.com/forums/Test_PluhNews.php |
Quote:
:( |
You could just install multipul PluhNews' on your server...
PluhConfig1.php PluhNews1.php PluhHeader1.txt PluhFooter1.txt PluhConfig2.php PluhNews2.php PluhHeader2.txt PluhFooter2.txt et cetera... Just set up each one to pull the news from different forums, then include them wherever you want on any page. |
Thanks Craig, the ...more... thing works perfect, with the multiple Newsfiles I had the same idea :D also works.
|
Quote:
;) |
All times are GMT. The time now is 01:54 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:
|