MyBB Hacks

Full Version: Hide Links in Post to users who haven't replied
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
^ The plugin works with [hide] tags.
I wouldn't know why it isn't working for you.

Maybe some conflict with another plugin?

TriTop

Yes it does. The mistake sit behind keyboard (me). Sorry for that.
To make things simple (ie not a conflict) try installing the plugin on a clean install of MyBB, and see if it works.

Guest

Hi There


is there away how i can allow a certain group just say like vip or something that they dont have to reply to view links


Thanks
Hi,

I think mods/admins have an override on this, but it shouldn't be too difficult to extend this to another usergroup.  Right now, I have to go (so can't really help you), but if you don't mind having a look at the code yourself, just search for something like:
$mybb->usergroup['issupermod']
And change the condition to include $mybb->usergroup['gid'] == <your GID number>

Sorry, that probably didn't help...

Guest

Thanks for your help but it did not work when you have the time could you let me know please


thanks
I'm going to assume the GroupID is 2 (replace the number "2" if not)
Find:

PHP Code:
if(is_moderator($fid) == 'yes')

Replace with

PHP Code:
if(is_moderator($fid) == 'yes' || $mybb->usergroup['gid']==2)


Find:

PHP Code:
if(is_moderator($quoted_post['fid']) != 'yes' && !isset($tids[$quoted_post['tid']]) && ($mybb->settings['hidelinkreply_firstpost'] != 'yes' || $quoted_post['firstpost'] == $quoted_post['pid']))

Replace with

PHP Code:
if(is_moderator($quoted_post['fid']) != 'yes' && $mybb->usergroup['gid'] != 2 && !isset($tids[$quoted_post['tid']]) && ($mybb->settings['hidelinkreply_firstpost'] != 'yes' || $quoted_post['firstpost'] == $quoted_post['pid']))


Find:

PHP Code:
if(is_moderator($quoted_post['fid']) != 'yes' && !isset($tids[$quoted_post['tid']]) && ($mybb->settings['hidelinkreply_firstpost'] != 'yes' || $quoted_post['firstpost'] == $quoted_post['pid']))

Replace with:

PHP Code:
if(is_moderator($quoted_post['fid']) != 'yes' && $mybb->usergroup['gid'] != 2 && !isset($tids[$quoted_post['tid']]) && ($mybb->settings['hidelinkreply_firstpost'] != 'yes' || $quoted_post['firstpost'] == $quoted_post['pid']))


Hope that helps.

Hi ZiNgA BuRgA

Thanks for this mod.

I need this for p2p link like edk:// , and it works.

But the problem i have is, if i post a http link, it is automatically hide without tags Frown .

I just want to hide only beetwen  [hide] and [/hide]

Is it possible with what you say on this post :
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=32&pid=

to do that ?

Many thanks Smile.
Im not ZiNgA BuRgA, but I know it is exactly what you want. Wink

Regards
TriTop

Guest

ok ive downloaded this add on thanks alot

but i dont have a plugin folder

i have a inc folder but no plugin folder

any ideas

then how do i activate in admin cp ?

         cheers
Pages: 1 2 3 4
Reference URL's