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)

Cooleyvol 10-30-2010 03:21 PM

Thanks, bro! That took care of it!

OldSchoolDSL 11-04-2010 02:23 AM

I'm having a hard time getting it to work on my site. It should be counting down to New Years, but rather it keeps counting down to the end of Day Light Savings time. I'm very sure the event is ID 1 is for new years on my calendar

JohnKF 11-04-2010 07:27 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2117742)
I'm having a hard time getting it to work on my site. It should be counting down to New Years, but rather it keeps counting down to the end of Day Light Savings time. I'm very sure the event is ID 1 is for new years on my calendar

The only ID you can change is the $event_calendarid which should be set to the calendar id that you want countdown events to come from. Calendar ID 1 is most likely your default calendar. I would recommend creating a new calendar for admin view only which can contain only events that should appear in the countdown. Doing this allows you to include HTML in the title for pictures, formatting, etc. and prevents anyone else seeing what events you have set for a countdown.

When you select a calendar you will see the ID in the address bar of your browser...
/calendar.php?calendarid=1

Also, try to always have another event ready for countdown after the first event has reached zero. The code picks up the first two events and counts down to the first one, then starts the second event countdown.

OldSchoolDSL 11-04-2010 12:43 PM

The only count down I'd like it to do is from my default calender & from my Holiday Manager. It's pointing to a revolving event (new years, 1x each year, every year).

Do you plan on release a new version to which can be easily configured via The Admin Control Panel or would I always need to edit script code?

JohnKF 11-05-2010 09:54 AM

It's unlikely that I'll create a version that's edited via the control panel as creating a special calendar for events, with permissions set to admin view only, provides all the control you need without the need to visit the control panel.

Dreadan 11-05-2010 02:23 PM

Is there any way to have it show reoccurring events?

JohnKF 11-05-2010 07:07 PM

I don't think you can stop it showing recurring events. That's wrong it seems. Must be the way recurring events are stored using the first one as a seed; once the first one has passed there are no further entries in the database.

denman75 11-05-2010 09:19 PM

the calender only goes to 2010 ,u cant select 2011 yay we need bug killer here.

psypher 11-06-2010 04:21 AM

works good

JohnKF 11-06-2010 08:31 AM

Quote:

Originally Posted by denman75 (Post 2118448)
the calender only goes to 2010 ,u cant select 2011 yay we need bug killer here.

You set the range of the calendar in AdminCP

OldSchoolDSL 11-06-2010 09:41 PM

Uninstalled

You currently have this modification tagged.

(I'll keep an eye on this and see if either the developer or another user developed this further. I like the idea, but not the requirements of having to make a "private calendar", always having to edit code, & it also does not fit my current simple needs)

dcuellar 11-15-2010 04:14 PM

I am not seeing anything in the forumblock. Do I have to put anything in the template to use?

It's just giving me a blank block. Any help would be appreciated!

dcuellar 11-15-2010 04:19 PM

Could it be that I'm using vBulletin 4.0.2?

eddl 11-17-2010 07:46 AM

Quote:

Originally Posted by betts02 (Post 2110937)
As i stated then ?

Also looking more into this

If you post and event it shows up
But if you then post an event before the first event it does not display

Will get it working myself anyway mate cheers

How did you fix this? Ant time you post an event dew befour the one already counting done the cownt down id just blank.

wampforum 12-23-2010 01:56 PM

cant get this this to work either - the widget box is showing but nothing within it. checked all the codes,templates and everything several times now no joy.
Shame would have been a useful mod

Kyojii 12-27-2010 01:02 AM

I think vB has just raped the code that this modification uses sadly.

OldSchoolDSL 12-28-2010 01:01 AM

Quote:

Originally Posted by wampforum (Post 2138093)
cant get this this to work either - the widget box is showing but nothing within it. checked all the codes,templates and everything several times now no joy.
Shame would have been a useful mod

Same issue

It was working, but no longer.

4.1 PL2

Merlok 04-15-2011 07:57 AM

Works great for me. How can I change the showed time in a format like this:
dd:hh:mm:ss (dd:hh:mm:ss)

Example:
18:8:24:35 (dd:hh:mm:ss)

Thanks in advance.

maineGuy72 05-08-2011 01:27 AM

anyone figure out why it showing just a blank box?
i am running 4.1.3
thanks

TheChief 05-08-2011 10:10 AM

Have you changed the file path, when you amend the code:

<script src="scripts/eventcountdown.js" type="text/javascript"></script>

i had to change "scripts/eventcountdown.js" to

"clientscript/eventcountdown.js" as that was where i placed the .js

TheChief 05-08-2011 10:12 AM

Also, has anyone figured out how to display more than one event as mine still only shows one eventhough i've amended the:

("SELECT eventid, title, dateline_from from " . TABLE_PREFIX . "event WHERE calendarid='".$event_calendarid."' $and order by dateline_from ASC LIMIT 2"); to ASC LIMIT 5

kylek 07-31-2011 07:48 AM

Anyone having any luck with this.

kylek 12-29-2011 09:31 PM

Dam, was hoping someone took a look and got it working for the latest versions of vb.

mgurain 04-29-2012 10:30 AM

The idea of this mod is perfect, any body can upgrade it ?

Regards,,

DocZaius 09-18-2012 01:42 PM

Hm. Forum block works perfectly, but the widget is just blank.

edytwinky 09-19-2012 03:40 PM

ANybody using this on vb 4.2?

fxdigi-cash 05-07-2013 03:04 AM

ok, this is what I was looking for, but seems have some issue with multiple events...!!

I wish I know how to fix it... :(

Vick98 08-20-2013 10:16 PM

Can anyone rework this mod?

tbworld 08-20-2013 10:22 PM

The code is marked reusable. So if someone wants to tell me in detail what is not working and under what circumstances, I will take a look at it when I have the time. I can't promise anything because I haven't looked at the calendar code in awhile. Some code isn't fixable and I do not have the time to rewrite the whole modification.

I will try to fix the known issues, I will not be taking on support of the mod.

VanFenix 09-19-2013 12:43 PM

I cannot get this to function on my VB 4.2.1
The headinclude on my template is edited - path is correct to the .js file.

I've got the widget created
Widget Name = Event Countdown
Widget Type = PHP Direct Execution
Within the Configure area I have pasted the wall of code.

Forum Block Manager.
Name : Event Countdown
cache time - 1 minute
active : yes
type : php
content - ( I have the wall of source in there )

The problem is that the block on the forums page has no content in it.
Calendar ID is : 1

Glenn379 11-18-2013 04:42 AM

This would be very helpful but the mod doesn't work for me. If this gets reworked, I'd be very interested.

Yetist0rm 02-19-2014 04:24 PM

Does anyone have this working as a widget on 4.2.2? I would really love to use this but I can't seem to get it to work!

poita 03-02-2014 12:39 PM

Keen to see this updated for 4.2.2

Hopefully someone can get it working

fxwoody 01-25-2015 12:33 PM

It works for me in 4.2.2 pl4. Setup the HTML "on" in the calendar option to help out ;)
Is there a way to translate the "weeks, days, hours" in french ??
Stuck on this one and as for the image with the heading, i can't get this to work :(

htscpl 07-02-2015 07:06 PM

Just Installed and seems to be working on VB 4.2.2 PL4. Would like multiple events but for right now I will take what I can get.

HM666 07-27-2017 02:31 AM

This also is working on vBulletin 4.2.5. I would love to be able to display a countdown list of events as my site has more than one event on any given day.

myke2008 01-11-2018 12:37 AM

Got this working myself in 4.2.5 Thanks!

However the only issue I have left to figure out is the time offset is wrong. I have my board and everything I can find set to CST -6 but the countdown is 6 hours off.

The work around I found is to set the time zone to GMT -0 in the calendar event, then the time is synced correctly.

Any idea's?


All times are GMT. The time now is 12:18 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.01329 seconds
  • Memory Usage 1,784KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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