Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N Gallery
Plugin request please. On mobile, the ability to swipe onto the next image. [Image: 1.gif]
Reply
Please tell me what function can determine the number of elements in the gallery? It is also interested in how the function can determine the number of elements with a certain tag
Reply
Hi,
I'm using i18N Gallery 2.2.1 with fancybox 1.3.4. I'd like to have the title of the picture inside and the animation when changing the pictures (clicking the "next"-Arrow) just to fade in and out, like in the example on the homepage. Instead, the pictures come in from the top (that's a bit strange, when you click on the arrow to the right). Where can I set this?
Thanks in advance,
Bernd
Reply
Hi guys,

Just updated to the latest version of GS and I18N + Gallery + Custom fields.
Now when I add an image to the gallery, it closes the window.
Usually it lets me add all I want and then I manually have to close it.
Any ideas why and how to work around it?

Thanks,
Lasse
Reply
There was a exploit fixed in that code, let me see if it broke this.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Hi,

I need a `clean` url in the a tag to the large image.

Code:
href="<?php i18n_gallery_thumb_link($gallery,$item); ?>"

I use a other gallery with the settings from Prettyphoto, do not need a rel e.g in the a tag

For the thumb it works fine , but how fix it for the large image

Code:
href="???"
Reply
Hi  mvlcek
 
I have a problem with the i18n Gallery plugin not converting the in-editor (% gallery %) tag syntax to actual js/html code.
 
Using latest Versions : GetSimple 3.3.7, i18n Gallery 2.2.1, i18n 3.2.9, with PHP – 5.4.16

Background  :  I am wanting to do a one page theme which is also multi-lang. For this I want to use the fn returnPageContent() in a loop. I would put this in a theme functions.php file ..  along the lines of Carlos here
(but just a function defn, then called from the template )

.. But if I use the fn returnPageContent() where there is a (% gallery %) tag in the page, it is NOT converted to the final code, but just left as is.  I also tried getPageContent($page_slug) but this had the same result.
 
I have done a quick test shown below with no looping, but which just has 2 parts, one below the other. Part 1 is whatever is chosen by clicking a menu item and then simply calling get_page_content() which does any plugin filtering in the normal way. Part 2 is always the same page containing a gallery page with slug name gallery-page, and uses fn  returnPageContent() and then calls the same get_page_content().
 
Code:
Code:
functions.php code  ...

function forum_test() {

   global  $content;

   // Part 1 .. the NORMAL way
   // ===========================
   $content = "<h1>Part 1 </h1>".$content;
   get_page_content();

   // Part 2 .. my ONEPAGE way
   // ==========================
   // Note RE-INITIALISE $content
   $content = "<h1>Part 2</h1>";
   $content .= returnPageContent('gallery-page', "content", true, true);
   get_page_content();

}  

... and the template.php code :

<body>
<div id="page-container">
  <?php  forum_test();  ?>
</div>
</body>


..  and the gallery-page source code :

<h2>Gallery Start</h2>
<div>(% gallery name=gallery-1 thumb=1 id=g3 %)</div>
<h3>Gallery End</h3>

So THE PROBLEM is   :
 
Case A : When Part 1 is any page except the gallery page, then the gallery tag in Part 2 is left UNCONVERTED
   

Case B When Part 1 is the gallery page itself, then the gallery tag in Part 2, as well as Part 1, IS converted
   

So the point is, even though with Part 2 I may not have prepared the $content string correctly with returnPageContent(), but the fact is that for both Cases A and B the code/values in Part 2 is IDENTICAL .. I re-initialise $content  ..   but case A does NOT WORK and case B DOES work  ..
 
So what‘s happening      ??
 
Any help would be great
 
 
Thanks Aldabaran
Reply
(2015-11-23, 19:57:40)aldebaran Wrote: I have a problem with the i18n Gallery plugin not converting the in-editor (% gallery %) tag syntax to actual js/html code.
 
Using latest Versions : GetSimple 3.3.7, i18n Gallery 2.2.1, i18n 3.2.9, with PHP – 5.4.16

Background  :  I am wanting to do a one page theme which is also multi-lang. For this I want to use the fn returnPageContent() in a loop. I would put this in a theme functions.php file ..  along the lines of Carlos here
(but just a function defn, then called from the template )

The problem is that some plugins like I18N Gallery need to know the full (raw) content before get_page_content() is called, namely in the header for get_header().

 I have created a plugin to simplify this, see the I18N OnePage plugin and the Support Thread for more information.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2015-11-28, 09:04:11)mvlcek Wrote: The problem is that some plugins like I18N Gallery need to know the full (raw) content before get_page_content() is called, namely in the header for get_header().

 I have created a plugin to simplify this, see the I18N OnePage plugin and the Support Thread for more information.

Ah ah ..  thanks for the info Smile

That's a great idea to encapsulate the 'issues' in a plugin  .. so then just have some easy calls in the template   ...

OnePage solutions are becoming more popular  ...

How is the plugin with i18n ?   ... I'll  be needing a frontend multi-lang onepage solution

I will give the plugin a try in the next few days

Cheers  Aldebaran
Reply
what is happend when i scrolling page and trying a change position of images:
(firefox, windows 7 64bit)
https://dl.dropboxusercontent.com/u/4998...allery.jpg

can someone help with fix this bug ?
the image is not visible in cursor area but above of the cursor ...
its problem with scrolling page..
user plugin: scroll to top
Reply
(2015-12-01, 09:11:55)xxdex Wrote: can someone help with fix this bug ?
the image is not visible in cursor area but above of the cursor ...
its problem with scrolling page..

Known issue, try solution described here: http://stackoverflow.com/questions/57918...e-scrolled
Reply
the problem with this function is too in:

Navigation Structure
Order the pages with drag and drop. Indent/unindent them using the < and > buttons. Gray entries are not displayed in the menu. Click on a menu text to change it.

I was trying to fix it in last days and i fall.. i think it's a problem for all who using a firefox and I18N plugins. Can some one from community help with fix it ?
user plugin: scroll to top
Reply
(2015-12-01, 09:11:55)xxdex Wrote: what is happend when i scrolling page and trying a change position of images:
(firefox, windows 7 64bit)
https://dl.dropboxusercontent.com/u/4998...allery.jpg

can someone help with fix this bug ?
the image is not visible in cursor area but above of the cursor ...
its problem with scrolling page..

Problem solved.. I'm was find a solution!!! iit's no problem in i18n gallery.

Problem is with plugin:
http://get-simple.info/extend/plugin/modern-admin/811/
"modern admin" VERSION 1.5
if You have installed this plugin in you getsimple You must change a css in:
modern-admin\assets\css\style.css
You must a line:

.wrapper { position:relative }
PLEASE: COMMENT IT:
/*.wrapper { position:relative }*/
and find a seccond line:
#maincontent .main, #themecontent { box-shadow:none; min-height:20em; position:relative; padding:20px 30px; margin:-1px 0 40px -1px; border: none !important}
and delete in this line "position:relative;"

now a i18n galllery/ edit navigation structure. should word PERFECT!! Smile

1 problem found by my, 1 problem fixed by my Smile dex is happy! Smile
user plugin: scroll to top
Reply
lol that is exactly what described here, see reply number one:
http://stackoverflow.com/questions/57918...e-scrolled

1. Use position:absolute; in your css. Absolutely positioned elements don't seem to be affected.
Reply
Hello, could somebody help me integrate ratio check.

I have made isotope plugin for a gallery on the homepage. But I need to pass ratio to plugin somehow. For example. If width > height, I need to set class="horizontal" if height < width I need to set class="vertical".

Any ideas how I can achieve this?

Ok, did it myself

PHP Code:
<?php 
  foreach 
($gallery['items'] as $item) { 
 
     
      $ratiow 
$item['width']/$item['height'];
                    if (
$ratiow 1) {
                        
$ratio "width-1 height-1";
                    } elseif (
$ratiow AND $ratiow 2) {
                        
$ratio "width-1";
                    } elseif (
$ratiow 2) {
                        
$ratio "width-2";
                    }
?>

Next question. How I could turn on arbitrary crop for the thumbs? For example, if image is vertical I would like to crop it to 250x150, otherwise it should be 150x150px
Reply
Hi,
“Unexpected CSS token: color”

in i18n_gallery/plugin_cycle.php:

.gallery-cycle .gallery-control-numbers a {
        font-size: 18px;
        border: 0 none;
        text-decoration: none;cylce
        color: #999999;

An extra “cylce” word there? Correction to next I18N Gallery version?
Thanks.
Reply
(2015-12-29, 17:45:03)ph0t0 Wrote: Hi,
“Unexpected CSS token: color”

in i18n_gallery/plugin_cycle.php:

.gallery-cycle .gallery-control-numbers a {
        font-size: 18px;
        border: 0 none;
        text-decoration: none;cylce
        color: #999999;

An extra “cylce” word there? Correction to next I18N Gallery version?
Thanks.

Thanks for spotting this. I'll fix it in the next version.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2015-12-30, 05:13:52)mvlcek Wrote:
(2015-12-29, 17:45:03)ph0t0 Wrote: Hi,
“Unexpected CSS token: color”

in i18n_gallery/plugin_cycle.php:

.gallery-cycle .gallery-control-numbers a {
        font-size: 18px;
        border: 0 none;
        text-decoration: none;cylce
        color: #999999;

An extra “cylce” word there? Correction to next I18N Gallery version?
Thanks.

Thanks for spotting this. I'll fix it in the next version.

Great, thanks.
Reply
mvlcek, there is a new script for the gallery, it allows you to use YouTube and Google maps http://sachinchoolur.github.io/lightGallery/demos/
Reply
I needed to sort galleries by date, but 'pubDate' item was missing in gallery xml file, so I add a line of code:

Code:
$data->addChild('pubDate')->addCData(stripslashes(date('r'))); // need to be date('r')

after:

Code:
 foreach ($gallery as $key => $value) {
   if ($key != 'items' && $key != 'item') {
$data->addChild($key)->addCData(stripslashes($value));
   }

In edit.php file.

Now new galleries have correct dates.
Reply
(2015-12-30, 06:27:51)Oleg06 Wrote: mvlcek, there is a new script for the gallery, it allows you to use YouTube and Google maps http://sachinchoolur.github.io/lightGallery/demos/

Hi (new to getsimple, and of course i18gallery)

Would be great to have that, for it looks great, and is responsive.

In the meantime, if you are using bootstrap you could add this
http://get-simple.info/extend/plugin/pho...llery/988/
and with some css tweaking you could get that.

That said my problem is to have a responsive slider, not being a coder I copied s3slider file, changed all instances of s3slider with "carousel" (bootstrap's slider), changed some html, and got to show "carousel" in the slider's option editing of i18gallery, and to have images on the page, but problem is they are stacked, and not sliding, since I don't know how to finish (edit) the code to do make it work; following is the code I changed, if it is not asking too much I'd really appreciate if you could please correct it with working code.

Thank you

Original s3slider code snip

PHP Code:
function i18n_gallery_s3slider_content($gallery) {

  $id 's3slider-'.i18n_gallery_id($gallery);
?>
  <div id="<?php echo $id?>">
     <ul id="<?php echo $id?>Content">
<?php 
  
foreach ($gallery['items'] as $item) { 
?>
        <li class="<?php echo $id?>Image">
            <img src="<?php i18n_gallery_image_link($gallery,$item); ?>" />
            <span><strong><?php echo htmlspecialchars(@$item['_title']); ?></strong><br/><?php echo htmlspecialchars(@$item['_description']); ?></span>
        </li>
<?php 
  

?>
        <div class="clear <?php echo $id?>Image"></div>
     </ul>
  </div> 

What I have changed (besides the s3slider instances)

PHP Code:
function i18n_gallery_carousel_content($gallery) {

  $id 'carousel-'.i18n_gallery_id($gallery);
?>

<div id="fz-gallery-slider" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
                        <ol class="carousel-indicators">
                        <li data-target="#fz-gallery-slider" data-slide-to="0" class="active"></li>
                        <li data-target="#fz-gallery-slider" data-slide-to="1"></li>
                        <li data-target="#fz-gallery-slider" data-slide-to="2"></li>
                        </ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<?php 
  
foreach ($gallery['items'] as $item) { 
?>
        <div class="item active <?php echo $id?>Image">
            <img src="<?php i18n_gallery_image_link($gallery,$item); ?>" />
            <span><strong><?php echo htmlspecialchars(@$item['_title']); ?></strong><br/><?php echo htmlspecialchars(@$item['_description']); ?></span>
        </div>
<?php 
  

?>
        <div class="clear <?php echo $id?>Image"></div>
</div>        
</div> 

Some notes about carousel's snip:

id="fz-gallery-slider" is the id for bootstrap to be given to the slider

<div class="item active"> should be given to the first image only, and the others should have <div class="item">
Reply
Great plugin! Almost does everything I need ;-)


Is it possible to disable fancybox for a specifc thumbnail and only link that thumbnail to a different page?
Reply
(2016-02-17, 01:17:49)JaapV Wrote: Great plugin! Almost does everything I need ;-)


Is it possible to disable fancybox for a specifc thumbnail and only link that thumbnail to a different page?

See http://mvlcek.bplaced.net/get-simple/i18ngallery:
Code:
(% gallerylink name=my-gallery-name url=my-gallery-slug thumb=0 %)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
Hi

I think I found a conflict with bootstrap tabs, will you please check to see if there is a workaround/fix for it.

This is what I am trying to do:
a gallery page where I have a tabbed navigation each tab being a gallery

Legend:
tab button | status | tab content

tab-1 | [activa tab] | click on other tabs to see the content
tab-2
tab-3
tab-4
tab-...

clicking on tab-2 should display

tab-1

tab-2 | [activa tab] | gallery-1
tab-3
tab-4
tab-...

clicking on tab-3 should display


tab-1
tab-2
tab-3 | [activa tab] | gallery-2
tab-4
tab-...

... and so on

I tried fancybox, and prettyphoto, they do display the thumbnails, but nothing when clicking on thumbnails. Using photoswipe it works randomly, but mainly like this:
Only the first gallery (tab-2) works, and only when clicked first, meaning if I click tab-2 and click on the images it displays the enlarged image, and I can navigate the others.
If I then click tab-3, and click on an image nothing seems happening, and when reclicking tab-2 the large image (of tab-3) is shown overlapped with other images.

Thank you

p.s.
I set up a test demo for your convenience:
afzdesign dot com/demo/fioriera/gs/
Reply
Hi,

My GetSimple works fine, but now I wanted to add the i18n Gallery plugin, but gets this error from my FTP server:

Copying files to remote side failed.
Virus Detected and Removed: Atomicorp.PHP.fopen.htaccess.2010121601.UNOFFICIAL
gallery.class.php: Operation not permitted

I am using this plugin at another site (at another hosting provider), without any problems.

Does anyone have an idea what causes it to be seen as a Virus and how to get it uploaded to my site.

I expect that this is an error - but have no idea if it will even run with out being blocked by Anti-Virus on the server, should I mange to get it uploaded.

Thanks,
Dannie
Reply




Users browsing this thread: 3 Guest(s)
Free HDTV Channels Residential Solar Panels