Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Xmas decoration

Asked Modified Viewed 1,048 times
S
sebciu
S
sebciu 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

Hi, I have a little problem.
I wanted to decorate my site for Xmas.
I wrote a code and putted it to Banners, but it doesn't work.
I don't know, maybe it's matter of condition...? Please help.
Thx.
The code looks like that:

<?php if ((date('j m') >= '29 11') || (date('m') == '12') || (date('j m') <= ' 6 1')) { ?>
<div style='position:absolute;top:0;left:0;z-index:2;
'><img src='<?php echo THEME; ?>images/xmas.gif'  border='0'></div>
<div style='position:absolute;bottom:24px;right:360px;z-index:2;
'><img src='<?php echo THEME; ?>images/xmas2.gif'  border='0'></div>
<?php } ?>
0 replies

1 post

F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

You can test your statement by only giving one date instead of multiple and increment it from there,

Personally I find your code very messy to read and debug the with alternative standards ( closing and opening php tags ).
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
S
S
sebciu 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet