Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Rohan_ on May 29, 2009, 05:05:11 PM

Title: Automatically Code a Link
Post by: Rohan_ on May 29, 2009, 05:05:11 PM
Please tell me how can i do this.. i wanna make a setting that if anyone post a url it automatically can change in code not in a link:) i am using 1.1.8
Title: Re: Automatically Code a Link
Post by: MrPhil on May 29, 2009, 07:40:45 PM
I'm not quite following your request. Could you give an example of how you would like this to work?
Title: Re: Automatically Code a Link
Post by: Mraza on May 29, 2009, 07:46:52 PM
you mean if somebody will type like this :

http://www.simplemachines.org

it will become like this:

http://www.simplemachines.org


????
Title: Re: Automatically Code a Link
Post by: Rohan_ on May 30, 2009, 05:00:17 PM
yeah mraza i want like this .. if anyone post a url e.g www.abc.com it will convert to www.abc.com automatically .... how can i do this ?
Title: Re: Automatically Code a Link
Post by: kat on May 30, 2009, 05:16:46 PM
Simple. Use the "Censored words" feature.  :)

You'd probably have to make quite a few entries, though.
Title: Re: Automatically Code a Link
Post by: MrPhil on May 30, 2009, 05:39:32 PM
Whenever someone types in a URL that would otherwise automatically be made into a link, you want to 1) turn it into a CODE block per your example, or 2) just suppress its turning into a link and leave it as plain text? I don't know of any built-in way to do either, but it should be possible for a mod that does either.

If you want to do it on a case-by-case basis, [nobbc]www.abc.com[/nobbc] may do the job for you. If you want all cases not changed into links, it will probably require a mod.
Title: Re: Automatically Code a Link
Post by: kat on May 30, 2009, 05:47:53 PM
I was thinking along the lines of substituting "http://" with "{code}http://" and ".com" with ".com{code}" and the like.

Depends how far you want to take that, I guess.

They do that kinda thing on wa*ez sites.



Or, so I'm told. ;)
Title: Re: Automatically Code a Link
Post by: NHWD on May 30, 2009, 06:31:22 PM
theres already a mod that does tha for you
http://custom.simplemachines.org/mods/index.php?mod=1724
Title: Re: Automatically Code a Link
Post by: Mraza on May 30, 2009, 09:23:37 PM
Quote from: CL0WNER on May 30, 2009, 06:31:22 PM
theres already a mod that does tha for you
http://custom.simplemachines.org/mods/index.php?mod=1724

that was already done !!!! ;)
Title: Re: Automatically Code a Link
Post by: greyknight17 on June 29, 2009, 07:27:35 PM
Rohan_, did you try the above mentioned mod? It seems to be exactly what you need.

I will mark this topic as solved. If you still have problems, feel free to mark it as unresolved again.
Title: Re: Automatically Code a Link
Post by: Rohan_ on June 30, 2009, 04:58:16 AM
thats not exactly i  want ...

i want if the links are like this ..

www.abc.com
www.abc.com
www.abc.com
www.abc.com

... see there is no space after a link line they are continues so i want them in a single code block . and if someone posts like this


www.abc.com

www.abc.com

www.abc.com

.. so i want these in different code blocks coz there is space after every url
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 05:56:57 AM
please help me
Title: Re: Automatically Code a Link
Post by: kat on July 02, 2009, 09:50:33 AM
I really don't understand, at all.

Mind you, being old, posts without punctuation confuse me, anyway. ;)
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 02:32:56 PM
hey i mean if someone posts links without hitting enter after every link like this

www.a.com
www.a.com

these are the links  without space so i want them in single code block  like this
www.a.com
www.a.com


and if someone post link with hitting enter like this

www.a.com

www.a.com

there is space after every link so i want them in different code blocks like this
www.a.com

www.a.com
Title: Re: Automatically Code a Link
Post by: kat on July 02, 2009, 02:37:44 PM
If I've got you right, I think I'd still use censored words.

If you substitute, say "www." with "{code}www." (Using squared brackets, obviously) and ".com" with ".com{/code}", that would work, I think.

Obviously, you'd have to cover .org sites and any others you might use.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 03:20:47 PM
noo it cant work coz if the link is
http://rapidshare.com/files/250895851/xxxxxxxx.xxx

so its not come in code block ....

ok just give me a trick to code all my links in a single block . like this

www.a.com
www.a.com
www.a.com

TO

www.a.com
www.a.com
www.a.com
Title: Re: Automatically Code a Link
Post by: kat on July 02, 2009, 03:55:54 PM
Without some coding, I don't think you can.

If you run the sort of forum that I think you do, it might be better to use this:

http://custom.simplemachines.org/mods/index.php?mod=228

You'll still need to make your members use it, though.

EDIT:

Aren't RS links all ended with "html"?

If so, you could still use the censoring, to achieve that.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 04:28:24 PM
RS links end with the extension of the file we upload ..

its not only the RS matter .. there are lot of File Hosts ..

my friend haves a Vb forum  and when i post a link it will automatically get coded .. i want that in my smf .. please find a way . thanks
Title: Re: Automatically Code a Link
Post by: kat on July 02, 2009, 04:46:25 PM
Actually, I think you're most likely to get the help you want in the coding board.

http://www.simplemachines.org/community/index.php?board=60.0

Want me to move this to that board, for you?
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 05:40:23 PM
i dont know about that move it if u like .. i just need that option :) and u are the boss
Title: Re: Automatically Code a Link
Post by: kat on July 02, 2009, 05:45:59 PM
Well, they're clever in here, so you might just get lucky.  :)
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 02, 2009, 06:08:27 PM
thanx very much . i m waiting here 4 someone ;D
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 04, 2009, 05:46:38 PM
 :( :( :( :(
Title: Re: Automatically Code a Link
Post by: Arantor on July 04, 2009, 06:09:06 PM
If you're using 2.0, find Sources/Subs.php, and find this block:


if (!isset($disabled['url']) && (strpos($data, '://') !== false || strpos($data, 'www.') !== false))
{
// Switch out quotes really quick because they can cause problems.
$data = strtr($data, array(''' => '\'', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0", '&quot;' => '>">', '"' => '<"<', '&lt;' => '<lt<'));
$data = preg_replace(array('~(?<=[\s>\.(;\'"]|^)((?:http|https|ftp|ftps)://[\w\-_%@:|]+(?:\.[\w\-_%]+)*(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\]?)~i', '~(?<=[\s>(\'<]|^)(www(?:\.[\w\-_]+)+(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $data);
$data = strtr($data, array('\'' => ''', $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;', '>">' => '&quot;', '<"<' => '"', '<lt<' => '&lt;'));
}


Replace it with:

if (!isset($disabled['url']) && (strpos($data, '://') !== false || strpos($data, 'www.') !== false))
{
// Switch out quotes really quick because they can cause problems.
$data = strtr($data, array(''' => '\'', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0", '&quot;' => '>">', '"' => '<"<', '&lt;' => '<lt<'));
$data = preg_replace(array('~(?<=[\s>\.(;\'"]|^)((?:http|https|ftp|ftps)://[\w\-_%@:|]+(?:\.[\w\-_%]+)*(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\]?)~i', '~(?<=[\s>(\'<]|^)(www(?:\.[\w\-_]+)+(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'), array('[CODEBBC]$1[/CODEBBC]', '[CODEBBC]$1[/CODEBBC]'), $data);
$data = strtr($data, array('\'' => ''', $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;', '>">' => '&quot;', '<"<' => '"', '<lt<' => '&lt;'));
}


Note you have to edit CODEBBC and make that code instead otherwise it doesn't get posted correctly.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 04, 2009, 06:16:04 PM
i am using 1.1.8 ......

please read my post in this topic that what i want
Title: Re: Automatically Code a Link
Post by: Arantor on July 04, 2009, 07:11:35 PM
First up, don't use 1.1.8, it has a security hole. Secondly I'm sorry I didn't read every single post in this thread, I thought I'd just try and answer it quickly for you.

However if you checked Subs.php you'd actually find that the code is the same. I did fix the posting error in my post above which would make it easier for you.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 05, 2009, 04:27:41 AM
is that do like this ..

if someone posts links without hitting enter after every link like this

www.a.com
www.a.com

these are the links  without space so i want them in single code block  like this
www.a.com
www.a.com


and if someone post link with hitting enter like this

www.a.com

www.a.com

there is space after every link so i want them in different code blocks like this
www.a.com

www.a.com
Title: Re: Automatically Code a Link
Post by: Arantor on July 05, 2009, 05:21:09 AM
That's not what you asked for earlier on unless I really really misread you.

And is a *lot* more work.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 05, 2009, 05:39:51 AM
is this possible :( ..

my friend have a vb forum and if i post a link there so it automatically changes in codes like i said earlier
Title: Re: Automatically Code a Link
Post by: Arantor on July 05, 2009, 05:40:44 AM
Oh it's possible, but is an awful lot of work. And I do mean a *lot* of work.

I don't have time right now to sit and write the code to come up with this.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 05, 2009, 05:49:42 AM
hmm okay ill wait for ur time ... whenever u get time do this for me .. i am waiting :)

and thanks a ton for helping me in my lot of topics
Title: Re: Automatically Code a Link
Post by: [SiNaN] on July 14, 2009, 04:57:54 AM
They are each different links, no matter there is a space, line break or something different. You need to spend a reasonable amount of time to achieve it and I -personally- don't think it is worth to it. You may want to try Help Wanted (not for support) (http://www.simplemachines.org/community/index.php?board=50.0) board.
Title: Re: Automatically Code a Link
Post by: Rohan_ on July 14, 2009, 05:20:01 AM
ok so i updated to 1.1.9 now .. any other way to get this option or we have to leave it ??
Title: Re: Automatically Code a Link
Post by: [SiNaN] on July 15, 2009, 09:47:13 AM
Read my post above. ;)
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 01:20:00 PM
Please help me .. now i am really in need for this feature .. i am giving a example again .. please help me

example .. if i post www.abc.com so it must be coded in single code box like this
www.abc.com

if i post www.abc.com
www.abc.com
www.abc.com
so i want these 3 links in single box too like this
www.abc.com
www.abc.com
www.abc.com


and if i post like
www.abc.com
and mirror
www.abc.com

so now the links got a text between then now i want them in diff boxes but and mirror not to be coded .. like this
www.abc.com
and mirror
www.abc.com

There are lot of SMF users who wants this feature .. so dont think you are doing this only for me .. i promise you will get a big thanks from a lot of people
Title: Re: Automatically Code a Link
Post by: Arantor on September 02, 2009, 01:24:23 PM
This would be a big job to do reliably.

I may take a look at this - but NOT for a while, please do not bump me about it because if I do it, it will probably be a paid-for mod, given how much work I think will be involved in doing it.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 01:37:47 PM
Arantor Please Please do this for me .. u do a lot of work here .. this is the big thing that i needed in my forum i really need this .. just do this for me i dont want any other helps about my forum .. i will not disturb u again .. and i am very sorry i really can't pay because i dont have any way to pay online . there are a lot of SMF users who want this feature not only me.. PLease Do this PLEASE i Beg you
Title: Re: Automatically Code a Link
Post by: Joshua Dickerson on September 02, 2009, 01:39:00 PM
Wow, www.php.net start there.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 08:44:05 AM
Quote from: groundup on September 02, 2009, 01:39:00 PM
Wow, www.php.net start there.

What?
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 09:05:18 AM
Arantor .. You helped me a lot .. just this one more .. i am starting to add ads and donation system in my site and my site is getting popular .. whenever i get money i promise i will give you 100$ .. its my promise for all your help :) Please do this
Title: Re: Automatically Code a Link
Post by: MrPhil on September 02, 2009, 12:29:29 PM
Rohan, what are you trying to accomplish by turning URLs into [code] blocks? Are you trying to set off a link into something distinctive looking, or simply trying to keep them from turning into valid links? If the latter, the easiest way is to wrap them in [nobbc] tags. The next easiest way would be to modify SMF so that "bare" URLs without a [url] or [iurl] tag don't get turned into links. I haven't looked around, but there must be something in SMF to detect a URL and issue <a href="... you would just disable that feature. Do you want any "bare" URL (e.g., embedded in a sentence) to be so disabled, or just those all by themselves, one to a line?

I'm just trying to think if there may be an easier way to meet your objective than to detect all lone "bare" URLs and wrap [code] around them. If one could find the code in SMF to locate a bare URL and turn it into a link, I suppose it could instead be turned into a <span style="background-color: #CCCCFF; border: solid 1px black;">bare URL</span>. Of course, that would work in-line, but the box would not stretch clear across the page (maybe that could be done with some additional CSS in the style).
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 05:32:49 PM
MrPhil ... i need as i said .. please
Title: Re: Automatically Code a Link
Post by: Arantor on September 02, 2009, 06:11:34 PM
First up, a bare link is converted into [url][/url] tags in Subs.php.

So the first mod would be to convert url tags to not display as url tags, but display much like code tags.

Then the trick is to figure out how to unify them together. This is a modification that affects every aspect of the bbcode processing system, and if done incorrectly will break your forum very very badly.

I'm still not sure why you need this, but I'll add it to my to do list for 'sometime'. I cannot and will not guarantee a time, but I can guarantee it'll be a paid-for mod when I do it.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 02, 2009, 10:19:29 PM
Arantor :( Please Big Bro i cant pay now i really dont have money online anywhere .. whenever i get money i will pay you .. Please Please do it for me ..
Title: Re: Automatically Code a Link
Post by: Joshua Dickerson on September 03, 2009, 06:54:48 AM
Stop begging. I am pretty sure he said NOT to bump him.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 03, 2009, 07:07:26 AM
:(:(:(:( Please
Title: Re: Automatically Code a Link
Post by: Arantor on September 03, 2009, 07:21:56 AM
Rohan_, I specifically asked NOT to be bumped because I have other things on. Repeatedly posting in this thread won't make it happen any faster.

Please do NOT keep bumping this thread. I am not inviting further discussion on doing this at this time because no discussion is necessary. I will look at it as time permits, no sooner no matter how much you ask.

If you persist in asking I will lock this thread because it serves no purpose to keep bumping.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 03, 2009, 08:40:49 AM
i didn't bumped in any post i just replied to other poster without quoting .. as a Friend or as a Younger Bro i just can request you . i cant do anything more than requesting . so i am saying again that please do this A S A P
Title: Re: Automatically Code a Link
Post by: Arantor on September 20, 2009, 01:03:42 PM
Are you still in need of this?

To be honest, I'm not sure of its purpose, but I think you would be able to achieve it by adding a quick check to Subs.php's parse_bbc function.

What exactly happens right now with your URL tags?
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 20, 2009, 03:18:35 PM
they just convert in a clickable link .. but i want my links in code blocks ( also not clickable )
Title: Re: Automatically Code a Link
Post by: Arantor on September 20, 2009, 04:39:09 PM
So did you use the tips earlier in this thread to make them into code blocks?

I'm still not entirely sure what the benefit of doing this is, by the way.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 12:15:45 AM
what tips ? there is no way to do this yet
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 02:54:42 AM
Really?

Funny that, since I actually answered that point... um... 2 months ago (http://www.simplemachines.org/community/index.php?topic=314117.msg2143837#msg2143837).
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 03:20:58 AM
what about this http://www.simplemachines.org/community/index.php?topic=314117.msg2144321#msg2144321

and this
http://www.simplemachines.org/community/index.php?topic=314117.msg2144357#msg2144357
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 03:29:39 AM
My question was about moving individual links into code blocks, nothing more. Which as far as I can see the tips I already gave you would do just that.

Is that not the case?
Title: Re: Automatically Code a Link
Post by: SAFAD on September 21, 2009, 04:01:16 AM
yes Arnator this is what i think he is talking about
else i think he wan't some css touches to make some cool boxs around the link
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 04:05:50 AM
Oh, I know what he wants. I'm just trying to work out if he's applied the first half of the tip that would simplify matters going forward.
Title: Re: Automatically Code a Link
Post by: SAFAD on September 21, 2009, 04:09:11 AM
You Are The Man  :)
P.S: Don't Even Think About It ;)
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 04:12:32 AM
The irony is that I still don't really understand the benefit or need, though I'm well aware of other sites that use something similar and can't help but wonder if it is for a particular style of site I do not care for.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 06:15:09 AM
Note you have to edit CODEBBC and make that code instead otherwise it doesn't get posted correctly. 


? u mean to change codebbc to code ?

and i think that code is for 2.0 but i am using 1
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 06:25:47 AM
i got this after doing this .. i changed the CODEBBC to code

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'


EDIT : well i just changed the url tag to code tag in the code u provided with my default code and no errors .. all links are getting coded .. but every link make a separate block .. :( i think u understand how i want them
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 06:52:26 AM
Yes, because you cannot quote [code] inside a code tag (because [/code] ends the tag!), so I had to use a different tag that you could copy.

And in fact, BBcode handling between 1.1 and 2.0 is almost identical, when I'm writing mods with BBcode I just copy/paste the code.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 06:53:38 AM
so please tell me what do i need to do now
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 06:55:55 AM
So have you made that change and what result does it give you for URLs?
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 07:21:55 AM
ya i made the change see it for yourself

before
if (!isset($disabled['url']) && (strpos($data, '://') !== false || strpos($data, 'www.') !== false))
{
// Switch out quotes really quick because they can cause problems.
$data = strtr($data, array(''' => '\'', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0", '&quot;' => '>">', '"' => '<"<', '&lt;' => '<lt<'));
$data = preg_replace(array('~(?<=[\s>\.(;\'"]|^)((?:http|https|ftp|ftps)://[\w\-_%@:|]+(?:\.[\w\-_%]+)*(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i', '~(?<=[\s>(\'<]|^)(www(?:\.[\w\-_]+)+(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $data);
$data = strtr($data, array('\'' => ''', $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;', '>">' => '&quot;', '<"<' => '"', '<lt<' => '&lt;'));
}


After
if (!isset($disabled['url']) && (strpos($data, '://') !== false || strpos($data, 'www.') !== false))
{
// Switch out quotes really quick because they can cause problems.
$data = strtr($data, array(''' => '\'', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0", '&quot;' => '>">', '"' => '<"<', '&lt;' => '<lt<'));
$data = preg_replace(array('~(?<=[\s>\.(;\'"]|^)((?:http|https|ftp|ftps)://[\w\-_%@:|]+(?:\.[\w\-_%]+)*(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i', '~(?<=[\s>(\'<]|^)(www(?:\.[\w\-_]+)+(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#+:\'\\\\]*|[\(\{][\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'), array('[codebbc]$1[/codebbc]', '[codebbc]$1[/codebbc]'), $data);
$data = strtr($data, array('\'' => ''', $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;', '>">' => '&quot;', '<"<' => '"', '<lt<' => '&lt;'));
}


The Codebbc in this code is code i edited it here just for posting this correctly
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 07:44:36 AM
And does that give you the right result for all URLs in your forum (barring the multiple line issue which needs addressing)?

I also note that my comment earlier was not addressed.
Title: Re: Automatically Code a Link
Post by: Aleksi "Lex" Kilpinen on September 21, 2009, 07:59:20 AM
Would it not do to simply disable the automatic URL linking, and disallow the use of URL -tags?

Admin -> Posts and topics -> Bulletin Board Code -> Automatically link posted URLs (Uncheck this)
Admin -> Posts and topics -> Bulletin Board Code -> Enabled BBC tags (Uncheck "url" )

Then all you would get is inactive links like http://www.example.com
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 08:02:01 AM
That would do that, sure, but it wouldn't wrap them in code tags as requested.

I would still like to know the logic behind it though.
Title: Re: Automatically Code a Link
Post by: Aleksi "Lex" Kilpinen on September 21, 2009, 08:04:57 AM
Quote from: Arantor on September 21, 2009, 08:02:01 AM
I would still like to know the logic behind it though.
That's why I asked, I don't see the real difference either.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 10:58:23 AM
i want the links in code blocks  .. i like it and its usable i have designed my code blocks ..and specially all the site uses this feature :( .. please help ..


Arantor the results are simple like the autocode link mod does .. the code u provided just making all the links in code blocks .. but all in separate blocks ..

not like i requested
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 11:35:12 AM
I never said it would be in combined blocks like you requested, in fact if you read what I wrote, I specifically said it was only HALF of it.

What other sites use this feature?

The only sites I know that use this feature are ones you know full well I do not support.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 01:08:33 PM
Arantor .. this is not a topic for the warez site .. i have other professional good legal sites too .. and not only me there are a lot of people who wants this feature in their SMF Forum .. this is not only my request this is the request of thousands of SMF users
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 02:34:59 PM
OK, so what is the reason behind having it outside of a warez site?

(For that matter, what is the reason for having it IN a warez site?)
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 02:55:23 PM
the main reason is that this is a rule in all my forums to code the links .. because the code blocks look different and user can easily find where the links are without concentrating on the page .. and some users spam and post phishing links usng url tags that makes a link to another site and they name it something other like www.this.com (http://www.google.com) .. links in code blocks clears everything and the link under code blocks cant carry a spam link under them the links in code blocks are always be the same as they looks


and my code blocks are modified .. their text size is also bigger than the default .. see this

(http://i35.tinypic.com/8zmra0.jpg)
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 03:01:19 PM
If phishing prevention is the aim, it's simple; you disable the second form of the url tag which allows [url=real_url]display_url[/url].

The one thing that bothers me is your claim of "thousands of SMF users". I have seen only two requests for this including yours, and the other was for a warez site so I still cannot understand the argument for this.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 03:05:27 PM
not everyone come here , register , open topics , requests , wait for replies , wait for the solution .. u know that there are some lazy and some noobs .. they just know the feature nothing else .. but believe me . there are really thousands of people who want this ... there are some people who see this topic for a solution .. as u can see 2000+ views ... just make a mod for this and see for yourself
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 03:08:29 PM
OK - show me one, any one, non-warez forum that does this.
Title: Re: Automatically Code a Link
Post by: MrPhil on September 21, 2009, 03:09:14 PM
Please folks, let's calm down. I don't understand the level of venom going back and forth here. Regardless of whether this is to be used in a warez site, I would think that it could be at least partially implemented. Somewhere in the bowels of SMF is code to detect a string of characters that appears to be a URL, or at least, a domain name. The current code wraps a link around it: <a href="http://text">text</a>. Rohan is requesting a change to, instead of putting a link around the URL, put a full-width <div> around the text, with different background color and a border. It could be similar to what's put out by a [code] block, but without the "Code:" header. That should be fairly simple (although I have no interest (or time) in doing it myself). To combine multiple lines into one block at a time would be a bit more difficult -- you'd probably buffer the output in a string so that you could go back and fuse together the enclosing <div>s into one, and put <br> or something to separate the lines. Something like "find </div><div class="URL"> and replace it with <br>".

A bit easier would just be to, instead of wrapping a link around a URL, to put a <span> around it with a different color scheme, if all you want to do is 1) disable URLs and 2) make them stand out.

I don't know if "thousands" of SMF users would like something like this, but at times I wish automatic conversion to links could be shut off, so maybe there would be interest in a mod to do this. A full-fledged system could turn auto-linking back on for members in a group with more than a minimum number of posts.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 03:23:23 PM
the content under the code blocks are hidden from the guests .. what about that ?
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 03:27:35 PM
MrPhil: Turning it off is an option in the BBCode menu.

Rohan_: Hiding code blocks from guests is something I'm sure has been covered; there's definitely a mod to hide links from guests too, and combining this should be straightforward.

The actual change that's being requested is to have it generate:
[code]link
link
link[/code]

instead of
[code]link[/code]
[code]link[/code]
[code]link[/code]


Wrapping it in a DIV would work but wouldn't solve the core problem, which ultimately is a regex replace on [/code]<br />[code], which is why I asked several posts back if the first half of what I had already asked about had been implemented by Rohan_ because the changes already covered are the first half of doing this.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 21, 2009, 03:33:01 PM
so now ... is it possible to have a function exactly that i requested ?
Title: Re: Automatically Code a Link
Post by: SAFAD on September 21, 2009, 03:42:16 PM
Hmm
if you asked
link
yay
link

yes we can

but

link
link
link

it will take a huge amount of sufring in hell :)
Title: Re: Automatically Code a Link
Post by: Arantor on September 21, 2009, 03:45:54 PM
It comes back to whether you've implemented what I originally posted and the HTML it generates.
Title: Re: Automatically Code a Link
Post by: SAFAD on September 21, 2009, 04:03:00 PM
Didn't Read Everything
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 28, 2009, 02:16:07 AM
any chance ..


can we make a code using <br /> ??? if there is a break then make diff code box and if not then make single
Title: Re: Automatically Code a Link
Post by: Arantor on September 28, 2009, 03:18:25 AM
Like everything else it's just not as simple as that since <br /> is added for every line break everywhere in every post that contains an end of line. As I have told you repeatedly this is not a simple change.

It is also one that I cannot see having uses much outside black hat websites and have NO interest in writing or supporting.
Title: Re: Automatically Code a Link
Post by: Rohan_ on September 28, 2009, 03:22:43 AM
ohh so you are not helping in this topic .. okay then
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 04:38:57 PM
Sorry to bump an old topic.

but..

This would be interesting to try to make actually, not because of why its been used, but simply because its kinda difficult.

I personally think messing around with the tag settings is not the route to go by.

If this is going to work, its going to have to be something that detects links regardless of bbcode.

Something that would scan for the 1st  and last instance of "http://" then add the bbc tag at the beginning of the 1st detection and the end of the last one, but of course with the last one, it would have to wait until it reaches the end of the whole link, maybe it can wait for empty space before adding the tag.

Messing with the tag will always code 1 for 1, you could just get the whole code tag array paste it over the url array then change 'code' to 'url', which would result in every link been coded separately.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 04:45:33 PM
Quote from: ♪ JohnCcCcCc ♫ on October 17, 2009, 04:38:57 PM
If this is going to work, its going to have to be something that detects links regardless of bbcode.

Except that there is already detection for this, and they are all wrapped into [url] tags.

Meaning you will be doing it based on code tags whatever. The trick is to figure out when you should collapse the tags or not.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 04:55:14 PM
Well we could disable the auto detection then...
Surely it can be done with a simple find and replace script, for the opening code tag anyway, as for the closing one will be more difficult as the end of links vary, thats where a "next empty space" detection would come into play.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 04:59:26 PM
You could do, I suppose, not that I'd encourage that particularly.

But I think you misunderstand how the system works.

IIRC the process correctly, bare URLs are converted at post-time and stored with url tags around them, then it's all displayed at display time separately. Of course, you could examine Post.php and Subs.php yourself to see.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 05:06:52 PM
QuoteIIRC the process correctly, bare URLs are converted at post-time andstored with url tags around them, then it's all displayed at displaytime separately. Of course, you could examine Post.php and Subs.phpyourself to see.

hmm...

Ok I got it.

the URL tags are auto added, so, we run find and replace script to find 1st instance of  and last instance of  (http://and%20last%20instance%20of) and have them replaced with the opening and closing tags.

Then another find and replace script, to find any remaining  or  (http://or) and replace with nothing.

If that's not too much of a time consuming or server hogging process, it should work.

Of course, with every solution there a flaws, like what if someone had 2 sets of multi line links, they all would be coded together.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 05:20:55 PM
The idea isn't to replace url with code, btw. You can just make it look the same.

The trick then becomes identifying [/url]end-of-line[url].
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 05:30:25 PM
hmm

If we code urls, with the tag we will get.
[url]http://www.something.com[/url]

it would look messy

as apposed to:
http://www.something.com

If we simply change the the code tag array into url array multi-line would not work, not automatically anyway.
http://www.something.com
http://www.something.com
http://www.something.com
http://www.something.com
instead of
http://www.something.com
http://www.something.com
http://www.something.com
http://www.something.com
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 05:32:54 PM
Then you completely missed the earlier part of this topic. I already dealt with NOT turning url directly to code tags such that they never, ever have 'Code: [select]' at the top.

The trick, as I said two or three pages back, is how to figure out the problem of URL tags being one per line and thus grouped together, which is as I said, finding [/tag]end-of-line[tag]
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 05:40:53 PM
Hold on...
This is solved already?
I saw your code in earlier page, but since the topic was going on a few pages after and its not marked as solved, I assumed it was not solved.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 05:46:25 PM
The *first* part is solved, making URLs appear in code-like blocks.

The *second* part of folding multiple URLs together is not, as I said a few posts back.

I would note that the reason I refused to develop this was that it was for a warez site.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 06:01:42 PM
oh well,
The 1st part is easy, I mean, like said, just make a replica code array and change to url, simple.

Folding them into on code tag well, this is why i believe its best not to use the tag changing approach, maybe something else can do this without modifying any tags, except for the auto adding url tags.

Oh, and I'm not looking for this to be developed either, I'm just interested in how this can be pulled off :D

I mean, lets see here, would there be away to make it happen without changing any tag settings, besides the one that auto adds the URL tag, I think there could be a way, but at my level, I'm a big distance from figuring it out.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 06:10:18 PM
Quote from: ♪ JohnCcCcCc ♫ on October 17, 2009, 06:01:42 PM
oh well,
The 1st part is easy, I mean, like said, just make a replica code array and change to url, simple.

No, just change the URL to act like code. FAR less messy.

Quote
Folding them into on code tag well, this is why i believe its best not to use the tag changing approach, maybe something else can do this without modifying any tags, except for the auto adding url tags.

Believe me, it's by FAR the simplest method.

Quote
I mean, lets see here, would there be away to make it happen without changing any tag settings, besides the one that auto adds the URL tag, I think there could be a way, but at my level, I'm a big distance from figuring it out.

Not without rewriting parse_bbc completely.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 06:13:57 PM
Damn  :-\
Oh well, we'll have to wait until someone has time to figure this whole thing out.
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 06:35:16 PM
Oh, I reckon I could probably do it in about half an hour. I don't see that it needs to be more than half a dozen lines of code carefully placed. But as I said, I have no desire to do so.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 06:52:41 PM
Rephrase that:
We'll have to wait for someone else with time to do it :P
Title: Re: Automatically Code a Link
Post by: Arantor on October 17, 2009, 06:54:26 PM
Quote from: ♪ JohnCcCcCc ♫ on October 17, 2009, 06:52:41 PM
We'll have to wait for someone else with time and desire to do it :P

Fixed that :P. I have the time. I just don't want to spend it doing this.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 07:08:46 PM
lol.. thats why..

Someone else that also has time :P lol

damn were turning this topic into a chat room...
Title: Re: Automatically Code a Link
Post by: Rohan_ on October 18, 2009, 01:10:29 PM
Arantor Bro .. Please Do it if u can :( .. i am requesting you ...
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on October 18, 2009, 01:11:44 PM
Quote from: Rohan_ on October 18, 2009, 01:10:29 PM
Arantor Bro .. Please Do it if u can :( .. i am requesting you ...

He wont do it, he has stated that several times, it is an interesting topic though, just wait someone will do it eventually lol
Title: Re: Automatically Code a Link
Post by: Rohan_ on October 18, 2009, 02:47:44 PM
Ohhh Thanks Very Much John
Title: Re: Automatically Code a Link
Post by: Mraza on October 21, 2009, 05:55:15 AM
This topic is interesting i am watching all the episodes, Arantor :P
Title: Re: Automatically Code a Link
Post by: Rohan_ on October 21, 2009, 12:59:05 PM
ahhh .. we have some more episodes to come keep watching the episodes .. its really interesing
Title: Re: Automatically Code a Link
Post by: Marcus Forsberg on November 20, 2009, 08:51:31 AM
Rohan, is this topic resolved or do you still require further assistance?
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 20, 2009, 04:11:01 PM
no its not solved i am waiting to see it solved
Title: Re: Automatically Code a Link
Post by: kat on November 20, 2009, 04:41:26 PM
As it 'appens, I tried my "Censored words" idea (Page one) on my forum. It works perfectly.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 20, 2009, 05:31:21 PM
kat does that trick code links in a single code block ? anyways that is not so good .. because all signatures and other things got messed up
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 20, 2009, 05:38:05 PM
Arantor .. Pleaseee do it for me .. this topic is too old now .. .dont u wanna see it solved ? 5000 people viewed it .. u can do it its just a simple work for you . u do more hard things than this .. Helping me doesn't harm you it just give u my Blessings ... isn't it enough for you ? Blessings are everything my friend .. please do it .. its a request of ur small bro
Title: Re: Automatically Code a Link
Post by: Arantor on November 20, 2009, 05:39:28 PM
As I have said several times I WILL NOT DO THIS. There is no point asking.
Title: Re: Automatically Code a Link
Post by: sangwe11 on November 20, 2009, 05:39:45 PM
Quote from: Rohan_ on November 20, 2009, 05:38:05 PM
Arantor .. Pleaseee do it for me .. this topic is too old now .. .dont u wanna see it solved ? 5000 people viewed it .. u can do it its just a simple work for you . u do more hard things than this .. Helping me doesn't harm you it just give u my Blessings ... isn't it enough for you ? Blessings are everything my friend .. please do it .. its a request of ur small bro

Its actually not easy like you think.

There is ALOT of preparsing that goes on in code tags, c/o the syntax highlighter ect.

Arantor will do this if/when he wants to and finds a solution

Edit: Arantor isn't doing this !

He beat me to posting ggrrr :D
Title: Re: Automatically Code a Link
Post by: kat on November 20, 2009, 06:01:21 PM
Quote from: Rohan_ on November 20, 2009, 05:31:21 PM
kat does that trick code links in a single code block ? anyways that is not so good .. because all signatures and other things got messed up


Ah, yeah. Sigs. Forgot about those. Embedded images and stuff, too.


There may be a way around that, if I think about it.


Maybe tomorrow, as it's getting late, here.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 21, 2009, 03:03:52 AM
Kat Please Help me Please Dear .. i will Gift you a Dog :) Please help
Title: Re: Automatically Code a Link
Post by: kat on November 21, 2009, 06:05:45 AM
I'll see if I can figure something out.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 21, 2009, 06:19:26 AM
ya sure .. but please try your best .. there are more people who want this feature .. please do it ....
Title: Re: Automatically Code a Link
Post by: kat on November 21, 2009, 11:59:22 AM
It's more complicated than I thought.


Still trying things out, though.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on November 21, 2009, 12:05:03 PM
Quote from: Kat on November 21, 2009, 11:59:22 AM
It's more complicated than I thought.


Still trying things out, though.

That's what makes it so interesting, no simple edits here lol..

If it were me figuring this out, I would just create a mod for it
Title: Re: Automatically Code a Link
Post by: kat on November 21, 2009, 12:09:28 PM
I'm not that clever, or I'd do the same.
Title: Re: Automatically Code a Link
Post by: Arantor on November 21, 2009, 12:38:18 PM
If someone can give me a valid reason why you'd do this for any site other than a warez one, I'll reconsider, how does that sound?
Title: Re: Automatically Code a Link
Post by: sangwe11 on November 21, 2009, 12:41:23 PM
Quote from: Arantor on November 21, 2009, 12:38:18 PM
If someone can give me a valid reason why you'd do this for any site other than a warez one, I'll reconsider, how does that sound?

If the OP wants it for a warez site, IMHO this thread should be removed, and anything else he posts relating to needing things for his warez site should be removed.

Warez shouldn't be tolerated.
Title: Re: Automatically Code a Link
Post by: Arantor on November 21, 2009, 12:43:13 PM
Oh, he admitted as much, which is why I refused to do it.

He does have other forums though, so any requests could be for any of them. This request was quite specific though. Not going to delete the thread since it serves as a reminder that a number of the folks here do not and will not tolerate it.

Deleting the thread won't make it go away, simply brush it under the carpet.
Title: Re: Automatically Code a Link
Post by: sangwe11 on November 21, 2009, 12:45:00 PM
Quote from: Arantor on November 21, 2009, 12:43:13 PM
Oh, he admitted as much, which is why I refused to do it.

He does have other forums though, so any requests could be for any of them. This request was quite specific though. Not going to delete the thread since it serves as a reminder that a number of the folks here do not and will not tolerate it.

Deleting the thread won't make it go away, simply brush it under the carpet.

Very true.

I still think there should be specific rules, in the actually SMF terms, saying it cannot be used for a warez site.
Title: Re: Automatically Code a Link
Post by: Arantor on November 21, 2009, 12:46:46 PM
We can't enforce that, nor would we want to try.

All we can and will enforce is no linking to warez sites here, and many members find we will not support them in their sites.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on November 21, 2009, 09:55:34 PM
Quote from: Arantor on November 21, 2009, 12:46:46 PM
We can't enforce that, nor would we want to try.

All we can and will enforce is no linking to warez sites here, and many members find we will not support them in their sites.

It would be interesting to see the coding for this one, possibly instead of coding batch links, maybe coding batch email addresses?

That would have no purpose, and I would image the same issues as coding regular links.
The only problem is, I don't see any point to it
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 01:34:35 AM
Quote from: sangwe11 on November 21, 2009, 12:41:23 PM

If the OP wants it for a warez site, IMHO this thread should be removed, and anything else he posts relating to needing things for his warez site should be removed.

Warez shouldn't be tolerated.

Very small thinking .. don't think for what i want the feature .. also think that it will add a new feature in SMF and make it more popular .. and if u wanna see then make a mod for this and see the responce there .. ok ?
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 01:46:18 AM
I can tell you now, hand on heart, it will NEVER be a core feature.

As I said. Give me a valid reason why you'd do this (not "because it'd be popular" but an actual measurable benefit to users or admins) for non-warez sites and I'll reconsider.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 02:24:06 AM
to prevent phishing links or other things that users put in their posts .. when u have good traffic then users post links like this DOWNLOAD SMF (http://www.phshinglink.com) and innocent users click on them .. some goes to rapidshare phishing and people login their premium accounts and get that hacked .. so thats why i say why not make a rule that post your links in using Code tags only .. no URL masking with text or anything .. posting links in code blocks never can show a bad link or make a mask in code block ..  a code block only shows the text what is entered there ... there are some other reasons too .. so that's why i want this feature .. don't think its a need for warez specially .. this feature can help us in other ways . i hope u understand this and do something for me ........ THANKS FOR UNDERSTANDING
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 02:27:07 AM
You realise you could prevent masking by just removing the code that allows them to use [url=...], don't you?

Also, that's what moderation is for.

And actually, a code block does a lot more than show what's there, and also it has a few bugs where it eats some characters.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 03:02:34 AM
i know i know .. there are some more reasons too for this .. and we can prevent masking by other ways too but this will be the new feature and make easy .. there are more work too than moderating for just removing bad links .. this will be very useful i really need this .. Please arantor its nothing for you .. u can do it in minutes . Please do it for me as a Big BRO ..
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 03:04:38 AM
Quote from: Rohan_ on November 22, 2009, 03:02:34 AM
u can do it in minutes

As I told you a NUMBER of times this isn't a few-minutes job. This is a several-hour job, and I'm still not convinced.

If you can remove the ability of people to cloak links (which IS a few minutes work), why else is anything further needed? To be honest I'm still not convinced.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 03:13:40 AM
i think i cannot convince you .. i have requested too many times .. Please understand . do it please .. i will not disturb you again ever .. this will be my last request .. Please this is the last request i am requesting ..
Title: Re: Automatically Code a Link
Post by: kat on November 22, 2009, 05:06:19 AM
Why not just make it a rule of your forum and ban anyone who disobeys?


Maybe a link to your forum would convince Arantor...?
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 08:14:54 AM
how much people do we ban ? banning people is bad thing and our forum get bad respect .. this is our need we want the links in code so this is not a user's fault we need to give this feature ... i say again .. PLEASE
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on November 22, 2009, 11:28:14 AM
Quote from: Rohan_ on November 22, 2009, 08:14:54 AM
how much people do we ban ? banning people is bad thing and our forum get bad respect .. this is our need we want the links in code so this is not a user's fault we need to give this feature ... i say again .. PLEASE

Arantor is a good coder and will practically try to do anything you ask, but only where he see's potential and proper use, your excuse for using "code batch links" has only one practical use, which is masking the links, however as Arantor has said, you could just remove the URL BBC.

He will do this for you, if you can think of a reason other than coding warez links, it would take him a day, 2 most.

There are several reasons why this could be a good feature, but you will need to figure that out and convince Arantor that he is not supporting a warez site while creating this mod/giving you code changes.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 02:06:48 PM
ahhh forget warez .. remember SMF .. we are making something for SMF not specially for a single warez site
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 02:09:55 PM
Yes, and I still can't see the general benefit to the average forum admin. I've been on this board 7 months now, tracking many kinds of mod requests.

I have only seen coding links requested by two people, and both for warez sites. I don't see the use in a non-warez site - at all.
Title: Re: Automatically Code a Link
Post by: sangwe11 on November 22, 2009, 02:52:50 PM
Quote from: Arantor on November 22, 2009, 02:09:55 PM
Yes, and I still can't see the general benefit to the average forum admin. I've been on this board 7 months now, tracking many kinds of mod requests.

I have only seen coding links requested by two people, and both for warez sites. I don't see the use in a non-warez site - at all.

Actually, I can see a use for this outside of warez.

I run a mapping / modding site for the cod series, and we only allow registered users to access our download section (where we have all our maps / mods)

However, we get some people who upload to places like rapidshare and megeupload, as they get a faster upload or something. This is annoying, as admins / mods have to download them, reupload them to our download section, and change the link.

If we could have something like this, it would help us.
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 02:53:55 PM
I'm not sure how that would. You'd still have to change the link.
Title: Re: Automatically Code a Link
Post by: sangwe11 on November 22, 2009, 02:56:09 PM
Quote from: Arantor on November 22, 2009, 02:53:55 PM
I'm not sure how that would. You'd still have to change the link.

Well we get them to code the link as it is, so it would only show if they weren't a guest.

I can quite easily make another BBC for this, such as [download][/download] (actually, OP, this might be a better solution!) but I was just saying there is other uses.
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 02:58:05 PM
If you want to hide from guests, use the Registered Links mod.
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on November 22, 2009, 03:22:07 PM
hmmm coding "things, links" also offers presentation, it does look like a cleaner post where many links, or other batch's of text is.

Similar to quoting, I mean what looks better, using quote BBC or just tying the previous post.

I would thing Auto coding links would have a presentation purpose only, although it would mask the link(s) at the same time.

As an Admin, I can see the potential in masking links, but only because I hate posts with live links inside, people with slow internet get slow loading scrips, and one thing I hate is accidentally clicking a link because the script finally loaded right before I click something else and the whole page moved, if links were masked they would not be live links so no accidental navigating away from the page.
Title: Re: Automatically Code a Link
Post by: Arantor on November 22, 2009, 03:29:45 PM
This thread already has how to turn a single link into a block of code, in fact.

I'm just not doing the extra part of it that merges several of them together.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 22, 2009, 04:50:15 PM
Do It :)
Title: Re: Automatically Code a Link
Post by: ɔɔɔɔɔɔuɥoɾ on November 22, 2009, 05:02:22 PM
Quote from: Rohan_ on November 22, 2009, 04:50:15 PM
Do It :)

The code for that "single link" is already here, you can use that for single links.


Quote
I'm just not doing the extra part of it that merges several of them together.
That's what you essentially need though.
Title: Re: Automatically Code a Link
Post by: Joshua Dickerson on November 22, 2009, 11:47:14 PM
Rohan_: you have been warned.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 23, 2009, 01:36:21 AM
but i didn't do anything wrong .. i am just requesting like just everyone can do here .. its SMF's official site but if u don't like my requests or anything then ok i will never ever request anything again here ...

and if u feel Happy to Ban me then Do this .. :( :( :( :( :( :( :(
Title: Re: Automatically Code a Link
Post by: Joshua Dickerson on November 23, 2009, 01:50:30 AM
It's not the request that is irking me. It is your incessant badgering and bumping of this topic. After someone has said that they aren't going to fulfill your request you need to stop asking them. It is beyond annoying. So, with that said, learn to do it, pay someone to do it, or like everyone else, wait peacefully for someone to do it.
Title: Re: Automatically Code a Link
Post by: Rohan_ on November 23, 2009, 05:17:43 AM
i am waiting from may 29 2009 ... anyways groundup Thanks For Your Suggestion