News:

Join the Facebook Fan Page.

Main Menu

URL POPUP

Started by m-a-d, October 24, 2008, 09:10:55 AM

Previous topic - Next topic

m-a-d

hi every body....!!

plz can somebody provide me URLPOPUP Mod for my Smf 2.0 Beta 4 version.

I will be very thank full!!

Marcus Forsberg

Welcome to SMF, m-a-d!

DO you want a mod that makes links display in a new window?

m-a-d

I think yes

The example of the mod is working on following site...


http://www.iturdu.net [nofollow]

Marcus Forsberg

Sources/Subs.php

Find:
array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1" class="bbc_link">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link">',
'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)',
),


Replace whit:
array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1" class="bbc_link" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'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)',
),

m-a-d

Let me chk

Thanks any way...

m-a-d

Sir:(

i got this error

Parse error: syntax error, unexpected ',' in /home/itmast/public_html/urdudhoom.com/forum/Sources/Subs.php on line 1287

plz help me

Marcus Forsberg

Attach Subs.php, please.

m-a-d

here is the file sir.....

Marcus Forsberg


m-a-d

have u edited this??

or i hv provided wrong file???

Marcus Forsberg

THe file I attached should be the right.

m-a-d

Quote from: Nascar on October 24, 2008, 09:57:53 AM
THe file I attached should be the right.

oh thanks

let me chk

m-a-d

#12
sir

when i logged in with Admin Id.. its work fine and perfect

but

with other Ids or Users can't use this mod...

plz do something


m-a-d

Quote from: m-a-d on October 24, 2008, 10:07:17 AM
sir

when i logged in with Admin Id.. its work fine and perfect

but

with other Ids or Users can't use this mod...

plz do something

any body plzzzzz

greyknight17

#14
Please do not bump your topic within 24 hours time. Be patient as we are all volunteers here.

That code should have worked fine for both members and guests. Can you give us a link to a post where this is not working? We will test it out. You are saying that even guests can't have it open up in new window right? The URL Popup mod does not do this in case you are wondering. It will show a dialog box for you to enter the text instead of typing it in manually like:

[url=http://www.google.com]Google[/url]

Advertisement: