modify output of {GALLERY} placeholder modify output of {GALLERY} placeholder
 

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

modify output of {GALLERY} placeholder

Started by jplockie, June 23, 2006, 11:21:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jplockie

I tried to search the forums, skimmed through the files in the directory, and also read the docs but I can't seem to figure out where or how to modify the placeholder put in the TEMPLATE.HTML file of the theme I am using.

Basically, where {GALLERY} is in my TEMPLATE.HTML file, the output is

<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />


Of course there is more then that, but this is the line of HTML I would like to remove out of {GALLERY} because I do not like the space between the menu links and the actual gallery.  I would also like to eliminate the bottom 2 tables of Random Files & Latest Additions....or at least be able to manipulate them.

I did check the THEME.PHP file...and on this particular theme (blackbirch) it has much less code then the sample one:

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1); // Remove this if you edit this template until
                                           // you have validated it. See docs/theme.htm.


// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='::';

?>

I am not that great with PHP, so possibly this is the spacer option that I can eliminate?

Thanks,
John

Paver

(1) Remove the Random & LastUp blocks in this config setting: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list

(2) The spacer is in the theme variable $template_cat_list.  Blackbirch uses the default variable so if you want to change it, you need to copy it from the sample theme into themes/yourtheme/theme.php and modify it as desired.  You'll find the spacer line you posted in that variable - it's even marked with a "spacer" comment.  All theme customizations are present in the sample theme.  When you modify your theme, you should copy the original Blackbirch theme to a new folder, name it something else, then modify those files.  That way, you always have the original Blackbirch theme to fall back on if you have issues.  Plus upgrades are easier in the future.