Registered Links

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

Previous topic - Next topic

vbgamer45

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

admiral888

this mod is reallly useful.  makes it easy to get visitors register to the forums but how can we stop this mod not to hide the links in "in welcome email", "in private messages" and no where else rather than inside the posts such as news section etc.

thank you

vbgamer45

That is tricky currently it checks for links anywhere but I could add a check to just do it on topic or category pages.
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

Biology Forums

vbgamer45, is it possible to limit the functions of this mod so that BBCodes that use URL's are omitted. For instance, I have a BBCode that when applied, links to another website, i.e. [wiki]Something[/wiki]. The "something" links to wikipedia, but I don't want this mod to conflict with this. What could I do to the IF statement so that it omits the BBCode [wiki].

Please Help

vbgamer45

Quote from: shuban on June 27, 2011, 04:34:32 PM
vbgamer45, is it possible to limit the functions of this mod so that BBCodes that use URL's are omitted. For instance, I have a BBCode that when applied, links to another website, i.e. [wiki]Something[/wiki]. The "something" links to wikipedia, but I don't want this mod to conflict with this. What could I do to the IF statement so that it omits the BBCode [wiki].

Please Help
Not easily I had an older version that just focused on the url tags but that did not work correctly in hiding all links so changing to rewriting all links in the post display.
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

Biology Forums

Quote from: vbgamer45 on June 27, 2011, 04:36:10 PM
Quote from: shuban on June 27, 2011, 04:34:32 PM
vbgamer45, is it possible to limit the functions of this mod so that BBCodes that use URL's are omitted. For instance, I have a BBCode that when applied, links to another website, i.e. [wiki]Something[/wiki]. The "something" links to wikipedia, but I don't want this mod to conflict with this. What could I do to the IF statement so that it omits the BBCode [wiki].

Please Help
Not easily I had an older version that just focused on the url tags but that did not work correctly in hiding all links so changing to rewriting all links in the post display.

vbgamer45, could you show me your previous one, perhaps I could get an idea of what you did and try to mimic it. I'm using 1.1.14. Otherwise, I will have to uninstall this mod, which i've used for over a year!

Biology Forums

Here's how my code currently looks like:

// Registered Links
if ($user_info['is_guest'] && $context['current_board'] != '38')
{
$message = preg_replace('#<a href="(.*?)</a>#i', $txt['no_view_links'] . "\n" . ' <a href="' . $scripturl . '?action=register">' . $txt['txt_reg_links_register'] . '</a>&nbsp;' . $txt['txt_reg_links_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['txt_reg_links_login'] . '</a>', $message);
}

// End Registered Links

vbgamer45

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


eric1234

Links

The links in the can still been seen by the guest >.< how to solve this?

vbgamer45

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

eric1234

Then what shall i do? As most of my user posted links was in code tag >.<

eric1234


vbgamer45

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

jonathan1980tr

Is it only for hiding links? Can i also hide pictures using this mod?

vbgamer45

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

cosmicxxx


vbgamer45

You would need to modify the code to check for the $_REQUEST['board']
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


vbgamer45

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

Advertisement: