Welcome, Guest. Please login or register.
Did you miss your activation email?
September 06, 2010, 09:43:27 AM

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.
121691 Posts in 17370 Topics by 9217 Members
Latest Member: darkforceheals
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  New Image Gallery
Pages: 1 ... 3 4 [5] 6 7 Go Down Print
Author Topic: New Image Gallery  (Read 36675 times)
Ivanov

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
Forum administrator
*****
Offline Offline

Posts: 7326


Keep on Rockin


WWW
« 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

Offline Offline

Posts: 20


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

Thanks, ruebenwurzel!
Logged

Excuse me for bad English!
ruebenwurzel
Forum administrator
*****
Offline Offline

Posts: 7326


Keep on Rockin


WWW
« 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.p hp 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

Offline Offline

Posts: 175


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

A bulk folder upload would be awesome for this
Logged
Maruk

Offline Offline

Posts: 97


WWW
« 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
Forum administrator
*****
Offline Offline

Posts: 7326


Keep on Rockin


WWW
« 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

Offline Offline

Posts: 97


WWW
« 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

Offline Offline

Posts: 113



« 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...
gilly

Offline Offline

Posts: 49


« Reply #109 on: September 02, 2008, 04:40:05 AM »

i've even implemented lightbox with it and some css to change the border colour when the mouse hovers over the preview pic.

do you feel like releasing this? I am looking for a lightbox gallery for WB and your modification of this gallery sounds perfect.
Logged
gilly

Offline Offline

Posts: 49


« Reply #110 on: September 04, 2008, 06:33:44 AM »

ok I got a lightbox working on mine.

My next question - is it possible to add a description and title for the gallery?
So when you add a gallery, you can give it a title, eg "Holiday Photos" and then a more detailed description (a paragraph or two).

Perhaps the next version of this should have this functionality - to be honest I'm surprised it isnt already there.

This is especially helpful if you need to have multiple galleries - which I do.

Thanks!
« Last Edit: September 04, 2008, 06:36:58 AM by gilly » Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #111 on: September 09, 2008, 09:03:33 PM »

Forgive my ignorance if this has been answered and I didn't understand it.  I have Another Image Galley instaled on my website and have (for the moment) two image galleries on the page.  How and where do I change the Image gallery title from ImageGallery to the title I wish to have appear at the top of each gallery?
Or is this not possible?
Thank you.
Logged
fshagan

Offline Offline

Posts: 7


« Reply #112 on: September 15, 2008, 05:49:06 AM »

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

I'm not a pro either, but I found one way to change the ".." to "<< Back".   Anyone who knows a better way can correct me (I'm a beginner in all this).   From the module's directory, download view.php and open it in a text editor and find this block of code around line 266:

Code:
  } else {
  if ($target2 == '/..'){
    $urlsearch = array('%2F..', '%2F', '+');
    $urlreplace = array('', '/', ' ');
    $url = str_replace($urlsearch, $urlreplace, $url);
    $urllist = explode('/', $url);
    $urlcount = count($urllist);
    $urlpre = $urllist[$urlcount-1];
    $url = str_replace('/'.$urlpre, '', $url);
  }

Immediately after that last curly brace "}", add a blank line or two and then this block of code:
Code:
/* change parent directory dots to 'Back', added yyyy/mm/dd */
if ($filename == '..')  {
  $filename = str_replace('..', '<< Back', $filename);
}
/* end change parent directory dots */

That code looks for a file name made up of only the two dots, and replaces the two dots with the word and "less than" signs:  "<< Back" (you could use any word in there, I think). 

« Last Edit: September 15, 2008, 06:01:38 AM by fshagan » Logged
babsy

Offline Offline

Posts: 304


« Reply #113 on: October 03, 2008, 10:31:09 AM »

Hi...

This is a great module Smiley... and it works fine, but i have 2 question, that maybe someone has a solution for:

1. I have tried to link from the news part to on subdirectory in the imagegallery, but i just get the first page:
ex: this is the first page: http://www.husarhaldsskulin.fo/pages/myndir.php?lang=FO
this is the page i want to link to: http://www.husarhaldsskulin.fo/pages/myndir.php?dir47=%2Fstarvsfolk
 = but now matter what i do, it only shows the first ex! (where the folders names are?)  - lany idea´s why!

2. Is it possible to use caracter as "ð, í, ø, ý" in the folder names?

Smiley

Logged
vyni

Offline Offline

Posts: 566



WWW
« Reply #114 on: October 03, 2008, 11:42:01 AM »

Hi,

I´m not sure, if I understand You right. But if You want to link to any sub-page just do it in the same way as You did here in the forum. This works.

Create the link, insert url (http://www.husarhaldsskulin.fo/pages/myndir.php?dir47=%2Fstarvsfolk) and You are done.

2. Its alway´s a bad idea using language-specific letters for a folder. Use standard ascii and You are on the safe side. Many scripts aren´t working, if there are special characters, even space could be a problem.

regards from Himberg, nearby Vienna
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
babsy

Offline Offline

Posts: 304


« Reply #115 on: October 03, 2008, 12:00:39 PM »

Hi...  grin sorry, i see now the mistake Smiley off course the link works here, so this is proberbly the wrong thread to ask this Smiley sorry Smiley

my problem is proberbly in the FCK editor, because it won´t open this link, just the first ex. !

i have to try again Smiley thanks for tha answer on 2.. i will keep away from those caracters Smiley

hmm, maybe someone could try making a link direct to this page throug the news section... i have tried all the possibiliies, but still. i just get in to the main page, even if i write the whole address in the news text... ?? weird, but this is proberbly something with the fck editor or the news module??
« Last Edit: October 03, 2008, 12:07:14 PM by babsy » Logged
vyni

Offline Offline

Posts: 566



WWW
« Reply #116 on: October 03, 2008, 12:07:31 PM »

 grin and now You don´t understand right.  grin

Even in FCK-Editor You can insert this url by hand! Just add a link (as usual) to a text or image and in the dialogbox from FCK insert Your url. Ready.

Here You can find a news with Your link.
« Last Edit: October 03, 2008, 12:12:10 PM by vyni » Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
vyni

Offline Offline

Posts: 566



WWW
« Reply #117 on: October 03, 2008, 12:14:51 PM »

Hi Babsy,
is it this what You are looking for?

I´ll illustrate on that page how I did, if You cannot follow, ok?
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
babsy

Offline Offline

Posts: 304


« Reply #118 on: October 03, 2008, 12:24:30 PM »

Hi Smiley i can follow .. no problem Smiley but check this out:

http://www.husarhaldsskulin.fo/pages/tEDF0indi.php

and look in the first news Smiley and press on this link (http://www.husarhaldsskulin.fo/pages/myndir.php?dir47=%2Fmakeup) in the short news section...

you don´t get in to that link, even if i write it, (i did the same in the URL, but still same result)

but... there is something wrong with the language files, maybe thats where the problem is, i don´t know Smiley
Logged
vyni

Offline Offline

Posts: 566



WWW
« Reply #119 on: October 03, 2008, 12:31:27 PM »

Aha,

I don´t know what´s wrong, but it is ok in my news. Just try The Link is here.... in the News aswell the same line.
« Last Edit: October 03, 2008, 12:33:07 PM by vyni » Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
babsy

Offline Offline

Posts: 304


« Reply #120 on: October 03, 2008, 12:39:37 PM »

hi again... and thanks for your help!... yes... i can see it works for you! really weird Smiley


ill write it here, when it works, i just have to try a few more things Smiley
Logged
vyni

Offline Offline

Posts: 566



WWW
« Reply #121 on: October 03, 2008, 12:49:43 PM »




And how about a normal wysiwyg-section?
Is it working there?

Only the news fails?
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
pszilard

Offline Offline

Posts: 67


WWW
« Reply #122 on: October 19, 2008, 08:44:31 AM »

I am using WB 2.7 with template: Lazy Days and Another Image Gallery v1.90.

If I have more than 4 thumbnails the thumbnails layout goes mad when the user mouses over the thumbnails.

Is this easy to fix? I really would like to use this gallery module as non of the others do what I need!

Thanks in advance...
Logged

Paul Szilard
WB user since Dec 2007:
http://www.remektek.com.au/wb
http://photos.remektek.com.au/ for my photo portfolio
ruebenwurzel
Forum administrator
*****
Offline Offline

Posts: 7326


Keep on Rockin


WWW
« Reply #123 on: October 19, 2008, 11:33:01 AM »

Hello,

check your css files. Looks like a incompatibility between the css file from the template and the modul.

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
pszilard

Offline Offline

Posts: 67


WWW
« Reply #124 on: October 19, 2008, 02:36:05 PM »

Hello,

check your css files. Looks like a incompatibility between the css file from the template and the modul.

Matthias

Ok. But I've tried it with different site templates and it was the same. So agree that there is a bug in the CSS, but I am sure not clever enough to figure out what it is! That is why I am asking here for help Smiley
Logged

Paul Szilard
WB user since Dec 2007:
http://www.remektek.com.au/wb
http://photos.remektek.com.au/ for my photo portfolio
Pages: 1 ... 3 4 [5] 6 7 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
-->