The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Well, I've wasted all night on this stupid thing, but I now have it where I can upgrade a member to a new membergroup/usergroup and their rank image will show up instantly without the need to update User Title and Rank counters.
I used "normal" code (whatever that means) in vB3.8.6, but for some reason in vB4 I had to update counters. This is unacceptable as the people buying my high priced stuff expect a little 643kb gif image next to their name NOW. ![]() It turns out that this junk was the solution: http://www.vbulletin.com/docs/html/m...er_programming I'm a total idiot when it comes to object programming so I just pushed button until it worked. I'm no programmer. I haven't done anything serious in 4 years and even then I was flying by the seat of my pants. Fair warning! If someone better wants to clean up the first-grader-with-crayon-like code, be my guest. Nowhere did I find this in my searches. It's totally unsupported because I barely got the stupid thing to work. Explanation: It uses the global.php file to see if the dude is logged in. If he is, it digs up any current membergroups and adds 21 (in this example) to the end. This is necessary because in the past I'd lose my previous membergroups without it. For all I know, the object stuff takes care of this. You'll need to change the pathways. This thing runs on a normal ol' php page and doesn't use the forum theme or anything like that. I used the if ($upgrade=1) { echo "You are upgraded!"} else { echo "you need to log in"} Here's my code: PHP Code:
In case anyone needs the login code, here it is: PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|