Advanced search  

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

Pages: [1]   Go Down

Author Topic: Problem with SUB_MENU in upgraded theme  (Read 3238 times)

0 Members and 1 Guest are viewing this topic.

anna.y

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • Toronto German Shepherd Dog Rescue
Problem with SUB_MENU in upgraded theme
« on: July 26, 2007, 04:21:10 pm »

Just upgraded from cpg1.3.5 to cpg1.4.12

Coppermine is bridged with SMF and wrapped in Joomla.  Link --> HERE

I was able to use my former SYS_MENU, and remove all irrelevant buttons.

I don't want to do anything with my SUB_MENU except  the spacer to be "|" rather than "::".

However, the SUB_MENU does not show up, no matter what I do.

Code: [Select]
**********************************************/


 define('THEME_HAS_NO_SYS_MENU_BUTTONS', 1);
 
 
        // HTML template for sys menu
$template_sys_menu = <<<EOT

           

<!-- BEGIN custom_link -->
<!-- BEGIN album_list -->
                        <a href="{HOME_TGT}" title="{HOME_LNK}"><img src="themes/classic_adapted/images/albums_p.gif"></a>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}"><img src="themes/classic_adapted/images/my_gallery_p.gif"></a>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->

<!-- END my_profile -->
<!-- BEGIN faq -->
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}"><img src="themes/classic_adapted/images/faq_p.gif"></a>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}"><img src="themes/classic_adapted/images/admin_mode_p.gif"></a>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}"><img src="themes/classic_adapted/images/user_mode_p.gif"></a>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}"><img src="themes/classic_adapted/images/upload_p.gif"></a>
<!-- END upload_pic -->
<!-- BEGIN login -->

<!-- END login -->
<!-- BEGIN register -->

<!-- END register -->


<!-- BEGIN logout -->

<!-- END logout -->
 
<!-- END custom_link -->

EOT;


  // HTML template for template sub_menu spacer
  $template_sub_menu_spacer ="|";
 


?>


After 3 days of reading again and again the relevant threads, documentation I simply don't understand enough php coding to do it without some help here...

I know that I used a 'quick & dirty' way to remove the buttons, but that's the way I had it done in cpg1.3.5 and the plug in seems too complex and I'll use it only if lack of it is what is interfering with my SUB_MENU

Anna
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with SUB_MENU in upgraded theme
« Reply #1 on: July 26, 2007, 06:55:17 pm »

Actual gallery link is http://www.torontogsdrescue.org/gallery/

Zip your custom theme and attach it to your posting (using "additional options" when composing your message).
Logged

anna.y

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • Toronto German Shepherd Dog Rescue
Re: Problem with SUB_MENU in upgraded theme
« Reply #2 on: July 26, 2007, 07:47:06 pm »

Thank you GauGau.

Hopefully my 'zipping' works.  If it does not work, please let me know and I'll attach individual files.

Anna
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with SUB_MENU in upgraded theme
« Reply #3 on: July 27, 2007, 08:49:00 am »

You have made several mistakes, some grave and some less important. Here are some of them:
  • You can't move menu items around between sys_menu and sub_menu at will just by moving the placeholders around - you'd have to apply some more code changes to accomplish this
  • <img>-tags need some attributes like border and alt
  • You mustn't interfere with the comments like <!-- BEGIN custom_link --> - they are mandatory.
  • The comment tags that are opened must be closed as well
  • Don't mix "traditional" (deprecated) HTML formating (like the notorious <font>-tag) and CSS
  • You don't have buttons for all menu items (like memberlist). Not serious though if you don't display them
  • I can see the need to remove the login button, but there's definitely no point in removing the logout link nor the register link, as users who are not logged in will never see the logout link. If you disallow registration in coppermine's config, the register link will never show anyway.

Find a working copy of your custom theme attached.

As this took longer than expected and I did more for you than what you can expect from regular support I want you to review the thread We need your help and pick at least one of the suggestions there as a compensation.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.