Advanced search  

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

Pages: [1]   Go Down

Author Topic: Water Drop Upgrade 1.31 to 1.4.6  (Read 8375 times)

0 Members and 1 Guest are viewing this topic.

smartwebs

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Water Drop Upgrade 1.31 to 1.4.6
« on: June 07, 2006, 07:52:06 pm »

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
« Last Edit: June 09, 2006, 06:25:19 am by GauGau »
Logged
M

Nibbler

  • Guest
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #1 on: June 07, 2006, 08:12:12 pm »

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

smartwebs

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #2 on: June 07, 2006, 08:28:47 pm »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #3 on: June 07, 2006, 08:52:28 pm »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #4 on: June 07, 2006, 10:16:22 pm »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #5 on: June 07, 2006, 10:40:11 pm »

In the final_extract folder, you'll find a file called codebase.php. Down near the bottom you'll find some lines like these
Code: [Select]
    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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #6 on: June 07, 2006, 11:20:21 pm »

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
« Last Edit: June 07, 2006, 11:46:18 pm by smarter »
Logged
M

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #7 on: June 08, 2006, 12:31:06 am »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #8 on: June 08, 2006, 01:18:58 am »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #9 on: June 08, 2006, 01:27:01 am »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #10 on: June 08, 2006, 01:36:38 am »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #11 on: June 08, 2006, 02:53:02 am »

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.  >:(
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #12 on: June 08, 2006, 05:20:51 am »

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







 
« Last Edit: June 08, 2006, 05:27:14 am by smarter »
Logged
M

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #13 on: June 08, 2006, 07:06:51 am »

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.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #14 on: June 08, 2006, 01:21:52 pm »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Water Drop Upgrade 1.31 to 1.4.6
« Reply #15 on: June 08, 2006, 08:12:08 pm »

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 :)
Logged
M
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.