No show of Contact in Curve theme? No show of Contact in Curve 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

No show of Contact in Curve theme?

Started by hjens, August 06, 2010, 05:12:39 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

hjens

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.

hjens

Hi

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

Henning. 


hjens

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.

Joe Carver

Quote from: hjens on August 07, 2010, 07:54:24 AM
Can that easy be change in the theme?

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

hjens

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

Joe Carver

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

hjens

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

Henning.

Joe Carver

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:
// HTML template for sys menu

Add directly above:
//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:
                     <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:
                                    {$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

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/

AntonLargiader

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.
My album:  www dot largiader dot com slash album