![]() |
I'm getting this error when I try to include the news on a non-forum page. I already removed the $header and $headinclude statements from the newsthreads template, as I don't need them on the other page. When I'm already logged in and browsing the forums, everything's fine, but if I just hit the homepage (where the news in included) first, I get this error...
Warning: Cannot modify header information - headers already sent by (output started at /home/pete/public_html/index.php:44) in /home/pete/public_html/forums/admin/functions.php on line 1753 |
this hack is a standalone, not usable as a portable hack.
If you want to include it, you'll just have to copy - paste the code for JUST THE NEWS stuff only, and hook that up into your non-forum page script. |
Quote:
Secondly, I just tested by logging on as a Guest, and it still shows me threads from my Mod forum only on the latest threads... So, I think changing the query of ading some condition based on usergroupid seems like the only choice. Thanks for the help anyway, Tigga :) |
Quote:
Just outta curiosity, but did you check that too? Did you install any hack that involved your forums listing or the forum table? Or something with Host masks etc. ? SOMETHING that might've altered your permissions structure to work differently from most boards? Cos it works for everyone else, the permission section... |
Quote:
|
Quote:
Yeah, and it works for everyone else, and it's (I think) mostly the same section of code to check for permissions as is used in vB's own files... :/ |
Quote:
Fatal error: Call to a member function on a non-object in /home/pete/public_html/testindex.php on line 117 The line in question is... $newsql = $DB_site->query("SELECT t.threadid as tid, t.title as ttitle, t.replycount as treply, t.postusername as user, t.postuserid as userid, t.dateline as dateline, MIN(p.postid) as postid FROM thread t LEFT JOIN post p USING (threadid) WHERE forumid=$newsforum GROUP BY t.threadid ORDER BY t.threadid DESC LIMIT $newslimit"); |
that means you're not using the vBulletin engine in your non-forum page.
(I think) :D |
is there no way to make it so it doesnt have to be in the /forums/ directory? I use individual team pages on my Intranet and I would like to use this script for each team but so far havent figured out how :(
|
Quote:
The problem was that in the catagory, I set it that Registered users and guest cant see the catagory alltogether. But I hadnt set the Forum permissions. After I went and set it, the problem dissappeared! :D :D Now the newsportal works like a charm, which I am using as my home page portal... This is my favourite hack! Thanks KuraFire... Now my profile says that this is my fav hack too :D |
All times are GMT. The time now is 04:13 AM. |
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:
|