Uridium Posted November 11, 2009 Share Posted November 11, 2009 If no-one has ever seen an Advent calendar then visit google ;) But for those that have then you will understand the concept of this mod There are 25 doors to open on the calendar ranging from day 1 to 25th < Xmas Day > Whilst users are opening the doors they will get a nice cash reward for each day and just so this Mod isnt boring once a door has been opened the user can click on the Advanet calendar to reveal an image behind the door... Theres a big Surprise for Members once the 25th has been reached. I'll post some screenies for you all to see it... In a few minutes... SCREENIES Calendar Frame..... A Few Random doors Opened Christmas Message ( when door 25 is opened ) Quote Link to comment Share on other sites More sharing options...
Gucci Mane Posted November 11, 2009 Share Posted November 11, 2009 I am feeling this mod lol Ill def be using if my games done before christmas!! +1 Quote Link to comment Share on other sites More sharing options...
fbiss Posted November 11, 2009 Share Posted November 11, 2009 Will you be posting the code for this? if not this is in the wrong category Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 11, 2009 Author Share Posted November 11, 2009 It will be posted as soon as its been tested for bugs or issues. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 11, 2009 Share Posted November 11, 2009 Looks fun mate, good job can't wait to see the code. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 12, 2009 Author Share Posted November 12, 2009 SQLS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Call this file advents.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now create a TXT file call it words.txt and add these words or you can make up your own... Did you know: Pope Julius Ist declared Christ’s birthday as December 25th sometime during the 4th century. Did you Know: Christmas trees received their first written acknowledgement in Germany in 1531. Did you Know: The first Christmas card was designed by John Horsley in 1840 but was not sold until 1843. Did you Know: Alabama was the first state in America to proclaim Christmas day as a legal holiday in 1836 Did you Know: Austria issued the first Christmas stamp in 1937 Did you Know: Christmas Pudding was originally a type of porridge with fruit in it Did you Know: In the festive song, ‘The 12 Days of Christmas’, there are 364 gifts. Did you Know: Italian children are brought gifts by a friendly witch, as well as Santa Claus Did you Know: The average person in Britain sends 50 Christmas cards Did you Know: This great script was written by illlusions Did you Know: The Queen's Christmas speech was first shown on television in 1957.[/b[ PART 2 Follows Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 12, 2009 Author Share Posted November 12, 2009 make sure you upload the words.txt to your server call this file adventcal.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. PART 3 FOLLOWS Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 12, 2009 Author Share Posted November 12, 2009 now call this file adventimage.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And call this one adventgraph.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this small piece to your cron_day.php $db->query("UPDATE users SET calturn=1 WHERE calturn=0"); And finally upload these images the Main image goes in your root folder adventgridnumbered.png then create a folder on your ftp for images/xmas and place all the rest of the images nito the xmas folder. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 12, 2009 Author Share Posted November 12, 2009 download adventimages dowbnload the below Zip extract the image called adventgridnumbered.png and place it into your public_html folder download Image for Root <<< IMAGE UPDATED SORRY MY FAULT.... FORGOT TO MENTION add a link on mainmenu.php or explore.php pointing to adventcal.php WORKING DEMO you will have to register when REGD goto adventcal.php if you like this script then gizz some dosh i know its a freebie but hey Christmas is drawing near :) [paypal][email protected][/paypal] Quote Link to comment Share on other sites More sharing options...
Dayo Posted November 12, 2009 Share Posted November 12, 2009 Cool mod, Gona add a few things thogh like points donator days and money maby make an item called chocolate :D insted of 25 fields added to the user tabl;e why not do something like FIELD NAME befor colected - 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 FIELD NAME AFTER CLOLECTED - 1c,2c,3c,4c,5c,6c,7c,8c,9c,10c,11c,12c,13c,14c,15c,16c,17c,18c,19c,20c,21c,22c,23c,24c,25c $fields = explode(',', $ir['FIELD_NAME']); //probly is a better way to do this $int = (int) $fields[1]; if ($int==$fields[1]) {//colect} else {echo 'you have this pack';endpage();exit;} by no means am i saying this work just saying it saves code plus data Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 12, 2009 Author Share Posted November 12, 2009 when you run out of coffee at 4:30am you dont care how the tables look ;) However i am working on a paid vesion of this which will i clean up And still need to add the calcount which just tells the users which day they are on The hardest part was the Co-ords that took the longest time as some of the grid Squares are not equal to 100x100 some are smaller.. I used Coral, Paintshop Pro for the co-ords to begin with and found that Crappy Microsoft Paint Worked the best at giving me a better idea of the Co-ords... **FOOTNOTE** Ive set the calturn to 0 but you will need to alter table users set calturn=1 where calturn=0 On the 1st so that will start the calendar off then add the cron for it on that day.. Quote Link to comment Share on other sites More sharing options...
chicka Posted November 12, 2009 Share Posted November 12, 2009 This looks very very nice and its a great idea. Very well thought of illusions and you get a +1 from me. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 15, 2009 Author Share Posted November 15, 2009 HAs anyone got this setup yet or is anyone having issues with this script if so post on here and i'll do my best to help you out. Quote Link to comment Share on other sites More sharing options...
Shide Posted November 15, 2009 Share Posted November 15, 2009 Love your mods I will get it up so that you can check it out Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 15, 2009 Author Share Posted November 15, 2009 Love your mods I will get it up so that you can check it out Thanks Shide.. if you come across any errors or problems juts post i'll help you set it up. Quote Link to comment Share on other sites More sharing options...
Mcfarlin Posted November 15, 2009 Share Posted November 15, 2009 looks good on the test site. but, it lets me keep opening the box over and over. ?? dont think you meant for that did you? and the opened box did not show up after i opened one. but still a nice mod. most of your mods are very good and bug free. keep up the great work. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 15, 2009 Author Share Posted November 15, 2009 looks good on the test site. but, it lets me keep opening the box over and over. ?? dont think you meant for that did you? and the opened box did not show up after i opened one. but still a nice mod. most of your mods are very good and bug free. keep up the great work. The TEST site allows 24 doors to be opened at once so you can See the calendar and test it However when its on your site you calturn will be set at 1 door to be opened per day... and the opened box did not show up after i opened one. but still a nice mod. Mcfarlin i see you opened the same door 8 times Thus meaning you didnt goto Door 2 you must have refreshed the screen on door. This is to stop epople going straight from 1 and opening door 25. Quote Link to comment Share on other sites More sharing options...
Shide Posted November 16, 2009 Share Posted November 16, 2009 Looks Great thanks for the help Quote Link to comment Share on other sites More sharing options...
Shide Posted November 16, 2009 Share Posted November 16, 2009 First View Pressing # 1 Pressing after your first visit When you View your Calendar Thanks for everything :D Quote Link to comment Share on other sites More sharing options...
Mcfarlin Posted November 16, 2009 Share Posted November 16, 2009 lol yes i am a refresh whore i know. but still (with my refreshing) a very nice mod as always from illusions. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 25, 2009 Author Share Posted November 25, 2009 is anyone using this mod/plugin or is it due to the use of the base64 ive used to encode it.. if so i'll replace with orginal script if its that, thats causing anyone not to use it. Quote Link to comment Share on other sites More sharing options...
Mcfarlin Posted November 25, 2009 Share Posted November 25, 2009 after this weekends hubub is all over, i was gonna give this one a go. ill let ya know how it turns out illusions. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 25, 2009 Author Share Posted November 25, 2009 cheers pal if the base64 is a problem i'll re post back to original Quote Link to comment Share on other sites More sharing options...
gideon prewett Posted November 26, 2009 Share Posted November 26, 2009 i will be using it but i haven't set it up Quote Link to comment Share on other sites More sharing options...
Mcfarlin Posted November 26, 2009 Share Posted November 26, 2009 [mysql]The requested URL /adventgraph.php was not found on this server.[/mysql] i looked to see if i missed that file, three times. lol but i dont see that its posted here. and shouldnt [mysql]$db->query("UPDATE users SET calturn=1 WHERE calturn=0");[/mysql] be [mysql]$db->query("UPDATE users SET calturn=calturn+1");[/mysql] correct me be all means if im wrong, but the first one will just set those who have not went to the advent calender and opened one, to they have opened one. the second one should keep those who have not opened any from joining in the fun mid way through the calender and getting the benefits of the whole thing. would it not? it would keep a guy from going there on the last day and just opening all of them right? that way they are rewarded for being active, not being on the last day. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.