Jump to content

JeWeLS

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by JeWeLS

  1. Right, the entire program is one package.  The administration panel you have on your own server goes with the display.php file that is in the same directory.  So if you use that display.php file in your javascript include path, the counter on that page will find all of your site's data and the definition for the missing function.

    K. I will look for it on my server, and see if that does the trick. I will post again, if it doesn't. Thanks for helping me out....I really appreciate it.
  2. You need a URL like that in order to count how many times the link has been clicked.  So, if you want to count how many times the "REGISTER" link gets clicked, then the register link needs a URL like the one you have there, maybe with id=5, and then the javascript that says ccount_display("5") will show how many times that link has been clicked.Does that answer your question?

    Yeah, that does. So in order for the javascript to work, do i need to find the display.php on my server in order for the script to work?
  3. In the admin it tells me to use it to put this:to track clicks on a link, use this URL instead of the link original URL:Replace ID with the ID number of the URL, for example:So which one do you think i should use? the cc_display or the one above? If I use the one above, how would i go about doing it? Or how would i go about putting that url into the script?

  4. Actually, it looks like you can't use their script, you need to use your own.  If you go to that display.php, you see this:
    var ccount_link = new Array();ccount_link[12]=1359;ccount_link[13]=32091;ccount_link[15]=479;ccount_link[16]=2314;ccount_link[17]=27;ccount_link[18]=3;ccount_link[19]=548;function ccount_display(id){document.write(ccount_link[id]);}

    Obviously, there is no "5" in there, so your call to find 5 won't work, and even if it did, they wouldn't be your numbers.  So you will need to find where you have the display.php script installed and point your script tag there.  If you need a place to put display.php, I can probably give you one.Actually, I'm a little retarded today.  You don't just need the display.php file, you need the entire ccount installation somewhere that you can use.

    I can PM you and tell you where I have the ccount installed @ on my site. I had no idea that the script itself was the problem as the cause of the script not displaying on the page.
  5. OK, that works, we're making progress:The quotes work, the code looks good.  The problem now is that the function is not defined, so all you need to do is include a reference to the code for ccount.  On the PHPjunkyard link you posted above, it looks like they have this to include the code:<script language="Javascript" src="http://www.phpjunkyard.com/ccount/display.php"></script>If you have that display.php file on your own server then you can add a tag like this to point there, or else you can probably cheat and use the phpjunkyard version.  In that case, you would use the exact same code, but it's probably better if you use your own copy, just so that you know it won't change.  The tag above needs to go anywhere in the page before the call to ccount_display.  That should get everything working correctly.

    Edit: I tried it, and it still doesn't show. :)Yeah. I think you are right. I need to put the above script before the display script. I also asked for help on the wordpress forum and one guy gave me a plugin to use for the scripts to show up, and to edit my scripts, and I have done so but they stil arent's showing up. I think its because of ccount/display.php wasn't in the heading of where I want the display to show up at. I hope that makes sense.
  6. That's right, but replace those quotes with the character code & #34; (without the space).  You probably wrote that, but the forum software won't escape the ampersand, and if I write &#34; it decides not to convert the ampersand code.How about this:"Hey, that works.  That is the character code to replace the quotes with:"But first try only replacing the quotes around the 5, not the java script:<script language="Javascript"><code>ccount_display("5")</code></script>

    K. Wanna take a look and see if i did it correctly?I would ask on the wordpress support forum, but whenever i post there, i get 0 help at all. I didn't get any help on they're support irc server either. :)
  7. Hmm, like I said, I'm not sure how Wordpress works, but you might try this:Change this:
    ccount_display("5")

    into this:

    <code>ccount_display("5")</code>

    But that's a long shot, it probably won't work.wait, hold on, that's not rightI can't get the character codes to show up in this post, it keeps translating them to the actual characters.In my second chunk above, replace the quotes with & followed by #34;so it should look like this, but without the space: & #34;

    K. Here is what I have: <script language="Javascript"><code>ccount_display("5")</code></script></font>
  8. Hmm, like I said, I'm not sure how Wordpress works, but you might try this:Change this:
    ccount_display("5")

    into this:

    <code>ccount_display("5")</code>

    But that's a long shot, it probably won't work.wait, hold on, that's not right

    k. I'll give that a shot. If not, I will ask for wordpress support on irc or something.
  9. Well, you can if you have access to the PHP source.  If you do, I could help you add what you needed there.  Otherwise, there should be a way somewhere to disable the formatting that Wordpress does.

    Edit: I found this: http://codex.wordpress.org/Writing_Code_in_Your_PostsI just went to the page and did the "view source", so I'm not really sure as to how to get to the page by FTP if that is what you are saying. I downloaded that plugin, and it still doesn't fix the problem. I'm sure there is a way to disable the formatting that wordpress does, i'm just not sure where to find it.
  10. Well, I've never used Wordpress so someone else might have better information.  But this may be of help:I guess the question is whether or not this is a "post".  I'm just not real sure how Wordpress works and how you edit pages or what it does to the text you type in.  But I know that if you are able to save the source file and then edit it yourself, that will work.

    Yeah, every page is considered a "post". I can't modify wordpress's pages manually with a text editor. Wordpress is kinda complicating sometimes.
  11. Wordpress is probably converting all of your double quotes into "nicer looking" slanted double-quote looking characters.  If you can connect to your site and download your file through FTP and then just change it with a text editor, I'm sure it would work.  Or there might be a way to instruct Wordpress not to do that.

    Edit: I found this: http://codex.wordpress.org/Using_JavascriptI don't know if that will fix my problem or not, what do you think?
  12. The page is still showing the same javascript error:
    http://www.loveju1ie.com/journal/?page_id=18Unknown contextSyntax error while loading: line 1 of inline script at http://www.loveju1ie.com/journal/?page_id=18 : ccount_display(& #8221;5& #8243;)-----------------^

    It still has the entity characters there instead of quotes.  Are you using a normal text editor to make your changes, or do you have some web interface that you use to change the code?The code is pretty fractured, there is stuff scattered all over the place that should probably be in the head.  I can't tell if you are including the script to actually make the counter work (the script that defines the ccount_display function).  So make sure you have a reference to whatever javascript or PHP file contains the ccount_display function, and make sure that you have quotes around the parameter.

    hmm. I'm not sure what i'm doing wrong. I tried doing the quotes both ways and it still doesn't show the counter. I'm not using any text editor. I just edit the pages manually through the wordpress pages. I haven't had any trouble with javascript on my site until just recently. :) I have the script code on my index page 4 the journal, but not on the page that I want the counter to show up at.
  13. It looks like you have a javascript error on the page:<script language="Javascript">ccount_display(& #8217;5& #8242;)</script>What are you trying to do with that function, why do you have the entity codes there?  It looks like you are trying to give the function 2 entity codes and a 5 in the middle.  You can try quoting the whole thing and see if that works:ccount_display("& #8217;5& #8242;")But I think it is probably something else.Actually, looking at the page for the counter, I think you are trying to do this:ccount_display("5")Those two codes (#8217 and #8242) represent quote-like characters, so I assume you were just trying to give the function the number 5, which does go in quotes (actual quotes like I have above, not the character codes for characters that look like quotes).This is what the two characters look like around the 5.  They look like quotes, but they aren't.’5′ note: I had to put a space after each &, because it was trying to show the characters instead of show the code.  In actuality there is no space there

    Edit: I changed it again, and the script still isn't showing. :) I have it like this:<font color="aquamarine"><script language="Javascript">ccount_display("5")</script></font>
  14. k. so I found this php click counter, and I can't get it to display. I can't figure out why. I have read the readme, and did what it said, and put the codings in correctly but i don't know why its not displaying the clicks. I'm not sure If i should move the script folder to the location of the journal (where my site is technically at). I have the script folder in my public_html folder right now. You can see & get the script here: phpjunkyard.com Here is where I was trying to get the click counter to show up @:I wanted it to show up underneath the "Register here" link.

  15. Did you try this link with both IE and Firefox?  I guess you did, i've no idea why it works with FF and not IE  :)*edit - I just doubled checked the steps in post #6 and everything is working correctly for both browsers. weird :)

    hmmm. do you think my IE needs updated?? I think i have IE 6. I don't know why its not working for me either. :)
  16. haha! :) I sure will! :) For sure! :) I have one more quick question. In IE when I went to my site, and I looked at my cam effect, it didn't do the gradual "fading" like it does in Firefox. I can see the fade with firefox, but it doesn't show in IE. :blink: How can i make them both look the same in both browsers?

  17. Change it to your site name (requires a click)<A HREF="http://www.google.com" onMouseOver="JSFX.fadeIn('cam')" onMouseOut="JSFX.fadeOut('cam')"><img style="border: 1px solid black" class="imgfader" name="cam" src="http://so-you.net/home/tuts/html/noise/noise3.gif" width="142" height="110"></A>Or do you mean when they mouseover the pic without clicking it takes them to your page? But then they wouldn't see the noize picture change  :)

    Yes you were right. :) I want my visitors to see the noise effect. I wanted the (requires a click option) I just wasn't sure as to go about doing it. But this clears it up. Thanks alot Scott, for being so helpful!! Its greatly appreciated! :blink::)
  18. Thanks again, scott!!I have one more quick question. When someone mouses over to my cam pic and I wanted my visitors to go to my webcam page, how would i go about doing that with this script?

  19. Thanks Scott! Also, I want to add that i'm using a wordpress blog, and the cam effect I want it on is on my index page. Right now, I have the JSFX rollover, in a sub folder where the root of my wordpress blog is. Does the sub folder matter? or should i just put it in the root of my wordpress journal? I hope that makes sense.

  20. Thanks for the reply scott! :)I have the noise.gif uploaded on my server. The thing I got confused with is she has 2 diffrent codes. When i clicked on her "page source" she has a diffrent code than the one she gave in her tutorial. So i don't know which code to use (the one on her "page source" or the one that she gave on her tutorial page).Also, it does help seeing what you did with the google picture. Would i still have to use this link: http://so-you.net/home/tuts/html/noise/noise3.gif when doing mine? I wouldn't be stealing her bandwith?

  21. Hey... :) Thanks for replying. :)I'm trying to do what she has done with her webcam. If you look on the right side, and you put the mouse over her "Cam" you will see the effect that I am trying to get when you put the mouse over the "cam" picture. When you click on her "Cam" you see that "fading" effect, then it goes back to the scratches. Here is the Javascript coding I have right now: http://pastebin.com/723631I don't know why that other link didn't work.

×
×
  • Create New...