Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Users Threads in Profile [vB3] Details »»
Users Threads in Profile [vB3]
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 01-31-2004 Last Update: Never Installs: 59
 
No support by the author.

Users Threads in Profile
vB3 Port!

Coded by: assassingod
Extras: g-force2k2
Version: 1

Description:
This shows the threads posted by a user in their profile. You can limit
to how many threads you want to be displayed, and private forums are automatically excluded

Don't forget to click in INSTALL button if you use my hack - Thanks!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-01-2004, 03:14 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You havent defined one of the variables (The exluded forums one)
Reply With Quote
  #13  
Old 02-01-2004, 03:23 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've defined the variables but the error remains so i've removed the line to see why the error is showing up. I use table prefix so the 'SELECT threadid,title,dateline
FROM thread'

was not working. I've added the prefix before 'thread' and now it's working.
Reply With Quote
  #14  
Old 02-01-2004, 03:37 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah yes, I forgot that - thanks for reminding me.
Reply With Quote
  #15  
Old 02-01-2004, 03:56 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
// Coming Soon:
Thread Permissions (No need to manually exclude forums!)
assassingod you can use my permissions code from one of my hacks.

The function:
PHP Code:
function get_noaccess_forumids (  )
{
    global 
$forumcache$bbuserinfo ;

    
$_naforumids = array (  ) ;
    
$_naforumids[] = ;
    foreach ( 
$forumcache AS $forumid => $farray ) :
        if ( ! ( 
$farray['permissions']["$bbuserinfo[usergroupid]"] & CANVIEW ) ) :
            
$_naforumids[] = $forumid ;
        endif ;
    endforeach ;

    return 
$_naforumids ;

It use the forumcache to run through user permissions so it doesn't require a query to check which users can access which forums, though it doesn't run a check on the access masks it does do the forum permissions.

Then in the member.php? im guessing add:

PHP Code:
$forumids implode "', '"get_noaccess_forumids (  ) ) ; 
This takes the forums which users have no access to and sets it up for the sql statement.

Then in the WHERE section of the sql statement add:

PHP Code:
thread.forumid NOT IN '$forumids' 
Cheers,
g-force2k2
Reply With Quote
  #16  
Old 02-01-2004, 04:07 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much g-force! I'll test this out right away
Reply With Quote
  #17  
Old 02-02-2004, 01:35 AM
MGM MGM is offline
 
Join Date: Jan 2003
Location: Michigan
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

assassingod... does that code work properly and correctly? let us know :P

/me clicks Install to know when the new version is released

also: does this show the person's latest threads or just random threads?

MGM out
Reply With Quote
  #18  
Old 02-02-2004, 12:05 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the same database error NuclioN got.
Reply With Quote
  #19  
Old 02-02-2004, 12:58 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AutomatikStudio;
Have defined the $excluded variable? and do you have a table prefix?
Reply With Quote
  #20  
Old 02-02-2004, 01:09 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
AutomatikStudio;
Have defined the $excluded variable? and do you have a table prefix?
I ended up just putting "0" in the excluded variable and it's fine now.
Reply With Quote
  #21  
Old 02-02-2004, 01:10 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AutomatikStudio
I ended up just putting "0" in the excluded variable and it's fine now.
I'll add that as default.

MGM;
This shows the latest threads.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:28 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
  • Page Generation 0.06111 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete