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
-
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
-
You could replace your anycontent.php with this:
<?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.
-
Hi thanks just tried that and got this "Parse error: parse error, unexpected $ in /files/home3/willandwayne/coppermine/anycontent.php on line 13"
-
EOT;endtable(); are supposed to be on 2 lines, so
EOT;
endtable();
-
Spot on - cheers mate! :)