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 this
......
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
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.
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
(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?
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?