The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to create a nice little plug-in to annoy my forum users (I'm so kind, right?).
Anyway: I am having a little trouble with the code. PHP Code:
I am going wrong here: PHP Code:
|
#2
|
||||
|
||||
![]()
It would help if you would tell us the plugin location because maybe you are using the wrong variable? Anyway, try this:
PHP Code:
|
#3
|
||||
|
||||
![]()
Use of an array is preferred, but to help you with your original logic:
if userid !=1 and userid != 2 using or means it would always be true |
#4
|
|||
|
|||
![]()
Both methods work fine.
I was using the fetch_musername hook. Thanks to both of you. |
#5
|
||||
|
||||
![]()
Just a word of caution.... watch it when switching usernames around because PMs may be sent to the wrong person. I switched some around a long time ago as an April Fool's joke and things got a bit messed up there. So, be sure to test this out on your test site and make sure it is working how you want it to in regards to profiles/PMs.
|
#6
|
|||
|
|||
![]()
I don't think anything on vbulletin uses the markup username does it? I thought it was just for display purposes?
Changing $user['username'] or $username would be stupid indeed. I didn't think markup usernames had anything relying on it in terms of PMs etc.. |
#7
|
||||
|
||||
![]()
You know, it was four years ago that I did this, so I don't remember the particulars. But I do remember the screwed up PMs. Like I said, test it and see what happens.
|
#8
|
|||
|
|||
![]()
PMs and Profiles work fine.
I appreciate the heads up though - thanks Lynne. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|