The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Programming Help
Hello Everybody,
I was wondering whether anybody could help me. I currently have a plugin which has the following line of code: Code:
$userinfo['userid']=$vbulletin->userinfo['userid']; I have tried, as someone suggested the following but it did not work. Code:
$userinfo['userid']=$vbulletin->memberinfo['userid']; Thanks, Paul. |
#2
|
||||
|
||||
$userinfo['userid'] is the ID of the member you are looking at. The ID is already assigned to that variable.
|
#3
|
|||
|
|||
Well I'm confused.
Because in the profiles it shows my information and not the members I am looking at. Any reason why? Thanks, Paul. |
#4
|
||||
|
||||
You don't need any of the code you posted in the first post. Just use $userinfo['userid'].
|
#5
|
|||
|
|||
Why are you running this plugin then? The default functionality is to grab the User's ID from the URL. With your plugin you are overwriting this, why your doing this I'm not sure. But that is why you can only see your own User Information and not that of others.
|
#6
|
|||
|
|||
Sorry I should have said in the original post.
I have just purchased and installed P3tz. The template edits supplied are only suitable up to version 3.6.8, and I have vBulletin Version 3.7 RC1. So basically I was writing my own little code to show the Pet in a right hand side block. (template named memberinfo_block_petz) Then inside the memberinfo I was calling this template using $blocks_petz. Then I had two plugins, one was a template cache, and the other plugin was basically for when $blocks_petz is used, fetch the memberinfo_block_petz template, using the follow PHP Code. Code:
if (THIS_SCRIPT == 'member') { $userinfo['userid']=$vbulletin->userinfo['userid']; include("petz/plugins/memberinfo.php"); eval('$blocks_petz = "' . fetch_template('memberinfo_block_petz') . '";'); } I have tried just using $userinfo['userid'] but it causes Database SQL Errors. Thanks, Paul. |
#7
|
|||
|
|||
I think they use $prepared['userid'] in vB 3.7, have you looked at the source code for the member.php page?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|