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

.

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

.

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

.

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

.

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.