![]() |
|
|
Article Options |
|
#31
|
|||
|
|||
|
Thanks for the how-to's
![]() I needed to use $session outside the templates, it's now: $session => $vbulletin->session->vars No members have liked this post.
|
|
#32
|
|||
|
|||
|
Originally Posted by tamarian
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 to your 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. No members have liked this post.
|
|
#33
|
|||
|
|||
|
Originally Posted by noppid
It shouldn't be
That's the syntax suggested by the first post, left to right.No members have liked this post.
|
|
#34
|
|||
|
|||
|
Originally Posted by tamarian
Sorry I tried to help. Perhaps I should just shut up. :/
I was not trying to start an argument.
__________________
Add a photo gallery to your 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. No members have liked this post.
|
|
#35
|
|||
|
|||
|
Originally Posted by noppid
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.
![]() No members have liked this post.
|
|
#36
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#37
|
||||
|
||||
|
Originally Posted by sabret00the
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...
__________________
No members have liked this post.
|
|
#38
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#39
|
|||
|
|||
|
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.
No members have liked this post.
|
|
#40
|
||||
|
||||
|
Originally Posted by tamarian
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? No members have liked this post.
|
|
#41
|
|||
|
|||
|
Originally Posted by tmhall
How about this?
$vbulletin->userinfo['buddyarray'] = $buddyarray No members have liked this post.
|
|
#42
|
||||
|
||||
|
Originally Posted by tamarian
Hm... Actually I think I goofed up somewhere else before. $GLOBALS is working fine now.
No members have liked this post.
|
|
#43
|
||||
|
||||
|
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:
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. No members have liked this post.
|
||||
|
#44
|
||||
|
||||
|
Originally Posted by tmhall
$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.
__________________
Hi, I am Brad and I'm lost in my own head! ![]() "C++ : Where friends have access to your private members." — Gavin Russell Baker. No members have liked this post.
|
||||
|
#45
|
||||
|
||||
|
$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(...)) No members have liked this post.
Last edited by deathemperor : 22 Jun 2005 at 05:11. Reason: Automerged Doublepost |
![]() |
«
Previous Article
|
Next Article
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Article Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 03:42.



That's the syntax suggested by the first post, left to right.

