Page 1 of 1

Re-naming urls for Ccount 1.1

Posted: Sat Apr 22, 2006 2:45 pm
by hdabner56
Script URL: www.computersdirectusa.com
Version of script: 1.1
Version of PHP: 4.4.1
Hosting company: ipowerweb
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:
Just have a question about changing my page urls on my website, I'm still in the learning process of php and know my way enough to ask a lot of questions when in doubt, I have oscommerce with a site template by simplelaptops and my only problem is I don't know where to find my pages html. the only place I have to place any script is in my sts_template.html which is the only html page file it has (and is my Main Page) I understand the fact that I have to rename my page urls for ccount but don't know where to find them (Dumb Huh) I'm sure you have the answer. I do have everything uploaded to my server and am confident that part is right, if I can just rename the urls, I'll be in :D

Regards, Dan Abner

Posted: Sat Apr 22, 2006 7:42 pm
by Klemen
You don't have to rename any URLs. The way it works is:

- you want to count clicks on http://www.yourdomain.com/somefile.htm
- you add that URL to CCount and it generates a tracking URL, for example
http://www.yourdomain.com/ccount/click.php?id=23
- when you want to link to http://www.yourdomain.com/somefile.htm you just use the tracking URL http://www.yourdomain.com/ccount/click.php?id=23 instead in the link.

In HTML code, instead of

Code: Select all

<a href="http://www.yourdomain.com/somefile.htm">Click here</a>
you use

Code: Select all

<a href="http://www.yourdomain.com/ccount/click.php?id=23">Click here</a>
Regards

Posted: Sat Apr 22, 2006 9:35 pm
by hdabner56
Klemen, I still don't want to sound dumb and I see what you are saying about using the ccount code except I still don't understand where do I place the other html code ? in my home/public_html/includes/sts_template.html ?
When I got this website it had Vdeck already on it and I bought a template and had Advancestyle.com load the template to the site and when they did they left all the other pre-made pages and files on there and I really have a hard time navigating and trying to figure what is my site and what is not. It is confusing to figure out somtimes. My site is located in public_html , but so is the one I don't need on here. I probably need to go through and remove the other web pages but am afraid I will mess up my good site as it is easy to do. I have no catalog file except one that I created so my jpgs would show in my shopping cart area.
So I really don't know where to use the ccount code for the url.

Regards, Dan Abner ,I'm getting better at this but not good enough yet I quess.

Posted: Sat Apr 22, 2006 11:23 pm
by Klemen
Sorry, how to edit templates for OsCommerce is beyond my support nor do I have any experience with that.