Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 01:03:13 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149636 Posts in 21099 Topics by 7562 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 2 3 [4] 5 6 7   Go Down
Print
Author Topic: New Image Gallery  (Read 45001 times)
Ivanov

Offline Offline

Posts: 22


« Reply #75 on: April 26, 2007, 10:25:36 PM »

I need help. I want the max width option to reduces the pictures (like in a Image Gallery), not only to adds html width and height to the picture.
I upload pictures 1024x768 and bigger. When somebody with slow connection click on thumbnail he must wait to load the full (scaled) image. If I just upload pictures with low resolution to increase speed of loading, I will lost the full size feature... really stupid. I can't explain my trouble better, sorry. Hope to understand me and help me.
Ok, I finally did it!
I played with view.php code few hours cause I do not understand almost nothing of php. I successfully made the script to generate two thumbnail images - smaller for the gallery and bigger to view. If you click on it will see in new window the original picture. Exactly what I wanted. There is no white bars in the bigger thumbnails, too. You can see example gallery with pictures of my town here
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #76 on: April 27, 2007, 06:06:31 AM »

Hello,

thanks for your work. looks good on your page. Will have a look at the code. Unfortunately I already have ready a 1.5 version. So my version has no new features but fixes a lot of code issues. So as i wrote above thiese two versions should be combined to a new version (think will be 1.6 then). So is your version downwords compatible to all older versions? Can the user easily upgrade from 1.4 and lower versions without having problems?

Matthias
Logged
Ivanov

Offline Offline

Posts: 22


« Reply #77 on: August 05, 2007, 05:05:09 PM »

Hello,

thanks for your work. looks good on your page. Will have a look at the code. Unfortunately I already have ready a 1.5 version. So my version has no new features but fixes a lot of code issues. So as i wrote above thiese two versions should be combined to a new version (think will be 1.6 then). So is your version downwords compatible to all older versions? Can the user easily upgrade from 1.4 and lower versions without having problems?

Matthias
I haven't tried this but I think will not have problems.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #78 on: November 06, 2007, 05:47:27 PM »

Hello,

since WB 2.6.7 is released there are a few nice features in the WB corefiles wich can and should be used for the modules. So the first modul i adapted to the new functions is the "Another Image Gallery". The code is totally rewritten, includes the new functions and is downwords compatible to older versions of the modul and older versions of WB. So everyone can upgrade to this version. (Did a lot of testing, hope i fixed all possible issues, if not please post)

Changelog:
- produced gallery code should now be 100% valid
- supports frontend.css and backend.css
- supports multilingual modul descripton
- uses the new codepress libraries for editing the css files

How to update?:
- First make a copy of modul stylesheets (best store as textfile on your desktop)
- Then simply install the new version over the old one
- Copy now the stored stylesheets from your desktop in the frontend.css by using the new Edit Css funktion.

Requirements:
- If you use WB 2.6.7 be shure that the following code is in the head section of the index.php from your template:
Code:
<?php
if(function_exists('register_frontend_modfiles')) {
  
register_frontend_modfiles('css');
?>
- If you use a version lower 2.6.7 you don't need any changes on your template.

So how can you see the new features in WB 2.6.7:
- If you use  the code from above in your template the stylesheets are called in the head section of your template.
- If you are a german user, the modul description you can read in WB admin - Addons - Modules is in german.
- If you edit the css-files you will see the codepress window with syntax-highlighting and not only a textarea field.

Download here

Hope you like it

Matthias
« Last Edit: November 06, 2007, 09:08:00 PM by ruebenwurzel » Logged
macsmet

Offline Offline

Posts: 230


« Reply #79 on: November 06, 2007, 06:37:20 PM »

Looks good!
Didn't do an upgrade yet but installed it 'fresh'.

I attached a Dutch translation (rename to NL.php)

greetings,

MacSmet
Logged
doc
Guest
« Reply #80 on: November 06, 2007, 06:51:10 PM »

Hello Matthias,

first great to see another module which makes use of the syntax highlighting of codepress and the possibility to edit frontend.css and backend.css of the modules via the WB backend.

The files edit_modfiles.php and save_modfiles.php should make use of the WB admin class to check if the user is allowed to edit the module. This is not done so far. Once I have implemented a solution which includes that features, I will update the Hello World module and add a description of those files to the Help website. Have a look on the BookShop module released by Ralf (Berlin), which includes a slightly modified version.

As no module requires to include Javascript files so far, I would only activate the inclusion of CSS files via the index.php file of the template.
Code:
<?php
if(function_exists('register_frontend_modfiles')) {
  
register_frontend_modfiles('css');
?>

In addition we should stick to a version convention for modules released on the Add-ons repository. I prefer X.YY. Small changes are reflected in the last two digits. Would be nice, if we could follow this convention for future releases (no more RC1, v1.43a ...).

Regards Christian

P.S.: Once a new version is released, please consider to update the module information:
Licence: GNU-GPL, Author: Daniel Wacker, M. Gallas, R. Smith, M. Fuenkner, Version: 1.60 (Nov 06, 2007) and to add a back link to the module thread of the forum  smiley
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #81 on: November 06, 2007, 08:58:20 PM »

Hello,

Quote
The files edit_modfiles.php and save_modfiles.php should make use of the WB admin class to check if the user is allowed to edit the module. This is not done so far. Once I have implemented a solution which includes that features, I will update the Hello World module

Yes this makes sense and a soon as you have this code ready i will integrate this in "Another Image Gallery" too.

Quote
In addition we should stick to a version convention for modules released on the Add-ons repository. I prefer X.YY. Small changes are reflected in the last two digits. Would be nice, if we could follow this convention for future releases (no more RC1, v1.43a ...).

100% d'accord

Quote
Once a new version is released, please consider to update the module information:
Licence: GNU-GPL, Author: Daniel Wacker, M. Gallas, R. Smith, M. Fuenkner, Version: 1.60 (Nov 06, 2007) and to add a back link to the module thread of the forum 

Done

Matthias

Edit:
@macsmet
Added your language file to the modul. Thanks for your addition.
« Last Edit: November 06, 2007, 09:14:22 PM by ruebenwurzel » Logged
Luckyluke

Offline Offline

Posts: 555



« Reply #82 on: November 28, 2007, 08:13:16 PM »

Euh.. I hope this is not the most stupid question of the night  embarassed but what is the difference of a frontend.css and backend.css file?
Am I right if the frontend is the view from the user? But what about the backend? A view for us, the "baker" ? If so, why would we need this?

I updated the module and it works fine! BTW, a very nice module!

Grtz,
Luckyluke
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #83 on: November 28, 2007, 09:23:31 PM »

Hello,

backend means backend  grin. Yes the look in WB admin area. One idea for the next wb versions is to have the whole backend custumizable, so you can have different themes for backend too. For this it is required to edit the css for the modules too.

Matthias
Logged
Waldschwein
Guest
« Reply #84 on: December 06, 2007, 03:42:45 PM »

Hello!

The new 1.6 is quite good, but there's an ugly displaying:
http://www.stifthelden.com/seiten/galerie.php
I don't really know where to change it, but in the view.php there are I think some bugs.
I will compare the 1.5 to the 1.6 view.php, haven't figured out yet what's really doing the screwing up, besides the </br> is too much in 1.6.
Code: ("view.php_1.5")
echo('<div id="picturelink">');
                if ($included && $inline) {
                    echo('<a href="?');
                    if (array_key_exists('dir'.$section_id, $_REQUEST)) {
                        echo('dir'.$section_id.'=' . urlencode($_REQUEST['dir'.$section_id]) . '&amp;');
                    }
                    echo('pic'.$section_id.'=' . $i . html($urlsuffix));
                } else {
                    echo('<a href="' . html("$dirnamehttp/$filename"));
                }
                echo('"><img src="' . html("$dirnamehttp/$thumbdir/$filename.thumb.jpg"));
                echo('" alt="' . html($filename) . '" style="');
                echo("width: {$thumbsize}px; height: {$thumbsize}px\" />");
                if ($filenames) {
                    echo ('<div id="filename">' . html($filename) . '</div>');
                }
                echo('</a>');
                echo("</div>\n");
Code: ("view.php_1.6")
echo '<span class="picturelink">';
            if ($included && $inline) {
                echo '<a href="?';
                if (array_key_exists('dir'.$section_id, $_GET)) {
                    echo 'dir'.$section_id.'='.urlencode($_GET['dir'.$section_id]).'&amp;';
                }
                echo 'pic'.$section_id.'='.$i.html($urlsuffix).'">';
            } else {
                echo '<a href="'.html($dirnamehttp.'/'.$filename).'">';
            }
            echo '<img src="' . html($dirnamehttp.'/'.$thumbdir.'/'.$filename.'.thumb.jpg').'" alt="'.html($filename).'" width="'.$thumbsize.'" height="'.$thumbsize.'" />';
            if ($filenames) {
                echo '<br /><span class="filename">'.html($filename).'</span>';       //THE <br/> IS AT LEAST FALSE!!!
            }
            echo '</a></span>'."\n";
        }
        echo '<span class="clear"></span>'."\n";
        echo '</div>'."\n";
        echo '<!-- end preview images -->'."\n";

Regars Michael
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #85 on: December 06, 2007, 03:56:14 PM »

Hello,

as you see, the view.php is totally rewritten to bring out valid code. And on all my test- and reallive- pages the 1.6. now brings out valid code. So one difference ist the changing from ids to classes. So if you use the frontend.css and your old css files you have to change this too to get the same results as before.

Looking at the source code of your page i see that the frontend.css is not called in the head section. Did you add the line in the index.php as suggested in the thread above?

The <br/> is only used for to bring the filenames under the images. If you use no filenames the <br/> isn't used.

Matthias
« Last Edit: December 06, 2007, 03:58:38 PM by ruebenwurzel » Logged
Waldschwein
Guest
« Reply #86 on: December 06, 2007, 04:09:05 PM »

Hello!

....  rolleyes *slapme*

Ok, I haven't included the php. Sorry about that.

Yes, now it's much better.  grin The small swing-to-the-left shouldn't be that difficult to fix for me.

Regards Michael
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #87 on: December 06, 2007, 07:21:44 PM »

Hello,

but there seems to be indeed a bug. The modul should display the frontend.css in the body (as in the versions before) if the frontend.css is not loaded in the head. This seems only to work in WB versions prior then WB 2.6.7. In WB 2.6.7 the additional line in the index.php of the template is a must. So this needs to be changed. The modul should also display the frontend.css in body tag in WB 2.6.7 if the call in the template is not available.

Matthias
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #88 on: January 07, 2008, 07:41:58 PM »

Hello

Just released version 1.70 of Another Image Gallery

Changelog since 1.60:
- replaced the code for editing frontend.css and backend.css(Thanks to doc)
- Reorganized all language files
- changed all copyright notices now includes 2008

How to update?:
- First make a copy of modul stylesheets and if you have already 1.6 installed from your frontend.css.
- Then simply install the new version over the old one
- Copy now the stored stylesheets in the frontend.css by using the Edit Css funktion.

As there are no bugfixes and not really new functions since 1.60 an upgrade is not really a must. This version is more an adaption to the actually standard way of modul developping like described in the hello world modul v0.45.

Download
http://addons.websitebaker.org/pages/modules/image-galleries.php


Hope you like it

Matthias
Logged
Ostseefoto

Offline Offline

Posts: 3


« Reply #89 on: January 26, 2008, 04:25:23 PM »

Hello,

I'm looking for a gallery with a lightbox-function. Do somebody know is this exist? Where can I download ?

lg
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #90 on: January 26, 2008, 04:27:26 PM »

Hello,

did you try a search for "lightbox" here in the forum? You will get a lot of threads.

also did you have a look on our addons page? There you will find a modul with lightbox.

Matthias
Logged
Stueck

Offline Offline

Posts: 9


« Reply #91 on: February 05, 2008, 07:37:58 PM »

Hi,

I just installed the Another Image Gallery and have a little problem: the frontend.css has no influence. is there a bug?

Thanks,
Stueck
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6820


WWW
« Reply #92 on: February 05, 2008, 08:54:12 PM »

you need to edit the template index file and include the code described here:

http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/enhanced-template-elements.php?searchresult=1&sstring=frontend.css#anker4

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Stueck

Offline Offline

Posts: 9


« Reply #93 on: February 05, 2008, 11:27:18 PM »

oh, thank you very much.
Logged
bLzR

Offline Offline

Posts: 5



« Reply #94 on: February 26, 2008, 07:02:27 PM »

1. Why can't i adjust the css of the gallery, thumbs etc?
Even with the line functions that u need too add in the index.php of your template.

2. How do you remove those ugly grey lines?
http://www.frederikvlaminck.eu/wb/pages/gallerij.php

3. How can i adjust the links of my albums? I only get
  • ..
I want to change it in too back and remove the circle.

How do i make this happen?
I searched the forum and looked at the help page but nothing that was remotely helpfull   cry

Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #95 on: February 26, 2008, 07:52:36 PM »

Hello,

Quote
1. Why can't i adjust the css of the gallery, thumbs etc?
Wich version of WB and Gallery did you use? with WB 2.6.7 and the latest version you can edit the frontend.css in the options of the modul. Or what did you mean?

all other code for the frontend is in the view.php of this modul. For your other wishes you have to edit this file.

Matthias
Logged
bLzR

Offline Offline

Posts: 5



« Reply #96 on: February 26, 2008, 11:10:27 PM »

Hello,

Quote
1. Why can't i adjust the css of the gallery, thumbs etc?
Wich version of WB and Gallery did you use? with WB 2.6.7 and the latest version you can edit the frontend.css in the options of the modul. Or what did you mean?

all other code for the frontend is in the view.php of this modul. For your other wishes you have to edit this file.

Matthias

when i adjust the frontend.css i get an error and nothing changes even manually Smiley
I really don't know what too modify in view.php too much of a mess (don't know enough php) but ive been messing around with it too found what i was looking for. Wich didnt work Tongue
« Last Edit: February 27, 2008, 01:06:40 AM by bLzR » Logged
baZzz

Offline Offline

Posts: 58



« Reply #97 on: March 19, 2008, 04:24:07 AM »

Hello,

I'm looking for a gallery with a lightbox-function. Do somebody know is this exist? Where can I download ?

lg
You can extend this image gallery using my (updated) instructions which can be found here:
http://www.websitebaker2.org/forum/index.php/topic,3855.msg25362.html#msg25362
Logged

-= assumption is the mother of all f*ck ups / to assume makes an ass out of u and me =-
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #98 on: March 27, 2008, 07:50:30 AM »

Hello

Just released version 1.80 of Another Image Gallery

Changelog since 1.70:
- replaced again code for editing frontend.css and backend.css (now works with all WB versions)
- added excerpt search to the modul, wich makes imagenames searchable (for WB 2.7 only)
- Added ini_set to view.php for valid SESSION_ID Separator

Hope you like it

Matthias
« Last Edit: April 07, 2008, 06:56:26 AM by ruebenwurzel » Logged
daydreamer

Offline Offline

Posts: 232


« Reply #99 on: April 05, 2008, 11:02:44 AM »

Would be nice to be able to upload a folder of images great if having lots of Gallery pages
Logged
Pages: 1 2 3 [4] 5 6 7   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!