View Full Version : Mini Mods - Advent Calendar 2010
Coroner
11-13-2010, 10:00 PM
Two years ago and xmas is knocking on the door (again).
Based on the 2008 advent-calendar, here comes the vB4 version.
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's necessary 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.
You can see the images here (advent calendar of 2008):
https://vborg.vbsupport.ru/showthread.php?p=1657818#post1657818
After installing, setting the Calendar online and set the usergroup permissions, you will find a new Link under "community"
Kraxell
11-14-2010, 02:56 PM
Really nice Add-On!
Tag it for December :)
BTW: Hast du dazu auch eine deutsche Version? :)
COL NIL SATIS
11-14-2010, 03:05 PM
Nice one mate...gonna try this one later
Coroner
11-14-2010, 03:22 PM
Really nice Add-On!
Tag it for December :)
BTW: Hast du dazu auch eine deutsche Version? :)
There's also a german product inside *g
Kolbi
11-14-2010, 04:11 PM
Thanks :)
Claudi
11-17-2010, 01:35 AM
Thanks :)
starman?
11-17-2010, 09:46 AM
Thank you indeed! :)
Cybeth
12-01-2010, 08:42 AM
Irgendetwas am Style stimmt nicht und die Breite.
https://vborg.vbsupport.ru/external/2010/12/82.jpg
flussmitteldj
12-01-2010, 10:28 AM
Bei uns läuft es gut!
Edit:
sehe gerade bei einer kleineren Auflösung habe ich auch das Problem!
ForenOpfer
12-01-2010, 12:35 PM
Uhmm... O.o
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)
Cybeth
12-01-2010, 01:37 PM
Hab ich gelesen und verändert, passt trotzdem nicht zusammen. Oben wo Advent Kalender steht, haut schon nicht hin. Man müßte das über die 100% Schiene machen, damit sich der Kalender an die Browsergröße automatisch anpasst.
ForenOpfer
12-01-2010, 05:06 PM
You should write your posts in english, otherwise they could be deleted by the mods here...
I customized the templates in every fixed style itself, so it works:
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td align="center" style="width:100%">
<table cellpadding="2" cellspacing="1" border="0" style="width:800px">
<tr>
<td align="center" height="600px">
<iframe src="images/advent/advent.htm" name="advent" style="width:100%; overflow:auto" height="600px" scrolling="no" marginheight="0" marginwidth="0" frameborder="1"><span class="normalfont">Sorry, you browser doesn't support frames.</span></iframe>
</td>
</tr>
<tr>
<td align="center">
<br /> -:[ <b>Advent Calendar</b> is copyright 2008 by <b><a href="http://www.php-unlimited.de">php-unlimited</a></b> ]:-
</td>
</tr>
</table>
To work with a 100% code won't work 'cause of the background image. You'll must have an image resizer to resize the background in the same width/length ratio.
Cybeth
12-01-2010, 08:46 PM
Scheiße funzt ebenfalls nicht, Add-ons nicht zu gebrauchen.
gruftiradio
12-03-2010, 03:37 PM
I use it and I love it.
Does this work only in 2010 or every december of every year?
tomerl1
12-07-2010, 06:36 AM
Hello,
(Bei manchen Usern wird nicht ganzes Popup angezeigt)
Some users will not all pop-up display.
(Teile werden einfach abgeschnitten)
Parts are simply cut off
(Woran kann es liegen)
What are the reasons?
Vikingant
12-09-2010, 01:27 AM
This is working fine...except day 8 isnt functioning :(
The calendar is pretty much hidden where it is so I created a new bbcode module for CMPS and simply entered this
[ url=http://mysite.com/adventcalendar.php][IMG ]http://mysite.com/attachment.php?attachmentid=863[ /IMG][ /url]
Its very basic but it works :D
Baf_Jams
12-09-2010, 10:04 AM
Great mod bur how do you edit the links ?
Vikingant
12-11-2010, 09:25 PM
In the ACP under Advent Canlendar there is a 'configure days' option. Click edit on whatever day you want to change.
Baf_Jams
12-12-2010, 07:47 PM
Thanks Vikingant I didnt even look down the left side , I was looking at everything else but there !! thnx again
Anopheles
11-05-2011, 09:16 PM
How must the code looks 4 a Download like this:
http://www.megaupload.com/?d=I#######
Thank u!
Anopheles
11-22-2011, 07:21 PM
Hmmmh, no answers?
Jaydee 2
12-15-2014, 09:49 AM
With a little bit modification it's still running in 4.2.2 and in the year 2014 as well. :)
At the behest of the forum owner many thanks for that - and from me merry christmas, a happy new year and best regards from Germany,
J?rg
Mr_Devlin
11-21-2015, 10:17 AM
The db-changes wil not happen, tables will not being created, check your SQL-syntax, seems to be outdated
Datenbankfehler in vBulletin 4.1.9:
Invalid SQL:
SELECT * FROM adventcalendar_days ORDER BY adventcalendar_daysid ASC;
Referrer : https://xxx/login.php?do=login
lendar_days ORDER BY adventcalendar_daysid ASC;
MySQL-Fehler : Table 'XXX.adventcalendar_days' doesn't exist
Fehler-Nr. : 1146
Fehler-Zeit : Saturday, 21.11.2015 @ 13:13:30
Datum : Saturday, 21.11.2015 @ 13:13:30
Skript : http://xxx/admincp/adventcalendar_admin.php
IP-Adresse : xxxx
Benutzername : xxx
Klassenname : vB_Database_MySQLi
MySQL-Version : 6.0.11-alpha-community
$db->hide_errors();
$db->query("ALTER TABLE `" . TABLE_PREFIX . "usergroup` ADD `adventpermissions` INT(10) UNSIGNED NOT NULL DEFAULT '0'");
$db->query("DROP TABLE IF EXISTS `" . TABLE_PREFIX . "adventcalendar_days`;");
$db->query("CREATE TABLE `" . TABLE_PREFIX . "adventcalendar_days` (
`adventcalendar_daysid` int(11) NOT NULL auto_increment,
`active` smallint(1) NOT NULL default '0',
`image` text NOT NULL,
`data` text NOT NULL,
`bitfield` int(4) NOT NULL default '0',
`pwidth` int(4) NOT NULL default '0',
`pheight` int(4) NOT NULL default '0',
PRIMARY KEY (`adventcalendar_daysid`)
) TYPE=MyISAM;");
Any help about this issue?
ProFifaLeagues
11-21-2015, 07:45 PM
The db-changes wil not happen, tables will not being created, check your SQL-syntax, seems to be outdated
$db->hide_errors();
$db->query("ALTER TABLE `" . TABLE_PREFIX . "usergroup` ADD `adventpermissions` INT(10) UNSIGNED NOT NULL DEFAULT '0'");
$db->query("DROP TABLE IF EXISTS `" . TABLE_PREFIX . "adventcalendar_days`;");
$db->query("CREATE TABLE `" . TABLE_PREFIX . "adventcalendar_days` (
`adventcalendar_daysid` int(11) NOT NULL auto_increment,
`active` smallint(1) NOT NULL default '0',
`image` text NOT NULL,
`data` text NOT NULL,
`bitfield` int(4) NOT NULL default '0',
`pwidth` int(4) NOT NULL default '0',
`pheight` int(4) NOT NULL default '0',
PRIMARY KEY (`adventcalendar_daysid`)
) TYPE=MyISAM;");
Any help about this issue?
Just tried this now and had the same issue mate :(
Dragonsys
11-21-2015, 11:03 PM
The error you posted does not correspond to the code you posted.
Just create the DB Table(s) manually.
Chances are the table was not created due to this:
TYPE=MyISAM
Hi,
change TYPE=MyISAM to TYPE=InnoDB
elikkha
10-26-2016, 04:24 PM
With a little bit modification it's still running in 4.2.2 and in the year 2014 as well. :)
Hello
Anyway to have a new version for VB4 ?
Impossible to create table, what is this modification please ?
Thanks for any help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.