rebel9 commented on a Page, Link Detector / Get Link Info  -  Feb 04, 2014

Nice.
On alias Xchar in $replacecs at the end, add: ,',$chr(39)
Like
return

$replacecs(%return,–,,·,·,»,»,«,«,Ü,Ü,ü,ü,Á,Á,á,á,É,$&
É,é,é,Í,Í,í,í,Ó,Ó,ó,ó,Ñ,Ñ,ñ,ñ,Ú,Ú,ú,ú, ,$chr(32),$&
&aelig;,æ,&quot;,",&lt;,<,&gt;,>, &amp;,&,&#039;,$chr(39))

@FordLawnmower: Personally I had to add all of this to my script also:

&#039;,',&raquo;,$chr(187),&#39;,$chr(39),&#x26;,$chr(38),&#0153;,,&#47;,$chr(47),&#40;,$chr(40),&#38;,$chr(38),&#41;,$chr(41),&#34;,",&#43;,+,é,$chr(63),&trade;,,&lsquo;,',&rsquo;,',&#8211;,-,&#038;,&,&#174;,$chr(174),&bull;,$chr(8226)

I still run into issues at times but I fix them as I see them at random. This is how mine would look if I were to start using your script (for those of you about to use it, also)

return $replacecs(%return,&ndash;,,&middot;,·,&raquo;,»,&laquo;,«,&Uuml;,Ü,&uuml;,ü,&Aacute;,Á,&aacute;,á,&Eacute;,$&
É,&eacute;,é,&Iacute;,Í,&iacute;,í,&Oacute;,Ó,&oacute;,ó,&Ntilde;,Ñ,&ntilde;,ñ,&Uacute;,Ú,&uacute;,ú,&nbsp;,$chr(32),$&
&aelig;,æ,&quot;,",&lt;,<,&gt;,>, &amp;,&,&#039;,$chr(39),&#039;,',&raquo;,$chr(187),&#39;,$chr(39),$& &#x26;,$chr(38),&#0153;,,&#47;,$chr(47),&#40;,$chr(40),&#38;,$chr(38),&#41;,$chr(41),$&
&#34;,",&#43;,+,é,$chr(63),&trade;,,&lsquo;,',&rsquo;,',&#8211;,-,&#038;,&,&#174;,$chr(174),&bull;,$chr(8226))

Hope this helps at all.

FordLawnmower  -  Feb 04, 2014

I've posted a response here over and over and it doesn't take.
I'm tired of typing. This code is updated.
@rebel9 , If you have problems with any of my scripts, please just post the problem and not code.
If you feel the need to post code , then please put it in a code box so it is readable.
https://www.phpbb.com/community/faq.php?mode=bbcode#f2r1

rebel9  -  Feb 06, 2014

~me: http://www.ebay.com/itm/Hollyanne-Set-Setola-Twin-Galaxies-Trading-Card-Signed-/121084434184
&bot: Hollyanne "Set" Setola Twin Galaxies Trading Card Signed | eBay

~me: http://www.bbc.co.uk/news/world-asia-26062679
&bot: BBC News - Afghan Taliban 'capture US military dog'

It doesn't end here. I would post the code to fix this now, but as posted above, I'm not supposed to.

FordLawnmower  -  Feb 06, 2014

@rebel9 I think that you are not using the updated code. I added " to the alias, but all &#; numeric characters are covered by the second regsubex.
In addition, there are no quotes in this link: http://www.bbc.co.uk/news/world-asia-26062679
This is from the source at the top of the page.

<title>BBC News - Afghan Taliban capture British military dog</title>

Clearly you have edited the quotes in to the post.

The second regsubex, should catch all items starting with &# and ending with ; that have 2 to 4 numbers inbetween.
It will then send them to $utf8 for conversion. There is no need to have any of these in replaced.
The original code only caught &#; with 2 numbers, So ' . The code was updated 2 days ago to look for 2 to 4 numbers.

rebel9  -  Feb 06, 2014

I only tested this on a windows ec2 as I don't believe in running another mirc instance on my own box. I tried the updated code, when trying out your script, I get those errors along with others. Trust me I saw the ",", inside of your code, wondered the same thing myself. I'll leave you to it though.

But don't say I edited shit when I clearly didn't, the site must have very recently.

(07:10:35) A_Cow: http://www.bbc.co.uk/news/world-asia-26062679
(07:10:37) @b0t: BBC News - Afghan Taliban 'capture US military dog&#039

I'll quit trying to help other people make their scripts and just go back to using my own now. Enjoy m8.

FordLawnmower  -  Feb 06, 2014

@rebel9 I never said that you didn't see "
As I stated; "I added " to the alias"
If you have problems with other links, pls post the links and I will test them and make adjustments if necessary.

You must keep in mind, that I do not use any of these scripts. I only write them.
I have very little use for irc , but I still make scripts as people request them.
My testing is limited to common links off the top of my head, so this script will be refined based on user response.

rebel9  -  Feb 06, 2014

(14:04:15) ~me: http://www.ebay.com/itm/10-1-Google-Android-4-03-Tablet-PC-8GB-1GB-DDR3-HDMI-Bundle-10-Keyboard/230941040324?pt=US_Tablets&hash=item35c5289ec4
(14:04:17) @b0t: 10 1" Google Android 4 03 Tablet PC 8GB 1GB DDR3 HDMI Bundle 10" Keyboard | eBay

FordLawnmower  -  Feb 06, 2014

That one is working fine with the updated code rebel9 :

[15:15:32] <~Ford_Lawnmower> http://www.ebay.com/itm/10-1-Google-Android-4-03-Tablet-PC-8GB-1GB-DDR3-HDMI-Bundle-10-Keyboard/230941040324?pt=US_Tablets&hash=item35c5289ec4
[15:15:34] LinkInfo: 10 1" Google Android 4 03 Tablet PC 8GB 1GB DDR3 HDMI Bundle 10" Keyboard | eBay

j0nas  -  Mar 21, 2014

Is there anyway we can update this to catch www. aswell as http://

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.