News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Registered Links

Started by SMFHacks.com Team, May 18, 2006, 07:42:31 PM

Previous topic - Next topic

vbgamer45

Seems like you need to replace subs.php with the backup. Did you get any unistall errors?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

aussieholden

QuoteTwo issues:

1- After I uninstalled, I tried to view as guest, but no links are visible.  Does that mean that it didn't uninstall cleanly?

2- I decided to install the package again, but when I applied the mod, it gives me the following error:

Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
Execute Modification    ./Sources/Subs.php    Test failed

Please help.

I have the same problem but It has affected the links in the forums as they don't load the url typed instead loads a new blank window.

profile

Quote from: vbgamer45 on May 23, 2006, 10:04:19 PM
Seems like you need to replace subs.php with the backup. Did you get any unistall errors?

Is the subs.php backup the one named subs.php~?  If it is, it didn't seem to help.  There were no uninstall errors.

aussieholden

QuoteExecute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
Execute Modification    ./Sources/Subs.php    Test failed

I got this with both Install and Uninstall like it wasn't RC2 compatable. ??

qtime

#24
Thx it took some time to understand, but it it´s a great way to attract more registrated members to my board!!!
thank you very much for this mod.

Some nice features will be
visible for some boards and also usefull for different membercategories.

Gobo

oh thank u so much!!

this is great mod - i have been wanting this one for ages and ages and even asked a few times - thank u so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :'( (tears of joy)

aussieholden

Can I get some help here please members are getting irate that they can't click on other members weblinks in post's.

Skipdawg

Would it be to difficult to tweak it to where it would ignore links in the signature?
Skipdawg's Community

Powered by SMF 1.1.3

vbgamer45

Quote from: aussieholden on May 26, 2006, 02:34:32 AM
Can I get some help here please members are getting irate that they can't click on other members weblinks in post's.
If you have no other mods. You can just download smf 1.1 rc2 and upload subs.php. Otherwise open reglinks.xml find the code for subs.php and update your subs.php with the orginal code.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

husmen73 (Gulhin)

Super mod ;)

Thanks vbgamer45.
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

profile

Since I'm not a coder, I would like to ask if it's possible and how hard it would be to use it for all links (ftp link, email link, image link), not just hyperlink.

vbgamer45

Not that hard just not sure how I would package that.

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

aussieholden

QuoteIf you have no other mods. You can just download smf 1.1 rc2 and upload subs.php. Otherwise open reglinks.xml find the code for subs.php and update your subs.php with the orginal code.

Got me lost on reglinks.xml were is this file.

I have a few mods installed.

Gobo

ok a few problems are arising

1. Signature links are disabled as well

2. If I place a link in the "user license agreement" to "forum rules" it gets disabled as well

>> I have my user license agreement like this:

By Registering An account on this site you agree to abide by the FORUM RULES <-----thats a link

But it dissapears if viewing as a guest

Apart from that its an awesome mod and I LOVE IT

Thank u so much

ivo2296

Sounds very attractive but I'm using smf 1.0.7 - anything about it?

sysengr

#35
I really need to get this mod off my web site.  Does anyone have anything specific on how to remove this mod cleanly and properly?

BTW:  This Mod does work fantastic and does exactly what it says.  It just needs an off button.

Vbgamer just sent me the answer I needed..  Thank you!!!

-=-=-=-
No option to turn it off.
If it just fails on modifications.english.php then you can saftely unistall it else you need to unistall it manually.
-=-=-=-
AKA: Sarham
http://www.ancientshadows.net [nofollow]

sysengr

#36
My only error was the one about english, and I unstalled it.

Now SMF is not showing any links at all, (even as the Admin and logged in).  If you click modify a message, you can see the links, but they do not show up inthe saved forum display at all.  If you place the link in a [URL] it always goes to about:blank now.  I am dead in the water. 

Can anyone assist please?
AKA: Sarham
http://www.ancientshadows.net [nofollow]

sysengr

Nevermind...

I went ahead and also replaced my Subs.php file in my sources directory and all seems to be well.
AKA: Sarham
http://www.ancientshadows.net [nofollow]

Techdomain

I am having big problems with this... it has made all my links disappear, to guests and admin.

either that, or they redirect to the originating page, which is useless...

any help/thoughts would be good.

Badboy

#39
Great mod vbgamer45...

I modified mod for ftp, email, flash and img...

And there was a problem with uninstall because of xml and i changed into mod file...

And make some changes to translate it simple


package-info.xml
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>vbgamer45:RegLinks</id>
<name>Registered Links</name>
<type>modification</type>
<version>1.0</version>

<install for="1.1 RC2">
<readme>ReadMe.txt</readme>
<modification type="file" format="boardmod">reglinks.mod</modification>
</install>

<uninstall for="1.1 RC2">
<modification format="boardmod" type="file" reverse="true">reglinks.mod</modification>
</uninstall>

</package-info>


reglinks.mod
<id>
vbgamer45:RegLinks
</id>

<version>
1.0
</version>

<author>
vbgamer45
</author>

<mod info>
vbgamer45
</mod info>

<edit file>
$languagedir/Modifications.english.php
</edit file>
<search for>
?>
</search for>
<add before>
//BEGIN Reg Links Text Strings
$txt['no_view_links'] = 'You are not allowed to view links.';
$txt['no_view_view'] = 'To view links';
$txt['no_view_register'] = 'Register';
$txt['no_view_or'] = 'or';
$txt['no_view_login'] = 'Login';
//END Reg Links Text Strings
</add before>

<edit file>
$sourcedir/Subs.php
</edit file>
<search for>
array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (substr($data, 0, 1) == \'#\')
$data = \'#post_\' . substr($data, 1);'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
</search for>
<replace>
array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a href="$1">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a><div style="visibility:hidden">' : '<a href="$1">',
'after' => $user_info['is_guest'] ?  '</div>' : '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (substr($data, 0, 1) == \'#\')
$data = \'#post_\' . substr($data, 1);'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => $user_info['is_guest'] ?  '' :  ' ($1)',
),
</replace>

<search for>
array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" target="_blank">',
'after' => '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
</search for>
<replace>
array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a><div style="visibility:hidden">' : '<a href="$1" target="_blank">',
'after' => $user_info['is_guest'] ?  '</div>' : '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => $user_info['is_guest'] ?  '' : ' ($1)',
),
</replace>
<search for>
array(
'tag' => 'ftp',
'type' => 'unparsed_content',
'content' => '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'ftp',
'type' => 'unparsed_equals',
'before' => '<a href="$1" target="_blank">',
'after' => '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
</search for>
<replace>
array(
'tag' => 'ftp',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'ftp',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a><div style="visibility:hidden">' : '<a href="$1" target="_blank">',
'after' => $user_info['is_guest'] ?  '</div>' : '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => $user_info['is_guest'] ?  '' : ' ($1)',
),
</replace>
<search for>
array(
'tag' => 'email',
'type' => 'unparsed_content',
'content' => '<a href="mailto:$1">$1</a>',
// !!! Should this respect guest_hideContacts?
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'email',
'type' => 'unparsed_equals',
'before' => '<a href="mailto:$1">',
'after' => '</a>',
// !!! Should this respect guest_hideContacts?
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
</search for>
<replace>
array(
'tag' => 'email',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a href="mailto:$1">$1</a>',
// !!! Should this respect guest_hideContacts?
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'email',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a><div style="visibility:hidden">' : '<a href="mailto:$1">',
'after' => $user_info['is_guest'] ?  '</div>' : '</a>',
// !!! Should this respect guest_hideContacts?
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => $user_info['is_guest'] ?  '' : ' ($1)',
),
</replace>
<search for>
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
</search for>
<replace>
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => $user_info['is_guest'] ?  '' : '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => $user_info['is_guest'] ?  '' : '($1)',
),
</replace>
<search for>
array(
'tag' => 'flash',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$2" height="$3"><param name="movie" value="$1" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="never" /><embed src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>' : '<embed type="application/x-shockwave-flash" src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed>'),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
</search for>
<replace>
array(
'tag' => 'flash',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '' . $txt['no_view_view'] . '&nbsp;<a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a>&nbsp;' . $txt['no_view_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$2" height="$3"><param name="movie" value="$1" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="never" /><embed src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>' : '<embed type="application/x-shockwave-flash" src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed>'),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => $user_info['is_guest'] ?  '' : '<a href="$1" target="_blank">$1</a>',
),
</replace>
Nothing is true, everything is permitted.

Advertisement: