Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: No show of Contact in Curve theme?  (Read 7138 times)

0 Members and 1 Guest are viewing this topic.

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
No show of Contact in Curve theme?
« on: August 06, 2010, 05:12:39 pm »

Hi

I have a problem on my gallery, where I have changed the curve- theme to my own (hmj-curve) for adding some welcome text and a bigger logo on top.
My gallery is: http://hmj-foto.dk/index.php

When I point the mouse over "Home" icon ("Hjem" in DK) it is only showing the drop-down menu for Contact/Kontakt when the menu is expanded as I am log-in as Admin. (Showed in screen-print: Log-in.jpg). When log-out as Guest I only see the top of the box for the Contact menu. (Showed in screen-print: Log-out.jpg).

Then I finally went back to the supplied curve theme, and found the same problem here too??
(Showed in screen-print: Screen-print.jpg).
So it is not alone due to my changes in the used hmj-curve theme..  Which I changed in many ways to try to solved this.

I have searched the forum for "curve" and "home" and other things, to find other with the same problem but no success. Please excused me if I should have overlooked it, also in the documentation which I went though several times too..

Please hope someone can find the solution?

Thanks for a really good gallery pack,  it has a lot of good things!!

Regards
Henning.
Logged

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: No show of Contact in Curve theme?
« Reply #1 on: August 06, 2010, 05:28:31 pm »

Hi

Just add the template.html as hmj_curve_template.html.txt, if any help for the solution?

Henning. 
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: No show of Contact in Curve theme?
« Reply #2 on: August 06, 2010, 11:52:13 pm »

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: No show of Contact in Curve theme?
« Reply #3 on: August 07, 2010, 07:54:24 am »

Thanks for your quick reply Joe.

Yes, the Display contact form can be disabled/enabled for guests. But what I meant was when disabled, the guest still see the top of the drop-down box, as shown on the Screen-print.jpg above.

It had been even more nice if the guest didn't see the top of drop-down box, so he don't see that he is missing the contact form. :-\
Can that easy be change in the theme?

Henning.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: No show of Contact in Curve theme?
« Reply #4 on: August 07, 2010, 04:36:36 pm »

Can that easy be change in the theme?

The answer depends on if you want to display contact for registered users only.

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: No show of Contact in Curve theme?
« Reply #5 on: August 07, 2010, 05:08:33 pm »

Yes, that was my idea display only for display contact for registered users.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: No show of Contact in Curve theme?
« Reply #6 on: August 08, 2010, 12:58:29 pm »

Maybe I will be able to post a working solution for you in a day or a few days.

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: No show of Contact in Curve theme?
« Reply #7 on: August 08, 2010, 09:09:13 pm »

Thanks Joe, I hope it is possible and will be looking forward for it.  :)

Henning.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: No show of Contact in Curve theme?
« Reply #8 on: August 13, 2010, 02:02:33 am »

Here is one approach. It is not the most elegant, but seems to work. Note that the visibility of the sidebar is affected with this.
Open/edit >> themes/curve/theme.php - make a backup first.

find:
Code: [Select]
// HTML template for sys menu
Add directly above:
Code: [Select]
//show contact to logged user
    if (USER_ID) {
   $home_button  = <<<EOT
                    <ul>
                     <!-- BEGIN contact --> 
                                <li>
                                    <a href="{CONTACT_TGT}" title="{CONTACT_TITLE}"><span>{CONTACT_ICO}{CONTACT_LNK}</span></a>
                                </li>   
                    <!-- END contact -->
                    <!-- BEGIN sidebar -->
                                    <li>
                                        <a href="{SIDEBAR_TGT}" title="{SIDEBAR_TITLE}"><span>{SIDEBAR_ICO}{SIDEBAR_LNK}</span></a>
                                    </li>
                    <!-- END sidebar -->
                    <!-- BEGIN my_profile -->
                                    <li>
                                        <a href="{MY_PROF_TGT}" title="{MY_PROF_LNK}"><span>{MY_PROF_ICO}{MY_PROF_LNK}</span></a>
                                    </li>
                    <!-- END my_profile -->
                    </ul>

EOT;
    }  else  {
   $home_button = <<<EOT
                    <!-- BEGIN contact -->
                    <!-- END contact -->
                    <!-- BEGIN sidebar -->
                    <!-- END sidebar -->
<!-- BEGIN my_profile -->
<!-- END my_profile -->
EOT;
}

Below it find:
Code: [Select]
                     <ul>
                    <!-- BEGIN contact -->
                                <li>
                                    <a href="{CONTACT_TGT}" title="{CONTACT_TITLE}"><span>{CONTACT_ICO}{CONTACT_LNK}</span></a>
                                </li>
                    <!-- END contact -->
                    <!-- BEGIN sidebar -->
                                    <li>
                                        <a href="{SIDEBAR_TGT}" title="{SIDEBAR_TITLE}"><span>{SIDEBAR_ICO}{SIDEBAR_LNK}</span></a>
                                    </li>
                    <!-- END sidebar -->
                    <!-- BEGIN my_profile -->
                                    <li>
                                        <a href="{MY_PROF_TGT}" title="{MY_PROF_LNK}"><span>{MY_PROF_ICO}{MY_PROF_LNK}</span></a>
                                    </li>
                    <!-- END my_profile -->
                    </ul>

Replace with:
Code: [Select]
                                    {$home_button}

You could also try moving the menu items to the "My Gallery" menu list or changing the html/css for  < li > < ul >  items too. That would be just making some basic editing changes. This just happened to be the first thing I thought of and tried. (no warranty..... :)  )

hjens

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: No show of Contact in Curve theme?
« Reply #9 on: August 14, 2010, 09:52:44 am »

Thanks a lot!  :)

It work just fine. Now no "Top of the dropdown box" under the Home/Hjem for guests:
http://www.hmj-foto.dk/
Logged

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Re: No show of Contact in Curve theme?
« Reply #10 on: August 18, 2010, 09:14:49 pm »

I did this but I still get the upper edge of the submenu when I'm logged in. I guess I never have any submenu items there.

Is anyone working on a way for that to simply not show up if there are no submenu items, guest or not? It's a bit confusing to see that under any circumstance.
Logged
My album:  www dot largiader dot com slash album
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.