News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

auto code live links

Started by rakicko, January 03, 2011, 10:55:49 AM

Previous topic - Next topic

rakicko

I found this mod for smf 1.1.8 ..is there any mod for smf 2.0.rc.4?

Masterd

I can create this for. you in the several days.

rakicko

koliko se secam ..ti znas srpski..pa jel bi to naplatio..i ako bi..koliko?

DoctorMalboro

Quote from: rakicko on January 03, 2011, 01:05:02 PMkoliko se secam ..ti znas srpski..pa jel bi to naplatio..i ako bi..koliko?
:o

It can't be that hard actually... i would try to help you if Masterd don't mind me :)

rakicko


Masterd

Quote from: DoctorMalboro on January 03, 2011, 01:25:21 PM
Quote from: rakicko on January 03, 2011, 01:05:02 PMkoliko se secam ..ti znas srpski..pa jel bi to naplatio..i ako bi..koliko?
:o

Serbian language. Croatian and Serbian are almost the same.

DoctorMalboro

./Sources/Subs.php

find:
array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" class="bbc_link new_win" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link new_win" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),


and replace with...
array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" class="bbc_link new_win" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'<pre style="display: inline;">http://</pre>\') !== 0 && strpos($data, \'<pre style="display: inline;">https://</pre>\') !== 0)
$data = \'<pre style="display: inline;">http://</pre>\' . $data;
'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link new_win" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'<pre style="display: inline;">http://</pre>\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),

rakicko


DoctorMalboro

array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<pre style="display: inline;"><a href="$1" class="bbc_link new_win" target="_blank">$1</a></pre>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<pre style="display: inline;"><a href="$1" class="bbc_link new_win" target="_blank">',
'after' => '</a></pre>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),


Try with this...

rakicko

#9
no acctuly ..this work..but some new look my links in code have..thanks man

rakicko

how to make a solved topic ?

Arantor

Can't mark ones solved in this board.


Advertisement: