Advertisement:

Author Topic: auto code live links  (Read 2632 times)

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
auto code live links
« on: January 03, 2011, 10:55:49 AM »
I found this mod for smf 1.1.8 ..is there any mod for smf 2.0.rc.4?

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,895
  • Gender: Male
Re: auto code live links
« Reply #1 on: January 03, 2011, 12:52:27 PM »
I can create this for. you in the several days.

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
Re: auto code live links
« Reply #2 on: January 03, 2011, 01:05:02 PM »
koliko se secam ..ti znas srpski..pa jel bi to naplatio..i ako bi..koliko?

Offline DoctorMalboro

  • SMF Hero
  • ******
  • Posts: 9,084
  • Gender: Male
  • うまいいいいいい!!!!!
    • @DoctorMalboro on Twitter
    • Personal website
Re: auto code live links
« Reply #3 on: January 03, 2011, 01:25:21 PM »
koliko 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 :)

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
Re: auto code live links
« Reply #4 on: January 03, 2011, 01:29:18 PM »
great..can you help me?

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,895
  • Gender: Male
Re: auto code live links
« Reply #5 on: January 03, 2011, 01:32:01 PM »
koliko se secam ..ti znas srpski..pa jel bi to naplatio..i ako bi..koliko?
:o


Serbian language. Croatian and Serbian are almost the same.

Offline DoctorMalboro

  • SMF Hero
  • ******
  • Posts: 9,084
  • Gender: Male
  • うまいいいいいい!!!!!
    • @DoctorMalboro on Twitter
    • Personal website
Re: auto code live links
« Reply #6 on: January 03, 2011, 01:39:15 PM »
./Sources/Subs.php

find:
Code: [Select]
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...
Code: [Select]
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)',
),

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
Re: auto code live links
« Reply #7 on: January 03, 2011, 05:34:22 PM »
nothing..still the same

Offline DoctorMalboro

  • SMF Hero
  • ******
  • Posts: 9,084
  • Gender: Male
  • うまいいいいいい!!!!!
    • @DoctorMalboro on Twitter
    • Personal website
Re: auto code live links
« Reply #8 on: January 03, 2011, 06:07:20 PM »
Code: [Select]
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...

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
Re: auto code live links
« Reply #9 on: January 03, 2011, 06:37:39 PM »
no acctuly ..this work..but some new look my links in code have..thanks man
« Last Edit: January 03, 2011, 08:25:39 PM by rakicko »

Offline rakicko

  • Full Member
  • ***
  • Posts: 418
  • Gender: Male
  • Have fun!
    • http://
Re: auto code live links
« Reply #10 on: January 03, 2011, 08:26:02 PM »
how to make a solved topic ?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,283
    • StoryBB/StoryBB on GitHub
Re: auto code live links
« Reply #11 on: January 04, 2011, 03:55:29 AM »
Can't mark ones solved in this board.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,895
  • Gender: Male
Re: auto code live links
« Reply #12 on: January 04, 2011, 07:50:46 AM »