Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Christmas Message with jquery Details »»
Christmas Message with jquery
Version: 1.00, by ALBCODERS ALBCODERS is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.0 Rating:
Released: 12-27-2010 Last Update: Never Installs: 22
Template Edits
Additional Files Translations  
No support by the author.

Hi to all, this was a wordpress plugin by CSSJockey but I have just fixed it for vbulletin for my Forum and i want to share with you.
With This template modification your visitors will see this sexy message only one time on your site.


Upload the Images folder on your root directory and follow this instructions:

Open your headinclude template and add the code at the bottom:

PHP Code:
<link rel="stylesheet" href="{vb:raw vboptions.bburl}/images/christmas/style.css" media="screen" />
<
link rel="stylesheet" href="{vb:raw vboptions.bburl}/images/christmas/scroll.css" media="screen" />
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/images/christmas/jquery.js"></script>
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/images/christmas/scroll.js"></script>
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/images/christmas/rounded.js"></script>
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/images/christmas/jquery.cookie.js"></script>
<!--[if 
lte IE 6]>
<
link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/images/christmas/styleie6.css" media="screen" />
<
script type="text/javascript"DD_roundies.addRule('.pngfix'); </script>
<![endif]-->
<!--[if 
lte IE 7]>
<
link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/images/christmas/styleie7.css" media="screen" />
<![endif]-->
<
script type="text/javascript">
    var 
$xmas jQuery.noConflict();
    
$xmas(window).ready(function(){
    var 
show $xmas.cookie("xmas");
    if(
show == null){
        
$xmas('#xmas').fadeIn(300, function(){
        
$xmas(this).removeClass('hidden');
        });
    }
    })
    
$xmas(document).ready(function(){
    
$xmas('a#xmasclose').click(function(){
        
$xmas('#xmas').fadeOut(300, function(){
        
$xmas(this).addClass('hidden');
        })
        
$xmas.cookie("xmas""0", {expires1});
        return 
false;
    })

    })
    
$xmas(function(){
    
$xmas('.xmas-msg').jScrollPane({showArrows:true});
    });

</
script
Now Firs Edit your message and open the footer template to add the code on the top:

HTML Code:
<div id="xmas" class="xmas-hidden">
    <div id="xmas-santa">
	<img class="pngfix" src="{vb:raw vboptions.bburl}/images/christmas/xmas-santa.png" alt="" />
    </div><!-- /xmas-santa -->
    <div id="xmas-bg" class="pngfix">
	<h1 class="xmas-h1">Marry Christmas</h1>
	<div class="xmas-msg">
	    Your Message Goes Here!!!!!!!!!
	</div><!-- /xmas-msg -->
	<div id="xmas-close"><a id="xmasclose" href="#" title="Close">Close</a></div><!-- /xmas-close -->
    </div><!-- /xmas-bg -->
</div><!-- /xmas -->


If you want to show it only to unregistered users use this other one:

HTML Code:
<vb:if condition="$show['guest']">
<div id="xmas" class="xmas-hidden">
    <div id="xmas-santa">
	<img class="pngfix" src="{vb:raw vboptions.bburl}/images/christmas/xmas-santa.png" alt="" />
    </div><!-- /xmas-santa -->
    <div id="xmas-bg" class="pngfix">
	<h1 class="xmas-h1">Marry Christmas</h1>
	<div class="xmas-msg">
	    Your Message Goes Here!!!!!!!!!
	</div><!-- /xmas-msg -->
	<div id="xmas-close"><a id="xmasclose" href="#" title="Close">Close</a></div><!-- /xmas-close -->
    </div><!-- /xmas-bg -->
</div><!-- /xmas -->
</vb:if>

Download Now

File Type: zip Christmas-Mess.zip (81.8 KB, 250 views)

Screenshots

File Type: gif christmasgif.gif (56.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 12-28-2010, 10:43 PM
LouisB LouisB is offline
 
Join Date: Jan 2010
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a bit late?
Reply With Quote
  #3  
Old 12-28-2010, 10:45 PM
worried worried is offline
 
Join Date: Jan 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A day late and a dollar short.
Reply With Quote
  #4  
Old 12-28-2010, 10:57 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice...instaled...for good mods is never to late...
Reply With Quote
  #5  
Old 12-29-2010, 05:38 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much. I just replaced the 2 images with something for New Year, and changed the text. And it looks great for New Years!
Reply With Quote
  #6  
Old 12-29-2010, 06:50 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to get this to appear everytime - or at least until I change out the pictures....then change it back....lol....I was able to view my changes the first time.....but now I can't seem to bring it back....I feel kind of dumb about that right now. lol.
Reply With Quote
  #7  
Old 12-29-2010, 10:06 AM
Huy Ho?ng Huy Ho?ng is offline
 
Join Date: Dec 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice
Reply With Quote
  #8  
Old 12-29-2010, 10:46 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
Thank you very much. I just replaced the 2 images with something for New Year, and changed the text. And it looks great for New Years!
Are you willing to share your images you used for new year?

Quote:
Originally Posted by Krusty1231 View Post
How to get this to appear everytime - or at least until I change out the pictures....then change it back....lol....I was able to view my changes the first time.....but now I can't seem to bring it back....I feel kind of dumb about that right now. lol.
Try clearing your cookies.
Reply With Quote
  #9  
Old 12-29-2010, 11:51 AM
ALBCODERS ALBCODERS is offline
 
Join Date: Apr 2009
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LouisB View Post
It's a bit late?
Quote:
Originally Posted by worried View Post
A day late and a dollar short.
for 2012
Reply With Quote
  #10  
Old 12-29-2010, 12:00 PM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlbCoder View Post
for 2012
lol you mean 2011?

Think I might try this for New Year.

Then there's the anniversary of my forums.... then Xmas 2011....

Lots of reasons to have this Mod. :up:
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 03:27 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.06367 seconds
  • Memory Usage 2,355KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_html
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete