FAQ
- General Questions
- Can I use my existing Gallery for embedding or must I do a clean install?
- How do I set the permissions so that unregistered (Everyone) users can …
- G2 Images as Joomla Content Images
- Blank Page after configuration
- Why do I get the error Allowed memory size of xxx bytes exhausted?
- Fatal error: Call to undefined function: iserror() in
- sync error: We can sync your account to G2, ask webmaster tolower security …
-
Installation
- Where do I find the Component to integrate Gallery2 into Joomla?
- Can I install Gallery2 on a different Domain or Subdomain than Joomla?
- Can I install Gallery2 on a different Server than Joomla?
- Cannot save "URL to G2" variable in configuration of the component …
- Gallery2 images not appearing in Joomla.
- Wrong URL from Joomla when accessing Galler2 albums …
- Layout
- Charset
General Questions
Can I use my existing Gallery for embedding or must I do a clean install?
You can integrate your existing Gallery in Joomla/Mambo the component is the bridge between Gallery and Joomla/Mambo.
How do I set the permissions so that unregistered (Everyone) users can only see thumbnails, but cannot enlarge images?
G2 Images as Joomla Content Images
The easiest way to use Gallery2 images in your Joomla content is to use the G2Image Editor Plugin by Kirk Steffensen
If you have shell access to your Server or Webspace you can create a "symbolic link" to the g2data directory.Go to the /images/stories/ directory and type: In -s /your/server/path/to/g2data/
This will creat a symbolic link and you can use the g2data directory with the Joomla Media Manager, { mosimage } or your editor.
Small warning: With a large gallery and Joomla 1.0.x series this may lead to very big loading times or even timeouts. Joomla 1.5 has rewritten the media manager and this might be resolved
Blank Page after configuration
You are exhausting the available memory that PHP has access to. In php.ini there is a config variable named memory_limit that by default is set to 8MB. Edit php.ini and increase it to a larger value (restart Apache afterwards). If you don't have access to php.ini, you can add this line to your .htaccess file in your joomla folder. If there is no .htaccess file yet, you can create one (it's just a text file with the name '.htaccess').
php_value memory_limit [new memory limit]
To change it to 16 MB, write:
php_value memory_limit 16M
If the .htaccess method does not work or if you get an internal server error after adding this line, remove the line from the .htaccess again. You can also try to change the memory_limit by adding the following line right after '<?php ' in com_gallery2/gallery2.php:
ini_set("memory_limit","32M");
If there's no "memory_limit" parameter in your phpinfo page, then all PHP/Webserver processes are limited by the per process max memory limit. You'll have to ask an administrator to change the limit in this case. On linux/unix, you can check the limit with the following command in the shell:
ulimit -a
Or with PHP with a script check.php
<?php print system('ulimit -a'); ?>
Why do I get the error Allowed memory size of xxx bytes exhausted?
See FAQ#Blank-Page-after-configuration
Fatal error: Call to undefined function: iserror() in
You using a older version, get latest version from the forge.
sync error: We can sync your account to G2, ask webmaster tolower security settings or look up what the problem is
This error happens because you already have username(s) in your gallery 2 standalone that are exactly the same as your joomla username(s). On default this component checks if both username and e-mail match due to security reasons. You can lower this setting on the first configuration tab of this component and put it back up after the sync has done.
Installation
Where do I find the Component to integrate Gallery2 into Joomla?
Please download the latest version of the Gallery2 bridge, Modules and Mambots from the Joomla! Developer Project site.
Can I install Gallery2 on a different Domain or Subdomain than Joomla?
You can install your gallery on a different subdomain but not on a different domain.
Can I install Gallery2 on a different Server than Joomla?
This is currently not possible as this component needs access to the Gallery File base.
Cannot save "URL to G2" variable in configuration of the component v2.0.13
This is a known bug in v2.0.13, - uninstall the component with Joomlas component installer - edit the Joomla database and drop the table jos_gallery2 and jos_gallery2_useralbums - reinstall the component 2.0.13
Gallery2 images not appearing in Joomla.
Disable the "Url Rewrite" Module in Gallery2 --> Site-Admin --> Module
Wrong URL from Joomla when accessing Galler2 albums (your_domain/v/album_name)
Disable the "Url Rewrite" Module in Gallery2 --> Site-Admin --> Module
Layout
Layout doesn't show up correct when embedded
Don't forget to enter the complete "URL to G2:" - inclusive "/main.php" - in the config of the Gallery component.
Can I link to an individual Gallery album from the main menu?
Yes, navigate your browser to the album you want to link to and copy the URL. In Joomla's backend create a new menuitem -Link URL- and paste the link here.
The link should look like: index.php?option=com_gallery2&Itemid=3&g2_itemId=330 for example (without http://www.domain)
How can I remove or change the Gallery2 Header?
To remove or change the Gallery header edit the theme.tpl in /gallery2/themes/matrix(or your Theme)/templates/ , search for:
<div id="gsHeader"> <img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/> </div>
and remove / remark this code or replace the Gallery image with your own image.
Or simply add the following code to your Joomla stylesheet:
#gsHeader { display : none; }
How can I remove or change the Gallery2 Footer?
To remove or change the Gallery footer edit the theme.tpl in /gallery2/themes/matrix(or your Theme)/templates/ , search for:
<div id="gsFooter"> {g->logoButton type="validation"} {g->logoButton type="gallery2"} {g->logoButton type="gallery2-version"} {g->logoButton type="donate"} </div>
and remove / remark this code.
Or simply add the following code to your Joomla stylesheet:
#gsFooter { display : none; }
Charset
Gallery 2 uses the utf-8 charset and instead of the default joomla iso charset. This can give problems with special characters like but not limited by: "éáëéèü"
Convert Gallery 2 output to joomla char set
component changes in ../components/com_gallery2/pages/main.php:
print $g2moddata['bodyHtml'];
change the above line to this:
print iconv("UTF-8", $iso, $g2moddata['bodyHtml']);
For Module you have use add this to end of the file just before "?>"
$content = iconv("UTF-8", $iso, $content);
If you server doesn't support iconv you can also use utf-8_decode:
print utf8_decode($g2moddata['bodyHtml']);
and modules:
$content = utf8_decode($content);
![(please configure the [header_logo] section in trac.ini)](/g2bridge/chrome/site/g2bridge_logo.png)