News:

SMF 2.1.6 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

It works for 1.1.4
You will need to do a manual install
Upload the package to http://www.smfhacks.com/smf-package-parser.html and follow the instructions.
Community Suite for SMF - Grow your forum with 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

foxdie

okay ive did what it said on that page, changing the codes with the ones neccessary and upload the php files overwriting the original ones...but i have this error now:

Parse error: syntax error, unexpected T_IF, expecting ')' in /www/freebiehost.net/f/o/x/foxdie/htdocs/forum/Sources/Subs.php on line 1599


when i chack that line in Subs.php this is whats there:



   (line 1598)   // This is mainly for the bbc manager, so it's easy to add tags above.  Custom BBC should be added above this line.
   (line 1599)   if ($message === false)



i dont understand why "if ($message === false)" code giving an error

foxdie

well, i forgot to mention, it gave me this error first:

Parse error: syntax error, unexpected ';', expecting ')' in /www/freebiehost.net/f/o/x/foxdie/htdocs/forum/Sources/Subs.php on line 1596


so i edited that line and deleted the ";" from there...(its the last line):


array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "&nbsp;" . '<a href="' . $scripturl . '?action=register">Uye</a>&nbsp;olun&nbsp;veya&nbsp;<a href="' . $scripturl . '?action=login">Giris</a>&nbsp;yapin' : '<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'] . "&nbsp;" . '<a href="' . $scripturl . '?action=register">Uye</a>&nbsp;olun&nbsp;veya&nbsp;<a href="' . $scripturl . '?action=login">Giris</a>&nbsp;yapin<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)',
),
array(
'tag' => 'u',
'before' => '<span style="text-decoration: underline;">',
'after' => '</span>',
),
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),
);




after that it gave me the error in my previous post


foxdie


foxdie

wow, all those posts but none cares to check this thread out and help..

foxdie

Quote from: Gobo on August 26, 2006, 09:37:18 AM
hey any chance of extending the capabilities of this mod to do the following:

- Members cant post links unless they have X number of posts (can be enabled or disabled via admin panel)

just for the record, i am also looking for something like this too

holly.celeb.fan

Nice mod working fine..

123kid

Mod works really great thanks for this :) but its not hiding BB CODES for guest :(

Is there a MOD to hide BB CODES for guest [ CODE ]  [ /CODE ]

TIA!!!

foxdie

i think you should add something like this to Subs.php


array( 'tag' => 'code', 'type' => 'unparsed_content', 'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=register">Register</a>&nbsp;or&nbsp;<a href="' . $scripturl . '?action=login">Login</a>' : '<a href="$1">$1</a>', 'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'), ), array( 'tag' => 'icode', 'type' => 'unparsed_equals', 'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=register">Register</a>&nbsp;or&nbsp;<a href="' . $scripturl . '?action=login">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', 'code'), 'disabled_after' => $user_info['is_guest'] ? '' : ' ($1)', ),



notice the
array (
'tag' => 'code',
'type' => 'unparsed_content',

and the

array('email', 'ftp', 'url', 'iurl', 'code')

in the code above

im thinking that might work i dunno
so dont do anything yet til someone who knows how to do it replies

for me, i just wanna see if i got it right or not :)

hoo

where exactly write in this mod to change 'REGISTER' to 'Please register'(colored in green,bold, and font verdana), and also want change the same 'LOGIN' to Please login'.

foxdie

its in Subs.php

and you can use this to change color,font, whatever:


<span style="color: green;"> </span>



hoo

tell me where exactly add this to change view of this text, cause 'Login' i see 4 positions......

foxdie

thats right, you change all 4 of em

ALEJO

can u update this to 2.0 plz? thx
solo el mas paranoico sobrevive

vbgamer45

Waiting for SMF 2.0 to release then will update the mods.
Community Suite for SMF - Grow your forum with 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

Ikhsan4488

can i use this mod for smf 1.1.5?

KameL

Hi, i just installed this mod, and it works great... but i want to hide all the ED2K (eMule) links too. There's a way to do this?
Thanks




OblivionMage

I get this when I try to uninstall;
   Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
2.    Execute Modification    ./Sources/Subs.php    Test successful

1.1.5 Mystic Jade theme
My Sites: MMOqq - Guides, Programs, Discussion
Currently:
Completely redoing forums / site

KameL

Quote from: KameL on May 29, 2008, 09:20:18 PM
Hi, i just installed this mod, and it works great... but i want to hide all the ED2K (eMule) links too. There's a way to do this?
Thanks
Please, Someone can help me with that? I really need it :(




searchgr

Quote from: OblivionMage on June 01, 2008, 05:57:55 PM
I get this when I try to uninstall;
   Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
2.    Execute Modification    ./Sources/Subs.php    Test successful

1.1.5 Mystic Jade theme

Same error here. Can someone help?

Advertisement: