Modifying the main page Modifying the main page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Modifying the main page

Started by jgsketch, January 17, 2006, 07:47:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jgsketch

Hello,
This thread directly relates to http://forum.coppermine-gallery.net/index.php?topic=22326.msg118718#msg118718 but instead of trying to get it to work in 1.32, I am now trying to get it to work in 1.42.

Basicly I'm trying to get this page of my site http://www.ratemyscrapbook.net/rateme.php to appear on the index.php page along with lastup, and toprated boxes. I've managed to use some of the code from 1.32 but then run into problems and errors. I've tried different combinations of code from the rateme.php file and inserted them into the index.php file. I've tried eliminating some of the previous code that I thought might not appyl anymore.

It has been brought to my attention  that anycontent option would work. It does work, but only if I want the rateme function to appear in my album list as well. I wish for the rateme function to only be on the main page and the album list left the way it is.

The easiest way to fix this is to use .htaccess and redirect the main page to rateme.php page. But I was hoping to code it into the main.

Please let me know if I'm on the right track here. Thanks.

Joachim Müller

easiest way is not to use .htaccess redirect, but to use anycontent.php and add an if/then switch that checks what category is being displayed. The var to check for is $cat. If it equals 0 (no category at all), then your rateme stuff should be displayed. Pseudo code:if ($cat==0) {
  // display the rateme stuff
}