vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Countdown to Calendar Event (https://vborg.vbsupport.ru/showthread.php?t=252146)

cindy helmond 10-26-2010 09:01 AM

Quote:

Originally Posted by starman? (Post 2114290)
Is the URL in the script code for the js file pointing to the right place?

Basic url: www.yoursite.com/forum

working url ? www.yoursite.com/forum/scripts/js ???? ore without www.

DjEddie 10-26-2010 11:51 AM

Quote:

Originally Posted by starman? (Post 2114290)
Is the URL in the script code for the js file pointing to the right place?

hi .. yes its pointing to the right place, it has been double checked ..

also when trying this on the widget cms side .. it only shows todays date in the countdown area .. so forum block and widget aren't working for me atm :S

thanks for the help :)

Cooleyvol 10-27-2010 12:59 AM

I need some help on creating a side block. I paste the code in when creating a block and have already added a calendar event.

When I go to the forum, all it shows is the code.

What are the selections I need to choose when creating a side block using this code?

JohnKF 10-28-2010 11:09 AM

When you create a Forum Block you need to select PHP in the Content Type section.

JohnKF 10-28-2010 11:24 AM

The code uses the title of the event in the calender to display above the countdown.

I suggest you create a calendar specific to Countdown Events and set it for Admin view only; as long as you set the correct calender ID in the code it will still be picked up.

To have a picture make the Title of the event in the calendar the HTML to display the picture. For example in the forum I look after I have the following as an event title...

HTML Code:

Halloween Evening<br /><img src="files/bv/images/halloween/pumpkin.gif" width="140" height="130" alt="">
...which shows as the text above in the calendar title but displays as text and a picture in the countdown.

You can see this at http://www.buckshawvillage.com/forum.php

You can use whatever HTML you like in the event title.

The code on that site is set up a little different to that posted here. Seconds are not shown until less than 24 hours. At zero there is a firework display over the page which lasts for 1 minute. Other than that it functions the same and the HTML title will work fine.

Cooleyvol 10-28-2010 05:10 PM

Quote:

Originally Posted by JohnKF (Post 2115197)
When you create a Forum Block you need to select PHP in the Content Type section.


I did select php and then pasted the code in. As I said, once I create an event in the calendar, the side block shows the code I input from here instead of the event countdown.

I'm sure its something simple, but I don't know how else to paste code and choose 'php' as the content type.

Cooleyvol 10-29-2010 09:06 PM

It was something simple. I'm a doofus.

JohnKF 10-30-2010 07:11 AM

Quote:

Originally Posted by Cooleyvol (Post 2115828)
It was something simple. I'm a doofus.

Share it with us please; it may help others who make a similar mistake.

Cooleyvol 10-30-2010 11:32 AM

I didn't put the line of code in the template as instructed. haha.

I did input my first event and the countdown was off by an hour, so I deleted the event and put it up again an hour different, but the countdown remained the same.

Any way to clear that? Is it cached?

JohnKF 10-30-2010 12:32 PM

You need to set the cache time to 1 minute.

For a widget this is done via the Configure link.
For a forum block this is done via the Edit link.

If the cache time is set too high, say 60 minutes, then a visitor may get a countdown that could be up to an hour out of date.

Even at 1 minute it will take up to 1 minute before a change in an edited event is replicated in the countdown.

If you're in a time zone that's currently using DST you should check your event as soon as DST ends as it may be an hour out in the countdown.


All times are GMT. The time now is 10:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01108 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete