vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Simple newsportal / thread overview to add to your board... (https://vborg.vbsupport.ru/showthread.php?t=38334)

Crazy Pete 05-05-2003 04:09 PM

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

KuraFire 05-06-2003 12:03 AM

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.

Robink 05-06-2003 06:28 AM

Quote:

Yesterday at 04:08 AM Tigga said this in Post #118
Double check that your forum permissions are set correctly for those forums and that users not in your admin or mod groups don't have permission to view threads in those forums. Also be sure that "Use custom settings" at the top of the forum permissions page is checked (that seems to be a very common thing that is overlooked. ;))
Its not a permissions problem, since if the user Clicks on the link It displays the No Permissions Screen. And Im certain that users cant see my private forums.

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 :)

KuraFire 05-06-2003 07:26 AM

Quote:

Today at 09:28 AM Robink said this in Post #123
Its not a permissions problem, since if the user Clicks on the link It displays the No Permissions Screen. And Im certain that users cant see my private forums.

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...

Tigga 05-06-2003 11:32 AM

Quote:

Today at 03:28 AM Robink said this in Post #123
Its not a permissions problem, since if the user Clicks on the link It displays the No Permissions Screen. And Im certain that users cant see my private forums.
You should still double check the permissions. That's a common problem people seem to have with mYvBindex, and every time it's because they don't have the permissions set properly, or they forgot to hit the "Use custom settings" button at the top. IIRC Kurafire and I use about the same method for forum permissions and it does work, but only if the permissions are set as they should be, so I'd be willing to bet that's what your problem is.

KuraFire 05-06-2003 12:55 PM

Quote:

Today at 02:32 PM Tigga said this in Post #125
You should still double check the permissions. That's a common problem people seem to have with mYvBindex, and every time it's because they don't have the permissions set properly, or they forgot to hit the "Use custom settings" button at the top. IIRC Kurafire and I use about the same method for forum permissions and it does work, but only if the permissions are set as they should be, so I'd be willing to bet that's what your problem is.

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... :/

Crazy Pete 05-06-2003 01:38 PM

Quote:

Yesterday at 09:03 PM KuraFire said this in Post #122
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.

Hmm, well I tried doing that and I got this:

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");

KuraFire 05-06-2003 03:42 PM

that means you're not using the vBulletin engine in your non-forum page.

(I think) :D

mossyuk 05-07-2003 09:20 AM

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 :(

Robink 05-07-2003 09:22 AM

Quote:

Yesterday at 07:02 PM Tigga said this in Post #125
so I'd be willing to bet that's what your problem is.
You win the bet!!

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
  • Page Generation 0.01110 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete