![]() |
Help with a plugin?
1 Attachment(s)
I'm trying my hand at a simple plugin to allow a quick switch between visible and invisible from under the username in the navbar....but for the life of me I can't get it to work (not so simple eh?) can anyone point me in the right direction?
Its much appreciated! |
You haven't got any code in your plugin to set the visible status at the moment. Take a look at profile.php, line 1142 (in an un-modified file). The invisible option is stored in a bitfield for the users options, so once set, you'll need to update them for the users account.
Completely un-tested, but something like the following should work: PHP Code:
Thanks, Alan. |
Thanks Alan!
One more question now...kinda the obvious one for a newbie... How do I take a+b to make c? I have the code for the variable and you just provided me with some basics to update the profile...but how do I take what you did and apply it to what I started with.... I looked at the code on that line (its unedited) and the $key variable is messing me up...its the only one I don't see what it does....but options[invisible] or anything close to it is nowhere to be seen.... I know i'm being a pest :p but asking questions and seeing how it all comes together will help me break it down myself next time...I appreciate your patience :) |
*bump* apologies....but i'm still stuck...
|
All times are GMT. The time now is 10:05 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:
|