Final Extract v2.2 (remove menu items)
Here is the Final extract plugin (http://forum.coppermine-gallery.net/index.php?topic=26893.0) with it's own Config page
Use this plugin to remove core menu's button of coppermine, After installation you'll have an admin button that will give you a config page to this plugin
you can hide these buttons with it's menu:
-home (Home)
-login (Login)
-my_gallery (My Gallery)
-upload_pic (Upload file)
-album_list (Album list)
-lastup (Last Uploads)
-lastcom (Last comments)
-topn (Most view)
-toprated (Top rated)
-favpics (My Favorites)
-search (Search)
I'm going to release an advanced version (with addon option) soon!
Please give me some feedback ;)
Hi, good job :D
Works fine
I've translate the lang file in french (see atachement)
For the next version, it will be fine if the block name can be translate (actualy in the "basic" file, should be in the lang file)
Another feature should be: to choose the buttons to hide according of the user groups :)
Thank you for support , you are right I should made those name adjustable by lang file so can you just post those botton's name in french so I could add them to new version lang file
Thanks :)
Ok, in attachement the french translation for the menu items
Thank's for your job
Borzoo and Frantz,
Thanx a lot for your nice job ;)
Work fine in all languages, also in french ;D
PYAP
First of all, i am using the Live demo 1.0 of CPG (so there is no online version you can see)
Unfortunately this plugin did not work for my gallery.. After installing the plugin and choose every menuitem except the login, and saved the setup and exit the live demo, the menu items are still there (guest/visitor)
I tried both the classic and kaki theme, both in norwegian and english, but neither did work. So what am i doeing wrong here?
Please help!
Live demo is just for preview and it's not for pruduction use !
Try to install it on real CPG ...
I know it is not for production use and is only for preview.. but all other settings and plugins and customization has worked perfectly here.. And i wish to test this before i put it to production..
I think i found the problem by the way.. coppermine needs to flush he IE cookies and cache.. the restart IE and it works..
But only in the classic theme.. tried using the regular kaki theme, but the plugin does not work for this one.. Can anyone help me get this plugin wor with the kaki (not the kai_top) theme please!
It did not work in my Kaki theme either (not customized ones Mossavari), just a regular install (with Stramm ModPak). Thanks.
Wally
can you post a link to your gallery wally ?
Looks as if the plugin does not work with many othe the stanard themes in cpg 1.4.8, These does not work
Eyeball
Hardwired
iGames
Mac os x
project vii
All other standard themes does work fine so there is something here that is not configured correctly according to all types of themes..
Hope this will be fixed soon
Quote from: bmossavari on August 06, 2006, 05:30:58 PM
can you post a link to your gallery wally ?
;D
Yes..but visit at your own risk:
Remember I warned you...if you are offended by nudity or UGLY people...don't go there.
This is a biker site.
http://www.razorbiker.com (http://www.razorbiker.com)
Thanks,
Wally
QuoteLooks as if the plugin does not work with many othe the stanard themes in cpg 1.4.8, These does not work
Eyeball
Hardwired
iGames
Mac os x
project vii
extact, i've seen all these themes have code for buiding the sub menu template in the
theme.php file. :-\
great great work - works OK on a modded CPG148 (Stramm's mod) with Oranje theme
Hope this plugin will support the other themes that are configured with theme.htm file very soon :D
Isn't this plugin supposed to just affect user logins and not admin? Because the menu items are all gone in admin mode also.. Shouldn't there be an option to choose what user groups this plugin affects?
Actually, i think this plugin should be customized so that registered users may allow to see these menu items..
@wally:As I seen your gallery :o , you can remove these buttons:home,Register,Faq (this one could also remove by config),Album list, Last uploads,Last comments,Most viewed,Top rated ,Search
@other:
Functionality of this plugin is very depend on your theme
you can use this plugin with those have coded for custom sub menu theme by adding <!-- BEGIN block_name --> at the begining of button and adding <!-- END block_name --> at the end of button defenition for example ,here is the $template_sub_menu variable of Eyeball
I'm going to add those tags to it :
before adding:
// HTML template for template sub_menu
$template_sub_menu = <<<EOT
<table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
<tr>
<td><img src="themes/eyeball/images/top_menu_left.gif" border="0" alt="" /><br /></td>
<!-- BEGIN custom_link -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END custom_link -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="index.php" onmouseover="MM_showHideLayers('Menu1','','show')"><img src="themes/eyeball/images/home.gif" border="0" alt="" /><br /></a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{FAV_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_right.gif" border="0" alt="" /><br /></td>
</tr>
</table>
EOT;
After adding:
// HTML template for template sub_menu
$template_sub_menu = <<<EOT
<table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
<tr>
<td><img src="themes/eyeball/images/top_menu_left.gif" border="0" alt="" /><br /></td>
<!-- BEGIN custom_link -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END custom_link -->
<!-- BEGIN home -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="index.php" onmouseover="MM_showHideLayers('Menu1','','show')"><img src="themes/eyeball/images/home.gif" border="0" alt="" /><br /></a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END home -->
<!-- BEGIN album_list -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END album_list -->
<!-- BEGIN lastup -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END lastup -->
<!-- BEGIN lastcom -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END lastcom -->
<!-- BEGIN topn -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END topn -->
<!-- BEGIN toprated -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END toprated -->
<!-- BEGIN favpics-->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{FAV_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img src="themes/eyeball/images/top_menu_spacer.gif" border="0" alt="" /><br /></td>
<!-- END favpics-->
<!-- BEGIN search -->
<td style="background-image:url(themes/eyeball/images/top_menu_button.gif);">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('Menu1','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<!-- END search -->
<td><img src="themes/eyeball/images/top_menu_right.gif" border="0" alt="" /><br /></td>
</tr>
</table>
EOT;
with this method you can hide every one of button ....
So do you mean you are going to update the Final Extract v2.2 plugin? Just checking.
Mossavari, hope I did not SHOCK :o you too much. ;D
Wally
No I'm not going to update (not yet !) , I mean your theme have those BEGIN , END tags that I describe before so plugin should work for you ....
Try CTRL+F5 after submiting config form
Actually it does work on the Razorbiker theme (my mistake)...it does not work on the "custom themes" that you made for me:
They are located at: http://www.searcysports.com/myimagedb (http://www.searcysports.com/myimagedb)
and
http://www.searcysports.com/searcylions (http://www.searcysports.com/searcylions)
Thanks again.
Wally
Now you found the real BUG ;D
Sorry that was my mistake , I'll send you the correct theme.php so the plugin will work for that too ;)
peace
Quoteyou can use this plugin with those have coded for custom sub menu theme by adding <!-- BEGIN block_name --> at the begining of button and adding <!-- END block_name --> at the end of button defenition
Yes worksfine ;)
but still there is no way to separate the "disable menu items" plugin so that it only disables for guests/anonymous users? (Meaning, the menu items will be gone when no one is logged on, but if logged in as registered user/admin the menu items will be availible again)?
You don't need a plugin then, but code your own menu logic by modifying theme.php. However, this doesn't belong into this thread. Do not request new features here!
Quote from: Siberiantiger on August 06, 2006, 10:58:55 PM
but still there is no way to separate the "disable menu items" plugin so that it only disables for guests/anonymous users? (Meaning, the menu items will be gone when no one is logged on, but if logged in as registered user/admin the menu items will be availible again)?
See here http://forum.coppermine-gallery.net/index.php?topic=26893.msg159093#msg159093 (http://forum.coppermine-gallery.net/index.php?topic=26893.msg159093#msg159093) this possibility exist with the precedent final extract plugin
That plugin is great. After a few days of use, I found a very weird behavior.
Indeed, while the plugin is enabled, the default Coppermine icons for uploads (up_dup.gif, up_na.gif, up_ok.gif, up_pb.gif) are not displayed anymore. It seems the link sent by Coppermine to the browser is wrong.
If I disabled the plugin, it works again.
what ? :o
The plugin has nothing to do with image path ! it just remove some HTML between <!-- --> tags !
Are you sure?
There is whitespace at the end of codebase.php
::)
Thank you nibbler for pointing that
@topkool: There is an empty line after ?> under plugins/final_extract/codebase.php, remove it
Very fast reply.
Thanks guys!!
Hello,
I just loaded Final Extract v2.2 onto my server via ftp... I loaded it into the 'plugins' folder... I installed it using the 'plugins manager' through the 'config' area in my gallery... Once it was installed, I went to the FEv2 config panel and selected the 'my favorites,' 'last uploads' and the 'last comments' to be removed from the menu selection. At first, the strangest thing happened, all but two of my galleries thumbnails disappeared?!?! They were replaced with their file names. Plus, the buttons that I wanted to be gone are still there??? I logged out, closed my browser (Firefox), opened my browser again, cleared my cache and cookies and then went back to my main gallery page... The thumbs are back and the buttons are still there... Any thoughts?
Version: 1.4.9 (no modifications, straight out of zipped folder)
Plugins: did not install any...
Theme: Igames
Server: FreeBsd/Unix (I'm just adding this, don't know spit about it) 4.7 release; Apache
PHP: Version 4.4.2
MySQL: version 4
Site Link: www.aremgallery.com/Glr/ (http://www.aremgallery.com/Glr/)
Thanks...
I was looking through the plugins FAQ/Directions and I couldn't find if the folder should have 755 or 777 permissions... The Final_Extract22 plugin still isn't working... I uninstalled, unloaded, reloaded it, reinstalled it and then removed it again... Can you tell me if I should set the permissions differently? Currently, the folder is set to 755... Is it possible that I'm missing something else? It seems to have worked for others...
Thanks much...
this is not permission issue,your theme didn't have <!--Bgein Block--><!--End Block--> tags around button so plugin didn't work you need to manualy add those tags under themes/igames/theme.php for more details and how to see my previous post :
http://forum.coppermine-gallery.net/index.php?topic=34637.msg162446#msg162446
@bmossavari,
Thank you for that insight... After a little trial and error I managed to make it work... The example page that you left the link to did the trick. I played around with the <!-- BEGIN block --><!-- END block --> coding and eventually got the idea. The buttons/blocks are gone... The only thing left is now (based on the design of the Igames theme), I've lost the last rounded-side button (just the button itself) which went at the end of the grouping... www.aremgallery.com/Glr/ (http://www.aremgallery.com/Glr/) I'll play around with it maybe and see if I can figure out how to put it back or use it for some thing else... Thanks again for your assistance...
Lastly, would you mind pointing me in the direction that leads to information on how to remove the "i" button/link/function? I'd like to remove access to the 'file information' function...
Thanks much and take care... You have been extremely helpful! Most appreciated...
this is not related to this plugin at all
btw I'll explain it :
- check your theme.php for $template_img_navbar if you don't have it copy this code before ?> tag
$template_img_navbar = <<<EOT
<tr>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="100%">
{PIC_POS}
</td>
<!-- BEGIN report_file_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
</td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif" border="0" align="middle" alt="{ECARD_TITLE}" /></a>
</td>
<!-- END ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif" border="0" align="middle" alt="{PREV_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif" border="0" align="middle" alt="{NEXT_TITLE}" /></a>
</td>
</tr>
EOT;
or if you already have that variable replace it with my code.
in this way you've removed file info button
bmossavari ,
Thank you again for your assistance... I did as you suggested and was presented with the exact results I was hoping for... Your knowledge is as always, most appreciated...
Thanks again...
I'm getting very odd results....
It doesn't work on the home page, but it works in all other pages!
I've tried the old version, with the same results...
Why would it work in some pages and not in others?
Post a link to your gallery...
I don't know if it has anything to do with it, but I'm bridged with Xoops. Check the difference on the sub menu on the left in
http://www.lo8os.com/gallery/ (http://www.lo8os.com/gallery/)
(it has
# Home
# Login
# Album list
# Last uploads
# Last comments
# Most viewed
# Top rated
# My Favorites
# Search)
and
http://www.lo8os.com/gallery/thumbnails.php?album=toprated&cat=0 (http://www.lo8os.com/gallery/thumbnails.php?album=toprated&cat=0)
(it only has
# Album list
# Last uploads
# Last comments
# Most viewed
# Top rated
# My Favorites)
My theme is based on the sample.
PS: I'm still under construction.
As you're using custom theme I've no idea what is going on ....
You should zip up your theme and attach it to this thread, If you need support
Here's my theme.
Thanks for the help, bmossavari.
Ummm... I downloaded this zipfile so as to remove a few menu items. I expected to see some sort of help file included. Can you tell me exactly what I do with these files and how they are used?
Yes - I'm a newbie. VERY newbie:)
It seems that you solved your issue but for others may have this issue :
You should copy the folder to {gallery root}/plugins and then install it by going to plugin manager and select final extarct v2.2 from list
Hello,
Possibly I am an idiot, and missing something very obvious, but I can't find text that explains exactly what this plugin does. It was suggested in another ambiguous thread as something that solves login/logout issues, and I wanted to know if this plugin would help me.
I am having issues with users being logged out prematurely, and being logged out from the album even when they are currently logged in to my BB (my album is bridged with phpBB).
Any feedback, or PMs, would be appreciated.
Quote from: Bacchus1 on November 25, 2006, 09:25:59 AM
but I can't find text that explains exactly what this plugin does.
This is version 2 of the original "final extract" plugin. To find out what it is suppossed to be used for, read the announcement posting of the original thread "Final_Extract - Removing blocks & items like menu buttons (http://forum.coppermine-gallery.net/index.php?topic=26893.0)"
Quote from: Bacchus1 on November 25, 2006, 09:25:59 AM
It was suggested in another ambiguous thread as something that solves login/logout issues, and I wanted to know if this plugin would help me.
No, that's not what this plugin is suppossed to do.
Quote from: Bacchus1 on November 25, 2006, 09:25:59 AM
I am having issues with users being logged out prematurely, and being logged out from the album even when they are currently logged in to my BB (my album is bridged with phpBB).
Start a thread on the bridging support board after having read the sticky thread there.
Quote from: Bacchus1 on November 25, 2006, 09:25:59 AM
Any feedback, or PMs, would be appreciated.
There's no support by PM or email, as it defeats the purpose of a forum. All postings should be public.
@Sami: maybe you should copy'n paste into the very first posting of this thread what this plugin is suppossed to do - will be helpful for the search results as well.
It's done ;D
Can it be modefied allso to include an option to remove the LOGOUT option ?
Kind regards
Christian
Hello,
I was just looking for the remove logout link functionality as well, but currently as I see, this is not possible with final extract.
How could we add this button among the options?
The reason I want to remove it is that I integrated cpg with another app, which handles globally login logout...
Cheers,
Gyuri
look here
http://forum.coppermine-gallery.net/index.php?action=post;topic=34637.40;num_replies=46
I think you meant to link this:
http://forum.coppermine-gallery.net/index.php?topic=25197.0
My final extract button disappeared from my admin menu. ?? Not sure what I did to cause this... Any ideas why that happened, where it went and how to get it back?
QuoteI think you meant to link this:
Oups,
it was this
http://forum.coppermine-gallery.net/index.php?topic=36605.msg174476#msg174476 (http://forum.coppermine-gallery.net/index.php?topic=36605.msg174476#msg174476)
QuoteMy final extract button disappeared from my admin menu. ?? Not sure what I did to cause this... Any ideas why that happened, where it went and how to get it back?
Try to unistall/reinstall the plugin without erasing table
QuoteTry to unistall/reinstall the plugin without erasing table
Thanks Frantz.. I did try that.. to no avail.
and does the plugin his work without the admin button ?