[ABD] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by 4_seven »

all downloads are ok, check your browser and system.
but first try this. this is tested and 100% ok:
http://www.loaditup.de/files/384132.zip
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Galandas
Registered User
Posts: 731
Joined: Thu Jul 23, 2009 4:11 pm
Location: Italy
Name: Rey
Contact:

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by Galandas »

4_seven wrote:all downloads are ok, check your browser and system.
but first try this. this is tested and 100% ok:
http://www.loaditup.de/files/384132.zip
ok thank you for your reply downloaded :D ;)
English is not my native language My CDB Contributions My RC extensions

jasinlee
Registered User
Posts: 10
Joined: Fri Aug 28, 2009 6:43 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by jasinlee »

Hello, I have this mod installed, is there a string or bbcode i can add to the html replacement field to make it hide my custom bbcode links? Currently I have in the html replacement field

Code: Select all

<a href="{URL}" target="_blank">
<img border="0" src="http://www.linkavich.com/images/play.gif" width="70" height="22">{URL}  </a>
<img src="http://www.linkavich.com/images/dead.gif" width="24" height="22">
and in bbcode usage

Code: Select all

[mov]{URL}[/mov]

bloggs
Registered User
Posts: 1
Joined: Fri Oct 02, 2009 3:33 am

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by bloggs »

hi there guys, iv done all the mods here and changed them about a bit to suit my own needs but i was wondering if anyone had any idea of how to stop links from still showing if i enclose them in bbcode such as bold
for example if i post with this;

[URL]http://tvxcodes.comlu.com[/URL]
or just
http://tvxcodes.comlu.com

it blocks them from view of guests. But if i post something like this;

[b]http://tvxcodes.comlu.com[/b]
it shows it in bold as it should but it neither makes it a magic link nor does it hide it from guests.

Any ideas from anyone would be cool, thanks for reading atleast ;-)

Relic30
Registered User
Posts: 11
Joined: Thu Nov 05, 2009 1:16 am

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by Relic30 »

How can we do it using code tag for phpbb 3.5 ?
My styles subsilver2 thanks

Trokal
Registered User
Posts: 399
Joined: Fri Oct 23, 2009 5:13 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by Trokal »

is this mod dead?

jinkazama75
Registered User
Posts: 13
Joined: Sat Nov 28, 2009 11:21 am

Re: [BETA] Simple Hide URL MOD 0.0.2 + Bot FIX (phpBB 3.0.6)

Post by jinkazama75 »

Hi, i've found this mod updated to hide URL also to bot and translated in italian, it works phpbb 3.0.6
I have uploaded it on Megaupload if someone need it
http://www.megaupload.com/?d=EW1Z6XN1

I need help to add images hide to this mod, someone can help me?
Thank you

Code: Select all

Open: includes/bbcode.php
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
					$this->bbcode_cache[$bbcode_id] = array(
						'preg' => array(
							'#\[url:$uid\]((.*?))\[/url:$uid\]#s'			=> $this->bbcode_tpl('url', $bbcode_id),
							'#\[url=([^\[]+?):$uid\](.*?)\[/url:$uid\]#s'	=> $this->bbcode_tpl('url', $bbcode_id),
						)
					);
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
					if ($user->data['user_id'] != ANONYMOUS && $user->data['group_id'] != 6)
					{
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
					}
					else
					{
						$this->bbcode_cache[$bbcode_id] = array(
							'preg' => array(
								'#\[url:$uid\].*?\[/url:$uid\]#s'			=> $this->bbcode_tpl('url_hidden', $bbcode_id),
								'#\[url=[^\[]+?:$uid\].*?\[/url:$uid\]#s'	=> $this->bbcode_tpl('url_hidden', $bbcode_id),
							)
						);
					}

Code: Select all

Open: language/en/viewtopic.php
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
));

?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
	'URL_HIDDEN'			=> 'URL is hidden from guests, please register and login to view the hyperlink',

Code: Select all

Open: styles/prosilver/template/bbcode.html
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
<!-- BEGIN url --><a href="{URL}" class="postlink">{DESCRIPTION}</a><!-- END url -->
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
<!-- BEGIN url_hidden -->{L_URL_HIDDEN}<!-- END url_hidden -->

whocarez
Registered User
Posts: 146
Joined: Sat Apr 18, 2009 9:19 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by whocarez »

I have only a short question.
How to make this mod work only in some forums?

whocarez
Registered User
Posts: 146
Joined: Sat Apr 18, 2009 9:19 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by whocarez »

First: I´m not a programmer!
Can someone help me figure out, how to write this, to make hide only working in some forums? I know, that this code is logical contrariwise to the original mod, but it is for me more graspable in this way.
For short: What´s wrong? Where to take the forum_id variable for comparison?

Code: Select all

       
                                if ($user->data['user_id'] == ANONYMOUS && $session_forum_id == 8)
                                        { $this->bbcode_cache[$bbcode_id] = array(
                                        'preg' => array(
                                        '#\[url:$uid\].*?\[/url:$uid\]#s'                       => $this->bbcode_tpl('url_hidden', $bbcode_id),
                                        '#\[url=[^\[]+?:$uid\].*?\[/url:$uid\]#s'       => $this->bbcode_tpl('url_hidden', $bbcode_id),
                                        )
                                        );
                                        }
                                        else
                                        {


                                        $this->bbcode_cache[$bbcode_id] = array(
                                                'preg' => array(
                                                        '#\[url:$uid\]((.*?))\[/url:$uid\]#s'                   => $this->bbcode_tpl('url', $b$
                                                        '#\[url=([^\[]+?):$uid\](.*?)\[/url:$uid\]#s'   => $this->bbcode_tpl('url', $bbcode_id$
                                                )
                                        );
                         }

Thanks ...

Update

My solution goes like this:

Code: Select all

// hide url mod
                                $forum_id       = request_var('f',0);
                                if ($user->data['user_id'] == ANONYMOUS && $forum_id == 8)
                                        { $this->bbcode_cache[$bbcode_id] = array(
                                        'preg' => array(
                                        '#\[url:$uid\].*?\[/url:$uid\]#s'                       => $this->bbcode_tpl('url_hidden', $bbcode_id),
                                        '#\[url=[^\[]+?:$uid\].*?\[/url:$uid\]#s'       => $this->bbcode_tpl('url_hidden', $bbcode_id),
                                        )
                                        );
                                        }
                                        else
                                        {
                                        // hide url mod

                                        $this->bbcode_cache[$bbcode_id] = array(
                                                'preg' => array(
                                                        '#\[url:$uid\]((.*?))\[/url:$uid\]#s'                   => $this->bbcode_tpl('url', $b$
                                                        '#\[url=([^\[]+?):$uid\](.*?)\[/url:$uid\]#s'   => $this->bbcode_tpl('url', $bbcode_id$
                                                )
                                        );
                                        // hide url mod
                                        }
                                // hide url mod

UpTeam-Tuga
Registered User
Posts: 6
Joined: Wed Apr 14, 2010 5:40 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by UpTeam-Tuga »

Muad''Dib wrote: Open: styles/prosilver/template/bbcode.html and find:

Code: Select all

<!-- BEGIN code_open --><dl class="codebox"><dt>{L_CODE}: <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code><!-- END code_open -->
<!-- BEGIN code_close --></code></dd></dl><!-- END code_close -->
Add After:

Code: Select all

<!-- BEGIN code_hidden -->{L_CODE_HIDDEN}<!-- END code_hidden -->
Save and close bbcode.html.

Upload all changed files, purge cache, and your all set!

I hope that helps someone!
How adapt this code for subsilver2?

Thanks :D

abdul_sma
Registered User
Posts: 6
Joined: Thu Jun 03, 2010 12:34 pm

Re: [BETA] Simple Hide URL MOD 0.0.1 (phpBB3 GOLD)

Post by abdul_sma »

i did everything you have mentioned in this post. I have posted some links in the topic and i dont see them as a guest. but i am also not getting the message which should say something like "CODE is hidden from guests, please register and login to view the code"

Locked

Return to “[3.0.x] Abandoned MODs”