Welcome, Guest. Please login or register.
August 20, 2008, 05:23:37 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr hier.
Das Diskussionsboard findet ihr hier.
60556 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules
| | |-+  New Image Gallery
Pages: 1 ... 4 5 [6] Go Down Print
Author Topic: New Image Gallery  (Read 17152 times)
Ivanov
Pending Apprentice Baker
**
Offline Offline

Posts: 20


« Reply #100 on: April 06, 2008, 03:22:39 PM »

I just installed v1.80. I wonder why CSS appear twice in the page source:
- once the CSS is called in HEAD part with
Code:
<link href="http://imysite.com/modules/imagegallery/frontend.css"rel="stylesheet" type="text/css" media="screen" />
- twice CSS appear in content table, before image gallery
Code:
<td class="content" width="600" rowspan="2">
<style type="text/css">hr {
border-style: none;
  height: 1px;
}
.pagenumbers {
text-align: center;
margin: 0px 1em 0px 1em;
}
.pagenumbers a:link, .pagenumbers a:visited, .pagenumbers a:hover {
color: #000000;
text-decoration: none;
}
.pictures {
text-align: center;
}
.pictures img {
border: none;
}
.pictures a:link, .pictures a:visited, .pictures a:hover {
color: #000000;
text-decoration: none;
}
.picturelink {
margin: 1em;       
float: left;
}
.picturelink img {
border: none;
}
.clear {
clear:left;
}
.filename {
text-align: center;
}
.directories {
}
</style>

<!-- start image gallery -->

Thanks in advance!
Logged

Excuse me for bad English!
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 6255


Keep on Rockin


WWW Email
« Reply #101 on: April 06, 2008, 04:06:29 PM »

Hello,

this only appears if you use WB 2.6.7. The problem was to integrate the frontend.css for all WB versions and all template versions to keep downwords kompatibility. The compromise we had to make is when WB 2.6.7 is used together with the header calls off css. Only in this case the css is displayed twice. In all other situations it is only displayed once. If you upgrade then to the upcoming WB 2.7 all will be fine and css is only in <head> section.

Hope this explains it a little bit.

If you don't wanna have the css in the body, you can comment out lines 38-43 of the view.php of image gallery

Code:
// check if frontend.css file needs to be included into the <body></body> of view.php
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&  file_exists(WB_PATH .'/modules/imagegallery/frontend.css')) {
   echo '<style type="text/css">';
   include(WB_PATH .'/modules/imagegallery/frontend.css');
   echo "\n</style>\n";
}

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Ivanov
Pending Apprentice Baker
**
Offline Offline

Posts: 20


« Reply #102 on: April 06, 2008, 04:12:21 PM »

Thanks, ruebenwurzel!
Logged

Excuse me for bad English!
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 6255


Keep on Rockin


WWW Email
« Reply #103 on: April 07, 2008, 07:55:25 AM »

Hello

Just released version 1.90 of Another Image Gallery

Changelog:

v1.90 Apr 06, 2008
 - added support for edit CSS functions of WB 2.7
 - fixed E_ALL notices in save.php
 - added ` quotes for all DB queries table names and fields to prevent issues with MySQL special chars like -
 - changed mechanism to prevent files from beeing accessed directly (redirect instead off displaying an error message)

Requirements:

- To get the css files displayed in the head section of your template and not in the body section, add the following code to the head section of the index.php from your template:
Code:
<?php
if(function_exists('register_frontend_modfiles')) {
  
register_frontend_modfiles('css');
?>
This code only works in WB 2.6.7 and WB 2.7, if you use a lower version of WB, you don't need to make changes in your template. The css will be displayed in the body tag as it was in previous versions.

- The latest release uses the integrated edit module CSS functions of the WB 2.7 core (introduced with WB 2.7 RC3). To add this feature to WB 2.6.x, one needs to copy the files /framework/module.functions.php and edit_module_files.php from a WB 2.7 (RC3 or higher) to the WB 2.6.x installation. In addition one needs to define 3 language variables in the WB language files:
Code:
$TEXT['CAP_EDIT_CSS'] = 'Edit CSS';
$TEXT['HEADING_CSS_FILE'] = 'Actual module file: ';
$TEXT['TXT_EDIT_CSS_FILE'] = 'Edit the CSS definitions in the textarea below.';


How to update?:
- First make a copy of modul stylesheets and if you have already 1.6/1.7 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.

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


Hope you like it

Matthias
« Last Edit: April 07, 2008, 08:26:30 AM by ruebenwurzel » Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
daydreamer
Apprentice Baker
***
Offline Offline

Posts: 56


« Reply #104 on: April 07, 2008, 01:12:34 PM »

A bulk folder upload would be awesome for this
Logged
Maruk
Apprentice Baker
***
Offline Offline

Posts: 59


WWW Email
« Reply #105 on: April 09, 2008, 12:54:41 PM »

Hi,

is there a possibillity to change the ".." in the sub-directory list to "Back" or something like this.
I have already searched in the Forum but i do not find a complete answer.
Only that i have to change it in the view.php.
But i do not know on witch line i have to change the ".."

I use Another Image Gallery 1.90

Friedrich
Logged
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 6255


Keep on Rockin


WWW Email
« Reply #106 on: April 09, 2008, 01:34:41 PM »

Hello,

you have to edit the view.php. As i didn't use the part with the subdirectories i didn't spend not much time in adapting this part to a better configurable code. Hope can do this in one of the next versions.

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Maruk
Apprentice Baker
***
Offline Offline

Posts: 59


WWW Email
« Reply #107 on: April 09, 2008, 01:40:25 PM »

Hi Matthias,

thank you for your quick answer.
The Problem is that i am not good in php. So i dont know what i have to edit in the view.php to change the ".."  sad
Logged
fsuk
Apprentice Baker
***
Offline Offline

Posts: 67



Email
« Reply #108 on: July 02, 2008, 04:48:03 PM »

It would be good if the preview pics where saved as pngs with transparent backgrounds or the images where coped to squares so that the previews for portrait pictures matched the previews for landscape pictures.

Other then that i like it, i've even implemented lightbox with it and some css to change the border colour when the mouse hovers over the preview pic.
Logged

You say deviant like its a bad thing...
Pages: 1 ... 4 5 [6] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!