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)

turbidblue 07-21-2004 08:57 PM

in regards to this,

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

will that automatically detect forums that some users are not allowed to view? ot do i need to add the forum ids?

if i need to add them, where in that code??

It works fine on my forum, 3.0.3, until i click on my name and view profile from a thread...then i get an error...

any help??

Logikos 07-24-2004 09:20 PM

/me clicks install!

Logikos 07-31-2004 11:51 AM

is there a way to make it in only certain fourmids? seprate with commas?

assassingod 07-31-2004 12:19 PM

Yep, delete
PHP Code:

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

and replace
PHP Code:

    WHERE postuserid '$userinfo[userid]' AND forumid NOT IN ('$forumids'

with

PHP Code:

    WHERE postuserid '$userinfo[userid]' AND forumid IN ('x,y,z'

Then use the forumids you wish to use there, in replacement of x,y,z :)

Logikos 07-31-2004 12:21 PM

you rock man!!! If i could click the install button twice i would :p

assassingod 07-31-2004 12:26 PM

Thanks:ps

Logikos 08-03-2004 02:23 AM

Quote:

Originally Posted by assassingod
Thanks:ps

Theres a slight bug it seems. When i place this code.

PHP Code:

$getthreads $DB_site->query("
        SELECT threadid,title,dateline
        FROM " 
TABLE_PREFIX ."thread
        WHERE postuserid = '
$userinfo[userid]' AND forumid IN ('27,28,29,30,31,32,11,5')
        ORDER BY dateline DESC
"
); 

It only shows the threads in ID 27. Which is the first on the list. It doesn't grab the rest. Any reason why?

Logikos 08-06-2004 06:27 AM

Any way to do this so just the threads a user starts show up in the profile?

LizerisCHN 08-10-2004 12:12 AM

Quote:

Originally Posted by Live Wire
Theres a slight bug it seems. When i place this code.

PHP Code:

$getthreads $DB_site->query("
        SELECT threadid,title,dateline
        FROM " 
TABLE_PREFIX ."thread
        WHERE postuserid = '
$userinfo[userid]' AND forumid IN ('27,28,29,30,31,32,11,5')
        ORDER BY dateline DESC
"
); 

It only shows the threads in ID 27. Which is the first on the list. It doesn't grab the rest. Any reason why?


Your code would need to look like this:

PHP Code:

$getthreads $DB_site->query("
        SELECT threadid,title,dateline
        FROM " 
TABLE_PREFIX ."thread
        WHERE postuserid = '
$userinfo[userid]' AND forumid IN ('27','28','29','30','31','32','11','5')
        ORDER BY dateline DESC
"
); 

It needs to define each forumid separately.

Lee Wilde 11-17-2004 03:51 PM

Very cool. Installed in minutes, thanks!


All times are GMT. The time now is 06:19 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.01237 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_php_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