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)

assassingod 01-31-2004 10:00 PM

Users Threads in Profile [vB3]
 
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!:)

NTLDR 01-31-2004 11:01 PM

Good to see you release a vB3 hack a last Steve ;)

Boofo 01-31-2004 11:58 PM

Looks good, Steve. I'll be installing this when you get the thread permissions added. ;)

assassingod 02-01-2004 01:19 AM

Quote:

Originally Posted by Boofo
Looks good, Steve. I'll be installing this when you get the thread permissions added. ;)

Thanks.

@Boofo, just to let you know you can still exclude forums, this is just a temporary way of hiding threads until I update it;)

Boofo 02-01-2004 01:32 AM

I saw that in your first post, Steve, but I wanted to wait until it was added to install it so I only have to do it once. That's what happens when you get old. You start looking for shortcuts to do things so you only have to do them once. Because you might forget to do them later. ;)

[high]* Boofo walks away wondering what is was we were talking about again?[/high]

assassingod 02-01-2004 01:38 AM

LOL! I guess that's a valid reason why not to use it yet:p

FleaBag 02-01-2004 09:27 AM

Looks good, I'll definitely use this.

colicab-d 02-01-2004 09:29 AM

yeah this is another one i,ll be using, but again i,ll wait till its final :D, but i,ll install now :D

assassingod 02-01-2004 02:08 PM

Thanks all.

NuclioN 02-01-2004 03:06 PM

Invalid SQL:
SELECT threadid,title,dateline
FROM thread
WHERE postuserid = '48' AND forumid NOT IN()
ORDER BY dateline DESC
LIMIT 5

mysql error: You have an error in your SQL syntax.

assassingod 02-01-2004 03:14 PM

You havent defined one of the variables (The exluded forums one)

NuclioN 02-01-2004 03:23 PM

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. :)

assassingod 02-01-2004 03:37 PM

Ah yes, I forgot that - thanks for reminding me.

g-force2k2 02-01-2004 03:56 PM

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

assassingod 02-01-2004 04:07 PM

Thanks very much g-force! I'll test this out right away

MGM 02-02-2004 01:35 AM

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

AutomatikStudio 02-02-2004 12:05 PM

I'm getting the same database error NuclioN got.

assassingod 02-02-2004 12:58 PM

AutomatikStudio;
Have defined the $excluded variable? and do you have a table prefix?

AutomatikStudio 02-02-2004 01:09 PM

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.

assassingod 02-02-2004 01:10 PM

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.

assassingod 02-02-2004 02:38 PM

Thanks to g-force2k2, the permissions are done - thanks alot!:)
Updated to 1.1

Sadie Frost 02-14-2004 01:20 AM

Quote:

Originally Posted by assassingod
Thanks to g-force2k2, the permissions are done - thanks alot!:)
Updated to 1.1

This worked fine for me, but when I updated to 1.1 I get the error "Fatal error: Call to undefined function: get_noaccess_forumids() in /path/to/forums/member.php on line 394"

assassingod 02-14-2004 09:11 AM

Have you done Step 2?

Sadie Frost 02-14-2004 06:41 PM

Quote:

Originally Posted by assassingod
Have you done Step 2?

Yes I did :)

assassingod 02-14-2004 06:54 PM

Try adding above
PHP Code:

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

this:
PHP Code:

require_once("./include/functions_misc.php"); 


Sadie Frost 02-14-2004 07:26 PM

Looks like its working now - thanks so much! :D

assassingod 02-14-2004 07:30 PM

Quote:

Originally Posted by Sadie Frost
Looks like its working now - thanks so much! :D

Np:)

enginethatcan't 03-15-2004 10:18 PM

Hey bro, there are no threads showing up in profile, but the images are showing up..what's wrong

assassingod 03-16-2004 05:29 AM

Hey;

They aren't any images in the hack, so i'm not sure what's the problem. Try re-installing it:)

M.C. 03-18-2004 05:46 PM

well well well! I was waiting long time and now i got it ;) Good!

Any chanse to make it works ONLY with some forumsID? For example i want to show threads ONLY from one specified forum? Or even more - i want to show all threads like that hack does, AND extra ONLY from specified forum...

Thanks a lot ;)

nhochochack 03-24-2004 10:10 AM

in the gold version , have the problem
Fatal error: Call to undefined function: get_noaccess_forumids() in d:\quang\www\vb\member.php on line 435

how to fix ?

assassingod 03-24-2004 01:42 PM

Did you apply the file changes to includes/functions_misc.php?

nhochochack 03-25-2004 02:27 AM

i was applyed file includes/functions_misc.php , but this problem is as

Gizmo 03-25-2004 05:16 PM

Thanx for your work, I will translate it! ;)

assassingod 03-25-2004 05:26 PM

Quote:

Originally Posted by nhochochack
i was applyed file includes/functions_misc.php , but this problem is as

Try opening member.php and find:
PHP Code:

require('./global.php'); 

Under, add:
PHP Code:

require('./includes/functions_misc.php'); 


nhochochack 03-26-2004 02:25 PM

i use vbb 3.0.0 Gold version , in member.php , i only found
PHP Code:

require_once('./global.php'); 

and under it i add
PHP Code:

require('./includes/functions_misc.php'); 

and try add
PHP Code:

require_once('./includes/functions_misc.php'); 

but it show the problem
Code:

Fatal error: Call to undefined function: get_noaccess_forumids() in d:\quang\www\vb\member.php on line 437

tnguy3n 03-27-2004 12:53 PM

https://vborg.vbsupport.ru/showpost....2&postcount=25


Open member.php

Find:::
Code:

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

above it, add::
Code:

require_once("./includes/functions_misc.php");
I use vb3 gold as well and dis hack works fine on my board. :)

sjau 04-03-2004 04:24 PM

Quote:

Originally Posted by assassingod
Try adding above
PHP Code:

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

this:
PHP Code:

require_once("./include/functions_misc.php"); 



That one given is not correct
PHP Code:

require_once("./includes/functions_misc.php"); 

It's missing the "s" in includes... that's the error I got :)

Onkel_Tom 04-20-2004 11:47 PM

Quote:

// Coming Soon:
Thread Permissions (No need to manually exclude forums!)
Is this implemented now ?
I found this words still in the installation instruction of v1.1

Onkel_Tom 04-21-2004 12:13 AM

Okay, I installed the hack and forums permissions are working ;)
another question, what must be changed to show also the latest posts ans answers of the members and not only the own started threads ?


All times are GMT. The time now is 04:46 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.01391 seconds
  • Memory Usage 1,833KB
  • 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
  • (13)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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