Main Content:

How to enhance YOURLS for spam control/throttling, unshortening and weekly stats

Any ideas how to fix it?
Can you also tell me how I can get the "tweet it symbols and qr code"? (like used on mrte.ch)

January 24, 2010, 02:07:24 AM

About The Author

Comments

mrtech

QR code is just an image with the url appended:
Code:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=http%3A%2F%2Fmrte.ch%2F2%20&chld=H|0

the tweet it like is just javascript that passes the information to my tweet page:
Code:
<a href="#" onclick="javascript:open('http://www.mrtech.com/tweet.php?title='+encodeURIComponent('MR Technical Solutions, Inc. - Custom Programming and Integration Services!!')+'&url='+encodeURIComponent('http://www.mrtech.com/'), 'tweetit', 'scrollbars=no,width=625,height=375,top=200,left=250,status=yes,resizable=yes'); return false;">tweet it!</a>

simple twitter like if you just want to got to twitter:
Code:
http://twitter.com/home?status=MR+Technical+Solutions%2C+Inc.+-+Custom+Programming+and+Integration+Services%21%21+-+http://mrte.ch/2



• mel reyesBlogPlaxoLinkedInTwitter
Support mrtech.com get our toolbar

rudolfpietersma

I think I'm not clever enough, how to put this Qr code in my index.php so it shows the qr for the created short url?

Sorry how to get the in my index.php: "Share with:  Twitter  Facebook  FriendFeed".

Tnx a lot for your help!

rudolfpietersma

Can you explain some more to get this working for me?

rudolfpietersma

Mel,
Any ideas left why the Top Weekly Stats don't show up?

Rudolf.

mrtech

Try enabling debug messaging to see if you get any errors:

Code:
ini_set("display_errors","2");
ERROR_REPORTING(E_ALL);



• mel reyesBlogPlaxoLinkedInTwitter
Support mrtech.com get our toolbar

rudolfpietersma

Sorry where should I add this?

mrtech

at the very top of you php page, this will enable visual bugs and error to be displayed inline.



• mel reyesBlogPlaxoLinkedInTwitter
Support mrtech.com get our toolbar

rudolfpietersma

Hi there,
I added it to the index.php like this:

<?php

ini_set("display_errors","2");
ERROR_REPORTING(E_ALL);

require_once( dirname(__FILE__).'/includes/load-yourls.php' );

But no errors come up.

Rudolf.

klaus

Hello,

i can't also not get the Top Weekly Stats for this Code Snip! Please help us, this is a nice feature for a Short URL Service! Thanks a lot for your Work!

dear Klaus

rudolfpietersma

Hi there,
I added it to the index.php like this:

<?php

ini_set("display_errors","2");
ERROR_REPORTING(E_ALL);

require_once( dirname(__FILE__).'/includes/load-yourls.php' );

But no errors come up.

Rudolf.

rudolfpietersma

Anything else I could try?

rudolfpietersma

Anything?

mrtech

Been swamped, nothing yet, I just can't seem to figure out what might be happening, sorry.



• mel reyesBlogPlaxoLinkedInTwitter
Support mrtech.com get our toolbar

afvoct

mrtech, thanks for all this. i have everything working except the pre-validate and unshortening. i'm on 1.4 and PHP is 5. no errors, just will still accept a bogus address. not sure where to start. can you help?

Add a Comment

Only registered members can post comments, please click here to register.

Pages: 1 [2] 3