Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Advent Calendar 2008 Details »»
Advent Calendar 2008
Version: 1.0, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 11-01-2008 Last Update: 11-03-2008 Installs: 75
DB Changes Uses Plugins Template Edits
Translations  
No support by the author.

What is it ?
It's a simply Advent Calendar. I've filled it with images,music and videos (youtube or myvideo).
Each day (there are only 24 ) can have an image url or data (data like: <object ....).

How does it works ?
Like an advent calendar. I've created an simply template with an iframe in it. In this frame you will see a background-picture, doors (is the word correct ?) (calendar days) and - if you set it to on - snowflakes.
This calendar can only use on december and a day will only open if it's the correct day or an earlier day.
Example: it's 7th of december, so you can open all day include the 7th.
Each day will give a popup window (you can change the size for each day).
If you try to open a calendar day on a later date it will give you an error (confirm script) - this can also, when a day is "empty".
Empty means:
You have entered an image-url but selected "data" (in admincp) or you selected "image" but the image-url is empty.
After install all 24 days are filled will "funny movies", "pictures", "flash" or "music". You can change everything you like.

There are a few settings (is online, snowflakes on/of and count of snowflakes).
Also there are only 2 permissions:
- the permission to use the calendar
- the permission to test the calendar

If you set a usergroup to test the calendar, the users can see and click all the days of the calendar - that needed for testing !

Some technical
The iframe-size is set to 1024x768 and can changed in the template adventcalendar.
All images, javascript and the background html lies in: images/advent.
If you wanna change the backgound-image, change "images/advent/wallpaper.jpg".
The snowflake image can also changed (images/advent/snowflake.gif)

Installation
There is NO installation READ.ME !
Simply upload all files and import the product.
The product creates a plugin that used $template_hook[navbar_buttons_left] for the navbar.

P.S. deutschen Support gibt es auch bei your-vb

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 11-12-2008, 04:21 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by darr3n View Post
small problem using opera browser, dates are all at the top of the screen

Hmm, I'll have it too .... will take a look to fix it
Reply With Quote
  #53  
Old 11-12-2008, 04:21 AM
Nadavy Nadavy is offline
 
Join Date: Nov 2008
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be cool if it was more compatible with other holidays such as Hannukah and Kwanza, regardless of whether they have advent calendars or not.
Reply With Quote
  #54  
Old 11-12-2008, 04:40 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Problem is Opera. It ignores the style vars

<div style="position: absolute; top: 20%; left: 5% ...

If you change it into fixed pixel (top: 50px; left 20px) it will works correctly
Reply With Quote
  #55  
Old 11-12-2008, 02:10 PM
bjkinzluvr bjkinzluvr is offline
 
Join Date: Sep 2008
Location: Ohio
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) I can't find where to set permissions??

2) I have no link on the nav bar. I've read all the other posts about this, but cannot find the solution. I am familiar with how to add links to the nav bar, but cannot figure this one out. Sorry. Would appreciate any help. Thanks.

From post #8:
Quote:
Set the userrights (enable: can test calendar). If so, check your template (navbar), maybe there's the template_hook missing.
Where do I find "Set the userrights" ?

What is the template_hook code? And does it go in advent_calendar template or navbar? I would assume navbar, but lost on this. Thanks.

Also: these two files are found in the "images" folder so that is where they now reside on my server "images/advent": advent.htm and adventsnow.jg. But those are not image files. Should they really be in the images folder?

Sory for so many questions, but I need help. Thanks.
Reply With Quote
  #56  
Old 11-12-2008, 02:33 PM
bjkinzluvr bjkinzluvr is offline
 
Join Date: Sep 2008
Location: Ohio
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coroner View Post
Sorry ....
Take a look in the product an locate this line.
When you say "in the product" which template is that?
Reply With Quote
  #57  
Old 11-12-2008, 03:59 PM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bjkinzluvr View Post
When you say "in the product" which template is that?
It's the product you use when you install the mod.
Reply With Quote
  #58  
Old 11-12-2008, 04:22 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bjkinzluvr View Post
1) I can't find where to set permissions??

2) I have no link on the nav bar. I've read all the other posts about this, but cannot find the solution. I am familiar with how to add links to the nav bar, but cannot figure this one out. Sorry. Would appreciate any help. Thanks.

From post #8:

Where do I find "Set the userrights" ?

What is the template_hook code? And does it go in advent_calendar template or navbar? I would assume navbar, but lost on this. Thanks.

Also: these two files are found in the "images" folder so that is where they now reside on my server "images/advent": advent.htm and adventsnow.jg. But those are not image files. Should they really be in the images folder?

Sory for so many questions, but I need help. Thanks.
1.) Usergroups
2.) The link only appears (in the Navbar) if one of those permissions is set to YES
The "test advent calendar" is for testing (the link will shown in the navbar directly)
"use the advent calendar": the Link is only avaible in december

template_hook: It's a hook inside a template (you can use it to insert html inside a template without modification)

Yes, you really need to upload both files (see my strucure)

regards
Reply With Quote
  #59  
Old 11-12-2008, 06:07 PM
bjkinzluvr bjkinzluvr is offline
 
Join Date: Sep 2008
Location: Ohio
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coroner View Post
1.) Usergroups
2.) The link only appears (in the Navbar) if one of those permissions is set to YES
The "test advent calendar" is for testing (the link will shown in the navbar directly)
"use the advent calendar": the Link is only avaible in december

template_hook: It's a hook inside a template (you can use it to insert html inside a template without modification)

Yes, you really need to upload both files (see my strucure)

regards

Thanks very much the answers and support. I've got a link after giving test permission. Calendar opens, but when I click on the numbers, I get an error message and no pop up window. It just says, "Error on page" I corrected my line 38 in Dreamweaver like in post #22, but it still has error. Any ideas? Thanks.

EDIT: It's working now. I had to clear my cache. Thanks so much!! This looks like it will be fun!!!
Reply With Quote
  #60  
Old 11-13-2008, 02:26 PM
gazzak gazzak is offline
 
Join Date: Sep 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and testing great. This is going to be very very popular.

What I'd like to know is how this works for the users? Do they only have access on the 1st of december to day 1, or must we add the code daily?
Reply With Quote
  #61  
Old 11-13-2008, 05:13 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Normaly it's viewing on december.
you can test this (I haven't !)

adventcalendar.php
search for:
Quote:
if (!$is_online OR date('n', TIMENOW) != 12 OR !$can_use_adv) print_no_permission ();
and change into:
Quote:
if (!$is_online OR !$can_use_adv) print_no_permission ();
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04820 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete