vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Countdown till newyear (editable for each time you want) (https://vborg.vbsupport.ru/showthread.php?t=46663)

flup 12-13-2002 10:00 PM

Countdown till newyear (editable for each time you want)
 
Will be displayed on top of index.php just like Vote My Site.

Hack Version: 1.0

Dean C 12-14-2002 12:12 PM

I can't see it... can you set up a test account please :)

- miSt

flup 12-14-2002 12:29 PM

Ok.

flup 12-14-2002 12:30 PM

Latest version: 1.01

Edit some text out.

flup 12-14-2002 12:33 PM

This will be shown:
http://sat-gsm.dyndns.org/forum/test.php

Graphics 12-14-2002 12:37 PM

Good work flup! :p

flup 12-14-2002 12:40 PM

Thx, hope some1 whant's to use is :)

LOD-squa 12-14-2002 04:55 PM

Nice, I might install it. To set it for the date my site will open.

MasterDuDe 12-14-2002 05:04 PM

Quote:

Originally posted by flup
Will be displayed on top of index.php just like Vote My Site.

Hack Version: 1.0

hey ... jouw ken ik :D

flup 12-14-2002 05:07 PM

Ffies denken.............

Chris M 12-14-2002 09:43 PM

Cool:)

Satan

flup 12-14-2002 09:51 PM

Thx

DonLKSAB 07-03-2003 07:18 AM

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

flup 07-03-2003 08:06 AM

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

DonLKSAB 07-03-2003 09:22 AM

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

flup 07-03-2003 10:22 AM

get rid of the <?php and ?> tags.
Ur working IN a php file remember;)

DonLKSAB 07-03-2003 10:25 AM

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

/DonLKSAb

flup 07-03-2003 11:05 AM

Hmm dunnow sorry


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01044 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete