Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: how to ... Say hello to user  (Read 2809 times)

0 Members and 1 Guest are viewing this topic.

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
how to ... Say hello to user
« 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
« Last Edit: July 07, 2005, 09:49:40 pm by GauGau »
Logged
[

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to ... Say hello to user
« Reply #1 on: July 07, 2005, 10:37:31 am »

try
Code: [Select]
<?php
starttable
('80%');
echo 
'<tr>';
echo 
'<tr><td class="tableb" >';
echo 
" :: hello ';
echo USER_NAME;
echo ' ::<br />';
echo '</td>';
echo '</tr>';
endtable();
?>
Logged

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
Re: how to ... Say hello to user
« Reply #2 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
Logged
[

Nibbler

  • Guest
Re: how to ... Say hello to user
« Reply #3 on: July 07, 2005, 07:19:12 pm »

Code: [Select]
echo " :: hello ';
Should read

Code: [Select]
echo ' :: hello ';
Logged

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
Re: how to ... Say hello to user
« Reply #4 on: July 07, 2005, 09:31:48 pm »

thnx nibbler  ;)
Logged
[
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.