Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #31  
Old 12 Jun 2005, 15:57
tamarian tamarian is offline
 
Join Date: Oct 2001
Thanks for the how-to's

I needed to use $session outside the templates, it's now:

$session => $vbulletin->session->vars
Reply With Quote
  #32  
Old 12 Jun 2005, 16:57
noppid noppid is offline
 
Join Date: Mar 2003
Originally Posted by tamarian
Thanks for the how-to's

I needed to use $session outside the templates, it's now:

$session => $vbulletin->session->vars
That syntax you used may be confusing. It took me about 3 minutes to catch your drift. I see now that you were making a relation though. But here's what the new one looks like for the other folks.

$vbulletin->session->vars['sessionurl']
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #33  
Old 12 Jun 2005, 17:10
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by noppid
That syntax you used may be confusing.
It shouldn't be That's the syntax suggested by the first post, left to right.
Reply With Quote
  #34  
Old 12 Jun 2005, 17:19
noppid noppid is offline
 
Join Date: Mar 2003
Originally Posted by tamarian
It shouldn't be That's the syntax suggested by the first post, left to right.
Sorry I tried to help. Perhaps I should just shut up. :/

I was not trying to start an argument.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #35  
Old 12 Jun 2005, 17:32
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by noppid
Sorry I tried to help. Perhaps I should just shut up. :/

I was not trying to start an argument.
Me neither. My post was not meant to offende you, and if it did, I apologize. I just meant that was the syntax used by Brad in his first post. Anyway, between the both of us, we may have actually helped someone.
Reply With Quote
  #36  
Old 14 Jun 2005, 10:06
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
what is the new array for $userinfo (not $bbuserinfo)
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
  #37  
Old 14 Jun 2005, 10:20
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Originally Posted by sabret00the
what is the new array for $userinfo (not $bbuserinfo)
That's the one that's used on the members profile and so, right?

I just checked the memberinfo template, and it hasn't changed there...
__________________
Reply With Quote
  #38  
Old 14 Jun 2005, 15:38
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Real name: Tom
Yeah, I mentioned that u=$userinfo[userid] wasn't working in the postbit a few posts ago. I think we might have to wait for the documentation to find out all the new conditionals.
Reply With Quote
  #39  
Old 14 Jun 2005, 16:03
tamarian tamarian is offline
 
Join Date: Oct 2001
userinfo is not a global variable like bbuserinfo. So it won't be part of the new $vbulletin object and other globals. The variable name for userinfo will be different depending on the script or template being edited.
Reply With Quote
  #40  
Old 14 Jun 2005, 16:38
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Real name: Tom
Originally Posted by tamarian
userinfo is not a global variable like bbuserinfo. So it won't be part of the new $vbulletin object and other globals. The variable name for userinfo will be different depending on the script or template being edited.
Thanks for the info, tamarian. I'll just use $post[userid] in the postbit instead.

Do you have any idea how I can solve this problem? Is there a replacement for $GLOBALS?
Reply With Quote
  #41  
Old 14 Jun 2005, 17:10
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by tmhall
Thanks for the info, tamarian. I'll just use $post[userid] in the postbit instead.

Do you have any idea how I can solve this problem? Is there a replacement for $GLOBALS?
How about this?

$vbulletin->userinfo['buddyarray'] = $buddyarray
Reply With Quote
  #42  
Old 15 Jun 2005, 07:11
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Real name: Tom
Originally Posted by tamarian
How about this?

$vbulletin->userinfo['buddyarray'] = $buddyarray
Hm... Actually I think I goofed up somewhere else before. $GLOBALS is working fine now.
Reply With Quote
  #43  
Old 21 Jun 2005, 12:01
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
function construct_page_nav now accepts 5 params, not just 3 as the legacy one

but I don't really know why the phpdoc only states for 3 params:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

1st param: current page number
2st param: number of items per page.
the last 3 params are defined in the phpdoc above, they're just like before.


Please update all the info that users submit so that others only have to look at the fist post so that they can check for what has been changed.
Reply With Quote
  #44  
Old 21 Jun 2005, 12:19
Brad's Avatar
Brad Brad is offline
 
Join Date: Nov 2001
Real name: B-rad
Originally Posted by tmhall
Yeah, I mentioned that u=$userinfo[userid] wasn't working in the postbit a few posts ago. I think we might have to wait for the documentation to find out all the new conditionals.
$userinfo did not change, it is still built in member.php take a look. The reason it didn't work in the postbit is it's not defined there, what your looking for is.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #45  
Old 21 Jun 2005, 15:10
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
$url => $vbulletin->url


-----------------------------------------

I can't use $vbulletin->input->clean_array_gpc as globalize()

with globalize()

globalize($_POST, array('e' => INT, 'do' => STR_NOHTML, 'iconid' => INT));

gives value to varibles $e, $do, $iconid

but with

$vbulletin->input->clean_array_gpc('p', array('e' => TYPE_UINT, 'do' => TYPE_STR, 'iconid' => TYPE_UINT));

I can't get $e, $do, $iconid

any suggestion to use $vbulletin->input->clean_array_gpc properly ?

EDIT: I figured out it turns to be $vbulletin->GPC['e'], $vbulletin->GPC['do'], $vbulletin->GPC['iconid'], am I correct ? how complex.

------------------------------------------

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))

Last edited by deathemperor : 22 Jun 2005 at 06:11. Reason: Automerged Doublepost
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 06:14.

Layout Options | Width: Wide Color: