Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Plugin • Lightbox Gallery 'MyGallery'
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Plugin • Lightbox Gallery 'MyGallery'
Author Message
sidtheduck



Joined: 28 Mar 2008
Posts: 67

Post Reply with quote
scottdallas wrote:
hah where did you see it at? i put it on scottdizzle.com last night but I was so dead tired, it looks like poop.. I'm going to go try to make it look smoother today. I know it can be made into a perfect integration, I just don't like how it looks on my site so far. This is PERRRRFECT though. I almost don't ever want to open links any other way on my cnr sites.
Heh, yeah, I saw it on scottdizzle. It is hard to open links the regular way after highslide, but I do think it can be used *too* much! Razz
Remember, if everything is a feature, nothing is a feature. Very Happy
Fri Apr 25, 2008 10:25 pm View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
Yes, it looks fancy but I haven't seen a single site other than newgrounds that has used it in a way that seems appropriate. In other words, hardly any popular sites are utilizing this. The main thing is that I understand how to add this to a site should I desire to in the future Smile

I think the best mix will be a highslide (or equivalent) template for when links are loaded in the little window.. then using a different template set up on a diff page for search engines and stuff. That way when links get shared or linked to, it will point to the page with all your styles and site layout rather than the simple little crap that popped up in the window while you were surfing the actual site. Follow? I've been slowly working on that for scottdizzle.com

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Apr 29, 2008 12:41 am View user's profile Send private message Visit poster's website AIM Address
sidtheduck



Joined: 28 Mar 2008
Posts: 67

Post Reply with quote
scottdallas wrote:
I think the best mix will be a highslide (or equivalent) template for when links are loaded in the little window.. then using a different template set up on a diff page for search engines and stuff. That way when links get shared or linked to, it will point to the page with all your styles and site layout rather than the simple little crap that popped up in the window while you were surfing the actual site. Follow? I've been slowly working on that for scottdizzle.com
This could be easily done by linking to the full page from the link and adding a javascript "return false;" onclick variable (to stop the link redirect if javascript is enabled) and have your highslide 'basic' content spit out into a hidden div below the link (look at the 'HTML Content' example). This would allow people who visit the site with javascript turned on would get the popup, and search engine spiders (most are non-javascript I believe) or people who have javascript turned off would be redirected to the full content page. Very Happy
Tue Apr 29, 2008 1:04 am View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
Ooh! Fancy, I like. Thanks for tips Smile

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Wed Apr 30, 2008 2:10 am View user's profile Send private message Visit poster's website AIM Address
eberswine



Joined: 26 Apr 2007
Posts: 123

Post Reply with quote
Ok, I finally got around to installing this.

Getting an error in my manager

Code:
>> Couldn't create a new folder (check permissions!)


but when I check the images/1/ --folder
the images are uploaded.
??????
and when I look at it online, it doesn't show anything but the powered by MYGALLERY link

Here is what my manager looks like:


Sat May 03, 2008 9:41 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 67

Post Reply with quote
so did you check the permissions of your folder? (and while you're at it, check the owner UID/GID of the newly created folder).
Also, did you check the permissions of 'galleries.dat'? That may be the issue.

I'm trying to work on better error reporting for the next go around as well. Lukas has some, but they are fairly general and it's hard to debug without more precise error feedback.
Sun May 04, 2008 6:56 pm View user's profile Send private message
eberswine



Joined: 26 Apr 2007
Posts: 123

Post Reply with quote
SidTHEducky

Sorry about the above post, I've should have explained better.

- I 777 all of the files that are in the installation instructions
- When it spits out the error, it still uploads the pictures, not in a different folder, but the same images/1/ folder that has the sample pics in it ??

I event tried a test and 777 all files in MYGALLERY,... but no luck..
I tried the regular installation with the original files, but came up short like a few other guys on this forum: Installed fine, but then went to MyGallery manager in the options and the page came up BLANK!
So as I read the forum, you gave an UPDATE GALLERY zip to fix this, so I installed that and that is basically all that i've done so far. ---
Sun May 04, 2008 7:35 pm View user's profile Send private message
Goberg



Joined: 18 Jan 2007
Posts: 37

Post Reply with quote
Is it possible to have statistics on every gallery? i would like the script to tell me how many pictures every gallery has and so on. is this possible?
Tue May 13, 2008 5:09 am View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 67

Post Reply with quote
Goberg wrote:
Is it possible to have statistics on every gallery? i would like the script to tell me how many pictures every gallery has and so on. is this possible?
I'm hoping to make this easier on the next go-around, but for now you can do this.

Open 'gallery.inc.php' and find the following code (around line 1008 I believe):
Code:
         for ($i=$start; $i<($start+$mgConf['gpp']); $i++){
            if (is_array($galleries[$i])){
               $gal=$galleries[$i];

               // get random preview thumbnail
               $pictures = mg_getpics($gal[0]);
               $c=count($pictures);
               $imgsrc=$pictures[rand(0, ($c-1))]['thumb'];
               
               $match=array("{urlthumb}",
                            "{title}",
                            "{description}",
                            "{urlgallery}");
               $replace=array($imgsrc,
                              stripslashes($gal[1]),
                              stripslashes($gal[2]),
                              $me.$getvars."&mggal=".$gal[0]);
               $rows.=str_replace($match, $replace, $tplrow);
            }
         }
adding to the bottom of the $match and $replace variables, edit the code to read as follows:
Code:
         for ($i=$start; $i<($start+$mgConf['gpp']); $i++){
            if (is_array($galleries[$i])){
               $gal=$galleries[$i];

               // get random preview thumbnail
               $pictures = mg_getpics($gal[0]);
               $c=count($pictures);
               $imgsrc=$pictures[rand(0, ($c-1))]['thumb'];
               
               $match=array("{urlthumb}",
                            "{title}",
                            "{description}",
                            "{urlgallery}",
                            "{totalpics}");
               $replace=array($imgsrc,
                              stripslashes($gal[1]),
                              stripslashes($gal[2]),
                              $me.$getvars."&mggal=".$gal[0],
                              $c);
               $rows.=str_replace($match, $replace, $tplrow);
            }
         }


Then, just add {totalpics} to the 'templates.tpl' file between the <!--ROW--> tags where you want it to show up. Please note that this will only return the number of pictures, so if you want text behind it (like "12 pictures" instead of just "12") add the text behind it ({totalpics} pictures).

If you want to do conditionals for the number of pictures, add some code in the 'templates.tpl' instead of just the {totalpics}:
Code:
<? (intval({totalpics})==1) ? $total="{totalpics} photo" : $total="{totalpics} photos"; echo $total; ?>
This will remove the "s" on the end of pictures if there is only 1 picture in the gallery.
Tue May 13, 2008 4:45 pm View user's profile Send private message
Goberg



Joined: 18 Jan 2007
Posts: 37

Post Reply with quote
ohh that is awesome! thanks a lot Very Happy

sorry for bugging you with one more thing, but is it possible for the script to save the date the gallery was added? somthing like {date} in the cutenews templates?

EDIT: and is it possible to add the pictures to news?

EDIT 2: there is something else wrong. Im including some news on the same page as my galleries. Look here. now this is ok, but the news disappears when someone browses inside the galleries. I think the &mghash does something so the include code dont work.

Example:
http://playstation.sistestopp.com/skjermbilder.php <- news works, see the scrolling news on top of the page.
http://playstation.sistestopp.com/skjermbilder.php?skjermbilder&mghash=29a46f875ef55d54b14035a15bb52e1a&mggal=9 <- news is gone
http://playstation.sistestopp.com/skjermbilder.php?skjermbilder&mggal=9 <- news are working.

is it possible to take away the &mghash values from the url links in the galleryoverview?
Wed May 14, 2008 6:37 am View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 67

Post Reply with quote
This is great plugin but has many problem.

Although I could install and use it, but the script for random image is not working.

this is the error I recieve

Code:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' /plugins/mygallery/randomimage.php on line 12


Can anyone help me how to solve it?
Fri May 16, 2008 8:16 pm View user's profile Send private message
marcusmagalhaes



Joined: 24 Apr 2007
Posts: 70

Post my gallery not working in the admin cutenews area... Reply with quote
Hello sid,
I change the provider and mygallery not working in cutenews admin... any idea?


in the web page, the lightbox doesn't work too... http://www.fenajud.org.br/fotos.php


thank you./..
Wed May 28, 2008 12:42 pm View user's profile Send private message
sidtheduck



Joined: 28 Mar 2008
Posts: 67

Post Reply with quote
nam wrote:
This is great plugin but has many problem.

Although I could install and use it, but the script for random image is not working.

this is the error I recieve

Code:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' /plugins/mygallery/randomimage.php on line 12


Can anyone help me how to solve it?
I think it's having a problem with the '&' before '$value', but it shouldn't if your are running PHP5. I'll try to edit the file to render correctly for PHP4 or PHP5.

marcusmagalhaes wrote:
Hello sid,
I change the provider and mygallery not working in cutenews admin... any idea?


in the web page, the lightbox doesn't work too... http://www.fenajud.org.br/fotos.php


thank you./..
Is the new provider Apache or Windows based?
Wed May 28, 2008 6:14 pm View user's profile Send private message
marcusmagalhaes



Joined: 24 Apr 2007
Posts: 70

Post Reply with quote
APACHE!

sidtheduck wrote:
nam wrote:
This is great plugin but has many problem.

Although I could install and use it, but the script for random image is not working.

this is the error I recieve

Code:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' /plugins/mygallery/randomimage.php on line 12


Can anyone help me how to solve it?
I think it's having a problem with the '&' before '$value', but it shouldn't if your are running PHP5. I'll try to edit the file to render correctly for PHP4 or PHP5.

marcusmagalhaes wrote:
Hello sid,
I change the provider and mygallery not working in cutenews admin... any idea?


in the web page, the lightbox doesn't work too... http://www.fenajud.org.br/fotos.php


thank you./..
Is the new provider Apache or Windows based?

Thu May 29, 2008 1:10 pm View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 67

Post Approve before display Reply with quote
When we create a new gallery, it is displayed right away, while there should be a mechanism to put it on display when everything is done.

This is a major problem with this plug-in, because working on a new album will take a bit time but the visitors still can view the under ‘construction’ gallery. For a busy and official web site this is a real problem.

Can you think of any change in the script to add this functionality to it?
Thu May 29, 2008 1:16 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11  Next
Page 8 of 11

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.