 |
 |
 |
 |
 |
| Author |
Message |
sidtheduck

Joined: 28 Mar 2008 Posts: 67
|
|
|
|
 |  | 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!
Remember, if everything is a feature, nothing is a feature. 
|
|
| Fri Apr 25, 2008 10:25 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
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
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
last update: 07-22-08: 8:30 pm |
|
| Tue Apr 29, 2008 12:41 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 67
|
|
|
|
 |  | 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. 
|
|
| Tue Apr 29, 2008 1:04 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
Ooh! Fancy, I like. Thanks for tips 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Apr 30, 2008 2:10 am |
|
 |
eberswine

Joined: 26 Apr 2007 Posts: 123
|
|
|
|
Ok, I finally got around to installing this.
Getting an error in my manager
 |  | >> 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 |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 67
|
|
|
|
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 |
|
 |
eberswine

Joined: 26 Apr 2007 Posts: 123
|
|
|
|
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 |
|
 |
Goberg
Joined: 18 Jan 2007 Posts: 37
|
|
|
|
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 |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 67
|
|
|
|
 |  | 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):  |  | 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:  |  | 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}:  |  | <? (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 |
|
 |
Goberg
Joined: 18 Jan 2007 Posts: 37
|
|
|
| Wed May 14, 2008 6:37 am |
|
 |
nam

Joined: 23 Dec 2006 Posts: 67
|
|
|
|
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
 |  | 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 |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 70
|
|
my gallery not working in the admin cutenews area... |
|
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 |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 67
|
|
|
|
 |  | 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
 |  | 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.
 |  | 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 |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 70
|
|
|
|
APACHE!
 |  |  |  | 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
 |  | 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.
 |  | 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 |
|
 |
nam

Joined: 23 Dec 2006 Posts: 67
|
|
Approve before display |
|
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 |
|
 |
|
|
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
|
|
 |
 |
 |
|