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)
-   -   Users Threads in Profile [vB3] (https://vborg.vbsupport.ru/showthread.php?t=61020)

pjdaley 04-27-2004 06:50 AM

my question is, what do you exactly edit in the code so it only shows threads started in forums indicated... like how would would i show threads with forumd ids, 1,2,3,4,5 only?

Grendel 04-27-2004 10:55 AM

I did it this way:

Code:

WHERE postuserid = '$userinfo[userid]' AND (forumid=1 OR forumid=2 OR forumid=3 OR forumid=4 OR forumid=5) AND visible='1'
"visible='1'" because you don't want to list soft-deleted or invisible threads.

You don't need
Code:

$forumids = implode ("', '", get_noaccess_forumids()) ;
then. And you don't need to change includes/functions_misc.php then as well (if you have no restricted forums in the list you want to show).

I'm sure there is a better way, eg put it in $forumids, but this works too.

Now all I need is to list the forum-name too and I'm satisfied :D.

Grendel 04-30-2004 09:59 PM

No idea about the forums?

sketch42 05-29-2004 11:24 AM

Fatal error: Call to undefined function: get_noaccess_forumids() in /home/sketch/public_html/vbtest/member.php on line 395

Onkel_Tom 07-01-2004 09:37 AM

Quote:

// Coming Soon:
Thread Permissions (No need to manually exclude forums!
What about this line in the installation instruction ?
any updates planed ?
long time since last post in this thread ;)

Delirion 07-02-2004 08:48 PM

Errr.... if you check the file, it's been done already. Someone else supplied the forum permissions code and that code is Step 2 of the instructions.

Installed it, and it's working just fine :)

Polo 07-15-2004 08:21 PM

I got this error in 3.0.3

Fatal error: Call to undefined function: get_noaccess_forumids() in /home/user/public_html/member.php on line 481

assassingod 07-15-2004 08:25 PM

Quote:

Originally Posted by Polo
I got this error in 3.0.3

Fatal error: Call to undefined function: get_noaccess_forumids() in /home/user/public_html/member.php on line 481

Did you make the edit to functions_misc.php.

If so, try looking at post #25, https://vborg.vbsupport.ru/showpost....2&postcount=25 :) Hope that helps

Polo 07-15-2004 08:34 PM

oh no i didnt, but i deleted this line

$forumids = implode ("', '", get_noaccess_forumids()) ;

and it worked...

there is no special forums i want to exclude..

Polo 07-15-2004 08:36 PM

oh forgot to say thanks ;)

and you should update the file in the first post... it may help some people...

regards,


All times are GMT. The time now is 08:24 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.01674 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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