![]() |
Plug-in syntax help
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:
|
It would help if you would tell us the plugin location because maybe you are using the wrong variable? Anyway, try this:
PHP Code:
|
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 |
Both methods work fine.
I was using the fetch_musername hook. Thanks to both of you. |
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.
|
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.. |
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.
|
PMs and Profiles work fine.
I appreciate the heads up though - thanks Lynne. |
All times are GMT. The time now is 07:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|