Page 4 of 5 FirstFirst 12345 LastLast
Results 61 to 80 of 98

Thread: Countdown Module

  1. #61
    Join Date
    Dec 2007
    Posts
    172

    Default

    I'm no expert in javascript, actually, I'm not very good at it at all.
    So, my solution to the color issue is CSS.

    EG:
    #clock{
    color: red;
    background-color: white;
    font-size: 11px;
    }

    Hope this helps, if you are not familiar with CSS, there a re many more settings to choose.
    If you need to know where to put it in vb, let me know.

  2. #62

    Default

    I assume that would go in the template I've made for the clock?

  3. #63
    Join Date
    Dec 2007
    Posts
    172

    Default

    I put it in the Additional CSS Definitions, in the Main CSS part of Styles and Templates

  4. #64

    Default

    Brilliant! That got it thanks ... I had tried it under the additional CSS styles but thought I'd had to define a class for it, obviously not tho .

  5. #65

    Default

    Do have one minor 'annoyance' with it now, have it in a module but can only put it in the left column under the other modules. If it's put anywhere else it takes up the whole row and anything after it is put at the bottom of the forums.

  6. #66
    Join Date
    Jul 2008
    Location
    Ribeirão Preto - São Paulo
    Posts
    15

    Default

    Quote Originally Posted by rwoscott View Post
    I'm no expert in javascript, actually, I'm not very good at it at all.
    So, my solution to the color issue is CSS.

    EG:
    #clock{
    color: red;
    background-color: white;
    font-size: 11px;
    }

    Hope this helps, if you are not familiar with CSS, there a re many more settings to choose.
    If you need to know where to put it in vb, let me know.
    I prefer to do it with xhtml directly in the ad_portal_count:
    Add the code:
    Code:
    <font size="2" color="red">
    before
    Code:
    <script type="text/javascript">
    then just closes the tag by adding
    Code:
    </font>
    after
    Code:
    </script>
    <script type="text/javascript" src="http://www.yourdomain.com/forum/clientscript/countdown.js"></script>
    If you have acurate knowledge in xhtml, you can manage the text whatever you want to directly in the module template. =)
    If you dont have any idea on how to improve your xhtml knowledge try this website W3SCHOOL XHTML REFERENCE

    I hope it helps.

    Bests,

  7. #67
    Join Date
    Dec 2007
    Posts
    172

    Default

    I think you'll find <font> is not strictly XHTML anymore.
    Differences Between HTML and XHTML

    The font element was deprecated in HTML 4.01.

    The font element is not supported in XHTML 1.0 Strict DTD.
    XHTML recommends using CSS.

  8. #68

    Default

    Hi
    Thanx
    But what if I have more than one event?

    regards

    Hani

  9. #69

    Default

    Just create another CMPS module for it, that's what I did ... copied over the original one and just adjusted it.

  10. #70

    Default

    no need to duplicate templates or php files? only make a new adv_portal_count1, adv_portal_count2, adv_portal_count3 etc?

  11. #71

    Default

    Well I had to make a new template module for the second one, which of course means a new template's created. Then just edit the template to how you'd like it and away you go.

  12. #72

    Default

    Thats what I did, but it did not show the count douwn and screwed my firstc ountdown.
    I tried copying the JS, and rename it and call the new js from the template, but same thing.
    I am usung VB3.7.3 and CMPS 3

    regards

    Hani

  13. #73

    Default

    After replacing clientscript with js folder and putting the file in there everything works.

  14. #74
    Join Date
    May 2007
    Posts
    13

    Default

    Solution At post numer 51 run perfect. but i need multi countdow. Helpme please!

  15. #75

    Default

    i am using vbull 3.7.4 and cmps 3.0.1. i have managed to get it working fine, well nearly.
    In the file you download, the .js script is countdown(2).js. so if you dowload the original countdown.js script, it works.

    The problem i now have, when i view it using Opera, it works perfectly. I have set it to christmas day this year, and it shows 30 days. now if i view the forum using IE, it shows 414 days for some reason.

    I then re-read this thread, and changed my date around in the adv_portal_count so that it was mm/dd/yyyy. this then brought the IE version dow to 31 days, but it still says 30 days on Oprea!!

    Any ideas??

  16. #76

    Default

    Quote Originally Posted by a marked man 70 View Post
    i am using vbull 3.7.4 and cmps 3.0.1. i have managed to get it working fine, well nearly.
    In the file you download, the .js script is countdown(2).js. so if you dowload the original countdown.js script, it works.

    The problem i now have, when i view it using Opera, it works perfectly. I have set it to christmas day this year, and it shows 30 days. now if i view the forum using IE, it shows 414 days for some reason.

    I then re-read this thread, and changed my date around in the adv_portal_count so that it was mm/dd/yyyy. this then brought the IE version dow to 31 days, but it still says 30 days on Oprea!!

    Any ideas??
    ok i sorted it, i needed to change the PM to AM in the adv_portal_count

    Works a treat now, cheers

  17. #77
    Join Date
    Jan 2009
    Location
    Tokyo, Japan
    Posts
    3

    Default

    Spent ages trying to get the original code to work - failed.
    Used rwoscotts template/code (see post 51) and finally got it to work

    I'm pretty new to all this so well pleased

    On the left of the homepage:

    http://www.gaijingolfers.com

  18. #78
    Join Date
    Mar 2008
    Location
    Arizona
    Posts
    17

    Default

    Can anybody confirm this works with vB 3.8.1 and vBA CMPS 3.1.0?

    I would like to give it a shot but don't want to waste my time if it won't work.

    Thanks.
    I'm just a n00b from DooberVille

  19. #79
    Join Date
    Mar 2009
    Posts
    24

    Default

    How can you make more than one countdown?

    I tried to copy the .js file, naming it countdown2.js and then I copied the module, naming it _count2 and then I edited the code to make it point to the countdown2.js file, but it doesnt work. The module shows up as a second module on the homepage, but the timer mixes in with the first one that is already there... it's not giving me a separate timer.

    How can you make a second or third countdown on your homepage???

  20. #80
    Join Date
    Feb 2004
    Location
    Timisoara/Romania
    Posts
    41

    Default

    After some time I manage to install this. The module was working but no countdown. Finally I used the original JS file found here:

    http://www.hashemian.com/tools/javascript-countdown.htm

Page 4 of 5 FirstFirst 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Req: Countdown module vba CMPS using the calendar
    By The_Rayman in forum Module & Modification Discussion & Requests
    Replies: 8
    Last Post: 02-12-2007, 02:57 PM
  2. Module: Countdown to certain date
    By 58sniper in forum Add-On Modules & Modifications
    Replies: 36
    Last Post: 10-26-2005, 02:57 PM
  3. [req] countdown module
    By Milk Man in forum Add-On Modules & Modifications
    Replies: 20
    Last Post: 10-14-2005, 09:47 PM
  4. my countdown module problems
    By Nephalim in forum Module & Modification Discussion & Requests
    Replies: 3
    Last Post: 09-17-2005, 09:53 AM
  5. using a vba function (countdown) without adding module
    By axi in forum Troubleshooting / "How do I..." Questions
    Replies: 4
    Last Post: 02-27-2005, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •