Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extra Gallery
#51
Great module, thank you!
Reply
#52
Hi,
This seems to me be a nice plugin.
make the settings and put in my template.php:

PHP Code:
<?php     eg_return_gallery($name 'naam'$language 'en'$instanceNum 0)?>
or
PHP Code:
<?php eg_return_gallery('naam'); ?>
But nothings showing...........

What can I do wrong or forget?
use GS v3.3.7
Reply
#53
(2015-10-01, 21:52:02)Frens Wrote: Hi,
This seems to me be a nice plugin.
make the settings and put in my template.php:


PHP Code:
  <?php     eg_return_gallery($name 'naam'$language 'en'$instanceNum 0)?>
or

PHP Code:
<?php eg_return_gallery('naam'); ?>
But nothings showing...........

What can I do wrong or forget?
use GS  v3.3.7

ExtraGallery is not a frontend plugin, means, it does not create valid html and/or css properties to show in your template file.
eg_return_gallery() only returns a php array, including all needed data as gallery title, image paths and sizes. But to show them on your page, you have to convert this data by yourself (e.g. some for loops or so) to produce html.
Reply
#54
(2015-10-01, 22:11:54)Atratus Wrote:
(2015-10-01, 21:52:02)Frens Wrote: Hi,
This seems to me be a nice plugin.
make the settings and put in my template.php:



PHP Code:
  <?php eg_return_gallery($name 'naam'$language 'en'$instanceNum 0)?>
or


PHP Code:
<?php eg_return_gallery('naam'); ?>
But nothings showing...........

What can I do wrong or forget?
use GS  v3.3.7

ExtraGallery is not a frontend plugin, means, it does not create valid html and/or css properties to show in your template file.
eg_return_gallery() only returns a php array, including all needed data as gallery title, image paths and sizes. But to show them on your page, you have to convert this data by yourself (e.g. some for loops or so) to produce html.

Thanks for comment

I read a lot but can find how to e.g..maybe you have a small sample for the GS beginner.
Reply
#55
Hi,

Thake the code from Shawn_a

PHP Code:
<?php 
$galleryItems 
eg_return_gallery('naam');
debugLog($galleryItems);

echo 
"<h2>Gallery ".$galleryItems['title']."</h2>";
echo 
"<ul>";
array_walk($galleryItems['items'],'output');
echo 
"</ul>";

function 
output($item,$key){
    GLOBAL 
$SITEURL;
    echo 
"<div>";
    echo 
'<a href="'.$SITEURL.'/data/'.$item['filename'].'" rel="lightbox">';
    echo 
'<img src="'.$SITEURL.'/data/'.$item['thumb-0']['filename'].'">';
    echo 
"</a>"
    echo 
"</div>";

?>

The pad to the thumb is not correct ,? how to ad a other field. e.g ?

Thanks for help
Reply
#56
Hello,

Your plugin is awesome and I love using it but I have an issue with it.
I have several galleries created with about 10-20 images in each gallery.
In the frontend I have no problem displaying those images.
However in the backend here is what I see :
[Image: Capture.JPG]

As you can see there is no thumbnails even if they were created correctly.
I'm a french web developer and I tried a long time to figure out what was going wrong but with no success.
In my localhost it just working fine...
The data folder is 755 so it's not a matter of access right.
The issue is also on the crop functionality as it use the ajax loading but not on the preview.
I'm stuck now, any idea?

Thanks in advanced.
Reply
#57
I answer myself to my issue.
I found what was going wrong and it was some carriage returns in some included file who broke the images.
I don't know why it was working before I moved to production server but there are a lot of coding mistakes in your plugin and also in the core.
Something like
Code:
?>
(there is two carriage returns here)
at the end of a PHP file makes me wonder if it's a beginner who wrote that.
Reply
#58
What file?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#59
I apologize but English is not my mother tongue.
After checking more in depth the source code, there is no additionnal spaces on your files but only in the core and another plugin I installed.
By the way, I'm not a fan of your JS code directly in PHP but it works so it's fine.
I think it will be a more readable and reliable plugin if you consider rewriting some parts of your code.
If you have a git repository, I will be interested in helping you in my spare time.
Regards
Reply
#60
Big Grin 
Hi

Just wanted to say thanks to mganko for a great plugin.
Between you, shawn_a and Featherlight jQuery lightbox I finally got my gallery the way I wanted it.  


Code:
<?php
$galleryItems = eg_return_gallery('newimages');
debugLog($galleryItems);
array_walk($galleryItems['items'],'output');

function output($item,$key){
   GLOBAL $SITEURL;
   echo "<div>";
   echo "<h6>".$item['field-0']."</h6>";
   echo '<a href="'.$SITEURL.'/data/'.$item['filename'].'"data-featherlight="image" ">';
   echo '<img src="'.$SITEURL.'/data/'.$item['filename'].'">';
   echo "</a>";
   echo "</div>";
}
?>

Gallery: http://www.giantpygmy.net/gp/index.php?id=new-img

Cheers,

C.
Reply
#61
Made my own coding, based on some NL forum, looking for eg_return_gallery word
Makes a list of photoes

Some explanations:
field0 - photo name
filename - photo path

PHP Code:
                <?php
                                        $galleries 
eg_return_gallery();
                        foreach (
$galleries['projects']['items'] as $image)
                { 
?>        
                    <img src="data/<?php echo $image['filename'?>">            
                      <a href="data/<?php echo $image['filename']?>"
                                        <?php echo $image['field-0']?></a>                
                                 <?php ?>

That's it Smile
Reply
#62
Hey dudes,
Great plugin, I made it working easier with i18n_custom_field and Frens code.
My purpose has to create "easy to make" galleries to help my wife to manage herself web pages with a bottom gallery.
As a CSS framework, the theme uses kickstart.js to show a clean gallery.

Stage 1 : Install ExtraGallery, and i18n_custom field

Stage 2 : change language in ExtraGallery. In Custom_field, create a field name is 'name' and Title 'Gallery'

Stage 3 : Paste the code (thanks to from Frens) in a copied template under get_content, so that, the gallery will be shown on the bottom of the page. Name it template_gallery for instance.

Report Custom_field call  :
PHP Code:
               <!-- Generate gallery code from Extra Gallery Data-->
 
               <?php
                $galleryItems 
eg_return_gallery(return_custom_field('name'));
 
               debugLog($galleryItems);
 
               echo "<div class='gallery'>";
 
               array_walk($galleryItems['items'],'output');
 
               echo "</div>";



 
               function output($item,$key){
 
                   GLOBAL $SITEURL;
 
  
                    
//echo "<h6>".$item['field-0']."</h6>";
 
                   echo '<a id="fb" href="'.$SITEURL.'/data/'.$item['filename'].'"">';
 
                   echo '<img width="100" src="'.$SITEURL.'/data/'.$item['filename'].'">';
 
                   echo "</a>";
 
                   
                    
}
 
                 ?>
                <!-- End code for Extragallery--> 

Don't forget to add kicktstart call if needed :

PHP Code:
<!-- CSS -->
 <
link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/css/kickstart.css" media="all" />

 
 <!-- 
Javascript -->
 <
script type="text/javascript" src="<?php get_theme_url(); ?>/js/kickstart.js"></script> 

Stage 4 : Setup is done !

To use :
Create an Extragallery
Create a page and in options : change template to one with gallery, add custom field with the gallery name and that is it !

More about kickstart.js
Reply
#63
Smile 
May I be honest?

This CMS is called "GetSimple" and as all the posts here show, this gallery is not simple.

It is a nice piece of code, but the description on extend page is not clear. Even that you say it is a "backend" plugin - well, all plugins are somehow "backend"...

Most of the functionality which we users expect is kind of "frontend", something to show and not to create special templates etc...

So please be nice and explain on the extend page that this plugin DOES NOT create any shortcodes etc. to integrate the gallery in a page or sidebar, whatever
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 3 Guest(s)