Not Solved Help with Hide plugin ?
#1
Not Solved
I'm currently trying to edit an hide plugin to more advanced one... But I got 1 problem which im trying to fix...

So, I have an variable which checks if the user is admin ?
if ( ($mybb->user[cancp] != "0" && $selfposted > "0") || $mybb->user[cancp] == "4") {

That should show it automatically ? the last one should be the group id they're in... So I want it like, to show it automatically for mods, s-mods & administrators, but it only shows for the uid of "1".

If ya need full source, please pm me..
Reply
#2
Not Solved
I'm not sure if this is your entire problem, but you have a syntax error. You need "" around your array keys since they're not integers.

if ( ($mybb->user["cancp"] != "0" && $selfposted > "0") || $mybb->user["cancp"] == "4") {

Give that a try.
Reply
#3
Not Solved
As i said to another user, you can use this plugin:

http://community.mybb.com/thread-144715.html

I release 1.9 version is mos stable and functional plugin and improves cache and more things you can add usergroups by id to can see contents and edits if necesary, only in forums where you wanna do this, you have to tell wich forums is where the mod does not apply to default functionabillity.

You can set your own preferences, as hide urls, use hide tags, and hide attachs, or not, and some preferences, i use on some forums and works fine till now without any kind of problem, cheers.

On Mods Site i release 1.7 but when they validate this i got 1.9 version, because they take about 6 months to validate a mod, so i don't upload new version to wait for a year or something like that when i have another new version or two xD.

Only test this and if you want i can give you a support for this mod xD.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#4
Not Solved
(2013-11-30, 07:44 PM)Dark Neo Wrote: As i said to another user, you can use this plugin:

http://community.mybb.com/thread-144715.html

I release 1.9 version is mos stable and functional plugin and improves cache and more things you can add usergroups by id to can see contents and edits if necesary, only in forums where you wanna do this, you have to tell wich forums is where the mod does not apply to default functionabillity.

You can set your own preferences, as hide urls, use hide tags, and hide attachs, or not, and some preferences, i use on some forums and works fine till now without any kind of problem, cheers.

On Mods Site i release 1.7 but when they validate this i got 1.9 version, because they take about 6 months to validate a mod, so i don't upload new version to wait for a year or something like that when i have another new version or two xD.

Only test this and if you want i can give you a support for this mod xD.

I've used it, but I'm trying to create something custom myself... Never tried to make an plugin, so ill try to make Smile

(2013-11-30, 07:22 PM)jshort Wrote: I'm not sure if this is your entire problem, but you have a syntax error. You need "" around your array keys since they're not integers.

if ( ($mybb->user["cancp"] != "0" && $selfposted > "0") || $mybb->user["cancp"] == "4") {

Give that a try.

Didn't work :/ If ya need, I can give you the full source of it.
Reply
#5
Not Solved
Oops, another syntax mistake. cancp is a yes/no option, so 1/0. 4 is an invalid option.

Try:
if ( ($mybb->user["cancp"] != "0" && $selfposted > "0") || $mybb->user["cancp"] == "1") {
Reply
#6
Not Solved
(2013-11-30, 11:51 PM)jshort Wrote: Oops, another syntax mistake. cancp is a yes/no option, so 1/0. 4 is an invalid option.

Try:
if ( ($mybb->user["cancp"] != "0" && $selfposted > "0") || $mybb->user["cancp"] == "1") {

nope, still not :/

Just ask if ya need the source Smile
Reply
#7
Not Solved
Feel free to post it and I can take a look when I have some free time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)