Water Drop Upgrade 1.31 to 1.4.6 Water Drop Upgrade 1.31 to 1.4.6
 

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

Water Drop Upgrade 1.31 to 1.4.6

Started by smartwebs, June 07, 2006, 07:52:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smartwebs

Hi all,

I just upgraded from 1.31 to 1.46
Everything went smoothly except for the Water Drop theme that I use

I am having problems with this and was hoping that one of you good guys out there could lend a hand or even do it for me, For which I would be willing to pay.

Thanks Guys

Marc
M

Nibbler

Water drop comes with 1.4. What exactly is your issue ?

smartwebs

Hi
In my original 1.31 version I had removed some of the unwanted links from the top menu
In the 1.46 version there is nothing I can remove like (Last Comments)(My Gallery)(Most Viewed)(Top Rated)(My Favourites) and (Last Uploads)

Thanks
M

Gizmo

How's about this handy-dandy plugin Final_Extract - Removing blocks & items like menu buttons - http://forum.coppermine-gallery.net/index.php?topic=26893.0.
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

smartwebs

Thanks Gizmo, I've downloaded a Zip with a bunch of 1.46 plugins, uploaded them and installed Final Extract ???
So now what !! Where do I go from here?  theres no instructions anywhere.
Theres only one line of code in the Water Drop theme.php, so that can't be the file I need to edit

I do not code in .php and just about understand it, (learning all the time)
But this one has me stumped.

Any help would be appreciated

Thanks
M

Gizmo

In the final_extract folder, you'll find a file called codebase.php. Down near the bottom you'll find some lines like these

    final_extract_block($html, 'login');
    final_extract_block($html, 'home');


You should be able to make your way from here. For futher help on plugins, check the manual here - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin.
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

smartwebs

#6
OK This is a wild guess, because it's like reading Chinese for me
I put this bit

{   
    //repeat the next line for each block you would like removed
    final_extract_block($html, 'login');

before what I want to remove
and this bit after???


    final_extract_block($html, 'home');
   return $html;
}

Is that correct?

and if so,    Which file needs to be edited, the theme.php that came with 1.46 has only one line of code,
i.e.
// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='<img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />';

so what needs to be edited.
My 1.31 theme.php worked perfectly, after I commented out a few lines of code.
I also added some extra links which also worked beautifully but now I can't find where this code is referenced ???

Things change and I am obviously not keeping up with the plot.
I have read the manual but all that does is tell me how to install and uninstal which I have already done.

Thanks
M

Gizmo

With this plugin, you don't need to edit any of the theme files only the codebase.php file. This gives you the power to use any or many themes without having to edit each one to remove menus. It's all handled through the plugin.

Now, you asked (in a round about way), how do you know what variable to use to remove the menu. That's a good question and you can find them in the theme.php file in the Sample theme directory. Depending on what menu you want to remove, you will look under:


  • // HTML template for template sys_menu buttons
  • // HTML template for template sub_menu buttons
  • // HTML template for gallery admin menu

Here are the lines to add to codebase.php to remove the "last upload" and the "search" menus:

    final_extract_block($html, 'lastup');
    final_extract_block($html, 'search');


To activate the plugin, go to Config>General Settings>Enable plugins>Manage plugins. The manual describes this in more detail.

Does this help?

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

smartwebs

Hi Gizmo,

Yes and Thanks this does explain how to use the plugin, which by the way is activated and looks really cool
I have been trying to do this for two days now. We have a really busy site and it is V important that I get this fixed ASAP

As a .php non coder, I am guessing most of the time, which is ridiculous.

I have attempted copying from the Sample theme to my Waterdrop folder but I experience many errors.

As I said I need to get this sorted and quickly, So if someone would like to do this for me please get in touch, ASAP

Thanks
M

Gizmo

Well, you only listed one problem and I'm not sure but it sounds like you said above that it's working for you now. If you have another problem, please start another post.

You can many posts but please remember, one issue per post.

Cheers!

PS. If this issue is solved, please let us know here so that a Dev can mark this solved.
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

smartwebs

No unfortunately this is not solved I wish that it were, I still have the same problem I had in the beginning
and would like if someone could do it for me for a fee of course.

If there is anyone who can, please get in touch ASAP

Thanks
M

Gizmo

I can't make it any more simple than I already have. If you can't follow the directions that I've listed above then you need to post a link to your site and spell out exactly what is wrong because you aren't being very clear. I personally am not interested in entering into a paid service on this project and I won't offer anymore help without a link.  >:(
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

smartwebs

#12
Hi Gizmo

Firstly let me say that I really do appreciate your time annd trouble with my ravings
Also I have been using Coppermine Gallery for some years now and have always found it to be of the highest quality application
This upgrade is completely different from the 1.31 version      I am lost ..........



I thought I was being explicit .............. however

Here are downloadable links to the 1.31 theme.php file and the 1.46 theme.php
http://smarterwebsites.net/WaterDrop/water_drop.html[/url]

This is a link to the Gallery itself   http://hanwells.net/showroom/

As you can see there is only one line of code to edit in the 1.46 version but everything is editable in the 1.31 version

Now I know that you know what you are reffering to, but for me there is just nothing to edit .................
In the theme upgrade it refers to writing a new theme.php but I hav'nt got a clue where to start as I can't yet write .php code
So I'm just guessing ...........

In the preceding link there are two .jpg's

1: Water_Drop.jpg is a screenshot of the links the way they are:
We do not want or need, My Gallery, Last Uploads, Last Comments, Most Viewed, Top Rated or My Favourites, Links

2: Thumbnail_view is a screenshot of the Thumbnail page, on the right hand side are the sort order preferences,
We do not require these links to be present, as they serve no purpose for our needs.


Thanks again







M

Sami

okey , I made some changes to theme.php of water drop and remove all that link also you can edit lines from 106~112 of these file to meet your aim (if you want to link come back just remove "//" ) , hope this work for you.
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

Since I've spent a fair amount of time explaining the virtues of the final_extract plugin, I will attach the codebase.php file that does what you want. It was very easy to do and I followed my instructions above to do it. Copy this to the final_extract folder and upload. It will also remove the "login" menu and all you have to do to login is type "http://hanwells.net/showroom/login.php". You could save this as a bookmark as well.

There are two ways to remove the sortorder options in the thumbnail nail view. One way is to change the text color to match the background in the style.css file. Change:

.sortorder_options {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background : #8AA5B5 ;
        color: #FFFFFF;
        padding: 0px;
        margin: 0px;
        font-weight: normal;
        font-size: 80%;
        white-space: nowrap;
}


to this:

.sortorder_options {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background : #8AA5B5 ;
        color: #8AA5B5;
        padding: 0px;
        margin: 0px;
        font-weight: normal;
        font-size: 80%;
        white-space: nowrap;
}


Or you can add the following code to your theme.php file to completely remove the sortorder options.

// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                        </tr>
                        </table>

EOT;


The difference between themes in 1.3x and 1.4x is that now you can easily create a simple theme without a lot (or any) editing of the theme.php file. Having a simple theme and using plugins where you can, swapping themes is a snap as there is nothing to edit. Drop a new theme in the folder and away you go. The documentation describes in detail all the goodness in 1.4x themes.

Since you are using CPG as a store front, may I ask for all this support that you donate to Sourceforge who hosts Coppermine. You can donate here - http://sourceforge.net/donate/.

Cheers,

Billy
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

smartwebs

Thank you everyone for your support and help.

Everything is working fine and exactly the way we need it to be
Apart from 1 small query, but I will open a new thread for that

I have made a donation to Sourceforge and quite rightly so

Thank you again, this thread is completed :)
M