vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=60544)

NTLDR 01-23-2004 09:07 AM

I can't confirm this, I've just tested this code again and it excludes the forums I don't have access to. Are you sure you setup the permissions correctly? This checks the canview and can view others permissions for each forum.

StarBuG 01-23-2004 09:16 AM

<a href="http://www.hiphop-battles.com/forum/index.php" target="_blank">http://www.hiphop-battles.com/forum/index.php</a>?

Can you please go there and tell me wich 5 threads you see last posted?
I´ve already checked the permissions. Guest have all NO in these category and the subforums are inharited

Greetings

Star

NTLDR 01-23-2004 09:26 AM

There are threads that I don't have access to, I looked before I double checked the code. Do you have any other changes made to index.php? I've been using this code for 7 months now with no problems.

Upload the attached file and run it as a user of various groups, it should print a list of all the forums you don't have access to. Try it as a guest and see if it mentions the forums that appear on the latest threads.

StarBuG 01-23-2004 09:31 AM

No Access To Forum ID: 14 (Mod Cat)
No Access To Forum ID: 15 (Mod)
No Access To Forum ID: 11 (Dev Cat)
No Access To Forum ID: 12 (Dev)
No Access To Forum ID: 13 (Dev)

That are exactly the forums I don´t want guests to have in
But I still can see the posts from these forums!

I made some changes in index (users only last 24 hours) but I don´t think that this is the reason for the problem cause there is nothing related to permissions

Any ideas?

Greetings

Star

Goyko 01-23-2004 11:18 AM

I can confirm the problem, Starbug is talking about!

It includes the forums, I have NO access to, lists the new posts, but if I click on an entry, it tells me, that I don't have access to view it.

Shouldn't be even visible!

Best regards.
Goyko

NTLDR 01-23-2004 12:10 PM

Turn on debug mode, add $debug = 1; in config.php and then visit index.php?showqueries=1 and look for the query smimilar to what you added to index.php, in particular this bit:

[sql]AND forumid NOT IN (0)[/sql]

It should be 0,X,Y,Z where each of the letters represents a forum that your not allowed to view. If its just got 0 then I'll rework the code.

StarBuG 01-23-2004 12:17 PM

I added the line to the config.php but nothing showed up at index.php?showqueries=1

But the debug mode is on cause I have the drop down below my forum and wich templates where called (I deactivated it again)

Do I have to do something in AdminCP as well?

Star

NTLDR 01-23-2004 12:19 PM

Click the 'Explain' link, it does a similar thing.

StarBuG 01-23-2004 12:22 PM

It only shows up an empty page!

I leave it on for you to check

Hope you can help me

You can see the hacks I´ve installed in my news forum (but only the useronline required editing the index.php)

Greetings

Star

NTLDR 01-23-2004 12:23 PM

Change:

PHP Code:

$limitfids ','.$forum['forumid']; 

To:

PHP Code:

$limitfids .= ','.$forum['forumid']; 

I missed a . out.


All times are GMT. The time now is 06:51 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.01250 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_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