Upgrading Subsilver theme Upgrading Subsilver theme
 

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

Upgrading Subsilver theme

Started by Bacchus, January 01, 2006, 07:52:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bacchus

Hi and Happy New Year!  :D

I have a problem I a really don't understand how to fix it. Upgrading subsilver's style.css and template.html was vry easy but the theme.php decided to make my life hard for the new year!

I don't know why, I've "RTFM" and this is what I get:

http://users.rockweb.org/Isolder/galerie/index.php?theme=subsilver

Why are the {TOKENS} showing instead of the correct link?

There's my theme.php file:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.3
  $Source:
  $Revision:
  $Author:
  $Date:
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                       //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS'1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);
define('THEME_HAS_NO_SYS_MENU_BUTTONS'1);

// HTML template for sys menu
$template_sys_menu = <<<EOT
<div class="topmenu">

<!-- BEGIN custom_link -->
     <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}"><img src="themes/subsilver/images/icon_mini_groups.gif" alt="" />{CUSTOM_LNK_LNK}</a>
<!-- END custom_link -->

<!-- BEGIN album_list -->
     <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"><img src="themes/subsilver/images/icon_mini_groups.gif" alt="" />{ALB_LIST_LNK}</a>
<!-- END album_list -->

<!-- BEGIN my_gallery -->
     <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}"><img src="themes/subsilver/images/icon_mini_profile.gif" alt="" />{MY_GAL_LNK}</a>
<!-- END my_gallery -->

<!-- BEGIN allow_memberlist -->
     <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}"><img src="themes/subsilver/images/icon_mini_members.gif" alt="" />{MEMBERLIST_LNK}</a>
<!-- END allow_memberlist -->

<!-- BEGIN my_profile -->
     <a href="{MY_PROF_TGT}"><img src="themes/subsilver/images/icon_mini_profile.gif" alt="" />{MY_PROF_LNK}</a>
<!-- END my_profile -->

<!-- BEGIN faq -->
     <a href="{FAQ_TGT}" title="{FAQ_TITLE}"><img src="themes/subsilver/images/icon_mini_faq.gif" alt="" />{FAQ_LNK}</a>
<!-- END faq -->

<!-- BEGIN enter_admin_mode -->
     <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{ADM_MODE_LNK}</a>
<!-- END enter_admin_mode -->

<!-- BEGIN leave_admin_mode -->
     <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{USR_MODE_LNK}</a>
<!-- END leave_admin_mode -->

<!-- BEGIN upload_pic -->
     <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{UPL_PIC_LNK}</a>
<!-- END upload_pic -->

<!-- BEGIN register -->
     <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}"><img src="themes/subsilver/images/icon_mini_register.gif" alt="" />{REGISTER_LNK}</a>
<!-- END register -->

<!-- BEGIN login -->
     <a href="{LOGIN_TGT}"><img src="themes/subsilver/images/icon_mini_login.gif" alt="" />{LOGIN_LNK}</a>
<!-- END login -->

<!-- BEGIN logout -->
     <a href="{LOGOUT_TGT}"><img src="themes/subsilver/images/icon_mini_login.gif" alt="" />{LOGOUT_LNK}</a>
<!-- END logout -->

<br /> <br />
<a href="{LASTUP_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{LASTUP_LNK}</a>
<a href="{LASTCOM_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{LASTCOM_LNK}</a>
<a href="{TOPN_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{TOPN_LNK}</a>
<a href="{TOPRATED_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{TOPRATED_LNK}</a>
<a href="{FAV_TGT}"><img src="themes/subsilver/images/icon_mini_message.gif" alt="" />{FAV_LNK}</a>
<a href="{SEARCH_TGT}"><img src="themes/subsilver/images/icon_mini_search.gif" alt="" />{SEARCH_LNK}</a>
</div>
EOT;


// HTML template for template sys_menu spacer
$template_sys_menu_spacer "|";

?>


Thanks!

Bacchus


Joachim Müller

are you ready to share the theme?

Bacchus

Hum..define "share the theme".

You want me to do an official upgraded subsilver theme? What an honor!  ;D ;D

Yes I will, I'll redo the upgrades on an unmodified subsilver theme. Just for info, I took the version from 1.3.x and followed the upgrade manual.

I (of course) customize it to match with my phpbb board, see for yourself:

Board: http://users.rockweb.org/Isolder/fora/portal.php

Gallery: http://users.rockweb.org/Isolder/galerie/index.php

Joachim Müller

yeah, we rely on user contributions - the dev team members only upgrade the themes that come with the coppermine package, we'd love to see all user-contributed cpg1.3.x-themes upgraded by our users, or eventually have new themes submitted as well.
For details: We need your help