Advertisement:

Author Topic: Registered Links  (Read 224351 times)

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,354
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Registered Links
« Reply #20 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?
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

  • Guest
Re: Registered Links
« Reply #21 on: May 24, 2006, 06:20:16 AM »
Quote
Two 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.

Offline profile

  • Jr. Member
  • **
  • Posts: 149
Re: Registered Links
« Reply #22 on: May 24, 2006, 07:19:38 AM »
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

  • Guest
Re: Registered Links
« Reply #23 on: May 24, 2006, 08:36:57 AM »
Quote
Execute 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. ??

Offline qtime

  • Full Member
  • ***
  • Posts: 501
Re: Registered Links
« Reply #24 on: May 25, 2006, 03:30:43 AM »
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.
« Last Edit: May 25, 2006, 03:36:10 AM by qtime »

Offline Gobo

  • Sr. Member
  • ****
  • Posts: 912
  • Gender: Male
  • Peace Be Upon You
    • Path To Peace
Re: Registered Links
« Reply #25 on: May 25, 2006, 03:59:25 AM »
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

  • Guest
Re: Registered Links
« Reply #26 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.

Offline Skipdawg

  • Sr. Member
  • ****
  • Posts: 895
  • Gender: Male
  • SMF Über Fan!
    • Skipdawg Central
Re: Registered Links
« Reply #27 on: May 26, 2006, 02:48:10 AM »
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

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,354
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Registered Links
« Reply #28 on: May 26, 2006, 11:38:19 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

Offline husmen73 (Gulhin)

  • SMF Hero
  • ******
  • Posts: 3,687
  • Gender: Male
  • Bana ulaşmak için lütfen e-posta gönderin.
    • Gülhin İnternet
Re: Registered Links
« Reply #29 on: May 26, 2006, 12:24:14 PM »
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?

Offline profile

  • Jr. Member
  • **
  • Posts: 149
Re: Registered Links
« Reply #30 on: May 26, 2006, 05:03:03 PM »
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.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,354
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Registered Links
« Reply #31 on: May 26, 2006, 08:53:05 PM »
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

  • Guest
Re: Registered Links
« Reply #32 on: May 27, 2006, 04:04:00 AM »
Quote
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.

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

I have a few mods installed.

Offline Gobo

  • Sr. Member
  • ****
  • Posts: 912
  • Gender: Male
  • Peace Be Upon You
    • Path To Peace
Re: Registered Links
« Reply #33 on: May 27, 2006, 07:24:24 AM »
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

Offline ivo2296

  • Full Member
  • ***
  • Posts: 514
  • Gender: Male
  • SMF Bulgarian Translator
Re: Registered Links
« Reply #34 on: June 05, 2006, 11:33:48 AM »
Sounds very attractive but I'm using smf 1.0.7 - anything about it?

Offline sysengr

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • Ancient Shadows
Re: Registered Links
« Reply #35 on: June 22, 2006, 01:12:41 PM »
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.
-=-=-=-
« Last Edit: June 22, 2006, 01:16:45 PM by sysengr »
AKA: Sarham
http://www.ancientshadows.net [nofollow]

Offline sysengr

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • Ancient Shadows
Re: Registered Links
« Reply #36 on: June 22, 2006, 01:46:23 PM »
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?
« Last Edit: June 22, 2006, 01:48:26 PM by sysengr »
AKA: Sarham
http://www.ancientshadows.net [nofollow]

Offline sysengr

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • Ancient Shadows
Re: Registered Links
« Reply #37 on: June 22, 2006, 01:59:19 PM »
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]

Offline Techdomain

  • Semi-Newbie
  • *
  • Posts: 56
    • Techdomain Australia
Re: Registered Links
« Reply #38 on: June 25, 2006, 11:06:05 PM »
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.

Offline Badboy

  • SMF Hero
  • ******
  • Posts: 1,456
  • Gender: Male
Re: Registered Links
« Reply #39 on: June 26, 2006, 10:08:07 AM »
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
Code: [Select]
<?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
Code: [Select]
<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>
« Last Edit: June 26, 2006, 10:38:42 AM by Badboy »
Nothing is true, everything is permitted.