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)

MajorFm.com 01-15-2005 01:24 PM

Great hack... however

Step 2:
Open includes/functions_misc.php and find (1 change)
Code:

// ###################### Start microtime_diff #######################
Above, add:

Code:

// ###################### Start no_access_forumids #######################
// This was originally coded by g-force2k1 - Thanks very much buddy!:)
// gets which forumids users dont have access too
function get_noaccess_forumids (  )
{
    global $forumcache, $bbuserinfo ;

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

    return $_naforumids ;
}

I get the following error

Code:

Fatal error: Cannot redeclare get_noaccess_forumids() (previously declared in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/includes/functions_user.php:517) in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/includes/functions_misc.php on line 18

Ghostsuit 02-11-2005 12:42 AM

Looks like you have the same function installed twice. Once in function_user.php and once in function_misc.php

Try removing the misc one and see what happens.

iceytdot 05-10-2005 06:55 AM

works after i took out that line causing everyone trouble! clicks install thanks for tha hack!

Thug 07-09-2005 09:02 AM

anyone help me

i was installing user threads in (vb3) hack

but i installed user threads(vb3) hack and well i have this error
http://www.oh-twadi.com/forum/member.php?u=24
^^not there its just example of where it was error below

PHP Code:

Fatal errorCall to undefined function: get_noaccess_forumids() in /home/ohtwadi/public_html/upload/member.php on line 421 

it told me to add this

PHP Code:

// THREADS
// By assassingod
// Dont forget to change the variables on line 394

$limit '5'// Enter the number of maximum threads you want to be displayed
$forumids implode ("', '"get_noaccess_forumids()) ; 

last line = error line 421
</b>

Thug 07-09-2005 09:03 AM

also i dont get this

PHP Code:

// Dont forget to change the variables on line 394 

^^^

yoyoyoyo 07-09-2005 12:32 PM

installed flawlessly in 3.0.7 - thanks!

**clicks install**

Thug 07-10-2005 03:12 PM

i have various errors can someone help me

1st error
while creating new thread
http://www.oh-twadi.com/forum/newthr...=newthread&f=7

PHP Code:

Fatal errorCannot redeclare get_noaccess_forumids() (previously declared in /home/ohtwadi/public_html/forum/includes/functions_misc.php:19in /home/ohtwadi/public_html/forum/includes/functions_misc.php on line 34 

2nd error
while veiwing a profile
http://www.oh-twadi.com/forum/member.php?u=1
PHP Code:

Fatal errorCall to undefined function: get_noaccess_forumids() in /home/ohtwadi/public_html/forum/member.php on line 422 

can you help me at all

yoyoyoyo 07-10-2005 05:20 PM

I worked this out with Thug, and got it working for him. If anyone else wants to get this working simply follow the attached instructions instead.

Thug 09-22-2005 07:17 PM

still got a problem now
my members profile shows all threads,even though the limit is at 1
heres my codings

PHP Code:

// THREADS
// By assassingod
// functionality fixed by yoyoyoyo
$limit '1';    // Enter the number of maximum threads you want to be displayed

 
$getthreads $DB_site->query("
        SELECT threadid,title,dateline
        FROM " 
TABLE_PREFIX ."thread
        WHERE postuserid = '
$userinfo[userid]' AND forumid IN ('1','2','')
        ORDER BY dateline DESC
"
); // enter the forums you wish to exclude in the above array  where the numbers represent the forum ID's

    
while($threads $DB_site->fetch_array($getthreads))
    {
        
exec_switch_bg();
        
$threads['date'] = vbdate($vboptions['dateformat'],$threads['dateline']);
        
$threads['time'] = vbdate($vboptions['timeformat'],$threads['dateline']);

        eval(
'$usersthreads .= "' fetch_template('memberinfo_usersthreads') . '";');
    } 


Scribbller 09-27-2005 08:05 AM

Is it possible that threads from a particular forum be displayed like it happens on VB.org threads in hack forums are displayed in profile.


All times are GMT. The time now is 07:10 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.01960 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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