PDA

View Full Version : Problems with modules. Time & Data doesn't appear


StuKeR
12-14-2004, 05:04 AM
Hi, I try to configure the Time & Data on CMPS, and always the modules writtes

(In welcome Block)

"Welcome StuKeR
edit your avatar
your last visit was: d F Y at H:i "

I tried all forms that PHP accepts but always wrotte words (If I put js then the block writtes js, but never the date...)

what I'm doing wrong?

sorry for my poor english.

thx 4 all

Brian
12-14-2004, 10:12 AM
In your forum/modules/welcomeblock.php file try looking for this code:
$lastvisitdate = vbdate($vba_options['portal_welcome_lastvisit_date'], $bbuserinfo['lastvisit']);
$lastvisittime = vbdate($vba_options['portal_welcome_lastvisit_time'], $bbuserinfo['lastvisit']);


Replace it with this:
$lastvisitdate = vbdate($vba_options['portal_welcome_lastvisit_date'], $bbuserinfo['lastvisit'], '', '', '', '');
$lastvisittime = vbdate($vba_options['portal_welcome_lastvisit_time'], $bbuserinfo['lastvisit'], '', '', '', ''););


And see if that helps.

Our Sponsors
 

StuKeR
12-14-2004, 04:02 PM
Brian it worked perfectly !!!

thx alot for help myself ^^

regards :)