The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Awesome, it worked great.
now for some reason its not keeping the linked users actually linked. I am porting Quick Account Switch and the linking procedure in the admincp isn't keeping the users linked. I am attaching the file that is used by the admincp, if you could Merk, please look it over and make sure I haven't made any mistakes that might be causing problems. Thanks Myth I get the feeling something is up with this piece of code that I had to use when altering admincp/user.php PHP Code:
EDIT: Attached code modifications needed for this hack and I think certain pieces are no longer used in vb 3.5 but I could be wrong I am using the right code. |
#12
|
|||
|
|||
Please note that 'u' is one of the special shorthand variables (like f=forumid, p=postid, t=threadid,....) that get a special treatment.
|
#13
|
|||
|
|||
Right Marco
Any idea why its not staying linked up? Thanks Myth |
#14
|
|||
|
|||
Check if it is converted from 'u' to 'userid'.
|
#15
|
|||
|
|||
How would I go about doing that? Is it a function that would do that or what?
Thanks Marco Myth |
#16
|
|||
|
|||
Sorry mate, I cant really see what the problem is (just by looking at code).
It looks reasonably okay to me, with a few minor habbit things that I would do differently, but i think Marco is right The url variables you are using should be modified so they are not getting broken by vBulletin because it thinks that variable is its own. You should change u to be more descriptive (qas_user1) or at least more unique. The same should go for all variables you're using. |
#17
|
|||
|
|||
Tis ok Merk, I will try to change the variables but I'm afraid if I do that and not know where to change it in the file to make sure it reads it right then it will give me more errors than I want.
|
#18
|
|||
|
|||
I'm having no end of trouble converting my custom PHP scripts to work with the new vbulletin 3.5 code structure. Basically I have a form that calls itself to pass variables to my database. I'm using this to initialize the form variables at the top of my script:
Code:
$bbuserinfo = $vbulletin->userinfo; $vbulletin->input->clean_array_gpc('p', array( 'name' => STR, 'gender' => INT, 'race' => INT, 'class' => INT, 'level' => INT, 'trade1' => INT, 'trade1skill' => INT, 'trade2' => INT, 'trade2skill' => INT, )); Code:
if ($submit) { $tstamp = mktime(); $timestamp = date("Ymdhis", $tstamp); $sql_result = mysql_query("UPDATE `wowmembers` SET name='$vbulletin->GPC[name]', gender='$vbulletin->GPC[gender]', race='$vbulletin->GPC[race]', class='$vbulletin->GPC[class]', level='$vbulletin->GPC[level]', trade1='$vbulletin->GPC[trade1]', trade1skill='$vbulletin->GPC[trade1skill]', trade2='$vbulletin->GPC[trade2]', trade2skill='$vbulletin->GPC[trade2skill]', lastupdate='$timestamp' WHERE eqname='$bbuserinfo[username]'", $db); } Code:
<select name="race"> Quote:
Tried moving the clean_array_gpc code to after my form but before the submit button with no change. Tried just using clean_gpc on each variable and it still gives me the non-object error on: Code:
$vbulletin->input->clean_gpc('p', 'gender', INT); |
#19
|
|||
|
|||
The types are not 'STR' naymore, but 'TYPE_STR', same for the other types.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|