coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: neeth on July 07, 2005, 04:11:30 AM

Title: how to ... Say hello to user
Post by: neeth on July 07, 2005, 04:11:30 AM
I wont to make one table when member come to page that it say "hello (usernick)"

what to add in

starttable('80%');
echo '<tr>';
echo '<tr><td class="tableb" >';
echo " :: hello (usernick) ::<br>\n";


endtable();

?

thn for any helo
Title: Re: how to ... Say hello to user
Post by: Joachim Müller on July 07, 2005, 10:37:31 AM
try<?php
starttable
('80%');
echo 
'<tr>';
echo 
'<tr><td class="tableb" >';
echo 
" :: hello ';
echo USER_NAME;
echo ' ::<br />';
echo '</td>';
echo '</tr>';
endtable();
?>
Title: Re: how to ... Say hello to user
Post by: neeth on July 07, 2005, 03:17:57 PM
i try how you say, and try to incude this

<?php



define('IN_COPPERMINE', true);



require('include/init.inc.php');

require('include/smilies.inc.php');



pageheader('Information');



starttable('80%');
echo '<tr>';
echo '<tr><td class="tableb" >';
echo " :: hello ';
echo USER_NAME;
echo ' ::<br />';
echo '</td>';
echo '</tr>';
endtable();

pagefooter();
?>


and no luck


Parse error: parse error, unexpected $ in /home/neeth/public_html/galerija/test.php on line 30
Title: Re: how to ... Say hello to user
Post by: Nibbler on July 07, 2005, 07:19:12 PM
echo " :: hello ';

Should read

echo ' :: hello ';
Title: Re: how to ... Say hello to user
Post by: neeth on July 07, 2005, 09:31:48 PM
thnx nibbler  ;)