Opening Links in New Page

Post your Click counter digestion problems here
Post Reply
farouche
Posts: 3
Joined: Mon Oct 29, 2007 4:01 pm

Opening Links in New Page

Post by farouche »

I just downloaded and installed the click counter. I'm pretty inexperienced with php, but your directions were great. I've been adding links using the admin panel and it's working wonderfully. Thank you.

I was curious as to whether I could edit to make one change. My original links generally contain a target="new" command, so that visitors can open one of my knitting patterns, but aren't redirected away from my site. Is there a way to do that with the click counter? Right now, it looks as if that is not happening.

Thanks so much.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

That's not related to CCount, just add

Code: Select all

target="_new"
to your link HTML code. Example HTML:

Code: Select all

<a href="http://www.yourdomain.com/ccount/click.php?id=ID" target="_new">Link title</a>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
farouche
Posts: 3
Joined: Mon Oct 29, 2007 4:01 pm

Post by farouche »

The problem is that I am using wordpress for a blog. When I create links for my sidebar using their link manager, I can't add the target=new language. When I try, I get a message saying: Invalid ID, numbers (0-9) only!

I suspect, but could be wrong b/c I am a total novice at this, that I would need to rewrite some code in my word press links.php or manually insert the link I want in my sidebar instead of using their software.
Post Reply