Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Countdown till newyear (editable for each time you want) Details »»
Countdown till newyear (editable for each time you want)
Version: 1.00, by flup flup is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-13-2002 Last Update: Never Installs: 28
 
No support by the author.

Will be displayed on top of index.php just like Vote My Site.

Hack Version: 1.0

Show Your Support

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

Comments
  #12  
Old 12-14-2002, 09:43 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool

Satan
Reply With Quote
  #13  
Old 12-14-2002, 09:51 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx
Reply With Quote
  #14  
Old 07-03-2003, 07:18 AM
DonLKSAB DonLKSAB is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I realy like the hack.
But i dont want it on the top of the page.
I want it here in the red square: ( seet attached image )

/DonLSKAB
Reply With Quote
  #15  
Old 07-03-2003, 08:06 AM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might add a template to your forum called: Countdown
Put this script in it:
PHP Code:
// Change the viriables down here
$day 1;
$month 01;
$year 2003;
// Don't change anything after this

echo("We have to wait ".(int)((mktime (0,0,0,$month,($day+1),$year)-time(void))/86400)."
days till 
$day-$month-$year."); 
after that goto the template you have made with 'test' in it,
replace test with '$Countdown' and it should work
Reply With Quote
  #16  
Old 07-03-2003, 09:22 AM
DonLKSAB DonLKSAB is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm.
That gave me a hint.
But it dont work.

I have made a template called "Test"
PHP Code:
<!-- test -->
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#666666"  width="80%" align="center">
  <tr><td>
      <table cellpadding="4" cellspacing="1" border="0"  width="100%" align="center">
        <tr align="center"> 
          <td bgcolor="#333333"><font color="CCCCCC" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>
            <?php
// Change the viriables down here
$day 1;
$month 8;
$year 2003;
// Don't change anything after this

echo((int)((mktime (0,0,0,$month,($day+1),$year)-time(void))/86400)."
Dagar kvar till Joy Masters."
);
?>
            </strong></font> </td>
        </tr>
      </table>
</table>
<!-- test -->
And then i put a $test in my forumhome template.
And added
PHP Code:
eval("\$test = \"".gettemplate("test")."\";"); 
to my index.php.

It works 50% it shows the table but nothing in it. So the php code dont work. If i put some text before or after the <?php / ?> it displays fine.

The idea that flup has gives the same Table but no text.

/DonLKSAB
Reply With Quote
  #17  
Old 07-03-2003, 10:22 AM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

get rid of the <?php and ?> tags.
Ur working IN a php file remember
Reply With Quote
  #18  
Old 07-03-2003, 10:25 AM
DonLKSAB DonLKSAB is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i tryed that before.
Then it prints out the code in the table.

/DonLKSAb
Reply With Quote
  #19  
Old 07-03-2003, 11:05 AM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm dunnow sorry
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 09:53 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.04180 seconds
  • Memory Usage 2,290KB
  • 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
  • (3)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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