Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Hide Links in Post to users who haven't replied
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #21
RE: Hide Links in Post to users who haven't replied
^ The plugin works with [hide] tags.
I wouldn't know why it isn't working for you.

Maybe some conflict with another plugin?

My Blog
03-30-2008 04:20 PM
Find all posts by this user
TriTop
Unregistered
 
Post: #22
RE: Hide Links in Post to users who haven't replied
Yes it does. The mistake sit behind keyboard (me). Sorry for that.
03-31-2008 05:43 PM
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #23
RE: Hide Links in Post to users who haven't replied
To make things simple (ie not a conflict) try installing the plugin on a clean install of MyBB, and see if it works.

My Blog
03-31-2008 08:10 PM
Find all posts by this user
Guest
Unregistered
 
Post: #24
RE: Hide Links in Post to users who haven't replied
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
05-06-2008 06:09 AM
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Hide Links in Post to users who haven't replied
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...

My Blog
05-06-2008 08:14 AM
Find all posts by this user
Guest
Unregistered
 
Post: #26
RE: Hide Links in Post to users who haven't replied
Thanks for your help but it did not work when you have the time could you let me know please


thanks
05-06-2008 08:52 AM
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #27
RE: Hide Links in Post to users who haven't replied
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.


My Blog
05-07-2008 12:26 AM
Find all posts by this user
darkside Offline
Junior Member
**
Posts: 1
Joined: May 2008
Post: #28
RE: Hide Links in Post to users who haven't replied
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.
05-18-2008 11:21 PM
Find all posts by this user
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #29
RE: Hide Links in Post to users who haven't replied
Im not ZiNgA BuRgA, but I know it is exactly what you want. Wink

Regards
TriTop
05-19-2008 05:23 PM
Find all posts by this user
Guest
Unregistered
 
Post: #30
RE: Hide Links in Post to users who haven't replied
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
06-20-2008 11:20 PM

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: