Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 11-03-2008, 05:27 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, see your post:
Code:
&day=" + id, "AdventDay: " + id,"width=" + p
change into:
Code:
&day=" + id, "AdventDay","width=" + p
Maybe this will help. I think the "spacer" in the title is the mistake.

You can get german Support at your-vb.com if you like.
Reply With Quote
  #23  
Old 11-03-2008, 05:43 PM
Rottimom Rottimom is offline
 
Join Date: Sep 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working thank you now.

The correct line 38:

Code:
   window.open("./../../adventcalendar.php?do=open&securitytoken=" + parent.SECURITYTOKEN + "&day=" + id, "AdventDay","width=" + pw + ",height=" + ph + ",left=5,top=5,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
Reply With Quote
  #24  
Old 11-03-2008, 06:59 PM
petchat petchat is offline
 
Join Date: Oct 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coroner, your fix on Page One does work.

My line in complete now reads:

Code:
window.open("./../../adventcalendar.php?do=open&securitytoken=" + parent.SECURITYTOKEN + "&day=" + id, "AdventDay", + id,"width=" + pw + ",height=" + ph + ",left=5,top=5,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
It is line 75 on my advent.htm - It's probably around 38 on everyone elses though, Dreamweaver seems to have added an immense load of empty lines in my file. Grrr

Thanks very much
Reply With Quote
  #25  
Old 11-04-2008, 05:41 AM
Keesa Keesa is offline
 
Join Date: Oct 2007
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Auf Deutsch? Unsere Tokio Hotel vB wird so glücklich! Heehee.
Reply With Quote
  #26  
Old 11-04-2008, 07:21 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't get german support here.
See the post of @rottimom.

Change the line in advent.htm (I will change the download in the afternoon)
Reply With Quote
  #27  
Old 11-05-2008, 06:17 AM
carphead carphead is offline
 
Join Date: Oct 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With everything set up including the usergroup set to test and use when I call adventcalender.php I just get this displayed

options['advcsettings_online'] ? 1 : 0); $can_use_adv = (($permissions['adventpermissions'] & $vbulletin->bf_ugp_adventpermissions['canuseadvent']) ? 1 : 0); $can_test_adv = (($permissions['adventpermissions'] & $vbulletin->bf_ugp_adventpermissions['cantestadvent']) ? 1 : 0); if (!$can_test_adv) { if (!$is_online OR date('n', TIMENOW) != 12 OR !$can_use_adv) print_no_permission (); } $snowflakes = $vbulletin->options['advcsettings_snowflakes']; $have_snow = $vbulletin->options['advcsettings_snow']; $vbulletin->input->clean_array_gpc ('r', array ( 'do' => TYPE_NOHTML, 'day' => TYPE_INT, )); if ($vbulletin->GPC['do'] == 'open' AND $vbulletin->GPC['day']) { $data = $db->query_first ("SELECT * FROM " . TABLE_PREFIX . "adventcalendar_days WHERE adventcalendar_daysid=" . $vbulletin->GPC['day']); echo '
'; if ($data['bitfield'] == 1) { $size = ''; if ($data['pwidth'] AND $data['pheight']) $size = 'width="' . $data['pwidth'] . '" height="' . $data['pheight'] . '" '; echo ''; } else if ($data['bitfield'] == 2) { echo $data['data']; } echo '
'; exit (); } $navbits[''] = 'Advent Calendar'; $navbits = construct_navbits ($navbits); eval ('$navbar = "' . fetch_template ('navbar') . '";'); $pwidth = $pheight = $pcontent = array (0); $datas = $db->query ("SELECT * FROM " . TABLE_PREFIX . "adventcalendar_days ORDER BY adventcalendar_daysid ASC"); while ($data = $db->fetch_array ($datas)) { $pwidth[] = $data['pwidth']; $pheight[] = $data['pheight']; if ($data['image'] != '' OR $data['data'] != '') { if (($data['bitfield'] == 1 AND $data['image'] != '') OR ($data['bitfield'] == 2 AND $data['data'] != '')) $pcontent[] = 1; else $pcontent[] = 0; } else $pcontent[] = 0; } $tpl_pw = implode (',', $pwidth); $tpl_ph = implode (',', $pheight); $tpl_pc = implode (',', $pcontent); eval ("print_output (\"" . fetch_template ("adventcalendar") . "\");"); exit (); ?>

Any ideas? I've double checked that all the files are uploaded correctly.
Reply With Quote
  #28  
Old 11-05-2008, 06:45 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try to upload the php in binary mode.
Reply With Quote
  #29  
Old 11-05-2008, 10:59 AM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see the link in my navbar and I think maybe it's the template_hook missing.
I'm not aware of how to fix this problem. Could need a tiny piece of advice on this one, as I would love to have this running from 1.12.
PS Userrights has been assigned
Reply With Quote
  #30  
Old 11-05-2008, 03:55 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A little bit of code of the template navbar:

Code:
		<if condition="$show['registerbutton']">
			<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
		</if>
		$template_hook[navbar_buttons_left]
		<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
Reply With Quote
  #31  
Old 11-06-2008, 09:45 AM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK It's showing now, but with - at least I think - Java-related error. It breaks my fixed forum and keeps popping up and down in size - putting scrollbars on and off very fast?
Reply With Quote
Reply


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 06:21 PM.


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.07000 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
  • (5)bbcode_code
  • (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