Poll: Whether this Plugin will Usefull
You do not have permission to vote in this poll.
Yes
100.00%
4 100.00%
No
0%
0 0%
Total 4 vote(s) 100%
* You voted for this item. [Show Results]

Hide post from guest
#1
I want to hide post from guest

Many people visit my Forum only for getting information and download links,

They are not even registering in the forum

I tried other mods like hide link etc... but it is not solving the problem

I seen in one Bulletin software

Like inserted quoted text, inserted formatted code and inserted formatted php code, It is also having inserted hide text

For example
[hide]test[/hide]

I will show as (for guest)

You must be a register user to see this


Thanks is in advance for considering thisSmile......
Reply
#2
I am working on something like this, please give me a couple of days and I will release it.
If you have any request to make regarding this please add your comments here:
Hide from guests
Reply
#3
Hi

This is relatively simple

Download Hidelinks plug in http://mods.mybboard.net/download/hide-l...sts-for-14

open hidelinks.php

look for

 $message = preg_replace("!<a[^>]*(http|www)(.*)</a>!siU", "{$mybb->settings['hidelinks_message']}", $message);
This is at line 111


Add
$post['message'] = preg_replace("/http:\/\/([^\/]+).*/i", "{$mybb->settings['hidelinks_message']}", $post['message']);

Upload hidelinks.php to ur plugin's directory and activate it...

This will solve your problem.


Attached Files Thumbnail(s)
   
Reply
#4
Check this release:
http://community.mybboard.net/thread-44316.html
Reply
#5
this mod is nice. But it is hiding pics only

I need something like if i am creating tutorial it contains both text and images

So i have to hide both text and images also

Pls see below pic

[Image: attachment.php?aid=12579]


Attached Files Thumbnail(s)
   
Reply
#6
(2009-01-29, 04:26 PM)anumalas Wrote: Hi

This is relatively simple

Download Hidelinks plug in http://mods.mybboard.net/download/hide-l...sts-for-14

open hidelinks.php

look for

 $message = preg_replace("!<a[^>]*(http|www)(.*)</a>!siU", "{$mybb->settings['hidelinks_message']}", $message);
This is at line 111


Add
$post['message'] = preg_replace("/http:\/\/([^\/]+).*/i", "{$mybb->settings['hidelinks_message']}", $post['message']);

Upload hidelinks.php to ur plugin's directory and activate it...

This will solve your problem.

do not solve my problem ! why?


Attached Files Thumbnail(s)
   
Reply
#7
Hi

I downloaded Hidelinks plug in http://mods.mybboard.net/download/hide-l...sts-for-14

I also inserted the following code at the lin 111.
$post['message'] = preg_replace("/http:\/\/([^\/]+).*/i", "{$mybb->settings['hidelinks_message']}", $post['message']);

and activated the pluggin and enable hide links in the configuration. But it did not work for me. For guests it still shows message in the thread.

My requirement is hide the message in the thread for the guests/normal users, but wanted to show the title of the thread.

I am using version 1.4.5

Any clue?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)