Advanced search  

News:

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

Pages: 1 [2] 3 4   Go Down

Author Topic: Final_Extract v.2.3 with usergroup settings by admin panel  (Read 98371 times)

0 Members and 1 Guest are viewing this topic.

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #20 on: October 25, 2006, 09:44:32 pm »

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
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

the_real_tisse

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #21 on: October 28, 2006, 10:48:56 am »

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
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #22 on: October 28, 2006, 11:59:39 am »

Quote
And, 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).
Quote
Should I post a question about this outside the plugin forum
No here is the right place
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

the_real_tisse

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #23 on: October 29, 2006, 01:16:51 pm »

Thx in advance for looking into it, very much appreciated  :)

P
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #24 on: October 29, 2006, 04:50:54 pm »

Ok, i think i've found:

in include/theme.inc.php find
Code: [Select]
<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
Code: [Select]
// 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.
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

the_real_tisse

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #25 on: October 30, 2006, 09:42:49 am »

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
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #26 on: October 30, 2006, 11:48:23 am »

Ok, for registred user menu,
in theme.php file for your theme,
add
Code: [Select]
// 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;
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
dutch language file for Final Extract 2.3
« Reply #27 on: November 08, 2006, 04:12:33 pm »

Attached dutch language file for Final Extract 2.3

Cheers!
Hein
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #28 on: November 08, 2006, 04:20:36 pm »

Thank's for your contrib
it will be add to the pack
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

sglavach

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #29 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.

Thanks!
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #30 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
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #31 on: January 08, 2007, 09:13:56 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.
Logged

kromnaios

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #32 on: February 03, 2007, 02:13:25 am »

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?  ???
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #33 on: February 03, 2007, 10:56:18 am »

Hi,

you'r right.
look here http://forum.coppermine-gallery.net/index.php?topic=34637.msg162446#msg162446
to correct your problem (it's related to the theme)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

kromnaios

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #34 on: February 03, 2007, 05:50:04 pm »

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:
Code: [Select]
$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>
Logged

Nibbler

  • Guest
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #35 on: February 03, 2007, 06:03:00 pm »

Missing spaces.

Code: [Select]
<!-- BEGIN favpics-->
should be

Code: [Select]
<!-- BEGIN favpics -->
same for the ending comment.
Logged

kromnaios

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #36 on: February 03, 2007, 06:35:17 pm »

Everything is ok now! Thank you very much for the help. :)
Logged

AlexL

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 189
    • Velvet Photos
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #37 on: February 15, 2007, 10:10:23 am »

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
« Last Edit: February 16, 2007, 04:24:13 pm by AlexL »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #38 on: February 15, 2007, 10:31:28 am »

Hey AlexL

Thank's. Your file added in the pack

Quote
Maybe list_check => Select needed in french?

Yes, corrected
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

romeoyankee

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Final_Extract v.2.3 with usergroup settings by admin panel
« Reply #39 on: May 19, 2007, 02:46:55 am »

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
Logged
Pages: 1 [2] 3 4   Go Up
 

Page created in 0.023 seconds with 21 queries.