Removing Buttons From Stramm's Theme Removing Buttons From Stramm's 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

Removing Buttons From Stramm's Theme

Started by nontekkyguy, June 09, 2006, 02:25:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nontekkyguy

Stramm's theme.php seems a little different from sample.php and other themes. I was used to // commenting out such lines as add_button... but I don't see these lines in Stramm's Tentacles theme. I wish to remove all of the top menu buttons (like login/logout, My favorites, Most Viewed, Top Rated, and maybe even Search. Do I have to add that information from the sample theme.php? If so where in the code would I paste it. I don't want to add code to this particular theme until I know for sure it's ok to do so. Tentacle theme looks very different from other themes I've used in the past.
Thanks in advance.
learning requires patience; teaching requires more

Gizmo

Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

nontekkyguy

Thx Gizmo
I've DL'd the final_extract plugin already but I've noticed a difference in the themes that have confounded me about what to insert into the codebase file. The themes vary in type of code used to create buttons, etc. For example in Water Drop and Sample Themes the $add function is used. In the Tentacle theme, the following code is used to set up the NAV bar : (note I'm just including an excerpt from tentacle's theme.php as an example)
</td>
                                        <td>
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}"><img alt="{TOPN_TITLE}" src="themes/tentacle/images/navbar_08.gif" width="97" height="32" border="0" /></a>
                                        </td>
                                        <td>
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}"><img alt="{TOPRATED_TITLE}" src="themes/tentacle/images/navbar_09.gif" width="75" height="32" border="0" /></a>
                                        </td>
                                        <td>
                                                <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}"><img alt="{FAV_TITLE}" src="themes/tentacle/images/navbar_10.gif" width="102" height="32" border="0" /></a>
                                        </td>
                                        <td>
learning requires patience; teaching requires more

Gizmo

Hi nontekkyguy,

At the end of the post mentioneed above is a codebase.zip file and I've removed a number of the same menu items you want removed. Download it, unzip then replace this codebase.php with the one in the final_extract plugin. I've modified it to remove some of the same menu items you want removed so after installing the plugin, check to see if it does what you want. If so, you can modify it to your needs. It doesn't matter what theme you're using and to see what menu variables to use, I'd use the ones from the theme.php in the Sample theme.

Let us know how you make out.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

nontekkyguy

I have the Final_zip plug-in already if that's the download you are referring to. I searched high and low both aforementioned links above to see if there was a codebase.php zip file, but nada. Perhaps it was deleted?
If you can upload it again, that would be most appreciated.
NTG
learning requires patience; teaching requires more

Gizmo

I checked and it's there but it's attached here again. I also decided to check to see if there was a problem with any of the themes when using this plugin and it seems there are. Water Droplet works but Stramm's Tentacle and Eyeball does not. I read through the orginal plugin posts (http://forum.coppermine-gallery.net/index.php?topic=25197.0 and http://forum.coppermine-gallery.net/index.php?topic=26893.0) and found this explaination from Paver:

QuotePaver - What theme are you using?  If you customized your theme or are using a theme where the "My Favorites" link is not properly bracketed by the 'favpics' tags, then this plugin cannot find that link.  You can also look at "View Source" for your webpage to see if the links are properly bracketed.  If you look in the sample/theme.php, you'll see how the system menu buttons are supposed to be tagged.

If those links are not properly bracketed, you can either bracket them properly and use this plugin, or just remove those links manually.  It's safer to use the plugin since other parts of Coppermine may look for those links, but if they aren't bracketed properly now and Coppermine hasn't complained, maybe you are safe.  Then again, some condition may have Coppermine looking for them.  I just checked and 'favpics' is not used by Coppermine anywhere so that one is safe to manually delete.  But I guess it's still better to use the plugin to remove it to make it easier to put it back if you want or for future versions (although that's thinking a bit ahead).

It seems if the tags are not present in the theme.php then this plugin fails. I confirmed this by editing one of my own themes so to make this plugin work, you'll need to add the tags to the theme.php.

Hope this helps if you have problems.

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

nontekkyguy

Thanks Gizmo!
Never to late to say thanks.  I was in a motorcycle accident and unable to work on my site etc. So much to catch up on with my site and photography. I will try to work on those missing tags.
Peace
learning requires patience; teaching requires more