Hello all,
I have modified the final_extract plugin v.2.2 (resulting from the plugin of Donoman and modified by Bmosavari) in order to be able to define for each usergroup the menu elements to display (or to hide).
the settings are done by admin panel. If a new group is created , it is taken into account and can be also parameterized.
This plugin is multilangage. currently "english" and "french" files exist.
Not being a proffessional coder ;), so if some among you find there errors, they can of course correct them and make some profit all , me of first. ;)
I tested this plugin on my local install and on my test site hosted by 1&1 without having error.
users of the precedent plugin must unistall it before installing this new version
[edit]*Attachement updated with Sami's correction
*German.php file added (Thank's AlexL)
*French.php file corrected (thank's AlexL for report)[/edit]
Frantz I've edited init2.inc.php
there was some issue with users group detection ;)
here is correct one ,
for others , you should rename this file to init2.inc.php and replace plugins/final_extract/include/init2.inc.php with this one
Oh thank you Sami, :-*
So I said, I'm not a good coder, i do it for fun but learn a lot with this. attachement is updated with Sami's correction.
Great mod, what I was looking for, question how to add logout to the list.
in shema.sql just before
PRIMARY KEY (`Group_Id`)
add
`logout` varchar(255) NOT NULL default '',
in basic.sql replace
INSERT INTO `CPG_final_extract_config` VALUES ('1', '0','0','0','0','0','0','0','0','0','0','0');
INSERT INTO `CPG_final_extract_config` VALUES ('2', '0','1','0','0','0','0','0','0','0','0','0');
INSERT INTO `CPG_final_extract_config` VALUES ('3', '0','0','1','1','1','0','0','0','0','1','0');
INSERT INTO `CPG_final_extract_config` VALUES ('4', '0','1','1','1','1','1','1','1','1','1','1');
with
INSERT INTO `CPG_final_extract_config` VALUES ('1', '0','0','0','0','0','0','0','0','0','0','0','0');
INSERT INTO `CPG_final_extract_config` VALUES ('2', '0','1','0','0','0','0','0','0','0','0','0','0');
INSERT INTO `CPG_final_extract_config` VALUES ('3', '0','0','1','1','1','0','0','0','0','1','0','0');
INSERT INTO `CPG_final_extract_config` VALUES ('4', '0','1','1','1','1','1','1','1','1','1','1',1');
in plugin_config.php replace
$home=0;$login=0;$my_gallery=0;$upload_pic=0;$album_list=0;$lastup=0;$lastcom=0;$topn=0;$toprated=0;$favpics=0;$search=0;
if($_POST['home']<>"")$home=1;
if($_POST['login']<>"")$login=1;
if($_POST['my_gallery']<>"")$my_gallery=1;
if($_POST['upload_pic']<>"")$upload_pic=1;
if($_POST['album_list']<>"")$album_list=1;
if($_POST['lastup']<>"")$lastup=1;
if($_POST['lastcom']<>"")$lastcom=1;
if($_POST['topn']<>"")$topn=1;
if($_POST['toprated']<>"")$toprated=1;
if($_POST['favpics']<>"")$favpics=1;
if($_POST['search']<>"")$search=1;
with
$home=0;$login=0;$my_gallery=0;$upload_pic=0;$album_list=0;$lastup=0;$lastcom=0;$topn=0;$toprated=0;$favpics=0;$search=0;$logout=0;
if($_POST['home']<>"")$home=1;
if($_POST['login']<>"")$login=1;
if($_POST['my_gallery']<>"")$my_gallery=1;
if($_POST['upload_pic']<>"")$upload_pic=1;
if($_POST['album_list']<>"")$album_list=1;
if($_POST['lastup']<>"")$lastup=1;
if($_POST['lastcom']<>"")$lastcom=1;
if($_POST['topn']<>"")$topn=1;
if($_POST['toprated']<>"")$toprated=1;
if($_POST['favpics']<>"")$favpics=1;
if($_POST['search']<>"")$search=1;
if($_POST['logout'<>"")$logout=1;
search
$sql="INSERT INTO `{$CONFIG['TABLE_FINAL_EXTRACT_CONFIG']}`VALUE($groupid,$home,$login,$my_gallery,$upload_pic,$album_list,$lastup,$lastcom,$topn,$toprated,$favpics,$search)";
replace with
$sql="INSERT INTO `{$CONFIG['TABLE_FINAL_EXTRACT_CONFIG']}`VALUE($groupid,$home,$login,$my_gallery,$upload_pic,$album_list,$lastup,$lastcom,$topn,$toprated,$favpics,$search,$logout)";
search
$sql="UPDATE `{$CONFIG['TABLE_FINAL_EXTRACT_CONFIG']}` SET `home`=$home,`login`=$login,`my_gallery`=$my_gallery,`upload_pic`=$upload_pic,`album_list`=$album_list,`lastup`=$lastup,`lastcom`=$lastcom,`topn`=$topn,`toprated`=$toprated,`favpics`=$favpics,`search`=$search WHERE Group_Id=$groupid";
replace with
$sql="UPDATE `{$CONFIG['TABLE_FINAL_EXTRACT_CONFIG']}` SET `home`=$home,`login`=$login,`my_gallery`=$my_gallery,`upload_pic`=$upload_pic,`album_list`=$album_list,`lastup`=$lastup,`lastcom`=$lastcom,`topn`=$topn,`toprated`=$toprated,`favpics`=$favpics,`search`=$search,`logout`=$logout WHERE Group_Id=$groupid";
search
<tr>
<td class=tableb align="<?php echo $align ?>" dir="<?php echo $direction ?>"><?php echo $lang_plugin_final_extract['search_block'];?></td>
<td align="center" valign=top class=tableb><input name="search" type="checkbox" <?php if($row2['search']==1) { echo 'checked="cheked"';} ?>/></td>
</tr>
add just after
<tr>
<td class=tableb align="<?php echo $align ?>" dir="<?php echo $direction ?>"><?php echo $lang_plugin_final_extract['logout_block'];?></td>
<td align="center" valign=top class=tableb><input name="logout" type="checkbox" <?php if($row2['logout']==1) { echo 'checked="cheked"';} ?>/></td>
</tr>
in the lang/english.php file , search
'search_block' =>'Search',
add just after
'logout_block' =>'Logout',
in the include/init2.php file, search
$result = cpg_db_query("SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search FROM {$CONFIG['TABLE_PREFIX']}final_extract_config WHERE Group_Id=$group[0]");
replace with
$result = cpg_db_query("SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,logout FROM {$CONFIG['TABLE_PREFIX']}final_extract_config WHERE Group_Id=$group[0]");
Thanks Frantz,
Added the code got two errors; errors one in plugin_config.php line 56 bracket
] missing from
Quoteif($_POST['logout'<>]"")$logout=1;
Error number two, when I replace the code in init2.inc.php I get the following error
QuoteCritical error
There was an error while processing a database query
Not a bracket missing, it is just in the wrong place (typo).
if($_POST['logout']<>"")$logout=1;
Quote from: Nibbler on October 07, 2006, 09:44:00 PM
Not a bracket missing, it is just in the wrong place (typo).
if($_POST['logout']<>"")$logout=1;
Sorry, I made a type, I have it like that^.
Any idea why the second error
Enable debug mode.
Sorry if I am not providing a link, I am testing it on a local installation before I apply it to my live site.
Here is debug error.
QuoteWhile executing query "SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,logout FROM cpg146_final_extract_config WHERE Group_Id=1" on 0
mySQL error: Unknown column 'logout' in 'field list'
QuoteFile: C:\wamp\www\cpg\include\functions.inc.php - Line: 249
USER:
------------------
Array
(
[ID] => d825cf6e63dc6191b0c902a78108a299
[am] => 1
[lang] => english
[theme] => classic
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => admin
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg146_filetypes; (0.001s)
[1] => select * from cpg146_plugins order by priority asc; (0s)
[2] => delete from `cpg`.cpg146_sessions where time<1160249684 and remember=0; (0.001s)
[3] => delete from `cpg`.cpg146_sessions where time<1159043684; (0s)
[4] => select user_id from `cpg`.cpg146_sessions where session_id=md5("febb28b71025c48aa1b4afe08d8a56783e902f04a416f3a5d674b98f8aaff3f0"); (0s)
[5] => select user_id as id, user_password as password from `cpg`.cpg146_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `cpg`.cpg146_users AS u INNER JOIN `cpg`.cpg146_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `cpg`.cpg146_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg146_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg146_usergroups WHERE group_id= 1 (0s)
[10] => update `cpg`.cpg146_sessions set time='1160253284' where session_id=md5('febb28b71025c48aa1b4afe08d8a56783e902f04a416f3a5d674b98f8aaff3f0'); (0.001s)
[11] => SELECT user_favpics FROM cpg146_favpics WHERE user_id = 1 (0.001s)
[12] => DELETE FROM cpg146_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
[13] => REPLACE INTO cpg146_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'cpgadmin', '127.0.0.1', NOW()) (0.071s)
[14] => SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,logout FROM cpg146_final_extract_config WHERE Group_Id=1 (0.001s)
[15] => SELECT COUNT(*) FROM cpg146_pictures WHERE approved = 'NO' (0.001s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.1.6 - OK
------------------
mySQL version: 5.0.24a-community-nt
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.24a
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .;C:\php5\pear | .;C:\php5\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | name@email.com | name@email.com
sendmail_path | no value | no value
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 32M | 32M
==========================
Page generated in 0.209 seconds - 16 queries in 0.077 seconds - Album set : ; Meta set: ;
You need to add the `login` field to your cpg146_final_extract_config table.
QuoteYou need to add the `login` field to your cpg146_final_extract_config table.
Yes, or to uninstall the plugin and reinstall after modifying the code.
Quote from: Frantz on October 07, 2006, 11:03:06 PM
Yes, or to uninstall the plugin and reinstall after modifying the code.
Started with a fresh installation of CPG, made the necessary modifications but during installation of the plugin got this error
QuoteThere was an error while processing a database query.
While executing query "
QuoteFile: C:\wamp\www\cpg149\include\functions.inc.php - Line: 249
USER:
------------------
Array
(
[ID] => d825cf6e63dc6191b0c902a78108a299
[am] => 1
[lang] => english
[theme] => classic
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => admin
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.001s)
[1] => select * from cpg149_plugins order by priority asc; (0s)
[2] => delete from `cpg149`.cpg149_sessions where time<1160253052 and remember=0; (0.001s)
[3] => delete from `cpg149`.cpg149_sessions where time<1159047052; (0s)
[4] => select user_id from `cpg149`.cpg149_sessions where session_id=md5("eccd4d60c7ce7f9507c96c2b489e21a48b80391951d67787e367e388655ff8f4"); (0s)
[5] => select user_id as id, user_password as password from `cpg149`.cpg149_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `cpg149`.cpg149_users AS u INNER JOIN `cpg149`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `cpg149`.cpg149_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg149_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg149_usergroups WHERE group_id= 1 (0s)
[10] => update `cpg149`.cpg149_sessions set time='1160256652' where session_id=md5('eccd4d60c7ce7f9507c96c2b489e21a48b80391951d67787e367e388655ff8f4'); (0.001s)
[11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
[12] => DELETE FROM cpg149_banned WHERE expiry < '2006-10-07 21:30:52' (0.001s)
[13] => SELECT * FROM cpg149_banned WHERE (ip_addr='127.0.0.1' OR ip_addr='127.0.0.1' OR user_id=1) AND brute_force=0 (0s)
[14] => select plugin_id from cpg149_plugins where path="final_extract"; (0s)
[15] => select priority from cpg149_plugins order by priority desc limit 1; (0s)
[16] => INSERT INTO cpg149_config VALUES ('fex_enable', '1'); (0.001s)
[17] =>
CREATE TABLE IF NOT EXISTS `cpg149_final_extract_config` (
`Group_Id` varchar(40) NOT NULL default '',
`home` varchar(255) NOT NULL default '',
`login` varchar(255) NOT NULL default '',
`my_gallery` varchar(255) NOT NULL default '',
`upload_pic` varchar(255) NOT NULL default '',
`album_list` varchar(255) NOT NULL default '',
`lastup` varchar(255) NOT NULL default '',
`lastcom` varchar(255) NOT NULL default '',
`topn` varchar(255) NOT NULL default '',
`toprated` varchar(255) NOT NULL default '',
`favpics` varchar(255) NOT NULL default '',
`search` varchar(255) NOT NULL default '',
`login` varchar(255) NOT NULL default '',
PRIMARY KEY (`Group_Id`)
)TYPE=MyISAM (0.001s)
[18] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
[op] => install
[p] => final_extract
)
==========================
POST :
------------------
Array
(
[submit] => Install
)
==========================
VERSION INFO :
------------------
PHP version: 5.1.6 - OK
------------------
mySQL version: 5.0.24a-community-nt
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.24a
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .;C:\php5\pear | .;C:\php5\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | name@email.com | name@email.com
sendmail_path | no value | no value
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 32M | 32M
==========================
Page generated in 0.12 seconds - 19 queries in 0.007 seconds - Album set : ; Meta set: ;
In shema.sql shouldn't this
Quote`login` varchar(255) NOT NULL default '',
be
logout instead of login
In shema.sql changing login to logout fix the error
Quote`login` varchar(255) NOT NULL default '',
to
Quote`logout` varchar(255) NOT NULL default '',
Thank you.
Quote from: aravot on October 07, 2006, 11:40:52 PM
In shema.sql changing login to logout fix the errorto
Thank you.
Oups, I was to fast by copy/past code for the modif. Thank's
Hi there
I have installed your plugin, and I must say, it works like a charm, thx heaps for that!!
I hope you don't mind me asking, but how would I go about adding the 'my profile' to the list of choices?
Thx heaps in advance!
P
Hi,
Quotehow would I go about adding the 'my profile' to the list of choices?
Same way that for logout explain a few post before ;)
Hi again
Ok, I tried it, by using a $my_profile and instead of the logout I then see the my_profile and can select it.
However, when I want to implement it and make some choices, then I want to apply it, the system gives me an error that it can't write to the db.
Any thoughts or assistance? Thx in advance for your time!
P
QuoteI want to apply it, the system gives me an error that it can't write to the db.
have you add "
my_profile" field to your cpg146_final_extract_config table?
What's the error message ?
Hi again
yes, that field is in there, double checked.
The error message I get is: There was an error while processing a database query
In attachment the changes made. Hope that helps to find out what I did wrong.
Thx again for checking it
P
Try with the attached file
This code was wrong ","sign write two time
$sql="UPDATE `{$CONFIG['TABLE_FINAL_EXTRACT_CONFIG']}` SET `home`=$home,`login`=$login,`my_gallery`=$my_gallery,`upload_pic`=$upload_pic,`album_list`=$album_list,`lastup`=$lastup,`lastcom`=$lastcom,`topn`=$topn,`toprated`=$toprated,`favpics`=$favpics,`search`=$search,,`my_profile`=$my_profile WHERE Group_Id=$groupid";
but not sure it work, My_profile button is an admin menu button
Hi again Frantz
Sorry for getting back to you so late.
And, sorry to say, but it doesn't do the trick for the my profile. I can select it, write the info to the db but it shows up.
Should I post a question about this outside the plugin forum? Final Extract does a great job, but it doesn't help with the my profile it seems.
kind regards
P
QuoteAnd, sorry to say, but it doesn't do the trick for the my profile.
Yes I've see that. I'll have a look to find why (it's an admin button).
QuoteShould I post a question about this outside the plugin forum
No here is the right place
Thx in advance for looking into it, very much appreciated :)
P
Ok, i think i've found:
in include/theme.inc.php find
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
replace with
Quote<!-- BEGIN my_profile -->
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- END my_profile -->
If the file theme.php from your theme contain
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT
<div align="center">
<table cellpadding="0" cellspacing="1">
<tr>
<!-- BEGIN admin_approval -->
<td class="admin_menu" id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}">{UPL_APP_LNK}</a></td>
<!-- END admin_approval -->
<td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
<td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
<td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
<td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
<td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
<td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
<td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
</tr><tr>
<!-- BEGIN log_ecards -->
<td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
<td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
<td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
<td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
<td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
</tr>
</table>
</div>
EOT;
do same modif.
Hi again
Did the changes and additions you stated, and it seems the my_profile is still showing up for that user group.
Just thinking out loud here, but would it be possible to add an if else statement somewhere to have that link show up or not show up?
As I said, just thinking out loud here, my knowledge doesn't go very far.
Thx
P
Ok, for registred user menu,
in theme.php file for your theme,
add
// HTML template for user admin menu
if (!isset($template_user_admin_menu)) //{THEMES}
$template_user_admin_menu = <<<EOT
<div align="center">
<table cellpadding="0" cellspacing="1">
<tr>
<td class="admin_menu"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
<td class="admin_menu"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
<!-- BEGIN my_profile -->
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- END my_profile -->
<td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
</tr>
</table>
</div>
EOT;
Attached dutch language file for Final Extract 2.3
Cheers!
Hein
Thank's for your contrib
it will be add to the pack
So how do I install this plugin??? I don't see any doc in the zip file.
Thanks!
It's the same way for all plugins:
-unzip the archive in your plugin's folder
-go to the pluginmanager page (http://www.yourcoppermine/pluginmgr.php)
-find the plugin in the list
-click on the "i" icone
-follow the eventual instructions.
For this plugin, you will see, after installing, a new admin menu buton. Click it to set the the plugin for the differents usergroups
Quote from: sglavach on January 07, 2007, 07:26:15 AM
So how do I install this plugin??? I don't see any doc in the zip file.
As suggested in the docs: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin_manager
In the future, please read the documentation before asking questions.
I installed this plugin and seems to be ok, but the changes appears only on the classic theme. I use the Mac ox ox theme and the changes do not affect. What must i do?
Also, the selected fields means that the similar buttons are hidden, correct? ???
Hi,
you'r right.
look here http://forum.coppermine-gallery.net/index.php?topic=34637.msg162446#msg162446 (http://forum.coppermine-gallery.net/index.php?topic=34637.msg162446#msg162446)
to correct your problem (it's related to the theme)
Ok. I followed these instructions and now the plugin works, but only the favorites button can not be hidden. Why this happens? Below is the code I use:
$template_sub_menu = <<<EOT
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="50%"></td>
<!-- BEGIN home -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="index.php"><img src="themes/mac_ox_x/images/home.gif" border="0" alt="" /><br /></a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END home -->
<!-- BEGIN custom_link -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END custom_link -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- BEGIN album_list -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END album_list -->
<!-- BEGIN lastup -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{LASTUP_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END lastup -->
<!-- BEGIN lastcom -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END lastcom -->
<!-- BEGIN topn -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END topn -->
<!-- BEGIN toprated -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END toprated -->
<!-- BEGIN favpics-->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END favpics-->
<!-- BEGIN search -->
<td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
<td style="background-image:url(themes/mac_ox_x/images/menu_button_bg_middle.gif);" valign="top">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
<!-- END search -->
<td width="50%"></td>
</tr>
</table>
Missing spaces.
<!-- BEGIN favpics-->
should be
<!-- BEGIN favpics -->
same for the ending comment.
Everything is ok now! Thank you very much for the help. :)
Hello Frantz
German Lang File attached
Maybe list_check => Select needed in french?
Greetings AlexL
Edit: german special sign edited to correct the visualizing in other languages.
Sorry for more effort to you Frantz
Hey AlexL
Thank's. Your file added in the pack
QuoteMaybe list_check => Select needed in french?
Yes, corrected
I got the plugin working and I gotta admit it works great!!!
1 problem though...
I think the install instructions for this have been modified so much for people that there is a pretty big mistake in it now..
If people are getting the Critical error try this..
Go through all of the files you updated and make sure that you have the same amount of entries.. Best way to explain that is if you are trying to add one for LOGOUT and that will be your 13th entry (Home, Login, Logout, etc etc) then you have to make sure that as you are updating the files the same amount of "buttons" are listed throughout.. ok who am I kidding.. I cant explain it. Ill just upload the changed files..
If you overwrite the files on your server with these.. it should work fine for the logout button and others!!
ry
QuoteIf people are getting the Critical error try this..
Go through all of the files you updated and make sure that you have the same amount of entries.. Best way to explain that is if you are trying to add one for LOGOUT and that will be your 13th entry (Home, Login, Logout, etc etc) then you have to make sure that as you are updating the files the same amount of "buttons" are listed throughout
Yes, your files are the good exemple for how to do for ading a button who is not listed in the admin panel from this plugin.
good evening,
Frantz, sorry to post but i've same problems like many others.
i can't hide buttons "last ads", "search", "favorites"...
i've readen your link
http://forum.coppermine-gallery.net/index.php?topic=34637.0 (http://forum.coppermine-gallery.net/index.php?topic=34637.0)
i saw i had not this into my theme.php. So i copyed/pasted your code (see link) but buttons are always here.
with code mac_osx_x into this topic i write (but page2), same problem, buttons always here.
can i attach my theme.php, for just have a look and tell me what's wrong?
Thx for answer and help.
add this to your theme.php after first define statement
define('THEME_HAS_NO_SUB_MENU_BUTTONS',1);
Hello Sami,
i've just added your line and deleted Frantz's code.
it tells me it couldn't find
Template error
Failed to find block 'custom_link'(#(<!-- BEGIN custom_link -->)(.*?)(<!-- END custom_link -->)#s) in :
<!-- BEGIN custom_link -->
<div class="sys_menu">
{BUTTONS}
<br clear="all" />
</div>
<!-- END custom link -->
so i added BEGIN - END at the end on file ($template_sys_menu) and it works great now
note:
into error message: custom link BEGIN is with underscore, not END but i added too. Maybe i did error with paste here, or another mistake, but for others who may have same problem, take care this point.
big thanks for help and answer.
I'm seeing if there's no other complication but at first looh, it seems ok
Bye and thx again
areuh
How I can add new link?
read the beginning of this thread http://forum.coppermine-gallery.net/index.php?topic=36605.msg174472#msg174472 (http://forum.coppermine-gallery.net/index.php?topic=36605.msg174472#msg174472)
Hi Guys and thank you very much for this plugin. I installed it and it seem to work. So i see some boxes i can chose. Well i check the box who is for showing how many times a picture was seen and apply the changes. But when i go back to the albums nothing changed. I sill see how many times a picture was seen.
By the way, do you guys know how i can combletly ban all comment and rating functions on coppermine?
Thank you guys
Quote from: plectron on July 08, 2007, 03:33:40 PM
By the way, do you guys know how i can combletly ban all comment and rating functions on coppermine?
Thank you guys
Open a new post for this question instead of posting it in this thread which has nothing to do with comments. Thanks.
Hi Franz,
Thank you for taking the time to write this.
What directory should this Plugin be installed into?
Thanks,
Lyman
QuoteWhat directory should this Plugin be installed into?
http://forum.coppermine-gallery.net/index.php?topic=24327.0 (http://forum.coppermine-gallery.net/index.php?topic=24327.0)
Quote from: Frantz on January 07, 2007, 07:55:44 AM
It's the same way for all plugins:
-unzip the archive in your plugin's folder
-go to the pluginmanager page (http://www.yourcoppermine/pluginmgr.php)
-find the plugin in the list
-click on the "i" icone
-follow the eventual instructions.
For this plugin, you will see, after installing, a new admin menu buton. Click it to set the the plugin for the differents usergroups
Thanks for that, I too was lost as to installing it after downloading the file.
Hi, and thanks for the plugin!
Can this be modified so that it specifies by category also, this would be very handy for me if it could.
Many thanks!
Steve
QuoteCan this be modified so that it specifies by category also, this would be very handy for me if it could.
what do you mean, be more explicit, i have not understand what you want :-\
Quote from: Steve-R on December 17, 2007, 03:46:45 PM
Hi, and thanks for the plugin!
Can this be modified so that it specifies by category also, this would be very handy for me if it could.
Many thanks!
Steve
His Plugins are indeed fantastic; they can make all the difference in the World.
- Lyman
Quote from: Frantz on December 17, 2007, 04:16:16 PM
what do you mean, be more explicit, i have not understand what you want :-\
Sure, no problem.
My gallery has two catgories, one is "user galleries" the other is "competitions".
I would like all the menu items to be displayed on one category, and only some on the other if that is possible. So can this be modified to be coppermine category specific?
Thanks
Steve
hum, not easy to so, this need a lot of code to do this :-\
Hi
Thank you very much for the effort you've put in. Installed it and no problems. Does exactly what I need and expected.
Regards
This plugin is wonderful! Thank you so much!
Many thanks from me also for putting in all the work and time.
I want to disable "home" and "log in" for guests. In final extract I did therefore not check those two entries.
When I log out (and to make sure delete the cookie and the cache) - now being a guest - I still see those two entries. They seem not to get "killed off".
Can I change that somewhere?
(the second row - last comments and all that - works perfectly fine).
see here and adapt for your wisches http://forum.coppermine-gallery.net/index.php?topic=36605.msg174476#msg174476 (http://forum.coppermine-gallery.net/index.php?topic=36605.msg174476#msg174476)
Oh - that was for the same purpose. Thanx for the hint.
When I upload the complete unziped data and I go to my gallery a database error is given out. Is this a known bug oder do I do something wrong?
Good, now I can modify my postings.
The error code is:
"Critical error
There was an error while processing a database query"
Debug Mode:
USER:
------------------
Array
(
[ID] => df8b10e5fe745eb49671b6eb339251c0
[am] => 1
[lang] => german
[lap] => 6
[search] => Array
(
[search] => Sat.1
[album] => search
[title] => on
[newer_than] =>
[caption] => on
[older_than] =>
[keywords] => on
[type] => AND
[params] => Array
(
[title] => on
[caption] => on
[keywords] => on
)
)
[liv] => Array
(
)
[theme] => miri
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => RuvenHalfpap
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg1411_filetypes; (0s)
[1] => select * from cpg1411_plugins order by priority asc; (0s)
[2] => delete from `v125193`.cpg1411_sessions where time<1200246793 and remember=0; (0s)
[3] => delete from `v125193`.cpg1411_sessions where time<1199040793; (0s)
[4] => select user_id from `v125193`.cpg1411_sessions where session_id=md5("dc3e2ccbb637d7396d24c22ee0f23bed0034b8fdbf166f837972839995fbafe3"); (0s)
[5] => select user_id as id, user_password as password from `xxx`.cpg1411_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `v125193`.cpg1411_users AS u INNER JOIN `v125193`.cpg1411_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `v125193`.cpg1411_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg1411_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg1411_usergroups WHERE group_id= 1 (0s)
[10] => update `v125193`.cpg1411_sessions set time='1200250393' where session_id=md5('dc3e2ccbb637d7396d24c22ee0f23bed0034b8fdbf166f837972839995fbafe3'); (0s)
[11] => SELECT user_favpics FROM cpg1411_favpics WHERE user_id = 1 (0s)
[12] => SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,my_profile FROM cpg1411_final_extract_config WHERE Group_Id=1 (0s)
[13] => SELECT COUNT(*) FROM cpg1411_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.7 - OK
------------------
mySQL version: 4.1.22-max-log
------------------
Coppermine version: 1.4.14(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | exec,system,passthru,shell_exec,popen,escapeshellcmd,proc_open,proc_nice,ini_restore | exec,system,passthru,shell_exec,popen,escapeshellcmd,proc_open,proc_nice,ini_restore
file_uploads | On | On
include_path | .:/usr/share/php:.. | .:/usr/share/php:..
open_basedir | /www/htdocs/v125193/:/tmp:/usr/bin:/www/htdocs/v125193:/bin:/usr/local/bin:/usr/share/php | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost | me@localhost
sendmail_path | /usr/sbin/sendmail -t -i -f wwwrun@miriam-pielhau.com -F wwwrun@miriam-pielhau.com | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 200M | 200M
post_max_size | 200M | 200M
==========================
Page generated in 0.276 seconds - 14 queries in 0 seconds - Album set : ; Meta set: ;
what did you upload ? The Final_Extraxt folder?
and where did you put them ? In the plugins/ folder ?
Explain what you have doing for installing the plugin
I downloaded the zip attached to your first post in this topic. Then I unzipped the data to my local plugins folder and uploaded it via FTP as it is. Now I would (!) go to my settings to install the plugin but I get the above mentioned error code when going to the gallery. So I can't get to the install procedure for plugins.
and what happend if you remove the Final_Extract folder from your server ?
When deleting the files everything is fine again.
Perhaps I missed the instruction for use. How do I use this plugin after install. The install was no problem, but i have no idea how to use it. I was hopping this plugin would allow me to choose which sub menu buttons are displayed within the various themes. I want to remove Last Uploads, Latest Comments, Most Viewed, Top Rated, My Favorites. I tried doing this with themes.php but I am not a php programmer and have no clue how to do this. The documention tells me everything but where exactly to paste the code into the themes.php file to make it work.
in admin mode you have a final extract menu button to go to the plugin admin page
hello all,
sorry for asking, but i'm a really newbie to coppermine. i've installed coppermine latest version within my joomla 1.5.3 with the bridge mod and now wanted to install final_extract plugin for getting rid of the sub_menu entries. but when trying to manage plugins within the general settings of coppermine i get the following error message:
Fatal error: Cannot redeclare deldir() (previously declared in /home/mydomain.at/www.mydomain.at/cpg/pluginmgr.php:208) in /home/mydomain.at/www.mydomain.at/plugins/system/legacy/functions.php on line 730
does this mean that the function deldir() is used in both scripts ? pluginmgr.php and functions.php is it possible to search for use of deldir() and rename this function ?
once again,
sorry for the questions but i would be glad to receive an answer.
Hello Everyone,
First of all I would like to thank the creator (Frantz I believe) of this fine plugin, all your time has saved me (and I'm sure MANY others) a lot of time. I do have a question/problem with the plugin. First of all I am using a custom theme, well all I did was change some colors or the "hardwired" theme, but none the less I suppose it is custom. Anyhow the problem I have is I've got sub menu buttons still showing up, specifically "Top Rated, Most Viewed, Favorites, and Last Uploads". The other ones I changed worked without a problem. Now I did read the other post regarding the addition (in this case) of the <!-- BEGIN --> <!-- END --> tags which I have done, however I'm wondering if they have to be specific in wording, meaning, <!-- BEGIN top_rated --> or <!-- BEGIN toprated --> etc. I couldn't find anywhere that specifies what format must be used. Anyways I'm not sure if that's the problem or not but I thought I would stop there.
Thank you for any help you can provide, I appreciate your time.
~FOX~
Hi,
I installed the plugin and it works perfectly.
I did however detect two files which have a "BOM" - the german and the french language file. (In my gallery they slightly disrupt the gallery-appearance in my theme when using ff3, thats why I detected them asap).
I attach the corrected files to my post as a zip.
Hi there,
I am hoping someone may be able to help me. After spending quite a bit of time reading through these forums the final_extract plugin was just what I was looking for.
I am running Coppermine version 1.4.16. After reading the forums for some mods I have edited the lang/english_gb.php file so that the menu titles have changed from Albums > Teachers and Category > Subject etc. This was successful.
I then wanted to remove some of the links such as "Top rated" and "Last comments" so I downloaded the Final Extract v2.3 plugin. First off I installed a new installation of Coppermine version 1.4.19 onto a different domain for testing purposes, FTP uploaded the plugin, used the pluginmgr.php to install and successfully configured the plugin to do exactly what I needed.
Confident the plugin worked I then uploaded the plugin to my modified V1.4.16 Coppermine and went to the pluginmgr.php to install. I clicked the "i" to install as I have previously however this time the plugin disappeared from the not installed list and the installed list. The Final Extract button is not shown either. I have tried repeatedly uploaded the plugin however it simply just not show.
Any ideas? Could it be the version or Coppermine? 1.4.16 vs. 1.4.19 or is it likely because I have changed some of the names in the lang/english_gb.php file.
Any required info can be given if necessary.
Any help would be much appreciated.
Thanks in advance.
Jason
do you have others plugins ?, did you try with the classic theme ?
UPDATE
Thank you for your response. I have just managed to resolve this.
I did two things... Firstly, I tried to upgrade to 1.4.19 however I must not have successfully uploaded all the files. I did not replace the anycontent.php file in the root directory nor did I touch the albums, themes or lang directories. I did however have to upgrade the lang/english_gb.php file as I received an error after re-uploading my older modified lang/english_gb.php file. I just re-edited the 1.4.19 lang/english_gb.php file and uploaded to fix.
I am using a slightly modified version (colours etc.) of the Classic theme.
The stupid thing is that for some reason the option to enable plugins in the administrators configuration area had been switched off! :-\ My test installation had this option enabled by default so I did not think to look.
I can also say that both the final_extract plugin and the addbutton method seem to be able to work together. I was able to add an additional sub menu link by copying the addbutton segment from the themes/sample/theme.php file into the Classic theme.php file as instructed. I was then able to use the final_extract plugin to remove the links I did not want without the two methods conflicting :)
The only thing is that the new custom link that I coded into the theme.php file does not show up in the final_extract plugin to show or hide... the custom link seemingly has to be visible for all users/groups. Does this sound correct?
Thanks again
Jason
yes it seems correct
Danish language file for Final Extract v.2.3
Revision 1.1
Mimer 8)
This plugin is ported for cpg.1.5.x (http://forum.coppermine-gallery.net/index.php/topic,62665.0.html)