forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: waynepyrah on April 12, 2005, 01:49:17 pm

Title: Users unsure how to register or missed the buttons at top left
Post by: waynepyrah on April 12, 2005, 01:49:17 pm
Hi I'm having a problem with my site http://cgi.pyrah.com/coppermine in that some users are unsure that they have to register and some are saying they missed the login/register buttons.  Is there anything really simple I can do to assist them by say making the buttons bigger, saying you aren't logged in more photos available once logged in and stuff like that ??

Cheers, Wayne
Title: Re: Users unsure how to register or missed the buttons at top left
Post by: Nibbler on April 12, 2005, 04:06:55 pm
You could replace your anycontent.php with this:

Code: [Select]
<?php

if (!USER_ID){
starttable("100%""Welcome");
echo <<< EOT
<tr>
<td class="tableb" >
To see all the pictures available, please <a href="login.php">Login</a> or <a href="register.php">Register</a>.
</td>
</tr>
EOT;

endtable();
}
?>

and then enable it by adding anytcontent/ to the start your 'contents of the main page' setting in config.
Title: Re: Users unsure how to register or missed the buttons at top left
Post by: waynepyrah on April 12, 2005, 06:24:30 pm
Hi thanks just tried that and got this "Parse error: parse error, unexpected $ in /files/home3/willandwayne/coppermine/anycontent.php on line 13"
Title: Re: Users unsure how to register or missed the buttons at top left
Post by: Nibbler on April 12, 2005, 06:38:44 pm
EOT;endtable(); are supposed to be on 2 lines, so

EOT;
endtable();
Title: Re: Users unsure how to register or missed the buttons at top left
Post by: waynepyrah on April 12, 2005, 06:48:29 pm
Spot on - cheers mate!  :)