![]() |
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 |
Cheers, Robink, glad you got it working :)
mossyuk -> it doesn't really have to be in your forums/ directory. Mine isn't. However, it's necessary that you adjust your vB engine/code so that it can do non-vB pages retaining vB styles. |
What files would you have to edit to do that kurafire?
|
I don't remember, really... at least global.php but you might also have to edit functions.php and some more files, I dunno...
|
If I understand correctly, you're trying to run the page or code in a folder other then the forums folder. If so try the PHP chdir() fucnction in the php page to get there.
|
i don't know if this has been answered or not but, is there anyway to put in the person's avatar with their post? =) that would make this thing perfect!!
|
Asterik: If you can wait till the vB3-version, that would help, because I don't think I'll be adding avatars to this vB2-version. the vB3 version of the Newsportal will be incredibly powerful and flexible, and also hold a lot more stuff like avatars and what not :)
|
yes, i can wait.... if i must ;) lol
|
Is it possible to make this work?:
--text-- [ attachment ] --text-- Because we use the attachment hack where you can put the attachment between text. :) Great hack even without avatars. Clicks install. |
Eh, you want me to support the Put Attachments Between Text hack in this?
Point me to it and I might well consider it for the vB3 Version :) |
i am getting this error with it Database error in vBulletin 2.3.2:
Invalid SQL: SELECT pagetext,postid FROM post WHERE postid IN () ORDER BY postid DESC mysql error: You have an error in your SQL syntax near ') ORDER BY postid DESC' at line 1 mysql error number: 1064 Date: Friday 07th of November 2003 05:42:42 AM Script: http://nbk-gaming.net/lounge/lounge/newsportal.php Referer: |
Quote:
I think you're somehow getting 0 newsposts back... |
Thi is definitely the thing I've been looking for for a long time. All the other news/portal haccs add way more then I needed this is perfect thx
install. |
Quote:
|
I have the same problem as suvir3.php
Database error in vBulletin 2.3.0: Invalid SQL: SELECT pagetext,postid FROM post WHERE postid IN () ORDER BY postid DESC mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY postid DESC' at line 1 mysql error number: 1064 Date: Wednesday 07th of January 2004 06:09:13 AM Script: http://www.nakazdytemat.com/newsportal.php Referer: :( It was working fine till now. I have not made any changes to my board what so ever :( And the forim ID is correct :( |
You'll have to wait for the vB3 version of this hack, as I've stopped support for the vB2 one...
|
Absolutely brilliant hack. Have ripped it apart and put it on my homepage, hope you dont mind... www.uxfest.org
Cheers. |
Not at all, thanks, glad you like it :)
|
Database error in vBulletin 2.3.4:
Invalid SQL: SELECT pagetext,postid FROM post WHERE postid IN () ORDER BY postid DESC mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY postid DESC' at line 1 mysql error number: 1064 Date: Monday 12th of January 2004 09:53:19 PM Script: http://www.treehillhigh.net/forum/forum/newsportal.php Referer: http://treehillhigh.net/forum/newsportal.php That script URL is wrong. How can I change it? |
Quote:
|
Yes it is.
|
The error in the errormessage isn't, the fact that you get that error is probably due to a weird upgrade of the Newsportal (that or the basic install has a fault and is dependant on the earlier install, I can't say by head anymore :/)
|
Quote:
edit: I see you removed your post - realized that it wasn't doing what you wanted it to? :) |
All times are GMT. The time now is 08:17 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:
|