Jump to content

nocniagenti

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nocniagenti's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok , do you mind moving this to right one and help out if possible ?
  2. how it is not? code block would open a file or am I wrong here?
  3. I am struggling with some WZ issues . Is there any script that would place a peace of info in file header on download . Like username and such. Kinda like Vbulletin has , once you download the zip file, all file headers inside the zip have your license code in them. # ------------------------------------------------------------------------ # Product name - Your License 123456 or username # ------------------------------------------------------------------------
  4. no wait echo "Expiration Date: ".$expire." <br />"; is Expiration Date: 2009-03-25 Your membership will expire on 03-25-2009
  5. for Expiration Date: 2009-03-25 Your membership will expire on 2009-25-03 and echo "10 Days from now: ".date("m-d-Y",strtotime(+10 Days)); is giving me syntax error, unexpected T_STRING in line 53 which is echo "10 Days from now: ".date("m-d-Y",strtotime(+10 Days));
  6. Does not work , tried both , this is second snipet , user expire set to 3-25-09 foreach ($_SESSION['_getsubscription'] as $p){ if ($p['completed']) $expire = $p['expire_date']; } if(date("m-d-Y", strtotime("+10 days"))==date("m-d-Y", strtotime($expire))) { echo 'Renew NOW'; }else{ print "Your membership will expire on " . date('m-d-Y', strtotime($expire)); } I get Your membership will expire on 03-25-2009
  7. I have memberships where expiration format date is as follows Your membership will expire on 05/15/2009 code to output is print "Your membership will expire on " . date('m/d/Y', strtotime($expire)); where $expire is being pulled from session that has the data , what I need is some math to remind user to renew membership or show renew link, 10 or 15 days before membership expires. something like if($expire < 10days){ echo 'Renew link'; } Any help is appreciated
  8. love you guys both of you where right the last post made it work code looks like this now <?php $newsflash = 0; $banner= 0 ; if (mosCountModules('user2')) $banner++; if (mosCountModules('user3')) $newsflash++; if (( $newsflash == 1 ) && ( $banner == 1 )) { $newsflashdivwidth = '390px'; $bannerwidth = '532px'; } elseif (( $banner == 1 ) && ( $newsflash == 0 )) { $bannerwidth = '946px'; } elseif (( $banner == 0 ) && ( $newsflash == 1 )) { $newsflashdivwidth = '946px'; } ?> it was suposed to be && not || thank you!!!!
  9. OK friends I need a small if statemant to help me change width of the div's the explanation should be like this if user2 and user3 modules are published (this are 2 horizontal modules that are placed inside a div #mid width=950px ) user2 widht= 530px user3 width=390px if only user2 module is published user2 width=950px and finaly if only user3 module is published user3 width=950px this is what I have so far and only the first statmeant is working like it shold. the other 2 always stay at 532px or 390px depends if user3 or user2 is published only <?php $newsflash = 0; $banner= 0 ; if (mosCountModules('user2')) $banner++; if (mosCountModules('user3')) $newsflash++; if (( $newsflash == 1 ) || ( $banner == 1 )) { $newsflashdivwidth = '390px'; $bannerwidth = '532px'; } else if (( $banner == 1 ) || ( $newsflash == 0 )) { $bannerwidth = '950px'; } else if (( $banner == 0 ) || ( $newsflash == 1 )) { $newsflashdivwidth = '950px'; ?> and this is the call for user2 and user3 <!-- NEWSFLASH MODULES --> <?php if (mosCountModules('user2') || mosCountModules('user3')) { ?> <div id="midsh"> <div id="mid"><?php if (mosCountModules('user2')) { ?> <div id="banner" style="width:<?php echo $bannerwidth ?>;"> <?php mosLoadModules ( 'user2' ); ?></div><?php } ?> <?php if (mosCountModules('user3')) { ?> <div id="newsflash" style="width:<?php echo $newsflashdivwidth ?>;"> <?php mosLoadModules ('user3');?></div><?php } ?> </div> </div><?php } ?> thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.