YaBB SE Community

Development => Completed mods => Topic started by: Spaceman-Spiff on November 08, 2002, 04:53:10 AM

Title: [Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on November 08, 2002, 04:53:10 AM
Coppermine Photo Gallery Mod
Version: 0.97 (beta)
Original script: Coppermine Gallery RC 3 (http://www.chezgreg.net/coppermine/) by Grégory DEMAR

This mod developments have been discontinued. Try this mod (http://www.yabbse.org/community/index.php?thread=24525) instead.

Mod Download:
• Download .mod file for YSE 1.5.2-1.5.5 (http://www.spiff.xtram.com/ysemods/gallery/GalleryMod_ModFile_v0.97_yse1.5.2.zip)
• Download Gallery Mod 0.95 for YSE 1.5.1 (fresh install) (http://www.spiff.xtram.com/ysemods/gallery/Gallery0.95_YSE1.5.1.zip)
• Download Gallery Mod 0.95 for YSE 1.5.1 (upgrade) (http://www.spiff.xtram.com/ysemods/gallery/Gallery0.95_YSE1.5.1_upgrade.zip)
• Download Gallery Mod 0.94 for YSE 1.4.1 (http://www.spiff.xtram.com/ysemods/gallery/Gallery0.94_YSE1.4.1.zip)
• other files: www.spiff.xtram.com/ysemods/gallery

Other Stuff Download:
SECURITY FIX use this fixed db_input.php (http://www.spiff.xtram.com/ysemods/gallery/db_input_fixed.zip) and overwrite the old one
• Gallery buttons available for these button packs: Download XP Set (http://www.spiff.xtram.com/ysemods/gallery/GalleryImages_XP.zip) :: Download metblue Set (http://www.spiff.xtram.com/ysemods/gallery/GalleryImages_metblue.zip) -- (both are originally made by Arab_ME)
• If you're having problems with the installer (install.php), try to this manual install (http://www.spiff.xtram.com/ysemods/gallery/manual_install.zip)
• A fix for the copyright tag bug. This .mod file version "should" fix the copyright bug in the previous version. If you have the older version (installer 0.9.mod), uninstall it first, then apply this mod in BoardMod and upload Subs.php, overwriting the older one..mod file (http://www.spiff.xtram.com/ysemods/gallery/GalleryMod_ModFile_v0.97_yse1.5.1.zip)

Pfabb version is available at its site.

:: demo site (http://www.monkey-pirate.com/php/ysegallery) ::

Instructions:
read readme.txt inside the zip

Note: I havent made the converter script, so this works only for clean install, for those who're running coppermine script already, i'll make a converter soon :)
Mod hasnt been tested intensively, use at your own risk. And pls send feedbacks and comments.

Changes in 0.95:
- fixed ecard showig <
- made album sort to based on creation date, descending
- fixed some bugs
- session error shouldnt show again (i hope), tho the gallery hasn't supported sessions from yse 100%
- added images, yse-style buttons

Changes from the original script:
- integrated gallery with YSE member system
- changed date function into using YSE timeformat()
- made more permission settings
- joined template with YSE, using yyFunction in Subs.php
- added option to edit CSS thru Gallery Settings page, ala YSE Edit Template
- changed tables to {$db_prefix}tableName and removed db settings in config.inc.php
- added edit gallery config.inc.php thru Gallery Settings page
- edited install.php to apply changes in mod

F.A.Q.
Why is my gallery aligned in left, unlike other YSE pages?
In your template file, change your <td> into <td align="center"> before <yabb main>

Current buglist: click here (http://www.monkey-pirate.com/~ysegallery/index.php?board=1;action=display;threadid=6&start=0#msg15)

DO NOT send me IMs for support questions, unless if I allow you to do so. Some poeple just never read >:(
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 08, 2002, 05:31:09 AM
looks like there's a cookie problem
a user gets logout when entering the gallery
i dont know yet what the problem is...

i noticed, in a website, when a user is on a page thats using SSI.php, he wont be shown in the online list (i've tested it using 2 browsers)
although SSI.php calls LoadCookie() function, it seems that the user still isnt recognized/logged in when opening a page that contains/includes SSI.php

this might be the same problem...
Title: Re:[Beta] Gallery Mod
Post by: Omar Bazavilvazo on November 08, 2002, 11:23:18 AM
do u have the cookie fix installed? (i dont think is the case, but well)

so. no insructions for someone that already has some mods installed? *sigh*

ja ne!

Btw. seems the slideshow is not working in your mod, but it does on the gallery's demo of the author.

great job!
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 08, 2002, 05:20:40 PM
the cookie thing seems to be only my problem
my IE wasnt functioning well last night :(

anyway, ver 0.92 is out, still beta, it fixes the upload image query
u only need to overwrite the sources (php) files inside CoppermineYSE-RC3.zip into your site
no need to run installation again

about the slideshow, i forgot to include the JS inside <body> tag to load slideshow, i'll see if i can move it into header without causing any problem...
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 08, 2002, 07:25:52 PM
fixed slideshow
changed ecard settings
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 08, 2002, 09:00:29 PM
Cool.  I was noticing some errors on mine when trying to add a comment.  IE kept giving me a error on page message, but it seems to work okay in Netscape.  Weird.

This is a great mod!  

One thing I noticed though is that any user can post in any gallery.  Is there a way to make it so that a user can only post in the albums they create?  Or would there be a way to limit the amount of albums a person could create?  I'm going to try the updated one now.
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 08, 2002, 09:19:49 PM
I was able to see the ecard change, but I cannot get the slideshow to work still.   Can you explain how to apply the updates?  I already have  an album in the works and don't want to mess it up.  Do we just upload all the new php files or is there something else we have to do?  
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 08, 2002, 10:03:45 PM
what error msg are u getting in IE?
i havent made a converter, so u can only do clean install atm
to get slideshow working, u'll need to add <yabb galleryBodyTag> inside <body> tag
see readme.txt for an example

Quote
One thing I noticed though is that any user can post in any gallery.  Is there a way to make it so that a user can only post in the albums they create?  Or would there be a way to limit the amount of albums a person could create?  I'm going to try the updated one now.


that would require a some more code editing
currently u can create an album and allow user to upload or only allow admin/gmod to upload
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 08, 2002, 10:35:46 PM
It's working now.  Thank you sir!  Excellent mod!
Title: Re:[Beta] Gallery Mod
Post by: Eloya on November 09, 2002, 07:14:42 AM
Hmmm.... I installed it and when I run the install.php script I get this error:

Code: [Select]
CHMOD 777 these directories:
- gallery root directory (where this installer file is located)
- userpics directory (inside 'albums' directory)
- include directory

But I set these rights absolut correct!
Anyone a idea?

Nico
Quote
Title: Re:[Beta] Gallery Mod
Post by: fnord on November 09, 2002, 11:29:08 AM
i have the same problem, but the permissions are set correct...

 fnord
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 09, 2002, 12:12:45 PM
Quote
One thing I noticed though is that any user can post in any gallery.  Is there a way to make it so that a user can only post in the albums they create?  Or would there be a way to limit the amount of albums a person could create?  I'm going to try the updated one now.


Quote
that would require a some more code editing
currently u can create an album and allow user to upload or only allow admin/gmod to upload


Believe me, I love the mod and so do my users.  I have received questions on that already though.  I guess they don't like people having the ability to upload stuff into their galleries.  I think in the future it would be a great add-on for the mod.  Like I said, I really appreciate it.  It's much much better than the crappy photo gallery I had before it.
Title: Re:[Beta] Gallery Mod
Post by: anykey on November 09, 2002, 12:52:39 PM
I get this error:
Code: [Select]

Could not create a mySQL connection, please check the SQL values entered


I did not  entered any...  ??? where van I enter the SQL values?
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 12:56:00 PM
I get the same thing  ???


Hmmm.... I installed it and when I run the install.php script I get this error:

Code: [Select]
CHMOD 777 these directories:
- gallery root directory (where this installer file is located)
- userpics directory (inside 'albums' directory)
- include directory


But I set these rights absolut correct!
Anyone a idea?

Nico
Quote

Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 01:28:17 PM
If i install the gallery from the coppermine homepage.. it installs fine.  ???
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 09, 2002, 01:44:20 PM
I had no problems installing this one. I just tested it on another server.  No issues there either.  
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 02:30:42 PM
Still wont get past that file permissions for me.

If i replace the install.php with that from the coppermine site.. then it continues to the mysql bit.

???
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 03:10:20 PM
Still cant get this mod to work. It keeps complaining about dir/file permissions. I have double checked these and they are correct.

When I download the gallery from the coppermine site, it installs fine.

What changes have there been made to the Install.php?
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 04:36:36 PM
Quote
Things to do
CHMOD 777 these directories:
- gallery root directory (where this installer file is located)
- userpics directory (inside 'albums' directory)
- include directory


this part is only a reminder, if u have done it, u can ignore it and press the Lets go button
i should've reworded it better, sorry :P
DO NOT use the installer from original Coppermine script
because u'll find lots of different things

Quote

I get this error:
Code: [Select]
Could not create a mySQL connection, please check the SQL values entered
I did not  entered any...   where van I enter the SQL values?


u should install this mod in a subdirectory of YSE
because it will search for YSE Settings.php in the parent directory
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 04:41:34 PM
when i pressed "lets go".. it just keeps coming back to the same page "change permissions... press lets go"

I only tried the coppermine installer to see if i was going mad or not  ;D
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 05:53:49 PM
no other error message but that same page keep on showing over and over again?
Title: Re:[Beta] Gallery Mod
Post by: Eloya on November 09, 2002, 06:35:06 PM
I installed it manually, works fine. This reminder message will not go away because you defined the action for the 'Let's gi' button incorrectly. ;)

Nico
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 06:40:46 PM
really? which part of it is incorrect?
i tried installing it in a forum, and it works okay without any problems... :(
Title: Re:[Beta] Gallery Mod
Post by: Eloya on November 09, 2002, 06:53:04 PM
The part in which the script says you must check the permissions of gallery root etc. I set the permissions definitely correct but the installer script hangs there. After that, I copied the SQL Structure, inserted it manually and made my own config.inc.php - with this it's all fine. Maybe the script has some problems with different envoirements...

Greetings,

Nico
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 07:00:25 PM
thats weird...
maybe one of the image function detection script doesnt work well...

if u wanna check the configs go to the admin section
check everything, and click Save
and the config.inc.php will be saved properly :)
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 09:59:00 PM
Still hangs for me.. But if i use the original install.php it completes fine (image detection etc)

could someone give me an idea of what the config.inc should look like?

Will try to install by hand.

Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 11:18:05 PM
Have installed by hand now.

Seems to work. No errors anyways  ;D

I can create new album.. but i cant see anywhere to add photos to it? (I am admin btw)

Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 11:20:07 PM
i dont understand whats wrong in the installer
seems to be fine for some ppl, and not for others

to do manual installation, execute the 3 queries for creating table:
Code: [Select]

CREATE TABLE `{$db_prefix}gallery_albums` (
 aid mediumint(10) NOT NULL auto_increment,
 title varchar(60) NOT NULL default '',
 description text NOT NULL,
 uploads enum('YES','NO') NOT NULL default 'YES',
 date bigint(20) NOT NULL default '0',
 PRIMARY KEY  (aid)
) TYPE=MyISAM;

CREATE TABLE `{$db_prefix}gallery_comments` (
 pid mediumint(10) NOT NULL default '0',
 msg_id mediumint(10) NOT NULL auto_increment,
 msg_author varchar(25) NOT NULL default '',
 msg_body text NOT NULL,
 msg_date bigint(20) default NULL,
 PRIMARY KEY  (msg_id),
 KEY pid (pid)
) TYPE=MyISAM;

CREATE TABLE `{$db_prefix}gallery_pictures` (
 pid mediumint(10) NOT NULL auto_increment,
 aid mediumint(10) NOT NULL default '0',
 caption mediumint(10) NOT NULL default '0',
 filepath varchar(200) NOT NULL default '',
 filename varchar(200) NOT NULL default '',
 filesize int(25) NOT NULL default '0',
 title tinytext NOT NULL,
 pwidth smallint(6) NOT NULL default '0',
 pheight smallint(6) NOT NULL default '0',
 hits mediumint(10) NOT NULL default '0',
 mtime bigint(20) NOT NULL default '0',
 ctime bigint(20) NOT NULL default '0',
 owner_id varchar(40) NOT NULL default '',
 PRIMARY KEY  (pid),
 KEY aid (aid)
) TYPE=MyISAM;


and here's the config.inc.php file:
Code: [Select]

<?php<br>// ------------------------------------------------------------------------- //<br>//  Coppermine Photo Gallery v1.0 Release Candidate 2                        //<br>//  Moduled for YaBB SE by Spaceman-Spiff                            //<br>// ------------------------------------------------------------------------- //<br>//  Copyright (C) 2002  Grégory DEMAR <gdemar@wanadoo.fr>                    //<br>//  http://chezgreg.net/coppermine/                                          //<br>// ------------------------------------------------------------------------- //<br>//  Based on PHPhotoalbum by Henning Støverud <henning@stoverud.com>         //<br>//  http://www.stoverud.com/PHPhotoalbum/                                    //<br>// ------------------------------------------------------------------------- //<br>//  This program is free software; you can redistribute it and/or modify     //<br>//  it under the terms of the GNU General Public License as published by     //<br>//  the Free Software Foundation; either version 2 of the License, or        //<br>//  (at your option) any later version.                                      //<br>// ------------------------------------------------------------------------- //<br><br><br>// ImageMagick configuration<br>$CONFIG['impath'] =          "";   // The full path to the ImageMagick convert program if you want to use ImageMagick for thumbnails<br><br>// PICTURE AND THUMBNAIL SETTINGS<br>$CONFIG['fullpath'] = "albums/";   // Path to album directory RELATIVE to Coppermine directory<br>$CONFIG['userpics'] = "userpics/";   // The directory where user uploaded pictures are stored (RELATIVE to $CONFIG['fullpath'])<br>$CONFIG['install_lock'] = "install.lock";   // The lock file used by the installer<br><br>$CONFIG['thumb_pfx'] = "thumb_";   // Prefix used for thumbnail<br>$CONFIG['normal_pfx'] = "normal_";   // Prefix used for normal size image (reduced size)<br><br>$CONFIG['max_upl_size'] = "500";   // Maximum allowed size for uploaded pictures<br><br>$CONFIG['thumb_method'] = "gd1";   // Method for creating thumbnail and resized images:<br>                            // "im" : use ImageMagick<br>                            // "gd1": use GD 1.x image imagecopyresized function<br>                            // "gd2": use GD 2.x image imagecopyresampled function<br><br>$CONFIG['nopic_image'] = 'nopic.gif';   // Image showed when there is no pictures uploaded in an album. Put the image inside 'images' folder.<br>$CONFIG['albums_per_page']= 6;      // Number of albums per page in the album view<br>$CONFIG['thumbrows'] = 4;         // Number of rows on thumbnail page<br>$CONFIG['thumbcols'] = 3;         // Number of cols on thumbnail page<br>$CONFIG['max_tabs']= 10;         // Max number of tabs to display in thumbnail or album view<br>$CONFIG['caption_in_thumbview']= true;   // Set this to false if you don't want the image caption to appear in the thumbnail view<br>$CONFIG['default_sort_order']='na';   // Default sort order for albums<br>                              // na : name ascending<br>                              // nd : name descending<br>                              // da : date ascending<br>                              // dd : date descending<br>$CONFIG['thumb_width'] = 100;      // Maximum width or height of a thumbnail<br>$CONFIG['picture_width'] = 400;      // Maximum width or height of a picture<br>$CONFIG['make_intermediate'] = true;// Wether to create intermediate size images<br>$CONFIG['jpeg_qual'] = 85;         // Quality for jpeg compression. Default 85, if you use ImageMagick you can set this to 80<br>$CONFIG['read_exif_data'] = true;   // Wether to read EXIF data or not (require PHP compiled with --enable-exif)<br><br>$CONFIG['number_in_toplist'] = "50";// Number of entries to show on the statistics page<br><br>$CONFIG['charset'] = 'iso-8859-1';   // Default charset to use. Change this to what is suitable for your country. <br>                           // Most  western people will use ISO-8859-1<br>// PERMISSION SETTINGS<br>$CONFIG['gmod_power'] = true;      // Allow global mods to have admin powers in gallery (except to go to gallery settings page).<br>$CONFIG['user_create_album'] = true;// Allow users to create albums in the gallery<br>$CONFIG['user_upload'] = true;      // Allow users to upload pictures<br>$CONFIG['user_comments']= true;      // Allow users to post comments<br>$CONFIG['guest_upload'] = false;   // Allow guests to upload pictures<br>$CONFIG['guest_comments'] = false;   // Allow guests to post comments<br><br>// ECARDS SETTINGS<br>$CONFIG['enable_ecards']= true;      // Set this to false to disable ecards<br><br>// COMMENT SETTINGS<br>$CONFIG['max_com_wlength']= 38;      // Maximum length of a word (vandal protection)<br>$CONFIG['max_com_lines']= 10;      // Maximum number of lines in a comment<br>$CONFIG['max_com_size']= 512;      // Maximum characters in a comment<br><br>// using $db_prefix from YSE<br>$CONFIG['TABLE_PICTURES'] = $db_prefix."gallery_pictures";   // MySQL table for pictures<br>$CONFIG['TABLE_ALBUMS'] = $db_prefix."gallery_albums";      // MySQL table for albums<br>$CONFIG['TABLE_COMMENTS'] = $db_prefix."gallery_comments";   // MySQL table for comments<br><br>// What HTML tags to keep in posts<br>$CONFIG['keep_tags'] = array(<br>   'description' => '<b><i><a>',      // Album description<br>   'message'     => '<b><i><a>'      // e-Cards messages<br>);<br><br>$CONFIG['cookie_name'] = "CPGCookie";<br>?>
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 11:32:40 PM
I have done the above.

I can create albums ok. But dont seem to have an option of uploading pictures (unless i have gone blind.. mad or both  ;D )
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 09, 2002, 11:39:51 PM
its inside Gallery Settings
u'll only see that if u're logged in as an admin in YSE
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 11:43:42 PM
gallery settings? where abouts is this option? if i go to galler/admin.php  i can see gallery settings etc.. but cant see a link to it on the gallery.

When i log on as myself (admin).. i can see option modify/delete by the Album i have just created.

When i click on the empty icon (no image upload). I just get "No image to display in this album"


Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 11:54:09 PM
... also if i manually enter gallery/upload.php i can upload fine.

Problem i have is there doesnt seem to be any links in the gallery!  ???
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 09, 2002, 11:59:57 PM
Silly me..

I have no comment to make of the boo boo...  ;D
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 12:04:02 AM
Thanks spaceman for all your help  ;D

I forgot to add <yabb galleryMenu>  (which was kindly pointed out by mr spaceman  :) )

Can go to bed now!!
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 12:07:31 AM
i can nearly go to bed that is...

the ecard function fails on

Call to undefined function: gzcompress() in /home/hangout/public_html/yabbse/gallery/ecard.php on line 56

I assume i can disable compression to get around this?

Also.. because I already have javascript in my template.. it seems to stop view full sized working.

Think i will have a sleep 1st  ;D
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 10, 2002, 12:17:19 AM
if u havent put <yabb galleryHeader> inside <head>, the JS functions wont work

for ecard...
about gzcompress()... i'll edit the code for the next version so it wont use it, cuz its already used in Subs.php
if u wanna edit it, i guess its safe to change:
$encoded_data = urlencode(base64_encode(gzcompress(serialize($data),9)));
into
$encoded_data = urlencode(base64_encode(serialize($data)));
inside ecard.php

i'll have to ask Greg from coppermine for the details on this...
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 12:25:48 AM
ecard works fine now with that change  ;D
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 12:43:30 AM
When in gallery settings and searching for New Pictures, when i click i get this error

Fatal error: Call to undefined function: db_connect() in /home/hangout/public_html/yabbse/gallery/searchnew.php on line 42

sounds painful  ???
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 10, 2002, 12:50:31 AM
come to think of it, i never use the search new function :P
i'll put that in my todo list
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 10, 2002, 12:55:22 AM
fix: remove this line:
$connection = db_connect();
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 01:08:10 AM
that did the trick. Thanks.

;D

can sleep now  ;D

Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 05:05:32 AM
The only thing (well two!) on my gallery wish list now are...

The title of the page would be the name of the album and not "Album 10"

and

The gallery i used to use ( http://gallery.menalto.com/ ) although not at all intergrated into Yabb, would like to see coppermine give more permission based functions that admin can dish out to users .. but thats not really a mod  ;D

oh morning all  :)
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 05:50:23 AM
would be nice to be able to be able to show the gallery stats (maybe just last comments/photo added) on the boardindex?

i know picstat.php does the stats... how would i use it  elsewhere  ???
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 10, 2002, 10:05:46 AM
Had to make a similar change to displayecard  ;D


if u havent put <yabb galleryHeader> inside <head>, the JS functions wont work

for ecard...
about gzcompress()... i'll edit the code for the next version so it wont use it, cuz its already used in Subs.php
if u wanna edit it, i guess its safe to change:
$encoded_data = urlencode(base64_encode(gzcompress(serialize($data),9)));
into
$encoded_data = urlencode(base64_encode(serialize($data)));
inside ecard.php

i'll have to ask Greg from coppermine for the details on this...
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 10, 2002, 01:08:48 PM

would be nice to be able to be able to show the gallery stats (maybe just last comments/photo added) on the boardindex?

i know picstat.php does the stats... how would i use it  elsewhere  ???


i was/am thinking of making the SSI version of coppermine ;)
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 10, 2002, 04:29:45 PM
This is a great mod, but I'm going to have to use photopost or something just because of the security issue.  That is people being able to post pictures in other albums.  The other thing is people can't delete their own pictures.  I'm going to hack this thing tonight to see if I can come up with something, but I'm an amateur at this so we'll see. hehe

PS - Thanks for the mod.  I love it.

Jack
Title: Re:[Beta] Gallery Mod
Post by: Spaceman-Spiff on November 11, 2002, 01:01:44 AM

This is a great mod, but I'm going to have to use photopost or something just because of the security issue.  That is people being able to post pictures in other albums.  The other thing is people can't delete their own pictures.  


those are not security issues, the script just wasn't designed to let ppl restrict albums based on the creator/membergroups
the script is pretty safe, it handles and cleans post and get data even better than YSE imo
i might add features like those in the future
Title: Re:[Beta] Gallery Mod
Post by: jthorpe on November 11, 2002, 12:44:31 PM
For me, those are security issues as I've had 4 or 5 people already posting in the wrong albums.  Like I said, I think you've done a great job with this and I appreciate it very much but I'm going to have to keep looking.
Title: Re:[Beta] Gallery Mod
Post by: Omar Bazavilvazo on November 11, 2002, 12:48:47 PM

For me, those are security issues as I've had 4 or 5 people already posting in the wrong albums.  Like I said, I think you've done a great job with this and I appreciate it very much but I'm going to have to keep looking.


That behavior is not the mod, is the gallery itself

ja ne!
Title: Re:[Beta] Gallery Mod
Post by: PioneeR on November 11, 2002, 12:53:27 PM
http://gallery.menalto.com/

this allows users to be defined with permissions etc. Just not Yabb friendly yet  ;D


For me, those are security issues as I've had 4 or 5 people already posting in the wrong albums.  Like I said, I think you've done a great job with this and I appreciate it very much but I'm going to have to keep looking.


Title: Re:[Beta] Photo Gallery Mod
Post by: Aquilo on November 14, 2002, 04:08:54 AM
this is a nice mod!

I noticed a "typo" or something not in the coppermine demos is where you have the date it was uploaded
"Picture uploaded by onsforum on Today at 01:43:07am"

there should be an "if($STATEMENT) else" for that "on today" part telling it not to print "on" if the value is today for the date.

other then that kool :)
Title: Re:[Beta] Photo Gallery Mod
Post by: BiErLeEuW on November 14, 2002, 04:27:47 AM
Questions for the mod:[/u]

1. Is it possible to select groups of your members who get access of posting pictures?

2. Give members a limit to upload?

3. Make the gallery online readable for members only?


hehe but the script looks fine! Only plz need to know this
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 14, 2002, 03:54:10 PM
Aquilo, thx, I'll edit that in the next version


Quote
1. Is it possible to select groups of your members who get access of posting pictures?

not yet, i'm gonna try to add this feature in the next release due to the popular demand

Quote
2. Give members a limit to upload?

There's a size limit for each image, but not number of images limit

Quote
3. Make the gallery online readable for members only?

if u block guest access (disalow guest to do anything) in the forum, it will affect the gallery, but there's no option yet if the gallery is restricted to register users only
i might add this in the next version

btw, i wont start doing the next version before nov 22nd
Title: Re:[Beta] Photo Gallery Mod
Post by: John R on November 14, 2002, 09:42:58 PM
* Hint * - If you want to restrict your gallery to registered members only then set your menu so only registered members can see the link to the gallery.

cheers.........
Title: Re:[Beta] Photo Gallery Mod
Post by: Omar Bazavilvazo on November 15, 2002, 11:23:13 AM

* Hint * - If you want to restrict your gallery to registered members only then set your menu so only registered members can see the link to the gallery.

cheers.........


Yep, but also needs a validation in code, so even if someone types the url, it checks if is a member, and denies if not.
Title: Re:[Beta] Photo Gallery Mod
Post by: pege on November 15, 2002, 01:58:24 PM
Finally, a gallery!

I'm having a problem.  It's showing it can't access all the Source files like subs.php, errors.php, etc.  

I'm not sure I added the correct location on that string that says "change /gallery" to the location of your script.  What is an example of what that should look like, or tell me what else might be causing this?

Thanks!
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 15, 2002, 05:42:47 PM
u need to install the gallery in a subdirectory of your forum
u dont need to change the other directory settings if u dont move the directories around inside the gallery directory
for albums, just keep it as 'albums/'
and userpics: 'userpics/'
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 17, 2002, 07:43:57 AM
Can't get it to work at all

Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../
Code: [Select]
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";


Won't load template.html
Code: [Select]
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208

The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)
Title: Re:[Beta] Photo Gallery Mod
Post by: pege on November 17, 2002, 09:14:27 AM

...
Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../...

...Won't load template.html
Code: [Select]
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208

The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)



I have the same deal, except I had to include the full path to get it to work.  Also, it shows the copyright warning, and the page is unformatted....still working...
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 17, 2002, 08:32:28 PM
are u sure that u installed it in a subdirectory of your forum?
meaning, if your forum is at: www.yourserver.com/forum
then install the gallery at: www.yourserver.com/forum/gallery/

if u did that, and still having problems, pls leave the url to your gallery here, or IM it to me

i checked Thunderace's forum, and it seems that he's using YSE 1.3.0
im not sure yet if that could be the problem...
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 18, 2002, 02:41:57 AM
I am using 1.3.1 and gallery is working fine now
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 18, 2002, 03:05:46 AM
Would it be possible to add some gallery stats on boardindex? Would be good if Last Photo added etc could be there? Might entice members to have a look more often ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 18, 2002, 11:31:55 AM
i tried installing in a fresh 1.3.0 yesterday, and it wont work
for now it's 1.31-1.41 compliant...
i'll look more into it when i have some time...
Title: Re:[Beta] Photo Gallery Mod
Post by: Pinoywebhost on November 20, 2002, 11:33:21 AM

Can't get it to work at all

Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../
Code: [Select]
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";


Won't load template.html
Code: [Select]
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208

The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)



Nice mod!

Both of these also happened to me.. I just manually edited the path and uploaded another template.html to the gallery folder and now it is working....

I have just few questions, Is there a way for the users to edit the descriptions of their album? How about limit the creation of the album to the admin?

Thanks
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 20, 2002, 11:40:58 AM
can u tell me which path did u edit?
i dont understand yet why it searches for template.html file

also it's currently not working in YaPP
im pretty busy lately, havent gotten the chance to review the codes :(
Title: Re:[Beta] Photo Gallery Mod
Post by: John R on November 20, 2002, 09:41:15 PM

also it's currently not working in YaPP
im pretty busy lately, havent gotten the chance to review the codes :(


Ah, maybe it isn't working on your version of YaPP but it is working on mine.  Mind you, we did make a few changes.  The .css file is now part of the style text in the template.php so that each skin displays the gallery with the same colors as the template.  Undone as yet but upcoming is to move the menu from the menubar to the top of the main table where it is more noticable.

It's really a great mod and deserves credit.  For you YaPP users, just remember that where the .mod file says to edit index.php for the link to the gallery admin, you also need to edit asubs and place the link there changing 'action' to 'op'

Keep up the great work spiff...........

cheers........
Title: Re:[Beta] Photo Gallery Mod
Post by: pege on November 21, 2002, 01:03:47 AM
...It's really a great mod and deserves credit.  For you YaPP users, just remember that where the .mod file says to edit index.php for the link to the gallery admin, you also need to edit asubs and place the link there changing 'action' to 'op'

Ah...i'll have to try that on my Yapp...i did finally hack the SOB into submission, though.  it is a kewl addition.  i like how the slide show fades in and out, and the e-cards.  it's clean and simple too.  Now, if only the pictures would morph into the next slide, instead of disolve....hahahaha!

Thanks!
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 21, 2002, 03:20:54 PM
Can't get it to work at all

Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../
Code: [Select]
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

Won't load template.html
Code: [Select]
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208
The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)


Nice mod!

Both of these also happened to me.. I just manually edited the path and uploaded another template.html to the gallery folder and now it is working....

I have just few questions, Is there a way for the users to edit the descriptions of their album? How about limit the creation of the album to the admin?

Thanks


Thanks m8, simply loading the template.html into the gallery folder solved 1/2 the battle.

The remaining part is that I'm in as admin but there is no admin area (settings)
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 21, 2002, 04:27:01 PM
anyone who knows what they are doing know how to add "last photo added" and maybe a few other gallery stats to boardindex??
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 21, 2002, 04:56:41 PM
Errr ta

Still doesn't tell me why there's no admin area
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 21, 2002, 05:03:40 PM

Errr ta

Still doesn't tell me why there's no admin area


You have done the following?

3. edit your forum template and add these tags:
   - <yabb galleryMenu> Recommended place: right after <yabb menu>
   - <yabb galleryHeader> Place: somewhere inside <head>
   - <yabb galleryBodyTag> inside <body> tag, example: <BODY text=#000000 link=#0033ff bgColor=#f5f5f5<yabb gallerybodytag>>
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 21, 2002, 05:39:20 PM

anyone who knows what they are doing know how to add "last photo added" and maybe a few other gallery stats to boardindex??


will try to add that to the next version ;)
and some more permissions/membergroup settings
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 21, 2002, 05:56:37 PM


Errr ta

Still doesn't tell me why there's no admin area


You have done the following?

3. edit your forum template and add these tags:
   - <yabb galleryMenu> Recommended place: right after <yabb menu>
   - <yabb galleryHeader> Place: somewhere inside <head>
   - <yabb galleryBodyTag> inside <body> tag, example: <BODY text=#000000 link=#0033ff bgColor=#f5f5f5<yabb gallerybodytag>>


Yup all in and correct
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 21, 2002, 06:02:32 PM
try going to admin.php in gallery url
example: www.yoursite.com/yabbse/gallery/admin.php
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 21, 2002, 07:39:44 PM
Yep that get's me the admin screen
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 21, 2002, 08:32:03 PM
the gallery menu should be like this:
:: Album List :: Latest Uploads :: Upload Picture :: Gallery Settings ::
and your gallery isnt showing that
so, u must've forgotten to put <yabb galleryMenu>
Title: Re:[Beta] Photo Gallery Mod
Post by: Bell1x1 on November 21, 2002, 10:44:55 PM
Installed the mod with little difficulty. Had to manually insert the tables in the db, rename the tables to correct name and upload the conf.inc.php. Everything else was a breeze from there.

Only thing is when I send an e-card, it always says unknownsender. All the info (username and email address) are fine in the card itself, but the From: part is the UnknownSender.

There a fix for this?
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 22, 2002, 03:18:18 AM
To get ecard to work for me (well format the From address properly).. I changed the following in ecard.php

Have a look for $headers =. whatever.. and change to

$headers .= "From: \"$data[sn]\"<$data[se]>;\n";

Will be two..

Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 22, 2002, 03:27:03 AM
hmm... is that for windows or linux/unix one?

Bell1x1, could u try to send me an ecard -> spiff@monkey-pirate.com
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on November 22, 2002, 03:31:11 AM
Am running on Linux.. but changed them both anyways  ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 22, 2002, 12:54:29 PM

the gallery menu should be like this:
:: Album List :: Latest Uploads :: Upload Picture :: Gallery Settings ::
and your gallery isnt showing that
so, u must've forgotten to put <yabb galleryMenu>



This is an exerpt from template:

Code: [Select]
       <TR vAlign=center align=middle bgColor=#b7bbda>
         <TD bgColor=#afc6db class=titlebg><FONT size=1><yabb menu><yabb galleryMenu></FONT></TD>
        </TR>


So still don't understand m8
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 22, 2002, 12:58:36 PM
I had to install this manually, is there a mistake i could have made there?
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 23, 2002, 03:14:04 AM
Ok got this to work by uploading a standard template into gallery, it obviously doesn't like the skins mod.

Remaining problem: -

Now when I upload a basic jpeg it says "The file you have uploaded is not a valid image!"
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 23, 2002, 04:58:40 AM
i saw in your site that u've managed to upload an image...
how was that one uploaded?
i tried to upload too, and it wont work somehow...
does your site support GD? (it should be showing in your phpinfo

btw, to fix your template
make a copy of tempate.php and name it as template.html and use that one, not the default YSE template, so u'll have the same colors with the rest of your forum
and u might want to add <td align="center"> before <yabb main>, so the table will always be centered
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 23, 2002, 05:11:29 AM
Uploaded image via FTP and searched then added to album

Template copying won't work as I'm using Skins mod
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 23, 2002, 05:24:46 AM
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enable
Title: Re:[Beta] Photo Gallery Mod
Post by: Bell1x1 on November 23, 2002, 01:44:08 PM
I used the code posted by Pioneer and now all e-cards are from the default emial address of the server.

Is there a way to set it up so that the email is from the person that actually sent the e-card?


Regards


Bell
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 23, 2002, 05:16:34 PM
i got the ecard
so the mistake is here ->  The.Admin.&lt@ yahoo.com  ?
the &lt part...
i'll fix it in the next version
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 24, 2002, 11:41:21 AM
I've solved my problem and got the Gallery running, thanks to Spaceman-Spiff for a great mod.

If you do get the same problems as me try the db_input file here (http://www.sportsbike.cc/db_input.txt)
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 24, 2002, 04:52:52 PM
hmm... which part did u change there?
i guess i should run it thru a diff program..
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on November 24, 2002, 08:53:44 PM
Hey Spiff...
I was wondering if you could help me since noone will answer my question at Coppermine. It's funny when people think your question is stupid because this question has been asked several times...so they decide not to answer it.
Well...I'm trying to use the gallery minus the mod within my site. (I think I will use the mod for just my guest to upload pics in the board.) But this gallery is for me only. Anyway. I'm just trying to embed the gallery into my page and I don't understand their directions. I even tried to point out to them that I am a designer not a programmer.
::)
But I'm not a plum idiot!!! The directions they gave to embed the gallery isn't working for me or maybe I just don't understand the directions. I figured you had a tight understanding how this gallery works and would be a better help. You don't have to post here to answer my question. And maybe I'll just delete this once you have answered me. Just email me:
diva_uno@yahoo.com
Thanx
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 24, 2002, 09:06:35 PM
Quote
I was wondering if you could help me since noone will answer my question at Coppermine. It's funny when people think your question is stupid because this question has been asked several times...so they decide not to answer it.


i saw your post in coppermine forum
its only a day old
the only person answering questions is greg, who is a nice person btw
and he isnt around everyday, so u'll just need to be patient  and wait for an answer

i have no idea about embedding since i havent tried it
u might want to read these topics if u havent:
- http://www.chezgreg.net/cpgboard/viewtopic.php?t=49
- http://www.chezgreg.net/cpgboard/viewtopic.php?t=114


Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on November 28, 2002, 01:34:06 PM
Spiffer

Thought you'd like to know my members love your mod, it's fast, has good features. Top job m8 thanks.
Title: Re:[Beta] Photo Gallery Mod
Post by: BiErLeEuW on November 29, 2002, 03:01:34 PM
i'm installing now your Mod but is  ImageMagick a need?
WTF the program is 20 MB (got a webspace of 25 MB)
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 30, 2002, 02:58:45 AM
thx, Thunderace

onsforum, imagemagick is optional, its for better jpeg quality (also in GD 2.x) and gif support
Title: Re:[Beta] Photo Gallery Mod
Post by: David on November 30, 2002, 04:13:50 AM
Will this work with YaPP?
Title: Re:[Beta] Photo Gallery Mod
Post by: BiErLeEuW on November 30, 2002, 05:14:17 AM

thx, Thunderace

onsforum, imagemagick is optional, its for better jpeg quality (also in GD 2.x) and gif support


Is there no a smaller packet of ImageMagick like 10 MB or something like that
Title: A lot of errors after the install procedure
Post by: -Tom- on November 30, 2002, 06:12:07 AM
When I installed the Photo Gallery it gave me an error at the end, when I was trying to open the index.php.

I got this errors:
Code: [Select]

Parse error: parse error, unexpected '.' in /home3/cldforum/public_html/cgi-bin/yabbse/gallery/include/config.inc.php on line 77

Warning: Cannot add header information - headers already sent by (output started at /home3/cldforum/public_html/cgi-bin/yabbse/gallery/include/config.inc.php:77) in /home3/cldforum/public_html/cgi-bin/yabbse/Sources/Subs.php on line 122

Warning: Cannot add header information - headers already sent by (output started at /home3/cldforum/public_html/cgi-bin/yabbse/gallery/include/config.inc.php:77) in /home3/cldforum/public_html/cgi-bin/yabbse/Sources/Subs.php on line 123

Warning: Unable to access ./template.html in /home3/cldforum/public_html/cgi-bin/yabbse/Sources/Subs.php on line 196

Warning: Failed opening './template.html' for inclusion (include_path='.:/usr/local/lib/php') in /home3/cldforum/public_html/cgi-bin/yabbse/Sources/Subs.php on line 196

At the end of the page there was also this error:
Code: [Select]
 
There was an error while processing a database query.
You can try to refresh the page by clicking here.

Error Returned


While executing query "SELECT count(*) from "

mySQL error: You have an error in your SQL syntax near '' at line 1


We apologise for any inconvenience


Does anyone know how to fix it?  ::)
Thanks a lot.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on November 30, 2002, 06:59:40 AM
u forgot to mention that the page is hosted in spaceports...
Title: Re:[Beta] Photo Gallery Mod
Post by: BiErLeEuW on November 30, 2002, 10:00:21 AM
Got this error... don't know how to change?

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Can't connect to MySQL server on 'localhost' (10061)

Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 01, 2002, 05:16:29 AM
I am just in the process of moving over to rochenhost (thanks to Chris for answering all my silly questions in the early hours of this morning)

All seems to be working ok apart from my gallery!

It works in a fashion.. apart from complaining it cant find my template.php?!

The rest of my board is working ok.

This is the error I get...

Warning: Failed opening './template.html' for inclusion (include_path='') in /home/pioneer/public_html/yabbse/Sources/Subs.php on line 208

I have no idea where to look as the rest of my board (template and all) is working nice and fast...

Thanks

Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on December 01, 2002, 06:48:41 AM

Warning: Failed opening './template.html' for inclusion (include_path='') in /home/pioneer/public_html/yabbse/Sources/Subs.php on line 208


this error happens in yse version 1.3.0 and maybe yapp too
just copy your current template.php, rename it as template.html and upload that...


Quote
Got this error... don't know how to change?

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Can't connect to MySQL server on 'localhost' (10061)

did u try to install in a subdirectory of the forum?
that error msg happen when u put a wrong value in one of the database settings (username, password, dbname, servername)
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 01, 2002, 06:56:15 AM
Tried copying over to template.html

still get

Warning: Failed opening './template.html' for inclusion (include_path='') in /home/pioneer/public_html/yabbse/Sources/Subs.php on line 208

was working fine until i moved servers... DOH!



Warning: Failed opening './template.html' for inclusion (include_path='') in /home/pioneer/public_html/yabbse/Sources/Subs.php on line 208


this error happens in yse version 1.3.0 and maybe yapp too
just copy your current template.php, rename it as template.html and upload that...
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 01, 2002, 09:05:19 AM
Have tried change this

   $templateFile = $boarddir."/template.php";
   if (!file_exists($templateFile))
      $templateFile = $boarddir."/template.html";
   include ($templateFile);

to

$templateFile = "/home/pioneer/public_html/yabbse/template.php";
include ($templateFile);

and it works now  ???

Weird...
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 01, 2002, 09:33:59 AM
 ;D GRRRReat Mod!

I had to do a manual install, but after using the code spiff put up :D it works fine!

I do have a couple of questions.

1) The option in the general settings, for allowing global mods admin rights (except the general settings)

I tick this, but it reverts back? I assumed as I am not allowing general members to create albums, this would give global mods the right to create albums.

2) My Calendar (and whose online) button disapears when viewing the gallery   - is there a way to fix this?

3) As far as I know, quite a few yabb se'rs changed the home button on there page to redirect the user to the home page of the site, and not to the board index. If any body has done this then there is no option in the gallery menu to get back to the board index, so the user is kind of stuck.

My solution to that one, is to create an index button on the main menu bar - this links to the main index, where as the home button links to the home page of the site.

Its not difficult to add the button, if anyone needs help, I'll post the code here.

I was just wondering if there is a better solution?


Thanks for the mod, you have done well :D


Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 01, 2002, 09:49:30 AM
I have set the gallery to default to sort Descending Date. But it doesnt do it.

On the main page.. it shows the latest photos for each gallery. But once inside a album none of the sorts seem to work. It passing over the right parameters.. just ignores them though.

If I click latest uploads, they seem alright.

Any ideas why the sort isnt working for me (did do before i moved servers)
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 01, 2002, 09:54:31 AM
If you have the menu problem I mentioned above(page 7), here is the way to add an index button.

First of all, you need a graphical button. the best place to get one is here http://yabbbuttons.cjb.net/

After you have uploaded it to your YaBBImages dierctory you will need to make the following changes.

PLEASE BACKUP YOUR FILES BEFORE CHANGING THEM!!!!! IF YOU SCREW UP ITS YOUR FAULT!


Code: [Select]
<file>
english.lng
</file>

<search>
$txt[888] = "Most Online:";
</search>

<add after>
$txt[900] = "Main";
</after>

<search>
$img['admin'] = $txt[2];
</search>

<add after>
$img['index'] = $txt[900];
</add>

<search>
$img['admin'] = "<img src=\"$imagesdir/admin.gif\" alt=\"$txt[2]\" border=\"0\">";
</search>

<add after>
$img['index'] = "<img src=\"$imagesdir/index.gif\" alt=\"$txt[900]\" border=\"0\">";
</add>

this next code change presumes that your web adress is www.yourdomain.com and your board url is www.yourdomain.com/yabbse

you will need to change those details for your own board.

Code: [Select]
<file>
/sources/subs.php
</file>

<search>
$yymenu = "<a href=http://www.yourdomain.com>$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
</search>



<edit>
$yymenu = "<a href=http://www.yourdomain.com>$img[home]</a>$menusep<a href=http://www.yourdomain.com/yabbse/index.php>$img[index]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
</edit>


Thats it.

Its the first time I have broken down a code change like this, so if I have made any mistakes  - sorry :)

Good luck.
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 02, 2002, 10:37:40 PM
Anyone else moved over to Rochen and have problems with this gallery not sorting??

Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 03, 2002, 03:18:12 AM
Can't get it to work at all

Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../
Code: [Select]
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

Won't load template.html
Code: [Select]
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208
The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)


I have exactly this problem.

Now, the thing is - I have 2 boards on the same server, the Second(newish) board installed fine.

But the first which is my older board (both 1.4.1) generates the errors above.

Thunderaces solution was to put in the paths. and copy template.html into the gallery route. My problem is that I have a template.php not a .html - and it doesnt like it when I use that instead?

Although my subs.php is modded (just like my first board) it throws out a request on line 183 for template.html - I will dig out the exact procedure thats causing this tonight and post it if it will help?

Any Ideas?

Tony.
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 04, 2002, 08:12:09 PM
Ok, well  - I got it working by making the same changes as thunderace.

The only problem I have now, cos I am using the template.html - is that I have lost all the table borders around the gallery and its sub pages. :(

It works, just looks a little incomplete.

Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 05:55:28 PM
I tried installing.... it said it was succesfull in installing but when I went to the gallery-page I got:

Fatal error: Call to undefined function: clicklog() in init.inc.php on line 45
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:02:24 PM
erm............... just a guess,

but try putting in the full path to your subs.php file

The file you need to play with is init.inc.php

by path, I mean the server path not the URL.

for example...

home/user/public_html/yabbse/Sources/subs.php

I dont know what your path would be, but I think it would fix your problem.


Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:20:39 PM

erm............... just a guess,

but try putting in the full path to your subs.php file

The file you need to play with is init.inc.php

by path, I mean the server path not the URL.

for example...

home/user/public_html/yabbse/Sources/subs.php

I dont know what your path would be, but I think it would fix your problem.


Wait a minute... put what where :P? I know what the path too my subs.php is, but what path do I have to put where?

path to my subs.php:
/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/subs.php

But do I have to fill that somewhere in the init.inc.php (if yes, where? :P) or somethingin the subs.php... *confused*  ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:32:29 PM
Allright, I know where to fill it in:
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/subs.php";

Now I have:
Fatal error: Call to undefined function: loadcookie() in init.inc.php on line 46

lol
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:34:07 PM
Hi,

I am no expert on this..... but this is what I did

edit init.inc.php (and remember to CHMOD it after)

Code: [Select]
# FROM YaBB
include_once "/home/coyote/public_html/mainboard/QueryString.php";
include_once "/home/coyote/public_html/mainboard/Settings.php";
include_once "/home/coyote/public_html/mainboard/english.lng";
include_once "/home/coyote/public_html/mainboard/Sources/Subs.php";
include_once "/home/coyote/public_html/mainboard/Sources/Errors.php";
include_once "/home/coyote/public_html/mainboard/Sources/Load.php";
include_once "/home/coyote/public_html/mainboard/Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

what I think yours MIGHT need to be (remember to backup first!) is

Code: [Select]
# FROM YaBB
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/QueryString.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Settings.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/english.lng";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Subs.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Errors.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Load.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";


But please remember to backup first!!!!!!

Try jsut changing the sups.php line first, if that works, but you get another error then try the other lines.

But please backup first
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:36:22 PM
you might also want to search the boards here for cookie problems attributed to Tripod.


good luck.
Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:37:26 PM
Bugger... I forgot to put the clicklog line back again... I removed it to see what happened. So now I still have the clicklog error
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:39:59 PM
:) ok

The functions you are mentioning are in the subs.php file.

if it doesnt know where it is then it might start to go dizzy.

add in the code I mentioned above, and lets see what happens.

Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:43:14 PM
No, that isnt the problem. I just tried that but it didnt work :(, except my language file is dutch.lng. I already included the lines that must be included in the dutch.lng (copied it from the .mod file)... maybe some other english.lng-links in the files?
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:45:32 PM
Are you getting the same error?

Also does your souces directory start with a capital S?
Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:48:30 PM
yes and yes
Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:53:41 PM
Bloody... *Slaps himself on the head* *Shames*... I did the sources dir with capital S, but the files in it with small S  ::) ::)
Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 06:53:59 PM
Thank you very much  :)
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 05, 2002, 06:55:40 PM
Glad I could help :)

Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 05, 2002, 07:42:28 PM
Ok me one more time ;D:

How can I make only admins upload pictures? When I uncheck "Allow users to upload pictures" even I (the admin :P) cant upload pictures :(!

And: why dont I have a comment-field where users can fill in their comment. I have "allow users users to post comments" enabled!
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on December 06, 2002, 12:16:00 AM
I installed and have been customizing this mod tonight for my site...

I gotta say, for as complex a mod as this, it was incredibly straightforward to install with the instructions provided...

This has got to rank up there with one of the best mods around...Incredible work!!

Now if I can keep my bandwidth from skyrocketing i'll be set!

Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 06, 2002, 05:05:26 PM

why dont I have a comment-field where users can fill in their comment. I have "allow users users to post comments" enabled!


Seriously, I need this fixed. This is why I want to use the photogallery!
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 06, 2002, 05:08:52 PM
works fine on my board, might be worth having a look on coppermines site
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 06, 2002, 05:16:15 PM
Check out db_input.php - Make sure that you have uploaded it as an ASCII file not binary.

and check that the path in it is ok

I have to go out now, but I thought it might help :)

Good luck.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 06, 2002, 07:48:05 PM
When I try to put <yabb galleryBodyTag> into the body tag it takes away my bg color. This is what my body tag looks like:

Code: [Select]
<body bgcolor="#e85c00" onLoad="MM_preloadImages('template/template_r3_c8_f2.jpg','template/template_r5_c9_f2.jpg',
'template/template_r7_c9_f2.jpg','template/template_r10_c7_f2.jpg',
'template/template_r12_c5_f2.jpg','template/template_r14_c4_f2.jpg',
'template/template_r16_c3_f2.jpg');">

I don't know if the preloaded images have anything to do with this problem. My bg color is orange and after I put the gallery body tag in between the body tag it turns white.
 ???
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 06, 2002, 08:06:40 PM

When I try to put <yabb galleryBodyTag> into the body tag it takes away my bg color. This is what my body tag looks like:

Code: [Select]
<body bgcolor="#e85c00" onLoad="MM_preloadImages('template/template_r3_c8_f2.jpg','template/template_r5_c9_f2.jpg',
'template/template_r7_c9_f2.jpg','template/template_r10_c7_f2.jpg',
'template/template_r12_c5_f2.jpg','template/template_r14_c4_f2.jpg',
'template/template_r16_c3_f2.jpg');">


I don't know if the preloaded images have anything to do with this problem. My bg color is orange and after I put the gallery body tag in between the body tag it turns white.
???


Hi,

First of all, can I say to anybody that has had to put the paths in, the best way to sort this problem is to change the paths in the YaBBSE Admin centre - not in the settings file for the gallery.

Changing it in the admin center also sorts out the need to not have a duplicate template.html file in the gallerry root.

The rest of the problems are associated with the place you put the tags in the template.

If your gallery CSS isnt working, its to do with <yabb galleryHeader> place this directly before </head>

I have replicated your problem diva, and the way I solved it was to place the tag at the end of the body not at the beginning.

so your body tag should be

Code: [Select]
<body bgcolor="#e85c00" onLoad="MM_preloadImages('template/template_r3_c8_f2.jpg','template/template_r5_c9_f2.jpg',
'template/template_r7_c9_f2.jpg','template/template_r10_c7_f2.jpg',
'template/template_r12_c5_f2.jpg','template/template_r14_c4_f2.jpg',
'template/template_r16_c3_f2.jpg');" <yabb galleryBodyTag> >


I hope this helps.

Guus - have you sorted out your problem with the comments field yet?

If no, then maybe changing the paths in the yabbse admin centre will help. and also reverting your paths in the init php file - back to the original source.

I hope this helps.


Title: Re:[Beta] Photo Gallery Mod
Post by: Guus on December 07, 2002, 03:49:30 AM
No, this didnt help unfortunately :(..
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 07, 2002, 05:43:58 AM
Guus,

Can you post a link - or send and IM to me - to see if I can see anything that stands out?

Tony.
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on December 08, 2002, 09:45:56 AM
My gallery is working all apart from the sorts.It wont sort by name or date.

Anyone else had this problem?

Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 10, 2002, 11:37:48 PM
I cannot get my gallery to embed into my board. When I click on gallery it just goes to http:www.mysite.com/community/gallery/

I did everything right. I am wondering if the preloaded images in my body tag has anything to do with it (per my earlier post)?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 14, 2002, 01:30:10 AM
Where is Spiff?
I need help!!!
???
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 17, 2002, 03:26:55 AM
Hi Guus,

I am sorry I havent had a chance to help you out, but have had major problems with my server.

Hi Diva,
I dont know where spiff is - but I also dont recall seeing him on yabb.info for a while now.

At this time the MOD is still beta and therefore should not really be used as a comlpeted mod. It is here for testing.

Hopefully when Spiff comes back we will continue to find problems and solutions - that way we can make this mod better.

Until then if you have a list of what you think are bugs then please post them on this thread and when Spiff returns he will be able to go through them one at a time.

I have a couple of bugs/issues that I will add to this thread tonight.

It will also be worth mentioning if you are on a free host, like Lycos for instance as free hosts can have funny PHP configs and it may be that they are the problem not the script.

Hope that helps.
Tony.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 17, 2002, 11:04:06 AM
I've been looking around the boards and found out Spiff is taking finals right now so he'll probably be on later  this week or next week.
No Coyote...I don't have a free server. Just having problems embedding the gallery.
But I'm in no rush to have it working. My site was down for a long time because I was reconstructing it. So now  my members are slowly coming back since getting everything back up. So I am not really in a hurry. ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 17, 2002, 11:20:44 AM
Oh...also. If one wanted  to post images...would they be prompted to enter their username and password on the gallery after they have already entered all that information to log onto the forum?

I don't think that my board is linked to the gallery at all. Isn't it suppose to call information about my member from my database?
I'm not a programmer but I guess I will try to see what I may have done wrong if anything.

Edit - -

I just registered on Spiff's test board and noticed he has a button for uploading images and an album list button. This  was not included in my zip.  ??? My question above was answered....sort of. But the mod is not doing for me what it is doing on Spiff's board.
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 17, 2002, 12:58:30 PM
Yes you are correct in thinking that the mod should extract the member info from the YaBBSE database.

From what you are telling me, I dont think you have integrated the mod correctly.

I would manually go over every step again - and see if you have missed out any steps.

I am sorry I cant help at the moment, but I am working on my own problems with my server.

As soon as I have them sorted I will try and help here ;)

Take Care,
Tony.
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on December 17, 2002, 08:47:34 PM

I just registered on Spiff's test board and noticed he has a button for uploading images and an album list button. This  was not included in my zip.  ??? My question above was answered....sort of. But the mod is not doing for me what it is doing on Spiff's board.


You have to create your own buttons and code them in if you want that...that's what he/I did.  His mod inputs text links where his buttons appear.

Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 17, 2002, 09:25:45 PM
Quote
You have to create your own buttons and code them in if you want that...that's what he/I did.  His mod inputs text links where his buttons appear.


Oh...Well I don't know how to code. The gallery is just in "beta"...I'm sure Spiff will include all that in the final mod. I can wait. ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on December 17, 2002, 09:31:22 PM
Do you know html?  All you have to do is reference an image as your link instead of plain text...I don't know php, but it was pretty easy to do that

Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 19, 2002, 02:35:33 PM
The script is working albeit with many errors and ugly aspects...I have integrated it into YaPP, but I am having the following problems:

My main image is screwed up and my recent posts block is failing on a mysql error...I am pretty sure it is becuase the gallery mod is referencing the wrong directories.

Here is the link to my gallery now http://www.zerr.org/family/gallery/, if it would help anyone help me figure out how to fix this last little problem...the script is working fine, just not very pretty with the broken links and mysql errors.


OK here is what I was able to complete per the mod file and what I could not complete:

Mod Info - No changes needed
Code: [Select]

<ID>
Coppermine Gallery Mod
</ID>

<Version>
0.9
</Version>

<Mod Info>
change the string "gallery/" to where u install your gallery
</Mod Info>

<Author>
Spaceman-Spiff
</Author>

<Homepage>
http://www.monkey-pirate.com
</Homepage>


Edit the english.lng file:  completed/no problems encountered
Code: [Select]

<Edit File>
english.lng
</Edit File>

<Search For>
   $img['boardmod'] = $txt[boardmod1]; #BoardMod Center Logo
</Search For>

<Add After>
   $img['gallery'] = "Gallery"; #Coppermine Gallery Mod
</Add After>

<Search For>
done   $img['boardmod'] = "<img src=\"$imagesdir/boardmodlogo.gif\" alt=\"$txt[boardmod1]\" border=\"0\">"; #BoardMod Center Logo
</Search For>

<Add After>
done   $img['gallery'] = "<img src=\"$imagesdir/gallery.gif\" alt=\"Gallery\" border=\"0\">"; #Coppermine Gallery Mod
</Add After>



I think this edit is just a simple re-direct from the main YaPP index.php to the gallery script.  I was able to add this line even though I could not find the locations specified below and it is not really necessary as far as I can tell.

Code: [Select]

<Edit File>
index.php
</Edit File>

<Search For>
done   else if ($action == 'yabbinfo') { include_once "$sourcedir/Admin.php"; showYaBBInfo(); } could not find
</Search For>

<Add After>
done   else if ($action == 'gallery') { header("Location: gallery/"); } simple redirect
</Add After>


I was able to add the first edit, but not the second one because I was unable to find the search location...

Code: [Select]


<Edit File>
Sources/Subs.php
</Edit File>

<Search For>
function footer() {
done   global $yyboardname,$yytitle,$yyuname,$yyim,$yytime,$yymenu,$yymain;
done   global $yytemplate,$yycopyin,$yytemplatemain,$yycopyright,$settings,$yyVBStyleLogin,$yynews;
</Search For>

<Add After>
done   global $runningGallery;
done   if ($runningGallery) { $yycopyright = "<small>Gallery powered by <a href=\"http://www.chezgreg.net/coppermine/\" target=\"_blank\">Coppermine Photo Gallery</a> v1.0 RC 3</small><br>\n".$yycopyright; }
</Add After>

<Search For>
NO   $yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
</Search For>

<Add After>
NO   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
</Add After>



Anyone want to help me?


Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 19, 2002, 11:30:31 PM

Have tried change this

  $templateFile = $boarddir."/template.php";
  if (!file_exists($templateFile))
     $templateFile = $boarddir."/template.html";
  include ($templateFile);

to

$templateFile = "/home/pioneer/public_html/yabbse/template.php";
include ($templateFile);

and it works now  ???

Weird...


I think everyone has figured out why this wasn't working. There isn't a "template.html" file. I had to do this also after changing $sourcedir/Subs.php (and all that) to ../Sources/Subs.php (and then some).

I made the mistake of installing Coopermine version because I have both versions working on my site. I did not realize that Spiff altered their version to work with the board.  I got everything embedded. It works!!! I'm so happy!!! ;D
It feels good when you figure things out.  

Now to tackle this Oscommerce script. They are not as helpful in their community as this one.

I love the Yabb SE community ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 01:50:02 AM
My job is not done.

When entering the gallery there is no admin button. I figured this might be because you should be using the gallery admin...right?

Well when I go to  www.mysite.com/community/gallery/admin.php
I get this error:
You are not allowed to access this section
This is when I'm logged in as admin.

Also the username does not show up in the welcome message that says Hey, User , you have 0 messages, 0 are new.

I don't know if anyone else has had this  problem...but I read the entire thread and didn't see anything relating to my problem other than maybe Thunderace. ???
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 20, 2002, 05:29:56 PM
I am not sure how to perform the following:

run 'Gallery0.9.mod' in BoardMod

The file I have is GalleryInstaller_V0.9.mod

What is meant by BoardMod? When I try to run it up comes winamp and I get "corrupt file or unsupported module type"

I already have a version of Coppermine running outside of YaBBSE - any way to connect the two in a simple method?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 05:48:26 PM
You really are a noobie. Well I can help you on that. Goto this site http://boardmod.yabbforum.com/downloads.php (http://boardmod.yabbforum.com/downloads.php)
Download the newest version because it works with YabbSE.
You need to install the gallery that is included in the zip for everything to work. I made that mistake myself. and create a gallery folder in your forum directory and install the gallery there.
;)
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 20, 2002, 06:13:16 PM
I have downloaded BoardMod - now what do I do - I have installed Coppermine in the appropriate directory and it kinda works...

How do I make this BoardMod work?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 06:21:19 PM
Did you install Board Mod...it is a program.
I think you just have to extract the zip and then put the gallery mod file into a folder in the mods directory that is created when you extract the BoardMod zip. You should read the README file because it will help you. It is pretty simple.
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on December 20, 2002, 06:25:40 PM
Inside Boardmods folder you'll find a folder called "mods"

When you.ve clicked into there make sure there is a folder with the Version of your board (ie if you are running 1.4.1 there should be a folder called 1.4.1)

Click into the folder 1.4.1 and add the mod file (it will be named .mod)

Click back in at the beginning of your Boardmod folder to find the "Boardmod" icon (blue smilie) double click on it.

Choose browse...then choose the folder on your desktop where your boards current files are..in there single click to select the index.php file (same area as Settings.php)

On the right hand side top you can now choose 1.4.1 (folder)

Tick the name of the mod you're applying then follow the instructions.

Hope this helps  ???
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 20, 2002, 06:55:57 PM
I really appreciate your helping me:

I downloaded BoardMod ver 2.5.1 beta and no folder for 1.4.1.

I have the coppermine working but no links in YaBBSE for the header graphic, link button in YaBBSE or bottom graphics - otherwise seems to work.
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on December 20, 2002, 07:06:40 PM
Try copying your template.html into gallery folder

BTW read previous threads pls

***Going to bed***  ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 07:13:41 PM
Actually there is no template.html. I would figure an html page with php in it would not fuction correctly. In the Subs.php file find this line :
Code: [Select]
if (!file_exists($templateFile))
     $templateFile = $boarddir."/template.html";


And change it to this:
Code: [Select]
if (!file_exists($templateFile))
     $templateFile = $boarddir."./template.php";


Just that simple.
In older post I noticed everyone was trying to figure this out. No need to have 2 of the same file on your server.
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 20, 2002, 07:32:48 PM
I have coppermine working. I do not have the header graphic or the graphics in the footer from my YaBBSE in the Gallery. I also do not have a link button in my YaBBSE for the Gallery.

Otherwise everything seems to be working...

Appreciate any help someone can provide...
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 07:35:57 PM
Did you do put this <yabb galleryMenu> after <yabb menu> in the template.php file?
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 20, 2002, 07:37:25 PM
Yes and I have triple checked...
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 20, 2002, 08:49:48 PM
open your mod up in a text editor and check all the steps against your index.php, Subs.php and english.lng files to see it the mod installed correctly. You may have to do it by hand.
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on December 21, 2002, 02:39:49 AM
try this it worked for me...

In "Forum Prefs" change Yabb Directory (Only) to full path e.g. /var/www/vhosts/mysite.com/httpdocs/yabbse
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 21, 2002, 03:01:20 AM
I do not have the header graphic or the graphics in the footer from my YaBBSE in the Gallery.

Only problem I still have to fix - everything else works...
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on December 21, 2002, 03:06:09 AM
Yup I know ...try it
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 21, 2002, 03:07:15 AM
/www/*/*******/htdocs/yabbse

this is my current path - what should it be?
Title: Re:[Beta] Photo Gallery Mod
Post by: Thunderace on December 21, 2002, 03:22:04 AM
It seems you are already using the full path  ???

I was using "." as the Yabb Directory, the board was working but Gallery didn't show header and footer, changed Yabb Directory to full path and it worked.
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 21, 2002, 03:47:39 AM
I do not have the header graphic or the footer graphics from my YaBBSE forum on the Gallery page.

Only problem I still have to fix - everything else works...

Appreciate any help I can get - I have fixed all my other problems

 8)
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 21, 2002, 12:56:37 PM
searanch,

Iam having the same issue with my header graphics and footer graphics as well as my recent posts block....I am using YaPP...mad moya over at YaPP got his working, but I am having problems understanding his directions....maybe you can give some insight:

http://yapp.phpworld.net/index.php?board=13;action=display;threadid=1032;start=0

His post is about half way down the thread.

Also, I have the full path to YaBB in my settings, so thunderace's suggestion may not be enough.

Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 21, 2002, 01:35:42 PM
Hey Zarsky,

This apparently is a common problem - no one seems to have a simple fix.

I wouldn't even attempt to follow the instructions that Mad Moya gave - prolly crash my whole forum.

Gotta be one genius out there - here is the problem:

Zarsky and I do not have the header graphic and/or the footer graphics from the YaBBSE forum pages on the Gallery page...

 8)

A simple fix would be greatly appreciated...
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 21, 2002, 01:41:04 PM
Giving your url helped alot. Your image says that it is located here. http://www.yoursite.com/yabbse/gallery/YaBBImages/yourimage.jpg (http://www.yoursite.com/yabbse/gallery/YaBBImages/yourimage.jpg)
Just change the link to image  in your template that is located in your gallery folder to this http://www.yoursite.com/yabbse/YaBBImages/yourimage.jpg (http://www.yoursite.com/yabbse/YaBBImages/yourimage.jpg)

As for the other graphics. Take out the gallery/ in the template or create a YaBBImages/ folder in your gallery abd move the images there.
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 21, 2002, 02:16:41 PM
Worked like a damn...

;D
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 21, 2002, 02:26:15 PM
I figured out that the problem I'm having is a database problem. For those who manually installed the gallery. Did you create new tables in your database. Or were the tables added to the information that Yabb created?
Was the install suppose to dump the sql database file?
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 21, 2002, 03:13:21 PM
searanch and diva_uno,

I know that simply copying the images would fix theimage problems....the reason the link is not right is because the mod adds the follow command in index.php

Code: [Select]
else if ($action == 'gallery') { header("Location: gallery/"); }

This appends .../gallery to all image links and all include statements....at least I think that's what it does...I would prefer a "cleaner" fix that would properly refence everything so I do not have to worry about blocks or new images I create and link becoming a problem...if I was on linux I could simply use a symbolic link to reference back to the YaBBimages dir....ah well I will keep trying some other ideas I have and report back any success!!!

Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 21, 2002, 03:25:25 PM
One other note:

For some reason my header graphic (logo)  does not even get the correct link parsed through ???  I fixed the footer graphics using diva_uno's suggestion, but not sure what to do about the header graphic..

Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 21, 2002, 03:53:38 PM
Right click on the broken image...and look at properties in the menu. This will tell you where the template says where the image is. Most likely it's not there.
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 21, 2002, 04:04:44 PM
Yes yes I did that and the img url=""  So it does not link anywhere for the image....this is due to the header call in the mod...at least I think it is...I am not even sure if it is possible to hard code the url since it is being parsed that way by php ???

You can see for yourself here:

http://www.zerr.org/family/index.php?action=gallery

Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 21, 2002, 04:34:05 PM
I would try hard coding it in.  Do you have another template file in your gallery folder? If you do already I would just put the html code to the image in the template and upload it again. If you don't have a template file in your gallery like me...I had to copy images over to my gallery folder instead of changing everything withing the template which would have been a pain. But try that.
Yeah ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 21, 2002, 07:29:59 PM
Well the putting the tables into my database manually didn't help. I don't know what is wrong.
When I go into gallery it is not like I am even on the message board. My admin button doesn't show up and the welcome message does not include a username.
If anyone can help me your help would be appreciated.
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on December 21, 2002, 11:21:47 PM
I tried to install this mod with boardmod to use it with
my yapp 0.6 and unfortunately I ran across 30 errors
while using boardmod sooooooo.........

I just didnt feel like manually importing 30 lines of code.
Toobad this would have been kickass with my yapp!
Title: Re:[Beta] Photo Gallery Mod
Post by: John R on December 22, 2002, 12:26:14 AM
Unfortunately, when a mod is written for YaBB SE and you try to install it on YaPP you will run into problems if you try to use BoardMod as some of the code is different.  

It is possible to install the mod by hand though and it works flawlessly.  As long as you follow the instructions included with the Mod file there is only one real difference.  The part that places the gallery link into your menubar is not needed.  You add the link in your YaPP admincenter in the menu management section.

cheers............
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 22, 2002, 12:29:30 AM
I thought there were only 5 lines to add into the scripts?
A lot of people got it working on Yapp...Don't give up!
;)
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on December 22, 2002, 11:39:43 AM
ooops yeah you're right I goofed it was only 5  changes.
im sorry I had got it confused with another mod.

I recieved errors on two in which the commands were not the
same so its kinda tricky to figure out where they fo such

Error on task #3

look for:

as:else if ($action == 'yabbinfo') { include_once "$sourcedir/Admin.php"; showYaBBInfo(); }

replace with:

else if ($action == 'gallery') { header("Location: gallery/"); }

Error:

Step 3 ... failed - ERR(1): Search string could not be found



Error: Step #5

look for:

$yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";

replace with:

$yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";

Step 5 ... failed - ERR(1): Search string could not be found


Well I think these are the problems so people are facing.
If its possible to resolve such problems, then it would work fluidly!

ok I manually did what I could...
I chmoded everything, and well now it just hangs on the install.php screen and doesnt do anything.

It doesnt install nor create the new database tables.

Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 22, 2002, 09:14:22 PM
All,

I will be releasing a special alpha version of Spiff's coppermine mod tailored specifically for YaPP....I only have two problems to figure out...expect to see it show up in a new thread over at the YaPP forum tomorrow...one error I am trying to resolve is the loss of the logo picture's img src link after being parsed...the other error is with my recent posts block that gets passed bad parsed links and causes mysqlk errors...look in one of my previous posts fora link to see an example of it running.

Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: searanch on December 22, 2002, 09:43:40 PM
Great Mod...

I have lost my profile button on the top to the right of the search button after installing the Photo Gallery - it appears to have been replace by the gallery button...

How do I get it back?
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on December 23, 2002, 11:59:11 AM
Happy Fooken Holidays

I manually created the table sand it works!!!!!

Except for one small dilehma.
When I try to upload an image it goes to db_input.php
and it just hangs there...

No upload at all...
Anyone know why!?

arghh I give up this is complete buggy and im getting sql errors
now.

The interface looks good but thats about it!
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 23, 2002, 04:25:07 PM
All YaPP users!!!


Check this link below for the thread for a newer updated version of this mod specifically modified to integrate with YaPP...not all the issues are resolved but most issues people are having are covered.

I have included much more detail in the readme to help people having problems, and I have upgraded the mod file to work with boardmod flawlessly under YaPP.

http://yapp.phpworld.net/index.php?board=13;action=display;threadid=1831;start=3
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on December 23, 2002, 07:35:39 PM
yeah I checked out that link to tell you the truth it didnt help for crap.

Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 23, 2002, 11:00:40 PM
A question for all the PHP experts. For what reason would I not be recognized as admin when I enter the gallery? Actually no member is recognized when they enter the gallery and I don't know why this would be.
If anyone can help.
Title: Re:[Beta] Photo Gallery Mod
Post by: zarsky99 on December 24, 2002, 12:59:29 AM
Crimson,

Give some system specs on your server..saying it did not help or it does not work.....does not help anyone with your problem.  ;)

Also be sure your permissions are set correctly...and did you check out the zip file in that thread or just the thread itself, also are you running YaPP or YaBBSE if YaBBSE than of course a mod for YaPP may not be very helpful.  :o

EDIT: I see in an earlier post you are using YaPP....if so be sure to download my zip in the readme it explains that I fixed those two errors in the mod file you spoke about earlier and I provide detail on setting the proper permissions and proper config of your php.ini file.  ;D


Zarsky
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on December 24, 2002, 04:26:28 PM
I got everything working right finally. I at first didn't know what I did to get it working but the thing I did differently must have helped.

I reinstalled the mod and got errors kinda relating to the path of the files in the yabbse directory needed for the gallery.

In the gallery directory, include/init.inc.php,  $sourcedir didn't work so at first I put for example ../Sources/Subs.php and everything that refered to anything in the yabbse directory was listed like that (../english.lng and so on)

The gallery worked like this. I was able to upload pictures but I was not recognized as admin. Also it would not show who uploaded the pictures or tell you any other information relating to the board. It was like I wasn't on the board.

I went into include/init.inc.php and changed the path to the complete path. home/www/mysite/yabbse/... and now it works.

I just wanted to post this just in case someone else runs into the same problem because I thought it may have been a database problem. If I had never reinstalled I would have never thought to change that to the complete path. So happy now.

Great Mod!!! ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: Jacko on December 26, 2002, 02:13:01 AM
trying to get this working on v1.5.

all actions are now in an array in index.php

I think everything will work if I can figure out how to get the

else if ($action == 'gallery') { header("Location: gallery/"); }

into the array. Any ideas?
Title: Re:[Beta] Photo Gallery Mod
Post by: pege on December 26, 2002, 10:16:17 AM

...I manually created the table sand it works!!!!!...


Great...table sand.  now all we need is a shovel!
Title: Re:[Beta] Photo Gallery Mod
Post by: mikemikeson on December 27, 2002, 08:44:26 AM

trying to get this working on v1.5.

all actions are now in an array in index.php

I think everything will work if I can figure out how to get the

else if ($action == 'gallery') { header("Location: gallery/"); }

into the array. Any ideas?



I'm tried to configure the gallery for 1.5.0 also...but I'm not that much into "programming" ...can't figure aout how to embed it into the arry....
somebody run this mod with 1.5.0 ?

*excuse may bad english* :-)

cheers
Title: Re:[Beta] Photo Gallery Mod
Post by: Chris77 on December 27, 2002, 09:18:48 AM
All functions correctly for me except when me post or that I erase a commentary, I get a blank page.
If you can tell me what to do, thank you.  :'(
Title: Re:[Beta] Photo Gallery Mod
Post by: devilrazor on December 27, 2002, 04:43:46 PM
When you upgrade to 1.5
i think you have to chmod the folders to 777
and set 'gallery' and 'include' directory back to CHMOD 775. After done installingand  Gallery ...

Make a copy
template.php to yours computer and renamed to template.html

and copy this to the gallery folders !

this is working for me

I have not upgrade to 1.5
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on December 27, 2002, 07:39:59 PM
For those changing the init paths - it might be better to do it this way......

Hi,

First of all, can I say to anybody that has had to put the paths in, the best way to sort this problem is to change the paths in the YaBBSE Admin centre - not in the settings file for the gallery.

Changing it in the admin center also sorts out the need to not have a duplicate template.html file in the gallerry root.

The rest of the problems are associated with the place you put the tags in the template.

If your gallery CSS isnt working, its to do with <yabb galleryHeader> place this directly before </head>

I have replicated your problem diva, and the way I solved it was to place the tag at the end of the body not at the beginning.

so your body tag should be

Code: [Select]
<body bgcolor="#e85c00" onLoad="MM_preloadImages('template/template_r3_c8_f2.jpg','template/template_r5_c9_f2.jpg',
'template/template_r7_c9_f2.jpg','template/template_r10_c7_f2.jpg',
'template/template_r12_c5_f2.jpg','template/template_r14_c4_f2.jpg',
'template/template_r16_c3_f2.jpg');" <yabb galleryBodyTag> >

I hope this helps.

Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on December 29, 2002, 05:33:31 PM
Is there a simple set of instructions for getting this to work with 1.5?  It was working fine in 1.4.1, but even though the tags are in place, it's no longer there on 1.5 (I just upgraded)

Any suggestions?

Thanks
Title: Re:[Beta] Photo Gallery Mod
Post by: Zombie on January 06, 2003, 06:51:44 AM
Any plans to put out a 1.5 mod for this gallery.  I really like this mod, it has some great potential.  
Looking forward to being able to run it on my forum!
Title: Re:[Beta] Photo Gallery Mod
Post by: naneo on January 07, 2003, 02:40:08 PM
help me?
kann leider kein english. ähhh i can't speak English
www.boehsebaeren.de (http://www.boehsebaeren.de)
template.html is in gallery folder
here is my template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE><yabb title></TITLE>
<style type="text/css">
<!--
A:link        {text-decoration: none; color: #FFB903;}
A:visited     {text-decoration: none; color: #FFB903;}
A:hover       {text-decoration: none; color: #DDDDDD; font-style: normal; text-decoration: underline

overline}}
BODY          {scrollbar-face-color: #272A2F;
               scrollbar-shadow-color: #1B1E25;
               scrollbar-highlight-color: #cccccc;
              scrollbar-3dlight-color: #272A2F;
               scrollbar-darkshadow-color: #1B1E25;
               scrollbar-track-color: #000000;
              scrollbar-arrow-color: #ffb903; font-family: Verdana}
.nav          {text-decoration: none; color: #FFFFFF;}
.nav:link     {text-decoration: none; color: #FFFFFF;}
.nav:visited  {text-decoration: none; color: #FFFFFF;}
.nav:hover    {text-decoration: none; color: #FFB903; font-style: normal; text-decoration: underline}
.windowbg     {font-size: 14px; font-family: verdana, Verdana, arial, helvetica, serif; background-color: #272A2F;; border-color: #6B6B6B #252525 #252525 #6B6B6B; FONT-FAMILY: verdana, Verdana, arial, helvetica, serif; padding-top: 2px;
padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: outset; border-top-width: 1px;

border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.windowbg2    {font-size: 14px; background-color: #444444;; border-color: #999999 #414141 #414141 #999999; border-style:

outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.windowbg3    {font-size: 14px; background-color: #606060;; border-color: #FFFF99 #CC9900 #CC9900 #FFFF99; border-style:

outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.titlebg    {background-color: #606060; border-color: #FFFFFF #000000 #000000 #FFFFFF; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.catbg    {background-color: #40454C; border-color: #999999 #414141 #414141 #999999; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

.text1        {font-style: normal; font-weight: bold; font-size: 12px; color: #000000;}


.oldcatbg        {background-color: #40454C; color: #EEEEEE; font-weight: bold; font-size: 9px;; border: 1px

#666666 solid}
.bordercolor  {background-color: #000000;}
.quote        {font-size: 10px; font-family: Arial; color: #FFFFFF; background-color: dimgray;; border:

#666666; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.code         {font-size: 12px; font-family: "Courier New", Courier, mono; color: #000000; background-color:


#FFB920;}
TD            {font-family: Verdana; color: #FFFFFF}
input         {background-color: #333333; font-family: Verdana; font-size: 10pt; color: #FFFFFF;}
textarea      {background-color: #333333; font-family: Verdana; font-size: 10pt; color: #FFFFFF;}
select        {background-color: #333333; font-family: Verdana; font-size: 9pt; color: #FFFFFF;}
.poll        {font-size: 10px; font-family: Arial; background-color: dimgray; color: red;}
-->
</STYLE>

<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content=><yabb title>" <name=description>
<META content="PHP, MySQL, bulletin, board, free, open, source, yabb, yet, another, SE" name=keywords>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<body text="#FFFFFF" bgcolor="000000" bottomMargin="0" leftMargin="0" rightMargin="0" topMargin="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE class=bordercolor cellSpacing=0 cellPadding=0 width="99%" align=center bgColor=#272A2F border=0>
 <TBODY>
 <TR>
   <TD>
     <TABLE class=bordercolor cellSpacing=1 cellPadding=0 width="100%" align=center bgColor=#000000 border=0>
       <TBODY>
       <TR>
         <TD>
           <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
             <TBODY>
             <TR>
               <TD vAlign=center align=center bgColor=#000000><yabb logo></TD>
               <TR>
               <TD vAlign=center align=center bgColor=#000000><FONT size=2><yabb uname><yabb im><yabb time>
            </FONT></TD></TR></TBODY></TABLE></TD></TR>
       <TR vAlign=center align=middle bgColor="#444444" class="windowbg2">
         <TD bgColor=#444444><FONT size=1><yabb menu><yabb gallerymenu><FONT></TD>



     <TABLE class=bordercolor cellSpacing=1 cellPadding=0 width="100%" align=center
bgColor=#000000 border=0>
       <TBODY>
       <TR>
         <TD>
           <TABLE cellSpacing=0 cellPadding=3 width="100%" align=center bgColor=#000000 border=0>
             <TBODY>
             <TR>
                <TD vAlign=top width="15%">

<yabb sblocksl></TD>

                 <TD vAlign=top width="70%">

<yabb sblocksc>
<br>
<yabb main>
<br>
<yabb sblocksbc>

   </TD>

<td vAlign=top width="15%">
<yabb sblocksr></td>
   </TR>
   </TBODY>
             </TABLE>
         </TD>
       </TR>
       </TBODY>
      </TABLE>
   </TD>
  </TR>
 </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
 <TBODY>
 <TR>
   <TD noWrap align=right><yabb VBStyleLogin></TD></TR></TBODY></TABLE><BR>
<TABLE class=bordercolor cellSpacing=0 cellPadding=0 width="99%" align=center bgColor=#000000 border=0><yabb galleryHeader>
 <TBODY>
 <TR>
   <TD>
     <TABLE class=bordercolor cellSpacing=1 cellPadding=0 width="100%" align=center bgColor=#000000 border=0>
       <TBODY>
       <TR>
         <TD>
           <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#000000 border=0>
             <TBODY>
             <TR>
               <TD vAlign=center align=right width="2%" bgColor=#444444>
   
               </TD><TD vAlign=center align=middle width="98%" bgColor=#444444><yabb copyright></TD>
              </TR>
              </TBODY>
           </TABLE>
           </TD>
        </TR>
        </TBODY>
      </TABLE>
     </TD>
<yabb galleryHeader>
   </TR>
   </TBODY>
</TABLE>
</BODY>


init.inc.php
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../german.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "./include/config.inc.php";
include_once "./include/functions.inc.php";
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on January 07, 2003, 02:50:08 PM
Vergeben Sie bitte mein Deutsch - dies ist ein Übersetzer Text.

Der beste Weg, dieses Problem zu sortieren, soll die Pfade in der YaBBSE Admin Mitte ändern.

Änderung, die es in der Verwalter Mitte auch repariert aus dem keine doppelte Modellrahmen Html Akte in der gallerry Wurzel haben muß.


Sie brauchen dies in Ihrem Modellrahmen nicht

init.inc.php
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../german.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "./include/config.inc.php";
include_once "./include/functions.inc.php";


Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on January 07, 2003, 02:54:26 PM
PS - I dont speak a word of German - so if Im talkin nonsense please tell me :)

Sie vielleicht fähig zu kopieren und Paste der Modellrahmen in yabbse admin Mitte zu einem neuen Akte gerufenem Modellrahmen Html und daß stellt in der Gallerie Wurzel.

Aber ich denkt dont, daß sein der beste Weg ist, dies zu lösen.

Title: Re:[Beta] Photo Gallery Mod
Post by: naneo on January 08, 2003, 01:02:55 AM
 ??? ??? ???    ;)

You can answere me in english. I just try to find someone who can translate it.
thanks
Title: Re:[Beta] Photo Gallery Mod
Post by: Coyote on January 09, 2003, 01:00:38 PM
ok :)

first of all - remove this from your template.html

init.inc.php
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../german.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "./include/config.inc.php";
include_once "./include/functions.inc.php";


You need to put the full paths in your YaBB Admin Center.

I have a post in this thread which talks about it.




I am not sure if anyone can help me though :(

When I try to search for images using the automated feature in the gallery admin, I get this error message.

Fatal error: Call to undefined function: db_connect() in /home/fertilit/public_html/mainboard/gallery/searchnew.php on line 42

Anybody have any ideas? Everything else works fine :(

Title: Re:[Beta] Photo Gallery Mod
Post by: AsOrA on January 10, 2003, 10:03:38 AM
Chkmode problem:
Thx for this one mode, i have installed on my boad run with YaBBSE1.5 manualy and i have a problem with chkmod, all my upped pictures have a chkmod 600,
my galery folder and sub ( images, pictures, include are a chkmode 777 )
anny one have an idea ?
thx.
Title: Re:[Beta] Photo Gallery Mod
Post by: Dr_Michael on January 12, 2003, 09:51:53 AM
Let me ask: Can this mod limit access to specific member groups of the forum? I mean I would like to create a special group and only the members assigned to this group to be able to upload photos. Is it possible?
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on January 12, 2003, 01:44:41 PM
You can disable users and guests and enable global mods, but i think that's it...

So if you wanted your global mods to be the only ones with access, then yes.  If not, then i don't think so.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 16, 2003, 10:21:28 PM


trying to get this working on v1.5.

all actions are now in an array in index.php

I think everything will work if I can figure out how to get the

else if ($action == 'gallery') { header("Location: gallery/"); }

into the array. Any ideas?



I'm tried to configure the gallery for 1.5.0 also...but I'm not that much into "programming" ...can't figure aout how to embed it into the arry....
somebody run this mod with 1.5.0 ?

*excuse may bad english* :-)

cheers


I have been playing around with trying to get this to work with 1.5 but no luck. You have to insert the array before this line:
Code: [Select]
'yabbinfo' => array("$sourcedir/Admin.php", 'showYaBBInfo'));
That is all I know.

I tried using this for the array:
Code: [Select]
'gallery' => array("$boarddir/gallery/", 'gallery'),

But I get this error when I click on the gallery button:
Code: [Select]
2: Unable to access /gallery/
(/home/virtual/site461/fst/var/www/html/community/index.php ln 292)


There is something else that you have to insert into the index.php or in the array. I'm believing header has to be somewhere within the script...but maybe I'm wrong. Hopefully someone can figure this out. The only thing that is not working is linking the button to the actually gallery because if you go to http://www.yoursite.com/yabbse/gallery (http://www.yoursite.com/yabbse/gallery) the gallery is there and is still working with the database.
I think I will ask for help to see if someone can tell me how to get this working and I'll post it here.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 17, 2003, 05:42:29 AM
To get it to work in 1.5
I have got the button to point to the gallery without the array action. I guess as long as it works that is all that matters so don't bother adding anything into the index.php file.
Besides that everything else is the same except for Sources/Subs.php.
This is what you do:

Open Subs.php and find:
Code: [Select]
$cgi = "$scripturl?board=$board";
add this after:
Code: [Select]
$galleryurl = "$boardurl/gallery/";

Next find:
Code: [Select]
global $mnum, $munred, $ID_MEMBER;
add this after:
Code: [Select]
global $galleryurl;

Lastly find:
Code: [Select]
$yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=\"_blank\">$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
add this after:
Code: [Select]
$yymenu .= "$menusep<a href=\"$galleryurl\">$img[gallery]</a>";

This takes you to the gallery. Nothing else really needed editing with this mod because it has it's on tables that are just linked to the yabbse tables.

If someone fixes this so that the array actions work that's cool. I just wanted to tell everyone how I got it to work if they were having problems. ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: Zombie on January 17, 2003, 11:44:29 AM
Thanks diva!
I've been racking my brain try to figure out that array problem.

I have another problem.  When I try to run the install.php for the gallery, nothing happens.

Ive tried re-downloading but I get the same problem.  What could it be, any suggestions?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 17, 2003, 12:51:51 PM
Make sure everything is chmod right.
Also, are you using the gallery that was included in the zip with the mod. I know some people made the mistake of trying to use the gallery from the coppermine site. Chmod is usually the problem though.
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 18, 2003, 06:22:59 AM
diva_uno,

You seem to be a kind and helpful soul; I have been lurking for quite some time, but now I am forced to actually post a question(s). I managed to get the Photo Gallery to install just fine as a separate gallery. But this mod is driving me nuts! I REALLY-REALLY want it for my board members, but everytime I try to run BoardMod to install it, I get the following error message on step 3 in the index.php (yabbse 1.40):
Code: [Select]
Step 3 ... failed - ERR(1): Search string could not be found
The search string in question:
Code: [Select]
else if ($action == 'yabbinfo') { include_once "$sourcedir/Admin.php"; showYaBBInfo(); }
Therefore, I have no idea where to put this, even if I were to do it manually:
Code: [Select]
else if ($action == 'gallery') { header("Location: gallery/"); }
Mind you, I'm no expert, but I'm not a complete goof either. But for the life of me, I'm stumped and frustrated and I REALLY-REALLY want this mod!

Please help me! Even a link back to the page where this was discussed (I have been going over the last 14 pages until my eyes burn).

Thanks in advance ...
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 18, 2003, 12:28:33 PM
In this case you do a manual install. If that is the only error you are receiving or even if there are more...I'll just tell you how to get that "else if" action into your index.php.
Just open index.php in "Notepad". After you open it go to Search>Find and either type in what you are trying to find...which is:
Code: [Select]
else if ($action == 'yabbinfo') { include_once "$sourcedir/Admin.php"; showYaBBInfo(); }
Or do a keyword search such as:
Code: [Select]
showYaBBInfo.
When you find the string of code that resembles exactly the code above...just add:
Code: [Select]
else if ($action == 'gallery') { header("Location: gallery/"); }
Right after it.
Sometimes boardmod doesn't work.

And thank you for what you said. I like to be helpful because I appreciate the help other people give me.
YabbSE is a great community.
;D
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 18, 2003, 12:51:06 PM
Thanks so much. I'll keep looking for that bit of code. But I have been searching for 4 days now and haven't been able to find it :o  You confirmed what I thought I needed to do.

Meanwhile, 5 minutes later ...


Nope. It isn't there. I even opened up the original zip file with a fresh yabbse in it and looked for it in that index.php (just in case an earlier mod removed it). That line just isn't there either ...
(http://www.pzsweb.com/nofind1.jpg)
(http://www.pzsweb.com/nofind2.jpg)
I'm SO bummed :'(

Is there a way of adding that line in some where (where? I have no idea)?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 18, 2003, 12:53:58 PM
Just send me your index.php to diva_uno@yahoo.com. I'll hook it up for you. ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 18, 2003, 01:03:29 PM
That's mighty generous of you :D  I'll email it to you now. Actually, I think I will email you both my exsisting index.php and the one in the original yabbse 1.40 zip. It would be best if I could get it going on my exsisting index.php, so I don't mess up my Smilie mod ;) (hope you find it, though I have my doubts)

Meanwhile, I might just download Yabbse 1.50 and see if that line is in there ... (but I am going to wait for 1.51 to upgrade)

Thanks a bunch :-*
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 18, 2003, 01:36:56 PM
OK....
I hope this works because I have to leave for work after I type this.
You are right...that line does not exist. I say put
Code: [Select]
else if ($action == 'yabbinfo') { include_once "$sourcedir/Admin.php"; showYaBBInfo(); }
right ater this line:
Code: [Select]
else if ($action == 'test') { include_once "$sourcedir/UserLanguage.php"; LoadLanguage(); }

Then put
Code: [Select]
else if ($action == 'gallery') { header("Location: gallery/"); }
Right after the Yabbinfo line.
If adding that Yabbinfo line messes something up in your board I would delete it and just keep the gallery line in there right after the loadlanguage line.

Hope that works!!!
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 18, 2003, 01:50:56 PM
Thank You
At least I know now that I wasn't just too stupid to find it. I think I'll take a nap and follow your instructions after a few Zs. I'll be back, to let you know how it turns out :D
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 18, 2003, 11:27:08 PM
This where things are now. Manually adding the lines you suggested and the ones needed for the rest of the mod, went fairly smooth. But I won't really know for sure until I get past this problem:
Code: [Select]
Warning: Failed opening './Sources/Subs.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site7/fst/var/www/html/yabbse/membersgallery/include/init.inc.php on line 22

Warning: Failed opening './Sources/Errors.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site7/fst/var/www/html/yabbse/membersgallery/include/init.inc.php on line 23

Warning: Failed opening './Sources/Load.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site7/fst/var/www/html/yabbse/membersgallery/include/init.inc.php on line 24

Warning: Failed opening './Sources/Security.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site7/fst/var/www/html/yabbse/membersgallery/include/init.inc.php on line 25

Fatal error: Call to undefined function: clicklog() in /home/virtual/site7/fst/var/www/html/yabbse/membersgallery/include/init.inc.php on line 45
That's what happens when I try to run the install.php for the gallery. I chmodded everything appropriately and the tables showed up in MySQL databse, but no go as of right now.

As far as having made a directory name change from gallery to membersgallery, I made the appropriate changes to the index.php to account for that path. Plus, these are the same errors I got several days ago when attempting the install. And as I mentioned, the independent Photo Gallery installed and is working fine on my site.

Back to the errors; is ths a deal breaker? Is there a solution to this?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 19, 2003, 12:59:28 AM
Just got home...
I read your post and instantly I knew I had this same problem.
What you have to do is open include/init.inc.php that is in your gallery directory and find these line:
Code: [Select]
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "$sourcedir/Subs.php";
include_once "$sourcedir/Errors.php";
include_once "$sourcedir/Load.php";
include_once "$sourcedir/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";


You have to put your complete path to all of these. Get rid of "$sourcedir" and put complete path.  A lot of people was having this problem for some reason.
But with that it should work.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 19, 2003, 01:01:12 AM
Oh...and you won't have to reinstall...at least I don't think you do. Just fixing that and uploading it should make it all work.
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 19, 2003, 01:18:00 AM
I tried doing your last suggestion, but it took me backwards from where I had finally gotten while you were at work. What I did find is that this almost works:
Code: [Select]
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";
The only problem that I see so far, is that it isn't reading my template properly. The menu buttons are text instead of images and the gallery index page just hangs there. But we're getting closer ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 19, 2003, 01:38:04 AM

Actually there is no template.html. I would figure an html page with php in it would not fuction correctly. In the Subs.php file find this line :
Code: [Select]
if (!file_exists($templateFile))
     $templateFile = $boarddir."/template.html";


And change it to this:
Code: [Select]
if (!file_exists($templateFile))
     $templateFile = $boarddir."./template.php";


Just that simple.
In older post I noticed everyone was trying to figure this out. No need to have 2 of the same file on your server.


This a quoted from one of my older post. This may be the problem. I think I saw somewhere on this thread where someone was getting text instead of a button. Maybe in the first few pages.
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 19, 2003, 02:11:31 AM
That didn't seem to do it, but I put a template.php in my gallery folder and added ../ to a few of the paths and it doesn't hang any more.

Now, if I can get the Gallery button to show up on the main board menu, I'll have my testers give it the once over :)

I'm guessing it's another path issue ...
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 19, 2003, 02:56:08 AM
I got the gallery button to show up now on the main board :D  But I had to do this to get it to work:
Code: [Select]
<TD bgColor=#afc6db><yabb menu> <A
href="http://www.pzsweb.com/yabbse/membersgallery/index.php?action=gallery"><IMG
alt="Member's Photo Gallery" src="http://www.pzsweb.com/yabbse/YaBBImages/gallery.gif"
border=0></A> <yabb galleryMenu> </td>

Which, as long as it works, I guess it will be OK. I even logged out to test whether I could upload a picture or not, and I couldn't ;D  Now to see if the other members can create albums and test it up right.

Thank you so much for all your help!!! (diva_uno)  Please feel free to join my yabb! You probably won't find the kind of topics that you can sink your teeth into, like you do here, but we are a friendly bunch :-*
Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on January 20, 2003, 03:26:37 AM
Gallery works fine on my 1.4.1 board.. apart from the sorts dont seem to work?!? Click on data or name sort.. and they dont do anything.

???
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 20, 2003, 06:31:49 AM
Oh Great! I thought everything was running smoothly until you had to point that out ;)

I hadn't noticed that until just now ::)

One thing I have noticed, is when you try to reply to an e-card from your inbox (outlook express), the address has extra stuff in it that screws it up and won't let you send it automatically ???  This may have been pointed out before, but I just noticed that too. As nifty as the gallery is, I suppose this is a minor inconvenience.
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on January 20, 2003, 10:54:46 AM
yeah, my sort buttons did work, and then as a week or so ago they stopped working   ???

oh well...it's a minor thing i guess

Title: Re:[Beta] Photo Gallery Mod
Post by: PioneeR on January 20, 2003, 01:04:27 PM
Just niggles me  ;D


yeah, my sort buttons did work, and then as a week or so ago they stopped working   ???

oh well...it's a minor thing i guess


Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on January 20, 2003, 11:09:57 PM
Hello,

i just got back from my vacation last week
now trying to catchup with my classes, since i skipped the 1st week of school :P
i have a lot of reading too to do here
v1.5 looks nice, i'll have to try it in the near future
this gallery topic has gone 15 pages
dunno if i could keep track for the stuffs that are need to be fixed
gotta check the boardmod site (if its done) and the new mods too ;)

Hey, Spaceman-Spiff, you have 49 messages, 24 are new.
So many messages after a month... ::) ::)
Title: Re:[Beta] Photo Gallery Mod
Post by: charlottezweb on January 21, 2003, 12:18:12 AM
YAY!  does this mean there might be an upgrade for 1.5/1.5.1 when released?  

*crosses fingers*

Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 21, 2003, 12:42:01 AM
There isn't much to do to upgrade it to v1.5.
I fixed mine where it works. It's just the array action in the index.php that needs to be changed.
Title: Re:[Beta] Photo Gallery Mod
Post by: Omar Bazavilvazo on January 21, 2003, 01:19:08 AM
The gallery uses its own files then??

that's cool :)
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 21, 2003, 03:57:10 AM
Spiffman,

It would be nice, although I don't know if it's possible to have each user be able to lock his or her own Gallery. Not from viewing, but from uploads. So far it hasn't been an issue (we just got started), but the question and concern has been raised by a Board Member. I had to handle it like this ...


[glow=Black,right,300][size=9]OOPS![/size][/glow]
CLARIFICATION
It turns out that I was wrong about your albums :-[
Any user (that's you guys)
Can upload to any of your albums :-\
It seems that only I have the Authority to lock an album.
I read it in the help file for the administrator ...



"Allow user uploads

When you create a new album, you can choose to allow or disallow user uploads. If you choose "Yes", everyone is allowed to upload pictures to that album. If you choose "No", only people with admin password can upload to that album."


I thought that you guys see what I see,
which is this ...
(http://www.pzsweb.com/yabbse/membersgallery/clarification.jpg)
Someday there may be a fix for this situation.
But for now, assuming that everyone would like having
their own personal album, with their own pictures in it,
instant message me when an accident occurs.
As the administrator,
I can always move pictures into their intended album

Sorry about the confussion ::)
I never tried logging in as anyone but myself,
The Administrator Dude
AKA
The Babe Magnet ô¿ô
Therefore, I couldn't see what you guys see :o
And I never thought to read any of the Instructions
or Help Files until just a little while ago :Smilies/blush:
[/font]



I imagine we can deal with it the way it is, but if you get to feeling really bold and come up with a way to do this, I would truly appreciate it. No biggie though. Take your time ...

PS. Please disregard the Babe Magnet reference. That's just a running joke on my board ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on January 21, 2003, 02:39:50 PM

Spiffman,

It would be nice, although I don't know if it's possible to have each user be able to lock his or her own Gallery. Not from viewing, but from uploads. So far it hasn't been an issue (we just got started), but the question and concern has been raised by a Board Member. I had to handle it like this ...


[glow=Black,right,300][size=9]OOPS![/size][/glow]
CLARIFICATION
It turns out that I was wrong about your albums :-[
Any user (that's you guys)
Can upload to any of your albums :-\
It seems that only I have the Authority to lock an album.
I read it in the help file for the administrator ...



"Allow user uploads

When you create a new album, you can choose to allow or disallow user uploads. If you choose "Yes", everyone is allowed to upload pictures to that album. If you choose "No", only people with admin password can upload to that album."



I know what you mean. It has been requested before, and  I think it will be a good idea to restrict the album for yourself only. I'll wait till YSE1.51 is final, then I'll start working on the mod again.
Title: Re:[Beta] Photo Gallery Mod
Post by: misterfyc on January 21, 2003, 03:52:04 PM
 >:( I Have some toubles to get this mod working under yabbse 1.5.0....
The next errors I see when I open the index.php:
Parse error: parse error in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php on line 41

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 159

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 160


Someone can help me out this?
Title: Re:[Beta] Photo Gallery Mod
Post by: misterfyc on January 21, 2003, 03:52:16 PM
 >:( I Have some toubles to get this mod working under yabbse 1.5.0....
The next errors I see when I open the index.php:
Parse error: parse error in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php on line 41

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 159

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 160


Someone can help me out this?
Title: Re:[Beta] Photo Gallery Mod
Post by: misterfyc on January 21, 2003, 03:52:48 PM
 >:( I Have some toubles to get this mod working under yabbse 1.5.0....
The next errors I see when I open the index.php:
Parse error: parse error in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php on line 41

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 159

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/gallery/include/config.inc.php:41) in /home/httpd/vhosts/foundationyouthcare.net/httpdocs/yabbse/Sources/Subs.php on line 160


Someone can help me out this?
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 21, 2003, 04:46:47 PM
You might want to delete 2 of the 3 exact post you've made. :P

Anyway...go to www.yoursite.com/yabbse/gallery/
Or whereever you have your gallery installed in your board folder and see if it is working. If it is...this is just the array action in the index.php the reason why it isn't working. Don't worry about adding anything into the index.php and check out my post on page 14 of this topic.
If you don't see gallery when you go to it. You don't have it installed correctly.
I have it working with 1.5
Title: Re:[Beta] Photo Gallery Mod
Post by: misterfyc on January 21, 2003, 06:02:56 PM
Sorry for the 3 posts, but I got a error screen when I posted.

Oke, I have trying the solutions in your other post on page 14 but, the same error stays. Yes I can see the gallery when i login tot index.php, but thats all.
The error is a parse error .

I will try a new complete installation.
Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on January 21, 2003, 09:54:09 PM
I wasn't talking about if you can see it when you login to index.php....I asked can you see it  when you goto http://yoursite.com/yabbse/gallery
If you can....there is no reason to reinstall.
You just need to make sure you did not put anything into the index.php file of your board. The only thing that needs editing is the Subs.php file...
Title: Re:[Beta] Photo Gallery Mod
Post by: PZ on January 22, 2003, 01:31:28 AM
Quote
I know what you mean. It has been requested before, and  I think it will be a good idea to restrict the album for yourself only. I'll wait till YSE1.51 is final, then I'll start working on the mod again.


Spiff,

May I call you Spiff? Thanks. No rush. That feature would be an added plus, but this mod is pretty cool even as it stands :D

Thanks!
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on January 22, 2003, 02:59:35 AM
Is this functioning in yapp?
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on January 22, 2003, 03:17:27 AM
i think someone made hacked it again for yapp
not sure if its finished or not, check in yapp completed mods board :)

Quote
May I call you Spiff?

err... why not... ;D
Title: Re:[Beta] Photo Gallery Mod
Post by: CrimSon_ReD on January 22, 2003, 01:40:53 PM
Yes I did but for some reason I get som crappy errors.
thx anyways!
Title: Re:[Beta] Photo Gallery Mod
Post by: fruity_baby on January 25, 2003, 02:02:00 AM
I tried before to install but to no avail so is waiting for 1.5.1!

Quick question, does the Gallery have the option or is already available to create categories for groups of photos? For example, main categories, sub cats then groups of photos within sub cats?

If not is this option being considered?
Title: Re:[Beta] Photo Gallery Mod
Post by: Julio on February 02, 2003, 12:33:23 AM
I have installed this mod in 1.4.1 and it seems to work. I can create albums and I can enter as administrator.

BUT if anyone try to upload an JPG image (GD is installed on my system) gallery says:
"The image you have uploaded is corrupted"

If I search new pictures it find every image file but it can't show tumbnails with 'showthumb'.

If you run 'showthumb.php' directly:
Quote
Warning: imagecreatefromjpeg: 'albums/userpics/1999_4tenores.jpg' is not a valid JPEG file in /home2/www/camerata/yabbse/gallery/showthumb.php on line 75

Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home2/www/camerata/yabbse/gallery/showthumb.php on line 78

My PHP info says:
Quote
GD Support enabled
GD Version 1.6.2 or higher
JPG Support enabled
PNG Support enabled
WBMP Support enabled

Please go to http://www.camerata.es/yabbse/gallery/ for test.

Any suggestion?
Thanks in advance.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 02, 2003, 02:46:26 AM
i get this msg when trying to upload a png image:
Quote
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /include/functions.inc.php on line 487


maybe u put GD2 in the setting instead of GD1 for thumbnail method
Title: Re:[Beta] Photo Gallery Mod
Post by: Julio on February 02, 2003, 12:49:53 PM
Quote

i get this msg when trying to upload a png image:
Quote
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /include/functions.inc.php on line 487

maybe u put GD2 in the setting instead of GD1 for thumbnail method


I obtain this message with GD2 in settings.
With GD1: ???
Quote
Warning: imagecreatefromjpeg: 'albums/userpics/1999_4tenores.jpg' is not a valid JPEG file in /home2/www/camerata/yabbse/gallery/showthumb.php on line 88

Warning: Supplied argument is not a valid Image resource in /home2/www/camerata/yabbse/gallery/showthumb.php on line 92

Warning: Cannot add header information - headers already sent by (output started at /home2/www/camerata/yabbse/gallery/showthumb.php:88) in /home2/www/camerata/yabbse/gallery/showthumb.php on line 93

Warning: Supplied argument is not a valid Image resource in /home2/www/camerata/yabbse/gallery/showthumb.php on line 95

Help, please.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 02, 2003, 04:00:50 PM
im not sure what the problem is, but i think your PHP version is outdated
you're currently using PHP Version 4.0.6

from Coppermine readme file:
Quote
To use this script you need a server with :
- a not too old version of PHP (Maybe PHP >= 4.0.6 is OK)


from YSE download page:
Quote
To install and run YaBB SE successfully you server needs to meet or exceed these requirements
   * mySQL 3.22
   * PHP 4.1


if u need to ask for the specific requirements for coppermine script, pls ask in http://www.chezgreg.net/cpgboard/
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 02, 2003, 05:46:08 PM
First, thanks for this great mod!

I had to hard code a couple of paths and copy the template into the gallery folder, strange this only effects some systems.

I think I've run across a bug in coppermine. In the import images function I get
Code: [Select]
Fatal error: Call to undefined function: db_connect() in /home/virtual/site5/fst/var/www/html/Forum/gallery/searchnew.php on line 42
I can't find that function any where in the coppermine code. Anybody know what this should be?

P.S. I didn't read this entire thread, so if this has been answered just smite me and steer me to the answer.
Title: Re:[Beta] Photo Gallery Mod
Post by: Kryz on February 02, 2003, 08:13:31 PM
OK I have 95 % of this damn thing working on my board that is running 1.5.1 RC 38 with a whole mess load of mods. Now the problem is I have the "Gallery" icon open a new windows (~gallery/index.pgp) but id like to be able to NOT spawn a new windpow but rather load my template around it such that the photoviewer appears in a similar way to the way the calendar or message board appear.. any help would be appreciated im brain dead after this weekend getting all these mods to finally work together .. PLEASE HELP!!!

yabbse/index.php
Code: [Select]
'gallery'=> array('$boarddir/gallery/index.php', 'gallery'),

yabbse/Subs.php
Code: [Select]
$galleryurl = "gallery/displayimage.php?album=1&pid=18&slideshow=2000";
----------------------------------------------------------------------
global $runningGallery;
   if ($runningGallery) { $yycopyright = "<small>Gallery powered by <a href=\"http://www.chezgreg.net/coppermine/\" target=\"_blank\">Coppermine Photo Gallery</a> v1.0 RC 3</small><br>\n".$yycopyright; }
-----------------------------------------------------------------------
global $galleryurl;
$yymenu .= "$menusep<a href=\"$galleryurl\" target=\"_blank\" ><$img[gallery]\"></a>";
-----------------------------------------------------------------------


the files are all correct i just need a way to get this to act as a portal ... Helppppppppppppppppppppppp]

Title: Re:[Beta] Photo Gallery Mod
Post by: diva_uno on February 03, 2003, 11:48:25 AM
Kryz...
Check out my post on page 14 of this topic.
I had not figured out how to get the array to work with the index.php file....but I fixed it where it is no longer needed. I posted all the instruction there.
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 09, 2003, 03:42:52 AM
Is there a way to set this up so users can delete the images they uploaded? I work with artists and they don't like not being in control of their work.  ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 15, 2003, 10:48:46 PM
OK, all you folks playing with the (way cool) photo gallery hack. I've made a little add on that makes the gallery use buttons more like the rest of the YaBB forum.

I sure hope y'all find this useful! :)

Download here:
http://www.nerd3d.com/Forum/index.php?board=13&action=display&threadid=130&start=0

Demo Site:
http://www.nerd3d.com/Forum/gallery/
Title: Re:[Beta] Photo Gallery Mod
Post by: GWP on February 22, 2003, 02:54:48 PM
God
I would kill (well thats a bit over the top) for this mod.
I may even start my forum again and use 1.4 (I use 1.5.1 at the mo)
Nerd3d, I see you have it on your board, but you are using the coppermine version.
It looks good and blends well into your site.
Was that hard to do?
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 22, 2003, 04:56:03 PM
The mod is pretty much stock. As you can see I created the YaBB style buttons and hacked the menu function to use the image style buttons. (You can get the buttons and hack at my site) I did some real minor hacking to move the buttons along the top of the gallery.

I also changed some security stuff to allow users to delete their own posts.  The function is pretty weak so I wouldn't  recommend that to everybody. I work with artists and they aren't going to post stuff unless they have control over it. If somebody hacks it and delete all the pictures I'll just restore them. That's what backups are for.

Spaceman-Spiff has done a really good job of integrating this into YaBB.
Title: Re:[Beta] Photo Gallery Mod
Post by: GWP on February 22, 2003, 05:15:06 PM
Well, it still seems too much for a php virgin like me :)

Quote
Spaceman-Spiff has done a really good job of integrating this into YaBB.
Is his script comp with 1.5.1 (maybe i should ask him myself  ;D

Thanks Nerd3d, but the amount of work and possible pitfalls for someone like me, I dont feel confident enough to do it.
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 22, 2003, 05:30:26 PM
Just do it. What I know about PhP would cover the head of a good sized pin and I pulled it off. To do a stock install all you have to do is let the BoardMod program to apply the MOD. Then add a single line to my template. The only glitch I had was I needed to put my template in the gallery folder too. And a couple of lines in init.inc.php needed to have their paths hard coded. If you get messages about "couldn't find subs.php" post a message and I'll show you where to make the change. (I believe the instructions are in this thread somewhere already, but who want's to read 17 pages to find it!)
Title: Re:[Beta] Photo Gallery Mod
Post by: GWP on February 22, 2003, 05:35:04 PM
Nice one Nerd3d. ;D
I have drank too much wine tonight trying to sort various other things out. when I wake tomorrow i will start on it and see how i get on.
I may will backup my forum first as it has taken me ages to get this far.

Considering what forum I was using a year ago (not Yabb) this forum is like a godsend to my members.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 22, 2003, 05:44:37 PM
Quote
Spaceman-Spiff has done a really good job of integrating this into YaBB.
Is his script comp with 1.5.1 (maybe i should ask him myself  ;D

no, it's not for 1.5.1 _yet_
i plan to add these in the next version:


dunno what else i will do

Nerd3d, interested in helping out coding/enhancing /making more mods for it?
Title: Re:[Beta] Photo Gallery Mod
Post by: GWP on February 22, 2003, 05:49:11 PM
I am already down on my knees praying for the upgarde to 1.5.1 :)
Is it much of a pian to convert, using boardmod to make it work on 1.5.1??
(heres hoping not!)
Title: Re:[Beta] Photo Gallery Mod
Post by: GWP on February 22, 2003, 05:54:32 PM
maybe an album viewable only by a certain membergroup?
or
autolnk system back to the main forum for people who want to discuss photos?
(Ok shut up, now your asking too much)
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 22, 2003, 05:55:35 PM
I don't know how much help I can be. I don't know much about PhP. Although I'm a decent Hack. I'm pretty good at figuring out what somebody's doing with code. (Even on an unfamiliar language)

Feel free to add what I've done so far to the YaBB + Coppermine mod.

The only feature I'd like to see is an official "user can delete his own image" mod. My present implementation is, I'm sure, very weak. If you'd like the details on this you can IM me here or at my board.

http://www.nerd3d.com/Forum
Title: Re:[Beta] Photo Gallery Mod
Post by: DJTommyC on February 23, 2003, 02:20:07 PM
Boardmod can't find the lines it is searching for, I can't either..
I'm using YaBB SE 1.5.1RC42.
What to do?
Very cool mod by the way..
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 23, 2003, 03:11:23 PM
Spaceman Spiff hasn't ported it to 1.5.1 yet. You'll have to run 1.4.1, probably till 1.5 is out of beta.
Title: Re:[Beta] Photo Gallery Mod
Post by: DJTommyC on February 23, 2003, 06:20:39 PM
I'm sorry but that s*cks a little..
What can I do to make it work? Can't be that much a difference?
Grtz
Tommy
Title: Re:[Beta] Photo Gallery Mod
Post by: Happy Axeman on February 23, 2003, 10:51:03 PM
I would like this very much for 1.5.1 too.
I would help if I could, but I'm still picking things up  >:(
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 24, 2003, 12:34:08 AM
dont worry, i'll upgrade this mod
just havent found the time or interest for this mod lately ;D :P
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 24, 2003, 01:30:52 PM
I almost forgot another tiny hack. My users like to post long comments with their images. This is a one liner but it's cool. It changes the input field for the image description form an input box to a text area. In upload.php change line 68 from this:
Code: [Select]
<input type="text" class="textinput" name="msg_body"  maxlength="2000" style="WIDTH: 100%;">to this:
Code: [Select]
<TEXTAREA NAME="msg_body" ROWS="3" COLS="50" STYLE="WIDTH: 100%;"></TEXTAREA>
If I knew how to use BoardMod I could probably make this into a "real" mod ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 24, 2003, 03:55:42 PM
i've been wanting to do that too, and change the smilies using yabb smilies
Title: Re:[Beta] Photo Gallery Mod
Post by: Wistman on February 26, 2003, 10:16:10 AM
Is this download still available? I'd like to try it please

Link is not working
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on February 26, 2003, 01:54:24 PM
It looks like the link has changed try this:

http://www.immortalshades.com/spaceman/mods/Gallery0.94.zip

Hey Spaceman-spiff. If you need a place to park it I can host the mod, or mirror it, I'll be happy to.
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on February 26, 2003, 11:53:42 PM
There are a couple of you that have gotten this mod to work with 1.5, can I get some suggestions?  When I correct the Include_Once lines in: "init.inc.php" so that the paths work correctly, I then receive the message:

Unable to connect to database!
Check your configuration

MYSQL Said:

If I add the Varibles for my database info to the "init.inc.php" file then I get past that but get and error that says:

While executing query "SELECT count(*) from "

mySQL error: You have an error in your SQL syntax near '' at line 1

I'm at a loss and any suggestions of what to look for would be greatly appreciated.

My Forum (http://www.carrscorner.com/yabbse)
Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on February 28, 2003, 12:51:31 PM
Follow up to the last question, I think this has something to do with what needs to be entered into the array in the yabbse/index.php.  This is what I have in there and have tried a couple different things but...

'gallery'=> array('$boarddir/gallery/index.php', 'gallery'),

since galley is not a function in the index.php though this won't work as suggested in another post.  Is it possible that the "* Main Code" in the index.php needs to be turn into a function so that a call can be made to it from the yabbse index.php array? ???

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 28, 2003, 03:27:22 PM
since there are so many requests, i'll release the 1.5.1 version without gallery modification, just with a new mod file
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on February 28, 2003, 03:38:31 PM
You are a scholar and a gentleman.  I look forward to the release.  I program in a several languages, but have just started with PHP and was driving myself crazy. Though some say I was there long ago. ;D

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Julio on February 28, 2003, 04:53:29 PM
There's a new version of Coppermine Photo Gallery. It has a lot of new and interesting features...

What about to improve the mod?
We will need a new mod including the upgrade.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on February 28, 2003, 05:06:32 PM
done, made a .mod version for YSE1.5.1
i changed init.inc.php for 1.5.1 version
nothing else is new...

check the first post for the link ;)
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 02:28:13 AM
Everything seems to be working now except, I get this error message when I try to send an e-card.

Fatal error: Call to undefined function: gzcompress() in /usr/home/jackcarr/htdocs/yabbse/gallery/ecard.php on line 56

thoughts?

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 10:37:38 AM
Rank amateur question here.  Trying to install for the first time.  According to the installation instructions:

4. create a folder for your gallery inside YSE directory, recommended directory name: 'gallery'

5. upload everything in Coppermine package acording to the directories

Does this mean install all Coppermine packages into the "gallery" directory (i.e. <domain>/YSE/gallery) or into the YSE directory (i.e. <domain>/YSE).  

I did the former and am getting wierd results.

Help!

TIA,

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 10:45:28 AM
You will be installing into your domain/yse/gallery directory.  You will end up with several files and 3 directories called "albums, images and includes" all within the gallery directory.

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 10:57:49 AM
Hmm,  when I try to access the gallery from my yse home page (http://www.sccmas.org/forum/index.php) by hitting the gallery button, I see the following:

http://www.sccmas.org/forum/index.php?action=gallery.

If this means "change to the gallery directory and load index.php" fine But I'm getting what seems to be a permissions error:

You don't have permission to access /forum/gallery/ on this server

...even though I've got the gallery directory set wide open (read, write execute) everyone.  Ideas? (and thanks!)

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 11:10:08 AM
Have you check the permissions on some of the individual files. I find that sometimes with my FTP that permissions on files need to be done seperately from the directory.  But, somewhere there is a permissions problem, my judgement for following the link.

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 12:11:20 PM
Ok, making progress.  Now the path to the images file seems to be wrong.  The paths from within the gallery directory to the images are are relative and point to the gallery root, not YSE (which is where they are.  Is there a variable somewhere with the coppermine source that modifies these paths (or did you have to hard code them).

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 12:17:44 PM
The only image that I had a problem with was the selogo.gif and I just created a directory under the Gallery called YaBBImages and placed that one image in it.  Later I will probably look for the relative path and change it, but maybe some else can let both of us know where to look.

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on March 01, 2003, 02:23:27 PM
Yeah, some of us had to put a copy of the template in the gallery folder for some reason. The easiest fix is to just to copy the YaBBImage folder in the gallery folder.
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 02:30:46 PM
Follow up to:
Quote
Everything seems to be working now except, I get this error message when I try to send an e-card.

Fatal error: Call to undefined function: gzcompress() in /usr/home/jackcarr/htdocs/yabbse/gallery/ecard.php on line 56

thoughts?

My host is using PHP 4.1.2 and the gzcompress() was available since 4.0.1, thought this might help determine why the script is saying it is undefined.  Thanks

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 03:30:49 PM
Finally got around the relative link problem by creating a symbolic link to the YaBBImages directory in the gallery directory.  Seems to work fine.
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 03:36:06 PM
Quote
Finally got around the relative link problem by creating a symbolic link to the YaBBImages directory in the gallery directory.  Seems to work fine.

Excuse what is probably a stupid question, but what is a symbolic link?  ???

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 03:42:36 PM
A symbolic link is the UNIX equivalent of a Windows shortcut or Mac alias.
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 01, 2003, 03:59:55 PM
Follow up to:
Quote
Everything seems to be working now except, I get this error message when I try to send an e-card.

Fatal error: Call to undefined function: gzcompress() in /usr/home/jackcarr/htdocs/yabbse/gallery/ecard.php on line 56

thoughts?

My host is using PHP 4.1.2 and the gzcompress() was available since 4.0.1, thought this might help determine why the script is saying it is undefined.  Thanks

Jack

YSE 1.5.1 is using a different method of gzip, no longer using gzcompress function, but it uses: ob_start("ob_gzhandler");
i dont know if it affects the ecard or not
if the problem still appear, u can open ecard.php, search for
Code: [Select]
      if (function_exists("gzcompress")) {
         $encoded_data = urlencode(base64_encode(gzcompress(serialize($data),9)));
      } else {
         $encoded_data = urlencode(base64_encode(serialize($data)));
      }
and replace it with
Code: [Select]
      $encoded_data = urlencode(base64_encode(serialize($data)));
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on March 01, 2003, 04:04:26 PM
I don't understand why on one system the file paths for the images work and on another they don't work.

Any reflection on this before I start hard coding paths in my installation?
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 04:05:43 PM
When trying to upload a photo, the photo get's placed in the albums/userpics/ directory properly but the results of db_input.php page is completely blank (no error code, nothing).

In the thumbnail settings, I've tried GD1 and GD2 but there is no effect on the output (there is no output).  Can anyone tell me what GD is and if I need to install it?

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: Nerd3d on March 01, 2003, 04:10:48 PM
If you didn't have GD installed you would probably get an error. So that's probably not the problem.

GD is a set of image functions built into PhP (PhP is built with GD) most newer versions have one or the other.
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 04:40:22 PM
Jack.&lt
Quote
YSE 1.5.1 is using a different method of gzip, no longer using gzcompress function, but it uses: ob_start("ob_gzhandler");
i dont know if it affects the ecard or not
if the problem still appear, u can open ecard.php, search for Code:
      if (function_exists("gzcompress")) {
         $encoded_data = urlencode(base64_encode(gzcompress(serialize($data),9)));
      } else {
         $encoded_data = urlencode(base64_encode(serialize($data)));
      }
 

and replace it with Code:
      $encoded_data = urlencode(base64_encode(serialize($data)));
 
Thanks , but you know that one thing is almost always going to raise another question or problem. The email sent just fine, took me to a e-card sent page.
However, on the e-mail the FROM: name appeared as (Jack.&lt) and if you try to reply you have the same thing in the TO: field.

Don't hate me, I'm starting to figure this php out and before long hope to solve these minor things myself

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 01, 2003, 04:43:49 PM
I don't understand why on one system the file paths for the images work and on another they don't work.

Any reflection on this before I start hard coding paths in my installation?

i dont understand either why the install script work for some people and doesnt for others

In the thumbnail settings, I've tried GD1 and GD2 but there is no effect on the output (there is no output).  Can anyone tell me what GD is and if I need to install it?
check in your phpinfo if u have GD installed
if its not available, i believe your host needs to install it
u will not be able to install it yourself, unless u're the server admin
if u dont know what phpinfo is, make a file called phpinfo.php and put this code inside the file:
Code: [Select]
<?php phpinfo(); ?>upload it, and view it using your browser
it should tell about your php settings/environment
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 01, 2003, 04:50:25 PM
The email sent just fine, took me to a e-card sent page.
However, on the e-mail the FROM: name appeared as (Jack.<) and if you try to reply you have the same thing in the TO: field.

i just realized i didnt put the latest ecard.php on the zip file
oh well... i'll fix it when i release a newer version
about the ecard, im not experiencing that problem in my gallery
pls try to send an ecard to: monkey at monkey-pirate dot com
so i can take a look at the problem
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 05:22:51 PM
Well, I appear to be using PHP 4.1.2 and I don't see any mention of GD after doing a phpinfo query.  I manage my server so I could install it but since I have to install something, should I install ImageMagick?  Is there a benefit to doing so?

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 01, 2003, 06:07:53 PM
GD doesnt support gif file, ImageMagick does
IM & GD2 have better thumbnailing result than GD1
i dont know anything else about them :P
maybe others can help more...
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 01, 2003, 08:26:34 PM
I'm rockin' and rollin'.  Thanks everyone for your help.  Installed PHP 4.31 with GD 2 support and everyting works.

ATTN: Mac OS X Server Users: the PHP mod that is installed with 10.2.4 does NOT include GD support.

Install Marc Liyanage's (thanks Marc) PHP Apache module.  

http://www.entropy.ch/software/macosx/php/

Be sure you modify your httpd.conf to disable "apple_auth_module".  

Steve Snell
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 01, 2003, 10:24:08 PM
to ppl having problems with ecard, try this file: ecard v0.95 (http://www.immortalshades.com/spaceman/ecard0.95.zip)
just overwrite the older version
tell me if it works fine or not
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 01, 2003, 10:33:11 PM
Spaceman-Spiff, you are great as always.  This file does fix the problem.

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: dschwab9 on March 02, 2003, 04:58:34 AM
Thanks for porting this to 1.5.1.  Been wanting to install for a while and haven't had time to try it manually, but now I'm up and running!

Got one minor problem:  If I try to log out of yabb while in the gallery, I get the error "Session check failure. Please try again."
Does anyone know a solution to this problem?  Anyone else experienced it?
My forum is at http://bbs.zuwharrie.com if anyone would like to take a look.

Thanks!
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 02, 2003, 06:36:05 AM
oh yea, i forgot to add the session handling :|
will do that tomorrow... working on something else atm...
Title: Re:[Beta] Photo Gallery Mod
Post by: Steve Snell on March 02, 2003, 12:54:01 PM
Is there any way to adjust the order of album display?  I know you have reorder options within the album itself.  Would be a great enhancement.

Steve
Title: Re:[Beta] Photo Gallery Mod
Post by: JRCarr on March 02, 2003, 02:40:15 PM
oh yea, i forgot to add the session handling :|
will do that tomorrow... working on something else atm...
I will be needing this update too. Thanks

Jack
Title: Re:[Beta] Photo Gallery Mod
Post by: Spaceman-Spiff on March 02, 2003, 04:46:00 PM
upgraded to 0.95, check the first post for links
this should fix some bugfixes, pls report here if u find more
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 03, 2003, 02:26:24 PM
I have tried to install this cool mod but everytime i try to open the gallery it only gives some errors and nothing more:

http://www.dekroegonline.nl/kroeg/gallery/

Please help me, and thanks in advance.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: dschwab9 on March 03, 2003, 03:20:25 PM
I just upgraded to 0.5, and now my gallery menu shows images instead of text.  How do I go back to the text menu?

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 03, 2003, 04:42:01 PM
I have tried to install this cool mod but everytime i try to open the gallery it only gives some errors and nothing more:

http://www.dekroegonline.nl/kroeg/gallery/

Please help me, and thanks in advance.
Parse error: parse error, unexpected '.' in /home/dekroego/public_html/kroeg/gallery/include/config.inc.php on line 77
there's something wrong in your config.inc.php, around line 77, so pls check that


I just upgraded to 0.5, and now my gallery menu shows images instead of text.  How do I go back to the text menu?
if u read the readme.txt file, u'll get this:
- to edit gallery menu, open 'functions.inc.php' inside 'includes' directory, search for "function yygalleryMenu()"
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: devilrazor on March 03, 2003, 09:45:17 PM
Problem !  :(

When you write in Pictures comments  
in the gallery 0.95 1.5.1 i get this error up

Quote
Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!

and i test it in the ---> Demo site <---
the same error come up there too
whats wrong !  ???

Please help !

Devilrazor
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 03, 2003, 10:32:42 PM
i never get that message
can u give me the url to your gallery when that error occurs?
what's your yse version?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 03, 2003, 10:46:50 PM
I have tried to install this cool mod but everytime i try to open the gallery it only gives some errors and nothing more:

http://www.dekroegonline.nl/kroeg/gallery/

Please help me, and thanks in advance.
Parse error: parse error, unexpected '.' in /home/dekroego/public_html/kroeg/gallery/include/config.inc.php on line 77


I had the same parse errors.  I had to delete the . before the gallery dirs.  My database doesn't like those.  but now, unfortunatley, I can't upload anything.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 03, 2003, 10:47:37 PM
Quote
Problem !  

When you write in Pictures comments  
in the gallery 0.95 1.5.1 i get this error up

Quote:
Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!
 
and i test it in the ---> Demo site <---
the same error come up there too
whats wrong !  

Please help !

Devilrazor

I had one of my users report the same error, but it went ahead and left his comment.  I couldn't seem to get that error my self, but I'm seeing Error on Page in the status box as soon as I click inside the comment text box.  This is on my site at: http://www.carrscorner.com/yabbse (http://www.carrscorner.com/yabbse) and also on your Demo Site.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 03, 2003, 11:00:16 PM
...but I'm seeing Error on Page in the status box as soon as I click inside the comment text box.  This is on my site at: http://www.carrscorner.com/yabbse (http://www.carrscorner.com/yabbse) and also on your Demo Site.

that will be a javascript error, but im not getting it here
what's your browser? do u enabled javascript there?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 03, 2003, 11:03:24 PM
I had the same parse errors.  I had to delete the . before the gallery dirs.  My database doesn't like those.  but now, unfortunatley, I can't upload anything.

which gallery dir?
maybe u need to put full path instead?
like /home/dekroego/public_html/kroeg/gallery

the settings im using:
Directory & file settings:
Path to album directory RELATIVE to Coppermine directory: album/
The directory where user uploaded pictures are stored (RELATIVE to album directory): userpics/
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 03, 2003, 11:17:49 PM
Spaceman-Spiff, I'm using IE 6 on one computer and IE 5.5 on the other and have the same problem.  Javascript is enabled, but think it would have to be just to use Yabbse(ubbc.js?)

Hate to mention it, but found another bug(I think) but logged in as a non-admin member, you get the "edit" and "delete" icons for any comments you add but will not let you to delete the comment. Says, "No changes were made...." but, logged in as an Admin I can delete comments made by myself and anyone else.  Sorry

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 01:40:23 AM
not ubbc.js, the gallery has its own js script file: script.js
make sure you have put <yabb GalleryHeader> inside your template, inside <head> tag
read the readme file for more tag instructions
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 04, 2003, 01:53:45 AM
No Spaceman, I understand that the Gallery has its own script file, I just meant that if you were running Yabb so that you needed your mod, then you had to have your Javascript enabled because of ubbc.js

Would it make a difference on the
<yabb GalleryHeader> if you didn't follow case? I had
<yabb galleryHeader>.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 01:58:25 AM
it should be fine, i checked your gallery, and the <script> tag is there
i cant think of any other reason why there's a js error :(
also the copyright error
if anyone sees that copyright error, can he/she give me a screenshot
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 04, 2003, 02:02:59 AM
Headed to bed, maybe think better in the morning.  Any thought about the Delete Comment problem, I mentioned a couple posts back.  Thank

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 04, 2003, 07:38:12 AM
I do not have permissions to delete/alter/move etc the config file.
Any thoughts about this?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 04, 2003, 10:33:33 AM
I had the same parse errors.  I had to delete the . before the gallery dirs.  My database doesn't like those.  but now, unfortunatley, I can't upload anything.

which gallery dir?
maybe u need to put full path instead?
like /home/dekroego/public_html/kroeg/gallery

the settings im using:
Directory & file settings:
Path to album directory RELATIVE to Coppermine directory: album/
The directory where user uploaded pictures are stored (RELATIVE to album directory): userpics/


I didn't mean gallery dir ;D
The parse errors I was getting were caused my the '.' before the "gallery pictures" under the // mysql table names.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 04, 2003, 10:55:06 AM
I'm still having problems uploading pics.  
I tried setting the full path, but nothing changed.
I still get a blank page after clicking upload.

Maybe removing the '.' did something?
But If I leave the '.' in, I get parse errors and the mod won't run. ???



http://www.swja.net/yabbse/gallery/
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: devilrazor on March 04, 2003, 02:09:58 PM
This is what happen to me ,
when i post i comments to the pictures


(http://www.vestfoldpaintball.no/yabbseorg/1.jpg)

(http://www.vestfoldpaintball.no/yabbseorg/2.jpg)
and wait  

(http://www.vestfoldpaintball.no/yabbseorg/3.jpg)
and so come this up :(

this is my Screenshot of the gallery
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 03:06:05 PM
I'm still having problems uploading pics.  
I tried setting the full path, but nothing changed.
I still get a blank page after clicking upload.

Maybe removing the '.' did something?
But If I leave the '.' in, I get parse errors and the mod won't run. ???
http://www.swja.net/yabbse/gallery/

what's your php version?
can u copy and paste the config.inc.php and IM it to me?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on March 04, 2003, 03:49:59 PM
Spaceman,
   We talked a few weeks back about some minor probs I was having with SSI and thanked you for your help on a bunch of things then, but I have to do it again here.

This is an awesome mod and it works great.  The only problem that I had installing it was having to create the tables and config.inc.php by hand.  Other than that, everything seems to be running flawlessly.


I did customize the look of the gallery to fit in my site completely and added another gallery menu to fit in my navigation bar.  If anyone would like to take a look at what kind of customizing you can do with it, the link to my gallery is here:  AMXcellence.com image gallery (http://www.amxcellence.com/community/index.php?action=gallery)

If there is someone really interested in adding the extra menu, let me know and I will try to put it into a mod for you.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 04:14:01 PM
yea, i heard there are some problems with the installer
i'm planning to make a new installer for the next major version
probably next version to be released is another bug fixes release ;)

btw, nice color layout
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 04, 2003, 04:25:26 PM
I hate to be a whiner, but could somebody please read my post.
Can anyone tell me how to modify the config file?
I cannot alter the config file because it is protected in some way...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 04, 2003, 04:38:21 PM
I hate to be a whiner, but could somebody please read my post.
Can anyone tell me how to modify the config file?
I cannot alter the config file because it is protected in some way...
Assuming that you have set the permissions correctly on that file (min 644) so that it can be written to, I have had occassions that I would have a file give me fits too.  Usually, I can ftp a copy back to my computer, then delete the copy on the server.  I then alter it like it is needed and ftp it back to the server and reset the permissions on it.  Most times this has corrected my problem.  I have never figured out the "WHY" behind it doing this though.  Someone else may have an answer to that to help avoid the problem in the future. Hope this helps or some one can come up with a better answer.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 04, 2003, 05:16:09 PM
I hate to be a whiner, but could somebody please read my post.
Can anyone tell me how to modify the config file?
I cannot alter the config file because it is protected in some way...
Assuming that you have set the permissions correctly on that file (min 644) so that it can be written to, I have had occassions that I would have a file give me fits too.  Usually, I can ftp a copy back to my computer, then delete the copy on the server.  I then alter it like it is needed and ftp it back to the server and reset the permissions on it.  Most times this has corrected my problem.  I have never figured out the "WHY" behind it doing this though.  Someone else may have an answer to that to help avoid the problem in the future. Hope this helps or some one can come up with a better answer.

Jack

I have tried to set permissions to 777 but i cannot delete the file no matter what.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 04, 2003, 05:23:46 PM
Did you set the permissions for the folder too?  I also have had trouble with some file names that used strange characters in the file name and the config.inc.php could be having a problem because of the 2 dots.  I don't have the problem with that, but one application I installed(The Gallery) has file names that start with a dot and/or numbers and had to have my host delete them for me after I changed to this gallery. You might want to check with your host to see if they can see any problems with this file.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on March 04, 2003, 05:34:35 PM
Thanks Spaceman.

Quote
I cannot alter the config file because it is protected in some way...

I have actually had this problem too.  I kind of forgot about it.  I set the config file once and haven't change it since.  I just editted the file manually and put it back.  I did try to go back and change some settings to check it and it still doesn't save to the file.  File permissions are definitely right.  I run Apache 2.0 on Win2k.

It's not a big issue for me though.  Thought the info might help to solve Yordy's problem.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: dschwab9 on March 04, 2003, 05:38:58 PM
I'm still having problems uploading pics.  
I tried setting the full path, but nothing changed.
I still get a blank page after clicking upload.

Maybe removing the '.' did something?
But If I leave the '.' in, I get parse errors and the mod won't run. ???



http://www.swja.net/yabbse/gallery/

I had to rmove the "." also to get rid of the parse errors, but it hasn't caused any other problems.  I'm running PHP 4.2.1
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 04, 2003, 06:05:48 PM
Yordy, your problem may be that the owner of the config file is changed (wrong). If the PhP process runs under a different user than the FTP you may not be able to delete the file (or change it) the only way I know of to fix this is to connect via telnet or SSH, logged in as root and delete the file that way. (Or chown the file to the FTP user)

chown command refrence (http://www.computerhope.com/unix/uchown.htm)

Free SSH client (http://www.ssh.com)

If this is the problem and you don't have root access you may have to ask your ISP to delete the file or chown it for you.

P.S. This is a Linux/Unix thing this wouldn't apply to a Win32 server
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 04, 2003, 06:44:57 PM
I cant get past this:

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Access denied for user: '*****@*****' (Using password: YES)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 07:27:57 PM
@ smacktalk: u should install the gallery in a subdirectory (prefered directory name is 'gallery') of the forum so it can find Settings.php in its parent directory

@ dschwab9: u're the 2nd person that reported this, a temporary fix is to change the $db_prefix . "gallery_album" into: "yabbse_gallery_album" (where yabbse_ is your db prefix)
i'll try to look into this issue again later...

@ Yordy: u cant even delete config.inc.php via FTP or your windows browser?
i dont know much about setting permissions in a windows server though... i know in *nix server, u'll need to have the file CHMOd 666 to be able to modify it via php
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 04, 2003, 08:04:46 PM
am getting this error:

There was an error while processing a database query.
You can try to refresh the page by clicking here.

Error Returned

mySQL error: You have an error in your SQL syntax near '' at line 1
:-\

need help ? anyone!

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 08:07:56 PM
when did u get that message? when installing or doing something else?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 04, 2003, 08:15:45 PM
when i click on (gallery , Album List , Latest Uploads)
i get that error .........Gallery Settings link working fine but when i save changes i get this erorr.

While executing query "INSERT INTO  (aid, title, description, uploads, date) VALUES ('', 'babylon', '', 'YES', NOW())"

mySQL error: You have an error in your SQL syntax near '(aid, title, description, uploads, date) VALUES ('', 'babylon', '', 'YES', NOW()' at line 1


Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 04, 2003, 09:32:07 PM
Spaceman-Spiff, I found the problem of a non-admin user not being able to delete their own comments.  In the delete.php file the following section:
   case 'comment':
      if ($AUTHORIZED){
         $query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]'";
      } else {
         $query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]' and author_id='$username'";
      }
Needs to have the variable in the "else" changed from "author_id" to msg_author".  The yabbse_gallery_comments Table contains the field msg_author not author_id.  Hope this helps any one else that have the problem.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 04, 2003, 09:44:36 PM
@ smacktalk: u should install the gallery in a subdirectory (prefered directory name is 'gallery') of the forum so it can find Settings.php in its parent directory

I have it installed at www.myserver.com/forum/gallery
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 04, 2003, 10:06:04 PM
thx jack for the fix :)

smacktalk, could u pls send me your url, so i can see the error msg, just IM me if u dont wanna give it out to public
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 04, 2003, 10:15:22 PM
thx jack for the fix :)

smacktalk, could u pls send me your url, so i can see the error msg, just IM me if u dont wanna give it out to public

Done. thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: dschwab9 on March 05, 2003, 05:20:33 AM
@ dschwab9: u're the 2nd person that reported this, a temporary fix is to change the $db_prefix . "gallery_album" into: "yabbse_gallery_album" (where yabbse_ is your db prefix)
i'll try to look into this issue again later...

Spaceman, I don't use a database prefixe for yabbse, my tables are simply "members", "messages", etc.
Could it be that the script can't handle a lack of db prefix?  ie: even if there is no prefix, something gets appended to the querries.
In my case, just deleting the dots made it work.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 05, 2003, 05:53:46 AM
the problem must've been in the installer then... :(
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: dschwab9 on March 05, 2003, 06:17:55 AM
the problem must've been in the installer then... :(

The tables were created correctly, though.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 05, 2003, 06:23:51 AM
Yordy, your problem may be that the owner of the config file is changed (wrong). If the PhP process runs under a different user than the FTP you may not be able to delete the file (or change it) the only way I know of to fix this is to connect via telnet or SSH, logged in as root and delete the file that way. (Or chown the file to the FTP user)

chown command refrence (http://www.computerhope.com/unix/uchown.htm)

Free SSH client (http://www.ssh.com)

If this is the problem and you don't have root access you may have to ask your ISP to delete the file or chown it for you.

P.S. This is a Linux/Unix thing this wouldn't apply to a Win32 server

I think you are right.
The host indeed runs a Linux server with Apache.
Damn, you guys are helpfull, thanks  :)
I will try to use tellnet or SSH to change it.
Thanks again.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 05, 2003, 10:02:58 AM
If I can create albums, why can't I upload pics?

Also I get this error when I try to search new pics under the gallery settings page:

Fatal error: Call to undefined function: db_connect() in /home/******/public_html/yabbse/gallery/searchnew.php on line 42


Any Ideas on these probs?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 05, 2003, 10:05:47 AM
The search new function is broken in Coppermine. ANd there for will be broken here. You heve to upload the images one at a time.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 05, 2003, 10:13:40 AM
I've only tried to upload 1 pic over and over and over..........

Stil get thes same prob.  the screen goes blank.

I can see the image in the albums/userpics folder, but nothing shows up in my database.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 05, 2003, 10:15:32 AM
... and no error. Great, that mekes it much mor fun to figure out where it's getting derailed. :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 05, 2003, 10:49:46 AM
Nice mod and everything working fine but only am having problem with my forum template........when i click on gallery button my forum banner pic disappear.

test it here: http://bart.routesys.com/~babylon/forum/index.php (http://bart.routesys.com/~babylon/forum/index.php)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 05, 2003, 11:00:10 AM
Some others have had this. Copy the YabbImages folder into the gallery folder (Copy, not move) or create a symlink to it. It's some paths thing that is only effecting a hand full of installations. (one of them mine  ;) )
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 05, 2003, 11:10:10 AM
I made the YaBBImage directory under my galley directory and only put the logo picture in it, as opposed to copying the the entire contents.  You don't need a duplication of all the images in the YaBBImage Directory.
I hate giving up any more of my server space than I have too. :)

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 05, 2003, 11:18:47 AM
thats a nice trick JRCarr   ;) but i have one more problem with my forum buttons table and when you click on gallery button the color of the background buttons table change cuz am using bakcground image for tables.

<TD bgColor=#F2D3B7 background="YaBBImages/catbg.jpg">
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 05, 2003, 11:29:01 AM
Well, obviously copy any graphics that are used by the gallery itself, all I was saying is that there are graphics in the that folder that are not needed by the gallery so don't duplicate those graphics.  In my case I only needed the one graphic, you may need a couple and someone out there my need more, just don't waste space on unused duplicates.  ;D

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 05, 2003, 11:40:43 AM
Is there any way to disallow guest from viewing members gallery or at least when guest click on gallery button the gallery menu wont show. ::)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 05, 2003, 11:50:22 AM
I used a code like this for a small chat I built that is for use of only one group on my board.  No guests or members that are not part of this group will even see the button.

        if ($settings[7] == 'Administrator' || $settings[7] == 'proupholsterers')
        $yymenu = $yymenu.$menusep."<a href=\"$boardurl/yabbse/chat/login.php?option=chat&username=$euser\">$img[chat]</a>";

You just need to adjust this for you galley button and who you want to see the galley button.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 05, 2003, 01:55:26 PM
Quote
if ($settings[7] == 'Administrator' || $settings[7] == 'proupholsterers')
        $yymenu = $yymenu.$menusep."<a href=\"$boardurl/yabbse/chat/login.php?option=chat&username=$euser\">$img[chat]</a>";

this will hide the gallery button but guest still can view the gallery ??? for example they can type this in their browser:
 http://dtg35.defenderhosting.com/~babylon/forum/gallery/ (http://dtg35.defenderhosting.com/~babylon/forum/gallery/)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 05, 2003, 02:15:02 PM
You can go into your template.php where the gallery menu is shown and put something similar to:

if (NOT 'guest')
        <yabb galleymenu>;

this would only show the galley menu if you are a member, obviously not the complete syntax but you get the general Idea.  I'm sure that there a several ways to get what you want.  In the index.php in the gallery directory, you should be able to use something similar to the first code to stop guest from going to the galley.  If no one else comes up with something during the day, I'll put something together for you this evening.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 05, 2003, 03:28:42 PM
thats a nice trick JRCarr   ;) but i have one more problem with my forum buttons table and when you click on gallery button the color of the background buttons table change cuz am using bakcground image for tables.

<TD bgColor=#F2D3B7 background="YaBBImages/catbg.jpg">

it's better to use complete url
background="http://yoursite.com/yabbse/YaBBImages/catbg.jpg"
or
background="/yabbse/YaBBImages/catbg.gif"


@ Zombie: do u have GD installed in your server?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 05, 2003, 03:33:25 PM
Quote
if ($settings[7] == 'Administrator' || $settings[7] == 'proupholsterers')
        $yymenu = $yymenu.$menusep."<a href=\"$boardurl/yabbse/chat/login.php?option=chat&username=$euser\">$img[chat]</a>";

this will hide the gallery button but guest still can view the gallery ??? for example they can type this in their browser:
 http://dtg35.defenderhosting.com/~babylon/forum/gallery/ (http://dtg35.defenderhosting.com/~babylon/forum/gallery/)

u can write something like this at the end of init.inc.php:
Code: [Select]
if ($username == "Guest")
   fatal_error($txt[223]);

i'm thinking to add membergroup settings for the gallery, it will be a lot of work tho :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: DJTommyC on March 05, 2003, 03:39:23 PM
I've got a problem with 'inclusion' I believe..
The second step of the installation gives a lot of errors..
What to do?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Yordy on March 05, 2003, 03:53:13 PM
Just wanted to let you guys know everything is working perfect now, thank you all.
Only have to modify everything to my needs.
I must say this mod kicks ass!  :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 05, 2003, 06:09:09 PM
Quote
u can write something like this at the end of init.inc.php: Code:
if ($username == "Guest")
   fatal_error($txt[223]);  

cool now guest can't view members gallery  ;D

Thanks spaceman for this kick ass mod  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 05, 2003, 07:59:49 PM
I cant get past this:

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Access denied for user: '*****@*****' (Using password: YES)


I have done all of the hints you gave me but I still get the same error.  :(

I even tried reinstalling everything from scratch. Any more ideas?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 05, 2003, 10:35:34 PM
i'll try to send u a modified installer when im back home (another 4-5 hrs)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 05, 2003, 10:43:26 PM
i'll try to send u a modified installer when im back home (another 4-5 hrs)

 ;D Thanks.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 05, 2003, 11:26:54 PM
How to run 'Gallery0.9.mod' in BoardMod? ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 12:45:38 AM
point the boardmod to index.php, then apply the mod
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 01:03:26 AM
I cant get past this:

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Access denied for user: '*****@*****' (Using password: YES)


I have done all of the hints you gave me but I still get the same error.  :(

I even tried reinstalling everything from scratch. Any more ideas?

i dont know why the installer wont pick up the values from Settings.php :|
is your settings.php located in the parent directory of the gallery installer?

im attaching a galler test installer, u'll need to open the file and edit the db settings first before running it
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 06, 2003, 04:34:31 AM
When I try to install a "Photo Gallery Mod", one of step is run 'Gallery0.9.mod' in BoardMod. I have download BoardMod (bm252setup.exe) from www.boardmod.org, but I don,t know how to use it. ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 06, 2003, 04:44:37 AM
i dont know why the installer wont pick up the values from Settings.php :|
is your settings.php located in the parent directory of the gallery installer?

im attaching a galler test installer, u'll need to open the file and edit the db settings first before running it

I will try that installer. Also, my Settings.php in in my forum directory along with template.php and English.lng etc... I also have the gallery directory created within my forum directory.. just like the Sources and YaBBImages directories.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 05:00:38 AM
When I try to install a "Photo Gallery Mod", one of step is run 'Gallery0.9.mod' in BoardMod. I have download BoardMod (bm252setup.exe) from www.boardmod.org, but I don,t know how to use it. ???

- download the zip version, unzip it somewhere
- go to Mods directory and delete everything there, make a new directory called 'YSE1.5.1' and put my .mod file there
- load the boardmod.exe
- browse for index.php (your yabb se files)
- apply the mod
- upload the changed files (i think only english.lng and subs.php)

read the BoardMod site's FAQ for more info
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 06, 2003, 05:42:41 AM
Ok, while trying to upload pics, the page use to stall.  I switched from GD and am running image::magick.  Doesnt' stall anymore.

But, maybe you can help with this error:

The picture '' can't be inserted in the album

Unable to create thumbnail or reduced size image.

Where do I start looking to try to get it to work?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 06:02:47 AM
change your thumbnail method to imagemagick in your gallery settings
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 06, 2003, 07:53:48 AM
already done that, and also have correct path to image::magick

Still nothing.
Could there be a problem with my Image::magick?
Or does it sound like a database problem?

here is a link to a test album, give it a try

http://www.swja.net/yabbse/gallery/
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 06, 2003, 09:29:09 AM
When I try to install a "Photo Gallery Mod", one of step is run 'Gallery0.9.mod' in BoardMod. I have download BoardMod (bm252setup.exe) from www.boardmod.org, but I don,t know how to use it. ???

- download the zip version, unzip it somewhere
- go to Mods directory and delete everything there, make a new directory called 'YSE1.5.1' and put my .mod file there
- load the boardmod.exe
- browse for index.php (your yabb se files)
- apply the mod
- upload the changed files (i think only english.lng and subs.php)

read the BoardMod site's FAQ for more info


I still have the following error when I loading the install.php page:

Notice: Undefined index: test_gd2 in D:\cgi-bin\yabbse\gallery\install.php on line 585

Notice: Undefined index: phpinfo in D:\cgi-bin\yabbse\gallery\install.php on line 592

Notice: Undefined index: impath in D:\cgi-bin\yabbse\gallery\install.php on line 71

The installer can not find the '
Notice: Undefined index: impath in D:\\\\cgi-bin\\\\yabbse\\\\gallery\\\\install.php on line 301
/' directory you have specified for ImageMagick or it does not have permission to access it. Check that your typing is correct and that you have access to the specified directory.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 06, 2003, 09:41:01 AM
curious, which are you using for images, GD2 or ImageMagic? If you are using GD2 you should have a path for Image magic. I only ask because both are referred to in the error messages.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 06, 2003, 10:25:56 AM
Does I need to change "ImageMagick configuration" in install.php?

What is ImageMagick? Does I need install it at my server?
 ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 06, 2003, 11:24:42 AM
Yes, ImageMagick needs to be loaded on the server to use.  I don't have any experience with ImageMagick yet so can't tell you much about it, but it can be downloaded for free.  If this is not your own server and is a host, you need to find out what they have loaded, GD1 or GD2. My host has the GD1 so that is what I set my gallery setting to use.  If you will create a file called phpinfo.php and place the single line
 <? phpinfo(); ?>  into it and ftp it up to you server and call it: www.yourdomain.com/whereyouputit/phpinfo.php you can see whether they are running GD1 or GD2.  You will find it do the list about half way under the section "gd".  Then set your gallery to the right one and remove any path you may have listed in the ImageMagicK path on the gallery settings.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 06, 2003, 01:41:03 PM
i dont know why the installer wont pick up the values from Settings.php :|
is your settings.php located in the parent directory of the gallery installer?

im attaching a galler test installer, u'll need to open the file and edit the db settings first before running it

I will try that installer. Also, my Settings.php in in my forum directory along with template.php and English.lng etc... I also have the gallery directory created within my forum directory.. just like the Sources and YaBBImages directories.

Sorry but now the error I get is:

mySQL could not locate a database called '' please check the value entered for this


All of my Database settings are in the new intaller correctly. :'(

EDIT - It looks like I had to add $db_name to the global line. Now it installed.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 04:47:22 PM
I still have the following error when I loading the install.php page:

Notice: Undefined index: test_gd2 in D:\cgi-bin\yabbse\gallery\install.php on line 585

Notice: Undefined index: phpinfo in D:\cgi-bin\yabbse\gallery\install.php on line 592

Notice: Undefined index: impath in D:\cgi-bin\yabbse\gallery\install.php on line 71

The installer can not find the '
Notice: Undefined index: impath in D:\\\\cgi-bin\\\\yabbse\\\\gallery\\\\install.php on line 301
/' directory you have specified for ImageMagick or it does not have permission to access it. Check that your typing is correct and that you have access to the specified directory.


u're on windows server, i guess some directory names will need to be changed, but before that, a question: do you have GD installed in your server?
ImageMagick is just optional, it has GIF file support, which GD1 and 2 dont have

@ Zombie: i dont know much about ImageMagick settings, can u try to post here: http://www.chezgreg.net/cpgboard/ in Coopermine 1.0 support, explain about your GD and IM settings
hopefully ppl there will know more about those stuff...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 06, 2003, 06:54:10 PM
some members are getting this error.

Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!  ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 06, 2003, 09:26:26 PM
i still dont know what causes it
cuz it shows to some ppl, but doesnt show to others
someone had a fix for it (removing the meta tag), check a page or two behind...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Zombie on March 06, 2003, 09:31:07 PM


@ Zombie: i dont know much about ImageMagick settings, can u try to post here: http://www.chezgreg.net/cpgboard/ in Coopermine 1.0 support, explain about your GD and IM settings
hopefully ppl there will know more about those stuff...

I went there, and my problems seesms to be common, but no fixes.

I don't know. I'm just about ready to scrap the whole thing :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 06, 2003, 11:11:18 PM
Quote
Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!

My member said he get that error when he posted comments on gallery section. ::)

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 07, 2003, 12:02:17 AM
Quote
Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!

My member said he get that error when he posted comments on gallery section. ::)


A couple of my members are having the same problem when posting comments, no one has complained about getting this error any where else.  I have been looking but find no reason for this error yet.  Any guess Space-Spiff

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 07, 2003, 04:54:30 AM
OK. Now that I finally got the gallery installed (thanks Spaceman-Spiff), how can I make it look like all of the rest? Mine is not formated.. CHECK IT HERE (http://gqr-enterprises.com/forum/gallery)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 07, 2003, 08:17:46 AM
Hi Spaceman-Spiff,

I am using WIN2k Server with IIS web service, I have following the procedure of installation, but still can't install the Photo Gallery. Any more step I have missing at the installation.



Installation Steps:
-------------------
1. upload 'gallery.gif' into your YaBBImages directory

2. run 'Gallery0.9.mod' in BoardMod  (I find a MOD  file with file name "GalleryInstaller_v0.9_yse1.5.1.mod", is it correct?)

3. edit your forum template and add these tags:
   - <yabb galleryMenu> Recommended place: right after <yabb menu>("<TD bgColor=#afc6db><FONT size=1><yabb menu><yabb galleryMenu></FONT></TD>", is it correct?)
   - <yabb galleryHeader> Recommended place: inside <head> after YSE <style> tag("<HTML><HEAD><TITLE><yabb title></TITLE>
<STYLE type=text/css><yabb galleryMenu>A:link {", is it correct?)
   - <yabb galleryBodyTag> inside <body> tag, example: <BODY text=#000000 link=#0033ff bgColor=#f5f5f5<yabb gallerybodytag>>("<BODY text=#000000 link=#0033ff bgColor=#f5f5f5<yabb galleryBodyTag>>", is it correct?)

4. create a folder for your gallery inside YSE directory, recommended directory name: 'gallery'

5. upload everything in Coppermine package acording to the directories (I extract "CoppermineYSE1.5.1-RC3.zip" to 'gallery' folder which inside Yabbse directory)

6. CHMOD 777 these directories: 'gallery', 'include' & 'userpics' (inside'albums')(I change these folder full access for "Everyone" in Win2k)

7. CHMOD 666 'style.css')(I change this file full access for "Everyone" in Win2k)

8. run install.php and follow the instructions(I have got the following error when I run install.php:

Notice: Undefined index: test_gd1 in D:\cgi-bin\yabbse\gallery\install.php on line 577

Notice: Undefined index: test_gd2 in D:\cgi-bin\yabbse\gallery\install.php on line 585

Notice: Undefined index: phpinfo in D:\cgi-bin\yabbse\gallery\install.php on line 592

Notice: Undefined index: impath in D:\cgi-bin\yabbse\gallery\install.php on line 71

Notice: Undefined index: impath in D:\cgi-bin\yabbse\gallery\install.php on line 286
 
After I click "Let's Go" button, I have got following error:
The following errors were encountered and need to be corrected first:

The installer can not find the '
Notice: Undefined index: impath in D:\\cgi-bin\\yabbse\\gallery\\install.php on line 301
/' directory you have specified for ImageMagick or it does not have permission to access it. Check that your typing is correct and that you have access to the specified directory.
)


For Security:
-------------
After done installing, set 'gallery' and 'include' directory back to CHMOD 775.


Post Installation Config:
-------------------------
- to edit settings, u must be logged on as the admin, then click the 'Gallery Settings' button inside Gallery
- to edit gallery menu, open 'functions.inc.php' inside 'includes' directory, search for "function yygalleryMenu()"

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 07, 2003, 01:00:39 PM
one more error in Explorer Taskbar when i click on comments field.

this what i see in Taskbar -->error on page


one more thing:To see the comments field I have to remove this code $exif = exif_read_data($filename,0,true); from line 58 in exif.inc.php file. :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 07, 2003, 01:54:18 PM
Quote
OK. Now that I finally got the gallery installed (thanks Spaceman-Spiff), how can I make it look like all of the rest? Mine is not formated.. CHECK IT HERE


The <yabb galleryHeader></HEAD> should look like this in your forum template.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 07, 2003, 06:13:10 PM
Quote
OK. Now that I finally got the gallery installed (thanks Spaceman-Spiff), how can I make it look like all of the rest? Mine is not formated.. CHECK IT HERE


The <yabb galleryHeader></HEAD> should look like this in your forum template.


Cool!!! Thanks.  ;D
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 08, 2003, 04:27:48 PM
My forum is set up in a directory called "Test" I have put the Gallery in a directory called "gallery" within "Test" and set up as per instructions.

when I run gallery/index.php I have had and have cleared a series of errors.

I still haven't got the gallery to run yet, but it seems to me that init.inc.php is not recognising the YaBB settings.php as all the errors are related to data set within settings.php

Any Ideas please?

Latest error is Fatal error: Call to undefined function: clicklog() in /Test/gallery/include/init.inc.php on line 47

I have the put the full url path for include_once - settings


Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 08, 2003, 05:05:19 PM
Quote
Latest error is Fatal error: Call to undefined function: clicklog() in /Test/gallery/include/init.inc.php on line 47

Check your Database and see if the installer inserts these three tables. 8)

yabbse_gallery_albums  
yabbse_gallery_comments
yabbse_gallery_pictures
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 08, 2003, 05:20:42 PM
Wistman, Are you getting "include" errors. I had to hard code some paths to the forum code.  In the init.inc.php file.

My code looks like this now...
Code: [Select]
# FROM YaBB
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
# Why do these need to be hard coded?
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
# Back to normal...
include_once "include/config.inc.php";
include_once "include/functions.inc.php";
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 08, 2003, 07:58:08 PM
Everything seems to work fine !!

Except for one thing..............whenever I change the CSS, I see no changes.  The style.css IS changed (I can see that), but it looks like it doesn't use it or something ?

My text keeps white, and that is a problem on the light background.

Does the board CSS overrule the Photo Gallery CSS ?!

"help" ??
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Snowman30 on March 09, 2003, 02:07:45 AM
Ive finally got this great mod working on a fresh install of 1.5.1 rc 44 after going thru the whole of this discussion and following all the confusing tips...

Everything seems to be working ok now except one thing, if you click on the picture information link you get the following error:

Quote
Fatal error: Call to undefined function: exif_read_data() in /home/hamilton/public_html/forums/gallery/include/exif.inc.php on line 58

Anyone have any ideas on this?

Also any idea when a mod would be available to allow members to create their own Albums, but with them setup in such a way as that admin can moderate them, and only the registered member can upload/delete from them?

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Snowman30 on March 09, 2003, 02:10:58 AM
Also how hard would it be to put the create an album section on a different page other than the index? I would rather just have a link button to create a new album on the index header.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 09, 2003, 04:30:28 AM
Likely your server does not have exif compiled in php. No biggie, you can turn this off in your gallery config...

Uncheck the "Wether to read EXIF data or not" option (Bout 2/3 down the page.

Putting the create gallery thing on another page would require a bit of work. You would need to create a whole new php page for the gallery creation.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 09, 2003, 04:35:15 AM
Quote
Check your Database and see if the installer inserts these three tables.


Yes the tables are there

Quote
Wistman, Are you getting "include" errors. I had to hard code some paths to the forum code.  In the init.inc.php file.
My code looks like this now...
Code: [Select]

# FROM YaBB
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
# Why do these need to be hard coded?
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
# Back to normal...
include_once "include/config.inc.php";
include_once "include/functions.inc.php";
Posted by: babylonking    


The only way I could get the "include_once" to work was to hard code using my full URL path on all the YaBB "includes"
The last two 'includes are in the "gallery/include" directory an work OK.

I then had to hard code the sql script, with username, password etc., to get it to find the tables.

It seems to me that athough it includes the "settings.php" etc, it doesn't use them or can't use them?

Oh yes BTW I'm using 1.5.1RC1 not sure what build (downloaded on the 26Feb)

I shall be spending another day on it today  :o

Any help would be apprecated
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 09, 2003, 05:24:12 AM
I'm almost afraid to mention this... Spaceman Spiff, are you sitting down. Y'all know that Coppermine 1.1 is in beta. I don't know when it will be out, but the immediate question is, "will be be able to hack it into YaBB?" (Somebody's already posed that question at the coppermine forum)

Spaceman, do you have a change log for hackin in 1.0 version? If you do I might be able to start looking at 1.1 to see what will need to happen to make it work.

It doesn't look like much of the core changed much in this build of coppermine. So it shouldn't be a huge undertaking to make the new version work. I definitely wouldn't get serious about hacking it till they have a stable version.

The new coppermine thread:
http://www.chezgreg.net/cpgboard/viewtopic.php?t=473
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 09, 2003, 06:30:23 AM
Everything seems to work fine !!

Except for one thing..............whenever I change the CSS, I see no changes.  The style.css IS changed (I can see that), but it looks like it doesn't use it or something ?

My text keeps white, and that is a problem on the light background.

Does the board CSS overrule the Photo Gallery CSS ?!

"help" ??

Does anybody have an idea ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 09, 2003, 02:38:05 PM
CHMOD 666 'style.css' and then try to change it again. 8)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 09, 2003, 02:42:04 PM
Nice try....ofcourse I had it CHMOD'ed 666.

I now use the same .css as my board (I use the external CSS mod), so the problem is solved.

My members LOVE it !
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 09, 2003, 02:48:16 PM
You seem to have the same problem as me.

When you are looking at an album there are options to sort by name and date.. if you click on any.. they dont do anything  ???

Nice try....ofcourse I had it CHMOD'ed 666.

I now use the same .css as my board (I use the external CSS mod), so the problem is solved.

My members LOVE it !
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 09, 2003, 04:42:17 PM
Quote
When you are looking at an album there are options to sort by name and date.. if you click on any.. they dont do anything  ???

Yes, that's true !

A GM pointed that one out to me.........

But I read this on the bug-list :

"made album sort to based on creation date, descending"

so maybe that is harcoded or something ?!

Will this be corrected soon ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 09, 2003, 04:45:12 PM
I think its something to do with the server... mine works... then it stops... wonder if its php related??

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 09, 2003, 04:47:28 PM
It works, then it stops ??

Does it sort the pictures, or doesn't it ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 10, 2003, 02:40:00 AM
My sort used to work fine... was working for weeks. Then one day it just stopped working  ???

I moved hosts.. worked again.... then a month later it stopped  ???  ???

The hosts had recompiled apache etc though.. so not sure if that caused it
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: mirepup on March 10, 2003, 04:56:28 AM
So - has anyone got the complete solution to the install problems?

I'm down to the
Quote
Unable to connect to database !
Check your configuration

MySQL said: No Database Selected
and would love to know what to do. I've tried editing my include_once settings in all different ways. If I really  screw it up, I get a blank page. When I set it to:
Code: [Select]
# FROM YaBB
include_once "/yabbse/Settings.php";
include_once "/yabbse/QueryString.php";
include_once "/yabbse/english.lng";
include_once "/yabbse/Subs.php";
include_once "/yabbse/Errors.php";
include_once "/yabbse/sources/Load.php";
include_once "/yabbse/sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

Then I get the error. Things I've tried
FYI: Directory Structure (w2k) = yabbse/gallery/include
Code: [Select]
include_once "/yabbse/Settings.php" (site root, then yabbse =error)
include_once "../yabbse/Settings.php" (up 1, then yabbse = wrong path, blank page)
include_once "../../yabbse/Settings.php" (up 2, then yabbse = right path but error)
include_once "/Settings.php" (failed since settings is not in the site root)

 YABB SE works fine BTW.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 10, 2003, 09:29:58 AM
Yaaaayyy, Managed to get mine working, so I thought I'd tell you how I managed it.

My gallery path is as follows:
w w w.mydomain.com/Test/gallery/

In init.inc.php I hardcoded the following from

Code: [Select]

# FROM YaBB
include_once "../Settings.php";
include_once "$boarddir/QueryString.php";
include_once "$boarddir/english.lng";
include_once "$sourcedir/Subs.php";
include_once "$sourcedir/Errors.php";
include_once "$sourcedir/Load.php";
include_once "$sourcedir/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

TO

Code: [Select]

# FROM YaBB
include_once ("../Settings.php");
include_once ("../QueryString.php");
include_once ("../english.lng");
include_once ("../Sources/Subs.php");
include_once ("../Sources/Errors.php");
include_once ("../Sources/Load.php");
include_once ("../Sources/Security.php");
include_once ("include/config.inc.php");
include_once ("include/functions.inc.php");

I then had to add a template into my gallery directory (I didn't mind this as I wanted a different template for my gallery anyway ;) )

On my template I had to give the full url for my logo i.e. w w w.mydomain.com/Test/YaBBImages/logo.jpg



Following things are buggy though, athough they may be browser problems (still checking)

On the gallery display title and discription drops down the page and is partially obscured by the New album box ~ checked the source and the "! End Standard Table" closing tag is missing

I do not get the full image on clicking the pic.

The slide show does not seem to work (there is no way of ajusting the show time on each image either)


That is it for the moment ;D

And the mod is apprecated Thank you

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on March 10, 2003, 06:04:40 PM
Here's a new strange problem....

When I upload images into my gallery now (this just started a day or two ago and the gallery has been going strong for months) they are uploaded in strange colors -- almost like photo negatives, or black and white.  clicking the mid-sized-thumbnails to view full size reveals the normal colors and the small thumbnails may or may not be full color.

Does this have to do with the program that makes the thumbs?  Any ideas or suggestions?

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Ben_S on March 10, 2003, 07:37:35 PM
change the GD type in the admin settings, that sorted it for me, mine had a funny blue on em
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on March 10, 2003, 07:47:02 PM
Thanks for the idea, i toyed with trying that earlier today but didn't...i just switched it from g1 to g2 (whatever that means) and it did the trick...

Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 11, 2003, 08:12:58 AM
I found the following error where I run install.php : ???

Notice: Undefined index: test_gd1 in D:\cgi-bin\yabbse\gallery\install.php on line 577

Notice: Undefined index: test_gd2 in D:\cgi-bin\yabbse\gallery\install.php on line 585
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 11, 2003, 09:58:47 AM
My sort used to work fine... was working for weeks. Then one day it just stopped working  ???

I moved hosts.. worked again.... then a month later it stopped  ???  ???

The hosts had recompiled apache etc though.. so not sure if that caused it

I saw you pointing this out on "their" support board, but there was no solution as far as I could see.

It's nothing major, but it's the only thing that doesn't work  :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 11, 2003, 12:41:46 PM
I had quite a few of their peeps having a look at the problem. No suggestions.. then one day it just went away!

Been fine for a month... now not working again though. DOH!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 11, 2003, 01:56:40 PM
And nothing changed on the server or on the script ?!  Makes you go bang your head against the wall, doesn't it  ;D
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 11, 2003, 02:19:14 PM
I know my site didnt change... must have been something server side!!!

I did ask the hosts.. but didnt get a straight answer
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 12, 2003, 11:13:52 AM
I found the following error where I run install.php : ???

Notice: Undefined index: test_gd1 in D:\cgi-bin\yabbse\gallery\install.php on line 577

Notice: Undefined index: test_gd2 in D:\cgi-bin\yabbse\gallery\install.php on line 585


just curious but why do you have YaBB SE in the cgi-bin?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 12, 2003, 01:51:15 PM
Iccwz02, this just means that GD is not compiled into your PHP. You'll need to recompile with GD in or install ImageMagic.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: devilrazor on March 12, 2003, 11:11:25 PM
some members are getting this error.

Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!  ???

 Hi
  You have to remove and change some lines in db_input.php
search for
Quote
$meta = "<META http-equiv=\"refresh\" content=\"1; url=$HTTP_REFERER">";
and delete this line !


and search for
 
 
Code: [Select]
msg_box("Information","<div align=\"center\">Your comment was added</div>", "BACK", "$HTTP_REFERER");
and change it to this

 
Code: [Select]
msg_box("Information","<div align=\"center\">Your comment was added</div>", "BACK", "javascript:history.back()");
a hope this will help with the problem  ;) ;) ;)
good luck with comments  ;D ;D


 Devilrazor

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Steve Snell on March 12, 2003, 11:48:10 PM
Wonder if anyone is having problems moving pictures from one gallery to another.  I'm getting this error:

An Error Has Occurred!

2: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively.
(Unknown ln 0)

Any help appreciated.

Steve
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 13, 2003, 07:35:38 AM
Iccwz02, this just means that GD is not compiled into your PHP. You'll need to recompile with GD in or install ImageMagic.

Thanks for your tips, but how to recomplie GD into my PHP? ???

I have install ImageMagic in "c:\programe file\imagemagick" directory.
Does I need to change the following line in "config.inc.php" or type the path of imagemagic when I run install.php? :)

// ImageMagick configuration
$CONFIG['impath'] = "<br /><b>Notice</b>:  Undefined index:  impath in <b>D:\\cgi-bin\\yabbse\\gallery\\install.php</b> on line <b>301</b><br />/";   // The full path to the ImageMagick convert program if you want to use ImageMagick for thumbnails
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 13, 2003, 01:22:29 PM
You'd have to check the PHP website for info on recompiling PHP, as for the ImageMagick  thing that line is showing the wrong path Edit the path to point to where you have it installed. I will need to be where your web server can access it. If C drive isn't shared you will need to move it to D.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: iccwz02 on March 14, 2003, 08:04:39 AM
Iccwz02, this just means that GD is not compiled into your PHP. You'll need to recompile with GD in or install ImageMagic.

I have solved the GD problem, but I still have same error message. I can't find any file name with "test_gd1" or "test_gd2" in gallery directory or php directory. What is this two "test_gd" means?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: muayzing on March 17, 2003, 04:48:10 AM

when i upload picture i found this error

An Error Has Occurred!

2: open_basedir restriction in effect. File is in wrong directory
(/mnt/host-users/satitkku/forum/gallery/db_input.php ln 172)

.............

i can create album
but cant upload pics
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: 1979Z28 on March 17, 2003, 11:32:52 AM
I believe it's self explanitory. you need to put the db_input.php file in the same directory as your SETTINGS.PHP file, which is in Sources, not gallery, :D
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on March 17, 2003, 11:54:04 AM
I believe it's self explanitory. you need to put the db_input.php file in the same directory as your SETTINGS.PHP file, which is in Sources, not gallery, :D
Sorry, but my Settings.php is in the home/root directory of Gallery, not in the Sources directory.  From the looks of the error message, he needs to check the db_input.php at line 172 and see what is going on there.  The line in question is this:
   if(!file_exists($HTTP_POST_FILES['userpicture']['tmp_name'])){
Which indicates to me that either the gallery/album/userpics directory is not there or needs to be CHMOD higher to allow the program to upload the file to the directory.  Also a possibility that the file he is trying to upload is larger than the Maximum size setting and this could be causing the problem.  But, none the less, he doesn't need and shouldn't move the settings.php to sources directory or the the board will have problems

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: muayzing on March 17, 2003, 09:40:26 PM
An Error Has Occurred!

2: open_basedir restriction in effect. File is in wrong directory
(/mnt/host-users/satitkku/forum/gallery/db_input.php ln 172)

I put the db_input.php file in the same directory as SETTINGS.PHP
 but it's the same error ....
I chmod all folder to 777 it still the same probllem

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 17, 2003, 10:36:27 PM
OK. Now that I finally got the gallery installed (thanks Spaceman-Spiff), how can I make it look like all of the rest? Mine is not formated.. CHECK IT HERE (http://gqr-enterprises.com/forum/gallery)
@smacktalk: i cant get to your forum since u're using the appllication mod. u can edit the gallery css to match your yse colors, the option is in gallery administration page. also i have the XP buttons for the gallery

@iccwz02: do u have GD installed? u can check it in phpinfo

@Nerd3d: the gallery is currently using Coppermine RC3. i know about the 1.1beta, i'll wait till it's final before thinking to do the changes. from coppermine site:
Main features of Coppermine 1.1
- Multi users
- Separate language files
- Categories
- More advanced theme system
the first one is not useful, since we use yse already
dont know about the others yet...

@Steve Snell: i havent added any session support to the mod, i will tho for the next version...
i dont know what causes that problem, register globals maybe?

@muayzing: it's probably one of the directory settings, like where to store the images, it should be in config.inc.php, or Gallery Settings. the default settings are:
Path to album directory RELATIVE to Coppermine directory: albums/
The directory where user uploaded pictures are stored (RELATIVE to album directory): userpics/
so u have to create albums directory inside gallery directory, and create userpics inside albums directory, and CHMOD it to 777

@others: sorry for the wait, but i havent had much free time lately to work on this mod again
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: muayzing on March 17, 2003, 11:09:28 PM

this is my directory

www.satitkku.host.sk/forum/gallery
www.satitkku.host.sk/forum/gallery/albums
www.satitkku.host.sk/forum/gallery/albums/userpics
www.satitkku.host.sk/forum/gallery/include/config.inc.php

all folder chmod to 777
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 17, 2003, 11:27:45 PM
are the settings in config.inc.php same with:
Path to album directory RELATIVE to Coppermine directory: albums/
The directory where user uploaded pictures are stored (RELATIVE to album directory): userpics/

if u dont mind, can i see your phpinfo?
u can IM me the link if u dont want to post it here
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 18, 2003, 12:15:44 AM
OK. Now that I finally got the gallery installed (thanks Spaceman-Spiff), how can I make it look like all of the rest? Mine is not formated.. CHECK IT HERE (http://gqr-enterprises.com/forum/gallery)
@smacktalk: i cant get to your forum since u're using the appllication mod. u can edit the gallery css to match your yse colors, the option is in gallery administration page. also i have the XP buttons for the gallery

I got it working. I had one of the tags in the wrong place. Thanks.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 18, 2003, 12:17:27 AM
smacktalk, check the first topic, i've put an XP image pack for the gallery buttons
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: muayzing on March 18, 2003, 12:38:03 AM
this is my config.inc.php

Code: [Select]
<?php
// ------------------------------------------------------------------------- //
//  Coppermine Photo Gallery v1.0 Release Candidate 3                        //
//  Moduled for YaBB SE by Spaceman-Spiff                            //
// ------------------------------------------------------------------------- //
//  Copyright (C) 2002  Grégory DEMAR <gdemar@wanadoo.fr>                    //
//  http://chezgreg.net/coppermine/                                          //
// ------------------------------------------------------------------------- //
//  Based on PHPhotoalbum by Henning Støverud <henning@stoverud.com>         //
//  http://www.stoverud.com/PHPhotoalbum/                                    //
// ------------------------------------------------------------------------- //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //


// ImageMagick configuration
$CONFIG['impath'] =          "";   // The full path to the ImageMagick convert program if you want to use ImageMagick for thumbnails

// PICTURE AND THUMBNAIL SETTINGS
$CONFIG['fullpath'] = "albums/";   // Path to album directory RELATIVE to Coppermine directory
$CONFIG['userpics'] = "userpics/";   // The directory where user uploaded pictures are stored (RELATIVE to $CONFIG['fullpath'])
$CONFIG['install_lock'] = "install.lock";   // The lock file used by the installer

$CONFIG['thumb_pfx'] = "thumb_";   // Prefix used for thumbnail
$CONFIG['normal_pfx'] = "normal_";   // Prefix used for normal size image (reduced size)

$CONFIG['max_upl_size'] = "512";   // Maximum allowed size for uploaded pictures

$CONFIG['thumb_method'] = "gd1";   // Method for creating thumbnail and resized images:
                            // "im" : use ImageMagick
                            // "gd1": use GD 1.x image imagecopyresized function
                            // "gd2": use GD 2.x image imagecopyresampled function

$CONFIG['nopic_image'] = 'nopic.gif';   // Image showed when there is no pictures uploaded in an album. Put the image inside 'images' folder.
$CONFIG['albums_per_page']= 6;      // Number of albums per page in the album view
$CONFIG['thumbrows'] = 3;         // Number of rows on thumbnail page
$CONFIG['thumbcols'] = 3;         // Number of cols on thumbnail page
$CONFIG['max_tabs']= 10;         // Max number of tabs to display in thumbnail or album view
$CONFIG['caption_in_thumbview']= true;   // Set this to false if you don't want the image caption to appear in the thumbnail view
$CONFIG['default_sort_order']='na';   // Default sort order for albums
                              // na : name ascending
                              // nd : name descending
                              // da : date ascending
                              // dd : date descending

$CONFIG['thumb_width'] = 100;      // Maximum width or height of a thumbnail
$CONFIG['picture_width'] = 400;      // Maximum width or height of a picture
$CONFIG['make_intermediate'] = true;// Wether to create intermediate size images
$CONFIG['jpeg_qual'] = 85;         // Quality for jpeg compression. Default 85, if you use ImageMagick you can set this to 80
$CONFIG['read_exif_data'] = true;   // Wether to read EXIF data or not (require PHP compiled with --enable-exif)

$CONFIG['number_in_toplist'] = "50";// Number of entries to show on the statistics page

$CONFIG['charset'] = 'iso-8859-1';   // Default charset to use. Change this to what is suitable for your country. 
                           // Most  western people will use ISO-8859-1

// PERMISSION SETTINGS
$CONFIG['gmod_power'] = true;      // Allow global mods to have admin powers in gallery (except to go to gallery settings page).
$CONFIG['user_create_album'] = true;// Allow users to create albums in the gallery
$CONFIG['user_upload'] = true;      // Allow users to upload pictures
$CONFIG['user_comments']= true;      // Allow users to post comments
$CONFIG['guest_upload'] = false;   // Allow guests to upload pictures
$CONFIG['guest_comments'] = false;   // Allow guests to post comments

// ECARDS SETTINGS
$CONFIG['enable_ecards']= true;   // Set this to false to disable ecards

// COMMENT SETTINGS
$CONFIG['max_com_wlength']= 38;      // Maximum length of a word (vandal protection)
$CONFIG['max_com_lines']= 10;         // Maximum number of lines in a comment
$CONFIG['max_com_size']= 512;         // Maximum size of a comment

// MySQL TABLE NAMES
$CONFIG['TABLE_PICTURES'] = forum_."gallery_pictures";   // MySQL table for pictures
$CONFIG['TABLE_ALBUMS'] = forum_."gallery_albums";   // MySQL table for albums
$CONFIG['TABLE_COMMENTS'] = forum_."gallery_comments";   // MySQL table for comments

// What HTML tags to keep in posts
$CONFIG['keep_tags'] = array(
   
'description' => '<b><i><a>',      // Album description
   
'message'     => '<b><i><a>'      // e-Cards messages
);

?>
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 18, 2003, 02:09:01 AM
What are the chances of getting this to work with PfaBB?  I tried it and she failed...

Anyone willing to help move it?  Someone better at PHP than I am that is :)

-SD
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 02:10:51 AM
/me  wanders if there are other people who don't seem to get the sorting to work....
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 18, 2003, 02:32:45 AM
/me  wanders if there are other people who don't seem to get the sorting to work....

the picture sorting in an album?
which Coppermine version are u using?

the album sorting doesnt exist yet, only image sorting
the album should be sorted based on creation date, descending
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 03:52:11 AM
I ise the version I downloaded a week ago from post #1 in this thread, and I'm talking about the picture/image sorting in the album (the + and - signs you see on the top right corner).
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on March 18, 2003, 03:54:02 AM
smacktalk, check the first topic, i've put an XP image pack for the gallery buttons

Great. Thanks. Would you have the gallery.gif one?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 18, 2003, 04:22:55 AM
I've made some buttons you for the gallery you might like. Look here:
Gallery Buttons (http://www.nerd3d.com/Forum/index.php?board=13&action=display&threadid=130&start=0)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Julio on March 18, 2003, 04:57:55 AM
Quote
if there are other people who don't seem to get the sorting to work...

I have the same problem.
I can see a different sort if .php is edited but '+' & '-' don't work.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 05:26:23 AM
Well, that makes three of us.  So it definately is a bug or a server-side issue.

When I look at the code, it seems ok, but still there is no change when I hit the + or - .......  :-\

Any ideas on this ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Steve Snell on March 18, 2003, 10:28:22 AM
Quote
@Steve Snell: i havent added any session support to the mod, i will tho for the next version...
i dont know what causes that problem, register globals maybe?
Quote

After installing PHP 4.3, I learned that register globals by default is off (this is new).  There is no php.ini file either.  To enable moving pictures, you have to create a php.ini file and turn on register globals on.

You might want to revert back to "globals off" after you've moved your files as this could present a security problem.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 18, 2003, 02:57:55 PM
FYI, the picture sort  does work on my system. YaBB 1.4.1, PHP 4.2, RH Linux 7.1

Have you tried different browsers? Maybe the browser has something to do with it. The funstion just not working one day doesn't make any sence.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 18, 2003, 04:37:06 PM
hi all!

is this mod still available for download somewhere? i'd like to try it after after i saw  the demo site 8) .. i'm running Beta 1.5.1RC1. please point me to the right directions.

cheer!

-N
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 18, 2003, 05:04:21 PM
@smacktalk: i've put them in the zip (1st page)

@nomadman: www.immortalshades.com is currently down, so pls wait till it's back again

@Nerd3d: i haven't tested that picture sort :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 05:06:03 PM
Quote

@Nerd3d: i haven't tested that picture sort :-\

Test it  :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 18, 2003, 05:13:19 PM
Quote

@Nerd3d: i haven't tested that picture sort :-\

Test it  :-\

will do. i appreciate the response. cheers!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 18, 2003, 05:17:01 PM
@Spaceman-Sipff, Webby: I said it DOES work. So, it is tested, and working.  ;) I think Webby was wondring if it worked at all.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 05:18:09 PM
So you're telling me it is a server-side problem, or you have another version, or what ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 18, 2003, 05:23:58 PM
yes it works, i have just tested it: http://www.monkey-pirate.com/~ysegallery/gallery/thumbnails.php?album=1

but the problem is: it sorts based on filenames, not titles
will fix this in the next version
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 05:26:19 PM
But (...)

Nothing changes on our albums, so what could be the problem then : it doesn't sort on anything, not even the filename  :-\

Do you have another sourcefile / code that works ?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 18, 2003, 05:30:42 PM
Well, it seems to work on this setup. :P Has your host updated you to a newer PHP? Maybe it's a local thing with your browser. Have you tried a different browser?

For example if you log out of YaBB with Netscape you can't log in again until you completely exit the browser and come back in. It has something to do with the cache. Maybe the browser is caching the page with the wrong sort?

PHP 4.3 changes a lot of stuff. (Probably should be called PHP 5 because it's very different) So, the PHP version may be causing this.

Hopefully this will give some clues ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 18, 2003, 05:32:34 PM
that site is using the gallery mod version 0.95b
what's your version?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on March 18, 2003, 05:38:29 PM
The version I use is :

Gallery0.95_YSE1.5.1.zip

and

PHP Version 4.1.2
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 18, 2003, 07:10:33 PM
Gallery 0.94, YaBBSE 1.4.1
Mostly stock installs
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 19, 2003, 01:28:55 AM
hi once again,

i just backed up my yabbse database and files. and now i'm trying to install the mod. one thing that mystifies me at step #3

Code: [Select]
3. edit your forum template and add these tags:
   - <yabb galleryMenu> Recommended place: right after <yabb menu>
   - <yabb galleryHeader> Recommended place: inside <head> after YSE <style> tag
   - <yabb galleryBodyTag> inside <body> tag, example: <BODY text=#000000 link=#0033ff bgColor=#f5f5f5<yabb gallerybodytag>>
4. create a folder for your gallery inside YSE directory, recommended directory name: 'gallery'

please advise? cheers!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 19, 2003, 02:37:55 AM
if u're using the default template, here's what it should look like:

Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <meta content="<yabb title>" name="description" />
  <meta content="PHP, MySQL, bulletin, board, free, open, source, yabb, yet, another, SE" name="keywords" />
  <meta content="mshtml 6.00.2600.0" name="generator" />
  <title><yabb title></title>
  <yabb galleryHeader>
</head><body text="#000000" link="#0033ff" bgcolor="#f5f5f5" <yabb galleryBodyTag>>
i removed the <style> part above cuz it's too long
and didnt include <yabb galleryMenu>, but u should get the idea...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 19, 2003, 03:04:35 AM
man do you ever slow down?  :o  ;D and here i thought i was the only one that stays awake 19hrs a day.

thanks sire Spliff! i can finally give it go now.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 19, 2003, 03:12:36 AM
im going to sleep soon... :P ;D
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 19, 2003, 03:12:19 PM
i've wrestled with this installation for the past 16hrs hoping for little glimps in hopes of getting this to work. i think it's time to bring in the calvery.

i have two test boards, one with 1-5.1RC1 upgraded from 1-4.1 and the other is Supermod 1-5.1 R45B.0316.

i've fallowed the instructions to the tee on both boards. either boards installs will not let me pass the "Let's Go" screen. on both installs i get these error messages plastered all over the browser page.

Quote
Notice: Undefined index: test_gd1 in ...\gallery\install.php on line 577
Notice: Undefined index: test_gd2 in ...\gallery\install.php on line 585
Notice: Undefined index: phpinfo in ...\gallery\install.php on line 592
Notice: Undefined index: impath in ...\gallery\install.php on line 71
Notice: Undefined index: impath in ...\gallery\install.php on line 286
[/b]

what do i do know?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: buster on March 19, 2003, 03:27:52 PM
I can't download the script  ???

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the www.immortalshades.com home page, and then look for links to the information you want.
Click the  Back button to try another link.
Click  Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer
 
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: nomadman on March 19, 2003, 03:40:01 PM
@Buster

Spaceman-Spiff said that immortalshades.com is down at the moment. i would email you the mod but i don't think it would be a good idea to use a hack coming from someone you don't know.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gere on March 20, 2003, 06:50:08 AM
Hello!

I'd like to ask is it possible to allow all my board users to create only one folder for themselves? Is there a feature where admin must check the pictures before they are added to the gallery?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 20, 2003, 09:41:30 AM
there's an option to "Allow/Disallow users to create albums in the gallery"
so u (admins) can create one for the users to use
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 20, 2003, 08:45:17 PM
when i upload picture i found this error

An Error Has Occurred!

2: open_basedir restriction in effect. File is in wrong directory
(/mnt/host-users/satitkku/forum/gallery/db_input.php ln 172)

anyone having this problem, pls try this alternate db_input.php: http://www.monkey-pirate.com/spiff/mods/Gallery%20Mods
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 21, 2003, 02:15:45 PM
I havent changed nothing on my site at all.. and the sort is now working again!

Just check with my host and they have recompiled the kernel.. so I assume thats fixed it  ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 21, 2003, 02:34:18 PM
when i upload picture i found this error

An Error Has Occurred!

2: open_basedir restriction in effect. File is in wrong directory
(/mnt/host-users/satitkku/forum/gallery/db_input.php ln 172)

anyone having this problem, pls try this alternate db_input.php: http://www.monkey-pirate.com/spiff/mods/Gallery Mods

Spaceman-Spiff, the link is 404  :'(
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 21, 2003, 03:47:42 PM
sorry, there's a space in the url, and forgot to wrap it with [ url ] tag :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 21, 2003, 03:53:21 PM
 I had a problem running this mod with the smilies mod. When I tried loading the gallery I kept getting a parse error, the only way I could cure it was to change this line (in sources/subs.php)

Code: [Select]
               $dir_to_open = "$boarddir/smilies";

to

Code: [Select]
               $dir_to_open = "/home/**username**/public_html/yabbSE/smilies";

It didn't work when I tried putting in the full url, only as in the code

I'm sorry but I think the problem lies within the gallery mod.

I'm also having problems with the global moderators not being able to delete anything, any direction pointers here?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 21, 2003, 04:04:33 PM
I think that only the Admin can delete things (That's a coppermine thing) I hacked and chopped a way to allor users to delete their own images. The code is pretty crude but if you're interested IM me and I'll show you what I did. You can probably adapt my changes to allow GM's to delete stuff.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 07:56:59 PM
I have installed this mod on my board and pleased to report it works a treat, My members love it!

Having said that there is one small issue and looking at the demo board linked from the first post of this thread it is the same there;

When the pictures are viewed by Last hits every picture has the default date and looking at the database I noticed the mtime is not being recorded.

Any ideas....?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 21, 2003, 08:08:54 PM
@PoohBear, metoo! I thought it was just my server being weird. So, I guess 4 PM, Dec 31, 1969 is the beginning of time  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 08:13:25 PM
Yeah I guess so, mine defaults to January 01, 1970 10:00:00 but maybe that is a location thing?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 21, 2003, 08:39:26 PM
When the pictures are viewed by Last hits every picture has the default date and looking at the database I noticed the mtime is not being recorded.

edit functions.inc.php, search for function add_hit
change the query to:
Code: [Select]
  db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET hits=hits+1, mtime=".time()." WHERE pid='$pid'");
thx for the bug report
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 08:52:30 PM
That fixed it. Thanks Spiff  ;D
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 21, 2003, 08:52:36 PM
WOW! Now that's a HOT fix. ;D I was searching for "mtime" trying to fing where it wasn't happening. I would have been looking for a long time  :P

Listening to Belouis Some, Some People  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 21, 2003, 09:25:52 PM
im developing the new album permission manager, could use some beta testing help when done :)
hope i can get something done tonight
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 09:27:41 PM
Although I have not seen it, my users have advised me that sometimes when they add a comment, the confirmation is displayed "your comment was added" then the page changes and the warning "Sorry, the copyright tag must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!" is displayed.

I am advised that the copyright is displayed, any ideas?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 10:02:27 PM
Another minor issue  :-[

Under "Album & pictures settings" in gallery settings there is an option to "Show image caption in the thumbnail view" however if I click this nothing changes and the tick is not retained...? Obviously not affecting the functionality but it would be nice if it worked
;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 21, 2003, 11:23:49 PM
@ Spaceman-Spiff. Will this beta be in 1.4.1 or 1.5.1 RCxx? I'm still on 1.4.1, But I coild throw up a test site for 1.5.1.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 21, 2003, 11:53:08 PM
im developing the new album permission manager, could use some beta testing help when done :)
hope i can get something done tonight

Spiff, I will be happy to help :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Macindy on March 22, 2003, 05:12:32 AM
I can't install it - my provider let me set the rights only to 755 and when I press the "Let's go" button nothing happens...
(My provider says all scripts run under my UID and 777 is not available due to security reasons)
What can I do?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Wistman on March 22, 2003, 07:36:59 AM
im developing the new album permission manager, could use some beta testing help when done :)
hope i can get something done tonight

Happy to give you a hand
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 22, 2003, 09:37:11 PM
This is wonderful, my members love it and due to this I am having to add additional Albums.

Is there a way to sort the Albums instead of having the newest one at the top?  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 22, 2003, 10:43:33 PM
Albums are sorted by creation date.  I think Spaceman-Spiff is working on a different sort setup. I think you can edit your SQL tables and change the creation dates for the albums to get a different sort. (I havent tried this, but it seems like it would work) Backup you stuff BEFORE you tyr this  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 23, 2003, 06:00:56 AM
Yup, I'm working on the sort, a bit stuck at the moment tho :P

Quote
my users have advised me that sometimes when they add a comment, the confirmation is displayed "your comment was added" then the page changes and the warning "Sorry, the copyright tag must be in the template.
till this moment, i cant figure out what causes this, since i never gotten it myself
a few users have, others dont, its quite weird :P

anyway, i've made a manual installation file, basically just a dbmod file, so anyone having problems with the installer, try touse this: http://www.monkey-pirate.com/spiff/mods/Gallery%20Mods/manual_install.zip
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on March 23, 2003, 11:40:33 AM
Anyone manage to put a few gallery stats (latest upload etc) on their boardindex or elsewhere??
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 23, 2003, 12:21:27 PM
@ Spaceman_Spiff, I got that copyright thing the very first time I ran the gallery, It needed the template coppied into the galllery folder to make it behave. Is it possible somethingis causing the script to need this on an intermittent basis.

For example, uploading an image changed the working directory and causes the script to try and get the template from the wrong folder.

Just for the sake of exploration: do those of you who are getting the copyright thing have a copy of the templafe in your gallery folder? (Or a symlink)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 24, 2003, 10:30:44 AM
Nerd3d, I didn't have the template in the gallery folder but I have now and the problem still exists. I posted a test comment and saw it with my own eyes..  ::)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 24, 2003, 02:36:45 PM
Does it do it every time? Do you see a window that says "Your comment has been added"?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 24, 2003, 07:22:43 PM
Does it ro it every time? Do you see a window that says "Your comment has been added"?

Yes, the "Your comment has been added screen" is displayed then it automatically refreshes and shows the error but it does not happen on every picture / album

???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 24, 2003, 07:37:41 PM
This is just a guess, but I'll bet this is the problem child...
Code: [Select]
$meta = "<META http-equiv=\"refresh\" content=\"1;url=$HTTP_REFERER\">";
This is line 100 of db_input.php Try changing it to something like this just to see what happens...
Code: [Select]
$meta = "<META http-equiv=\"refresh\" content=\"1;url=http://www.yoursite.com/forum/gallery\">";
If this stops it then something is going wrong with the HTTP_REFERER variable. Try hovering over the back button to see where it leads too. Likely the URL is messed up.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 24, 2003, 08:08:51 PM
This is just a guess, but I'll bet this is the problem child...
Code: [Select]
$meta = "<META http-equiv=\"refresh\" content=\"1;url=$HTTP_REFERER\">";
This is line 100 of db_input.php Try changing it to something like this just to see what happens...
Code: [Select]
$meta = "<META http-equiv=\"refresh\" content=\"1;url=http://www.yoursite.com/forum/gallery\">";
If this stops it then something is going wrong with the HTTP_REFERER variable. Try hovering over the back button to see where it leads too. Likely the URL is messed up.

I have modified the line as suggested and the error is no longer displayed however it is not possible to see anything from the back button. Before changing the refresh URL, I noticed if somewhere in the confirmation page was clicked before it refreshed the error would not occurr......

 ::)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 24, 2003, 09:29:16 PM
Hummm. Just for kicks try truning the refresh time up to 10 or 15 seconds. (With the original Line) Maybe the page isn't getting loaded all the way before it refreshes. Doesn't seem like that could be it, but this shouldn't be happening so maybe it will work.

Also if you hover the "Back" button that is the URL it's linking to? Is it right? It's constructed with the $HTTP_REFFERER variable too.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 24, 2003, 11:54:19 PM
I reverted back to the original line and increased the refresh time but the problem still occured...?

Hovering over the back button with the refresh time increased the link shown is "Back to Gallery - Showing picture 51" (relevant number). The page then changes to the error and the back button remains the same.

If I then click the back button it returns to the comment input page and the forward button shows the link "Forward to http://www.mysite.com/yabbse/gallery/db_input.php", clicking the forward button returns to the error page....

???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on March 25, 2003, 12:50:54 AM
Gurrr! OK, is the URL the same for both of those? Look close no spaces or any thing. (Refresh and "Back" that is)

This just doesn't make any sence.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 25, 2003, 01:10:32 AM
Yeah, they are the same, I have left the refresh hardcoded which overcomes the issue for the moment ...???

On another point, I have noticed that the users "RealName" is used on all the gallery except the "Last Comments" page where the user name is shown.

I have been trying to change this so the "Real Name" is used on the Last Comments as well, but not having any luck... A real beginner  :'(
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 27, 2003, 02:56:40 AM
heya guys, i made a new .mod version
This version "should" fix the copyright bug in the previous version. If you have the older version (installer 0.9.mod), uninstall it first, then apply this mod in BoardMod and upload Subs.php, overwriting the older one.
Pls try it and let me know if the copyright problem still occurs.

Download it here (http://www.monkey-pirate.com/spiff/mods/Gallery Mods/GalleryMod_ModFile_v0.97_yse1.5.1.zip)
You will need to add <yabb gallerycopyright> before <yabb copyright>.

thanks to CrazyC for the suggestions
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on March 27, 2003, 11:07:50 AM
So that there isn't a whole string of complaints, Spaceman left 2 small things out of the .mod file that he just posted lastnight.

One, in the readme.txt file there should be another line telling you to now add one more tag to your template.php file called:  <yabb gallerycopyright>
Add it immediately before the yabb tag like so:
Code: [Select]
<yabb gallerycopyright><yabb copyright>Both tags are required and you will receive errors if they are not there.

Two, in his hurrying to complete the changes in the mod file, he left the line out of subs.php to add the gallery menu button.
To add it in, search for this line in Subs.php:
Code: [Select]
   $yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=\"_blank\">$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
and add this line after it:
Code: [Select]
   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
That should do it temporarily until he makes the changes and posts another copy.  Thanks again Spaceman!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on March 27, 2003, 11:45:23 AM
I would also like to post a quick solution for the database install problem that everyone has been having problems with, rather than having to install the additional tables by hand.

Only do this if you know everything is setup according to the install instructions and you're having a problem with the gallery install.php file that creates the additonal database tables needed for the gallery.

This fixes the problem when you run install.php and it lists the "Make sure you have..........created and chmod'ed these folders..........." and the continue button doesn't take you anywhere.  All it does is eliminiate the functions that are trying to check if your settings are correct.

Open the install.php file in an editor and search for these lines:
Code: [Select]
   } else {
      test_fs();
      if ($errors != '')
         html_prereq_errors($errors);
      else {
         test_im();
         html_input_config();
      }

and replace it with this:
Code: [Select]
   } else {
         html_input_config();
      }

Again, only do this if you are sure everything was setup correctly and until Spaceman Spiff can find out what is causing these tests to malfunction on some systems.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 27, 2003, 01:46:57 PM
my bad, i fixed that

also, there's a manual installer already (just the db dump)
i put the link in the 1st page
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on March 27, 2003, 04:05:56 PM
OOoops, now it's my bad!  :o

I did see all the posts about the install probs and I also saw your comments about manual install, but missed the part about a separate dbinstall script.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on March 29, 2003, 09:04:53 PM
im developing the new album permission manager, could use some beta testing help when done :)
hope i can get something done tonight

@Spiff, any progress on this yet? I really need to be able to limit access to some of the Albums... ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: babylonking on March 30, 2003, 05:07:49 PM
Spaceman-Spiff: did you check the new gallery version 1.1 ::) i just installed in my web site but is not integrated with my yabbse forum yet........so far no bugs & lots of user options......here check it out. http://www.babylonking.net/art (http://www.babylonking.net/art)

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 31, 2003, 04:04:15 PM
I seem to be having a problem with the 'search new pics' option.  I already deleted line 42, so I got past the db error.

When I select the 'Search new pictures' option in the gallery admin center I get a list of files and their thumbnails.  Great.  I select the 'Insert Selected picture' option and it looks like it want to work... I get a list of all the file names that *should* get inserted into the database, but it fails.  No information is sent to the database and none of the thumbs work on the results page.  I tried to CHMOD 777 the /albums directory and the directory I was reading from (just for fun) and neither seemed to help.

Hopefully I'm just doing something dumb.  Help, please!

-SD
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 31, 2003, 04:10:22 PM
Not sure if this helps anyone... But when I right-click (or control-click in my case) on the dead image on the results page and tell it to open image in a new window, I get this error in a new window:

2: Missing argument 4 for add_picture()  
(/Users/draco/Sites/SilverDragonDen/gallery/include/functions.inc.php ln 300)

That line in functions.inc.php reads:
function add_picture($aid, $filepath, $filename, $title)

I assume it's having a hard time grabbing the title...  But if I remove that variable will it break the normal upload procedure?

Thanks,

-SD
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 31, 2003, 04:29:49 PM
[cross posted at the PfaBB site]

I found a couple of ways to fix it... But it creates a problem too...

First you need to open the 'searchnew.php' file located in your gallery directory.  Go to line 42 and remove it (she should say $connection = db_connect();)

Now go to your includes folder (still in the gallery) and open the file 'functions.inc.php'.  Go to line 300 and remove the variable '$title'.

Upload the changes and your batch should work.  Now here's the problem... When you do a regular upload from the menu button, if you enter a title into the title field it will *not* record that information into the database.  

If someone better than I can fix the functions.inc.php file I would be greatly appreciative. I think it needs some sort of string to look for a title or not... And if not available to just use the image file name instead.

Ideas?

-SD
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on March 31, 2003, 05:34:25 PM
@babylonking: i have not yet tried v1.1
i'll try it when it's out of beta

@Silver Dragon: the search function isnt converted to yse yet when i did the gallery mod. it's one of the things i missed :(
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 31, 2003, 05:45:47 PM
Ahhh, well... I got it to work by taking out that variable...  Hopefully someone will be able to add some sort of if/then statement to make it all go correctly.

In the mean time, I'll just have two PHP files... One for uploading and one for search and upload.

-SD
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Silver Dragon on March 31, 2003, 06:17:36 PM
Here's my temp fix... I just re-created the pages that are required by the searching function and gave them a different name.  For anyone that needs this working NOW feel free to try these files.

This is not the right way to do it, but it is a workign way.  Hopefully someone will be able to fix that $title variable so we don't have to do this.  Until then...

http://pfabb.lunabyte.com/attachments/searchfix.zip
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kjp on April 01, 2003, 05:56:21 PM
This is driving me nuts...  The installation went great.  I can access the Gallery by going to http://www.listkids.com/gallery however it won't show up as buttons on the front page, http://www.listkids.com

Can anyone provide any assistance?  I have inserted the proper tags into my template as seen below:

Quote
<title><yabb title></title>
<yabb galleryHeader>


Quote
</head>
<body text="#000000" bgcolor="#F3F3F3" link="#284357" <yabb galleryBodyTag>>
<br>

Quote
<table border="0" width="100%" cellpadding="3" cellspacing="0" bgcolor="#808080" align="center">
              <tr>
 <td valign="middle" bgcolor="#DADADA" align="center"><font size="1"><yabb menu>
<yabb galleryMenu>

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 01, 2003, 06:06:49 PM
run the .mod file and upload english.lng and Subs.php
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on April 02, 2003, 09:36:21 AM
Here's my temp fix... I just re-created the pages that are required by the searching function and gave them a different name.  For anyone that needs this working NOW feel free to try these files.

This is not the right way to do it, but it is a workign way.  Hopefully someone will be able to fix that $title variable so we don't have to do this.  Until then...

http://pfabb.lunabyte.com/attachments/searchfix.zip

This search new fix will most likely only work for someone using a pfabb portal.  When I ported the gallery to Pfabb, I had to add some extra variables to the file.  And the new release for Pfabb will only work on Pfabb.  If anyone is interested in the temporary fix for the searchnew function,  you have to go into searchnew.php and change line 42 from:
Code: [Select]
$connection = db_connect();to:
Code: [Select]
$connection = $dbcon;Then you can leave that change because it's only used when clicking searchnew from the gallery's admin menu.

Next, go into functions.inc.php and change line 300 from:
Code: [Select]
function add_picture($aid, $filepath, $filename, $title)To:
Code: [Select]
function add_picture($aid, $filepath, $filename)After using the searchnew function to add multiple pictures, you will need to change function.inc.php back to the way it was, or your users will not be able to add a titile to a picture when uploading.

Silver Dragon found this temporary solution as you can read previously.  I am elaborating a little more on it because the version of the gallery he is using is for Pfabb and I know there were a bunch of people looking for this feature here.

Remember....if you change functions.inc.php so that you can upload multiple pictures, change it back for normal gallery use.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Webby on April 03, 2003, 07:11:53 AM
This is too weird !

The sorting of the images now works !

I didn't do anything with the script, maybe there has been a change on the server ?!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on April 05, 2003, 12:53:15 AM
My users can't delete their comments, when the delete button is pressed it goes to a information page saying "no changes have been made....."

@Spiff, did you have any joy with the advanced user level changes you were looking at? It would be great if I could set access privileges for various albums.

;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on April 05, 2003, 01:29:30 AM
My users can't delete their comments, when the delete button is pressed it goes to a information page saying "no changes have been made....."

@Spiff, did you have any joy with the advanced user level changes you were looking at? It would be great if I could set access privileges for various albums.

;)

Unless something else has change since I did this, the was my solution to the same problem.
Quote
Spaceman-Spiff, I found the problem of a non-admin user not being able to delete their own comments.  In the delete.php file the following section:
   case 'comment':
      if ($AUTHORIZED){
         $query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]'";
      } else {
         $query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]' and author_id='$username'";
      }
Needs to have the variable in the "else" changed from "author_id" to msg_author".  The yabbse_gallery_comments Table contains the field msg_author not author_id.  Hope this helps any one else that have the problem.
Hope this helps.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Macindy on April 05, 2003, 02:49:00 AM
Hi all! Hi Spaceman...
Works the Gallery with 1.5.1 Final?
Must I use boardmod after upgrade to 1.5.1 final? When cames a new Gallery? (with groups rights) ;)
Should we localize the Gallery?
Thx
Cu MI
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PoohBear on April 05, 2003, 02:58:23 AM
Thanks Jack, that did the trick :)

@Spiff, maybe you should consider changing the mod file? Any news about the access rights you were working on  ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 05, 2003, 04:09:04 AM
sorry, haven't had the time for the access right, have a school project due next tuesday, maybe next weekend will be a better time to do that

i have not tried the gallery with final 1.5.1, did u guys get any error messages?

Quote
Works the Gallery with 1.5.1 Final?
Must I use boardmod after upgrade to 1.5.1 final? When cames a new Gallery?
if u want to upgrade to 1.5.1, u only need to run the .mod file again in BoardMod, and upload Subs.php & english.lng again, and everything will be fine :)

i've made a new .mod file last week, did anyone try it? it's supposed to fix the copyright error bug
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on April 05, 2003, 11:03:32 PM
Quote
i've made a new .mod file last week, did anyone try it? it's supposed to fix the copyright error bug
That problem went away for a few of my users after the copyright change.
I have also not heard of anyone having that error with PfaBB either.  So, I think it worked.

But, everyone is still having probs with that install thing.  hehe  I know you nip it in the butt when you have the time.  Get that school work done first though.  hehe, JK
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 06, 2003, 01:17:43 AM
i've update the alternate db_input.php today, the older one is missing $title when calling add_picture function :P

the temporary workaround for the installer is the manual installer zip
i'll make a .ya package for next version
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Macindy on April 06, 2003, 10:39:25 AM
perfect - ya package is the best solution...
in my gallery the search new pics doesn't work - is this a bug?
I copied the pics in the gallery/album dir and the click search new pics - I get a result with the title bar and no results...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: don_miguel on April 07, 2003, 03:34:33 AM
I've upgraded my YaBBSE to 1.5.1 and so I thought - let's try out the gallery mod! I got a problem with the normal install, so I did the manual installation.

But when I click on the gallery button, i got an error:

Quote
Warning: Failed opening './QueryString.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 30

Warning: Failed opening './english.lng' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 31

Warning: Failed opening './german.lng' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 32

Warning: Failed opening './Sources/Subs.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 33

Warning: Failed opening './Sources/Errors.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 34

Warning: Failed opening './Sources/Load.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 35

Warning: Failed opening './Sources/Security.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/domain/gallery/include/init.inc.php on line 36

Fatal error: Call to undefined function: clicklog() in /kunden/domain/gallery/include/init.inc.php on line 48

Has anybody an idea?
Thanks for your help!

Miguel
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 07, 2003, 06:45:52 AM
did u install the gallery in a subdirectory of your forum?
it searches for yse files in it's parent directory
can i have a link to your forum?


Quote
in my gallery the search new pics doesn't work - is this a bug?
i forgot to check that feature when converting the gallery, will try to do that for the next version, if i recall correctly, someone made a fix about a few pages back :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: don_miguel on April 07, 2003, 06:55:41 AM
the forums link is:

www.friends-lounge.de

and the gallery link is:

www.friends-lounge.de/gallery

Thanks for your help ... Miguel
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gere on April 07, 2003, 06:58:43 AM
Installed the mod to 1.5.1 and seems to be working fine. 8)
Is there a some kind of flood protect? One upload in a  minute or 20 pics a day per user?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 07, 2003, 07:05:55 AM
@don_miguel: try to open include/init.inc.php, search for:
Code: [Select]
include_once "../Settings.php";
include_once "$boarddir/QueryString.php";
include_once "$boarddir/english.lng";
include_once "$sourcedir/Subs.php";
include_once "$sourcedir/Errors.php";
include_once "$sourcedir/Load.php";
include_once "$sourcedir/Security.php";
and change them into their full path, like:
Code: [Select]
include_once "/kunden/webmedia-dezign.de/webseiten/friends-lounge/english.lng"; or use
Code: [Select]
include_once "../english.lng";
@Gere: nop, u can make one if u want though :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: don_miguel on April 07, 2003, 07:16:15 AM
I've changed the file ... but it doesn't work, too ...

www.friends-lounge.de/gallery

Should I change the path of the gallery?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 07, 2003, 07:23:11 AM
ah, some people had this problem too on yse 1.4.0
the work around is copy your template.php and put it in the gallery directory
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: don_miguel on April 07, 2003, 07:59:20 AM
... i've copied the template into the gallery dir ...

that worked, but when i've upload a photo and click on the (i) info button, i got an error ...

is this an known error?

i've deinstalled the gallery and test it first on my local pc ...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: PioneeR on April 07, 2003, 01:15:11 PM
is this mod ok for 1.5.1 final?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 07, 2003, 03:09:13 PM
OK, I'm currently running 1.4.1 and the 0.9 gallery (With a couple of manual hacks.) I want to upgrade to 1.5.1 with the gallery. I also want to add PfaBB. What order should I do this in? My guess it to remove the gallery mod, Upgrade to 1.5.1, Add the 0.95 gallery, then PfaBB.

OR

Would I be better off if I backed up my database and image folders, wiped every thing out and started with a clean install then restored my data?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 07, 2003, 03:33:44 PM
i think CrazyC made a .mod file for Pfabb
u can run a diff between 1.4.1 and 1.5.1 version to see what i have changed
i think most changes was in init.inc.php


Quote
that worked, but when i've upload a photo and click on the (i) info button, i got an error ...
what's the error msg? is it about exif function not exist?
if it is, check your gallery settings and disable that
i cant go to your board to check...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on April 07, 2003, 04:56:10 PM
OK, I'm currently running 1.4.1 and the 0.9 gallery (With a couple of manual hacks.) I want to upgrade to 1.5.1 with the gallery. I also want to add PfaBB. What order should I do this in? My guess it to remove the gallery mod, Upgrade to 1.5.1, Add the 0.95 gallery, then PfaBB.

OR

Would I be better off if I backed up my database and image folders, wiped every thing out and started with a clean install then restored my data?

Always back everything up.
Uninstall gallery mod file
Upgrade Yabb
add Pfabb
then use the gallery mod from the pfabb site completed mods forum.  (for more help on PfaBB, please post over there, I can then elaborate if needed)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 08, 2003, 03:06:58 AM
SECURITY FIX posted on Coppermine site:
use this fixed db_input.php (http://www.monkey-pirate.com/php/ysemods/Gallery Mods/db_input_fixed.zip) and overwrite the old one
tell me if u're having problems with it, cuz i made the fix based on the alternate db_input.php

i should setup my demo board again so u guys can register and have important announcements mailed...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 01:16:12 PM
Mine worked great although I had to use the gallery from the coppermine site as my server does not call it's mysql 'localhost'.  Using that though, it's brilliant!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 01:45:18 PM
Actually no, just got an error

Code: [Select]
An Error Has Occurred!

2: Missing argument 4 for add_picture()
(/home/sites/site284/web/yabbse/gallery/include/functions.inc.php ln 300)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 08, 2003, 01:59:06 PM
WFM! Thanks for the patch.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 02:13:20 PM
When I try to import new pics I get

List of new pictures

Fatal error: Call to undefined function: db_connect() in /home/sites/site284/web/yabbse/gallery/searchnew.php on line 42
 
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 08, 2003, 02:22:10 PM
@ Angel Skin: Yup, that's broken. Hopefully it will get fixed in the next version. For now we have been adding the pictures one at a time (Yeah PITA).
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 02:24:23 PM
Thanks.  Do you have any idea what the upload error is about?  I checked line 300 and I can't see what would be wrong with it.

PS the site is http://www.splintmusic.co.uk/yabbse

logon id visitor
password visitor
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 08, 2003, 02:39:37 PM
Argument 4 is the title argument for the picture. Did you edit the upload page to use a different variable or something?

I tested the upload thing on your site. I believe the image is being uploaded, but the entry is not added to the DB because the function is not being aclled with the correct parameters. Hope this helps.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 08, 2003, 02:47:39 PM
Yep, yep, I see it. You've replaced the "title" field with a name field. That could work, but the name of the text box needs to remain as "title" or you will need to do some serious hacking to change that.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 02:50:34 PM
No I left it as it is.

Not sure what you mean about the parameters.  The only thing I did was use a newer version as the mysql for my site isn't localhost.  I'll try again!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 03:01:46 PM
Yep, yep, I see it. You've replaced the "title" field with a name field. That could work, but the name of the text box needs to remain as "title" or you will need to do some serious hacking to change that.

Where do I change the field to a title field?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 03:15:03 PM
Ok now I've changed it and I get this error

An Error Has Occurred!

Users are not allowed to upload images.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 08, 2003, 03:22:55 PM
hmm... i don't know why that error occured
in db_input.php, line 200:
Code: [Select]
         if(!add_picture($album, $CONFIG['userpics'], $picture_name, $title))and in function.inc.php, line 297:
Code: [Select]
function add_picture($aid, $filepath, $filename, $title)so they "should" be fine...

did u get that error when trying to upload a new pic or use the search image feature?
what changes did u make to the source files?
i noticed that your gallery is empty, were u able to upload successfully before applying the patch?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Angel Skin on April 08, 2003, 03:31:39 PM
I'd never tried uploading.  The db_input.php line was wrong.  I've changed that and the new error message I got trying to upload a low resolution jpeg is


The picture 'albums/userpics/Leon 1.jpg' can't be inserted in the album

The image you have uploaded is corrupted
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 08, 2003, 03:33:14 PM
To get the search new function working, edit addpic.php, search for:
Code: [Select]
if (add_picture($aid, $dir, $pic)){and replace with
Code: [Select]
if (add_picture($aid, $dir, $pic, '')){
as simple as that :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Macindy on April 15, 2003, 12:01:03 PM
Hi Spaceman!

Perhaps you want a better galley software - look at www.4homepages.de

This is a really great stuff of software.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 15, 2003, 05:18:21 PM
i went there when i was trying to find a gallery script for my community long time ago
the script is too bloated to integrate with YSE, it has its own login system, etc
it does have lots of powerful & neat features, but that also means it will be more difficult to integrate with YSE
Coppermine was simple and easier to integrate to YSE, thats the main reason why i chose it
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: tonyc on April 18, 2003, 12:58:14 PM
I like the idea of the gallery mod for yabbse. But i'm a newb and dont have alot of confidence in myself about adding this mod. Is there a set of more detailed instructions for the install. The readme file is sorta vauge on a lot of issues. Dont want to screw up my board, took me along time to get it working right to begin with.


thanks

Tony
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on April 18, 2003, 02:23:55 PM
Tonyc, let's see how much of a newb you really are...

Have you used Board Mod?
Familiar with creating folders and CHMOD in your FTP program?
Know the "Real Path" to your www folder on your server?

If you answer yes to these questions you probably won't have any problems getting this going.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 19, 2003, 06:35:05 AM
He guys.

Like the album mod, but the bugs not.

New Version in near future?

Bugs I have notice:
- javascript error in IE when click in textfield (fixed by deleting the attributes, which call the store.caret functions (what the hell they are doing? without it the textfields are ok and work fine)
- the message, that appears, if you make a comment (you are using illegal copy of Yabbse) - have read, thats some other guys have same problems, i tried to find the function, that puts out this wrong message, but not founded
- the sort-functions don't work (with small albums not bad, but if album exceeds 200 pics and more it is very important)
- the directory-readout of pics (search new pictures function) don't work:

"
List of new pictures

Fatal error: Call to undefined function: db_connect() in /usr/www/users/nb356/Forum/Gallery/searchnew.php on line 42
 "

I'm sure you know that problems from other album-freaks and I won't getting on your nerves, but I would be very very happy about the album 1.0 Gold.  :)

Good work so far, don't give up.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 19, 2003, 03:19:04 PM
i've fixed most of the bugs above
the problem with the javascript is maybe u didnt upload the .js file in binary
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 21, 2003, 09:20:47 AM
i've fixed most of the bugs above
the problem with the javascript is maybe u didnt upload the .js file in binary

The .js files upload in binary? Why? Its not compiled or something like that.

However, i tried but the js - error still exists.

MfG, Tom
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 21, 2003, 03:39:57 PM
sorry, meant to say ASCCI >_<
can u give me a url to your gallery so i can check?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: lykman on April 21, 2003, 08:21:22 PM
ver. 1.1.0 "stable" of coppermine is out!  :D

Quote
Coppermine 1.1.0 is now available for download. You can get it in the "Coppermine stable" download area.
http://www.chezgreg.net/coppermine/
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 02:55:33 AM
sorry, meant to say ASCCI >_<
can u give me a url to your gallery so i can check?

Hi Spaceman,
URL is http://www.team-tomahawk.com/Forum/Gallery

I changed permission to guest, so you can test it.

Try make comments - when clicking in text-fields a js-error results. Or when you have made a comment the "illegal copy"-message appears.

Thank you, Tom

PS: I just see, that guests seems to have no problem with the js-bug.  :P

Have added an account in Forum for you, so you can test it, because error only comes with members.

Name: Spaceman Password: alpha
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 22, 2003, 04:50:01 AM
u're right, there's a js error
i'll change the textbox with a yse-like textarea in the next version
also using yse smilies :)

about the copyright error, download the new .mod file: http://www.immortalshades.com/spaceman/gallery/GalleryMod_ModFile_v0.97_yse1.5.1.zip
it should fix that problem
and u'll need to add <yabb gallerycopyright> right before <yabb copyright> in your template
Title: Photo Gallery Mod Development
Post by: Spaceman-Spiff on April 22, 2003, 04:59:06 AM
now, about coppermine 1.1.x thats a lot different than 1.0RCs
i'm still thinking wether i should throw away the modded RC3 and start with 1.1
or take some neat features of 1.1.x and apply them to the current mod

pro & cons of 1.1.0:
- pro: strings aren't hardcoded, so a multiple language support can be done
- cons: member feature, RC3 didnt come with member feature, ppl can only post as guests, which makes it easier to integrate with YSE. now it has its own member system, including registration & login, and it will be harder to integrate (i'll have to remove all those member stuff)

i haven't tested the new gallery myself and i cant seem to find a changelog/new features list
if anyone have tested it, pls list the new features, thx
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 05:18:08 AM
Thank you Spaceman.  :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 05:37:39 AM
Installed the new version, but what the hell is that?

Sorry, the copyright tag <yabb copyright> must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of YaBB!
Sorry, the copyright tag <yabb gallerycopyright> must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of Coppermine Gallery Mod!

Now we have 2 messages?  :P

I think i just kill the checking of copyright, because I know, that the copyright-info is shown.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on April 22, 2003, 05:45:46 AM
u'll need to uninstall the previous .mod file first, install this new one, then add <yabb gallerycopyright> in your forum template, right before <yabb copyright>
pls post a link if its still showing problems
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 06:41:53 AM
u'll need to uninstall the previous .mod file first, install this new one, then add <yabb gallerycopyright> in your forum template, right before <yabb copyright>
pls post a link if its still showing problems

Have do this 2 times, but the problem still exist.

Seems to me, that your controll-variables have communication-problems. Need to declare it global?

I tune arround it, to locate the problem.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 08:49:41 AM
The problem with the wrong error-message start somewhere here in db_input.php:

$USER['name'] = $HTTP_POST_VARS['msg_author'];
$meta = "<META http-equiv=\"refresh\" content=\"1;url=$HTTP_REFERER\">";
pageheader("Comment added");

The "$HTTP_REFERER" variable routes to nowhere. Changing it to "index.php" will solve the problem.

"index.php" is used in all the codes for good reason, because this value never change.

The js-error can solved by deleting all "store.caret" calling attributes.

I think my album runs good now. But in near future I need the sort-function .  8)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 22, 2003, 09:10:39 AM
-> Little error in functions.inc.php:

// Perform a database query
function db_query($query)
{
global $settings;

$result = mysql_query($query) or database_error(__FILE__, __LINE__);;

Double ";"

-> error in delete.php row 253:

case 'comment':
if ($AUTHORIZED){
$query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]'";
}
else {
$query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$HTTP_GET_VARS[id]' and author_id='$username'";
}

The called "author_id" not exist! The name in the sql-table is "msg_author".
You will see the error if you try to delete your own comment with no-admin-rights. Changing the "author_id" to "msg_author" will fix the problem.

Tom
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Omar Bazavilvazo on April 25, 2003, 11:21:58 PM
So, now that Coppermine 1.1.0 released, you r going to check the new version?

i'll test it also asap, but looks very cool... :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gere on April 26, 2003, 03:05:54 AM
The called "author_id" not exist! The name in the sql-table is "msg_author".
You will see the error if you try to delete your own comment with no-admin-rights. Changing the "author_id" to "msg_author" will fix the problem.

Tom
Great!
I tried to locate this bug but I couldnt :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: adamb10 on April 26, 2003, 01:14:03 PM
It says it cant find the converter when I run the install.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on April 27, 2003, 05:24:41 AM
Hi,
have fixed the sorting-function. It's very easy I think.

So if you want to use sorting-function do this:

file "thumbnails.php":
-> go to function "album_pic_query($limit)"
- add there the global variable "$sort"
- replace
"isset($USER['sort']) ? $USER['sort'] : $CONFIG['default_sort_order']" with
"isset($sort) ? $sort : $CONFIG['default_sort_order']"

If you want change the default sort_order to "pid DESC", because this mode is the better choice (sort pictures after date from new to old).

If you want, change "filename" in case "na" & "nd" to "title", because you would like to have the pics sorted after title and not after cryptic filenames, ok?  :)

Now go to function "function thumbnails".
-> add the global variable "$sort";
-> look for
"$navbuttons .= "<A href=\"thumbnails.php?album=$album&page=1"

and add after "page=1" the following: "&sort=$sort"

-> add the same in line:
"$navbuttons .= "<A href=\"thumbnails.php?album=$album&page=$currPage"

-> add the same in line:
"$navbuttons .= "<A href=\"thumbnails.php?album=$album&page=$totalPages"

OK, that's it. Hope works fine for you. You can test it here:
http://www.team-tomahawk.com/Forum/index.php?action=gallery

Tom

PS: There are y few other thinks to do, to get in right album on right page, when enter a pic. If somebody wants to know how, let me know.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Tomahawk on May 03, 2003, 04:11:16 AM
Hi,
find new problem.

If you want to add directory-pics in admin choices, it will not work.

Just change the following in the "include/functions.inc.php":
function add_picture($aid, $filepath, $filename, $title)

need to change to:
function add_picture($aid, $filepath, $filename)

That's it. Now you can add tons of pics quickly.

Tom
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on May 03, 2003, 12:21:40 PM
If you do it that way you'll break the standard upload function. Space man found another way to fix it here...

To get the search new function working, edit addpic.php, search for:
Code: [Select]
if (add_picture($aid, $dir, $pic)){and replace with
Code: [Select]
if (add_picture($aid, $dir, $pic, '')){
as simple as that :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: percherie on May 12, 2003, 02:47:24 PM
hello i french and your mod is interessant but is in english... can you créate a file french.lng for your mod?

If you créate a file english.lng i can translate for you the file french.lng

I don't know if I succeeded has make understand me  :P english is diffilcult
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 17, 2003, 03:44:23 PM
Can someone tell me what a Host needs to do to implement the GD Library?  (slow host  :P )

Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 18, 2003, 02:55:24 PM
Can someone tell me what a Host needs to do to implement the GD Library?  (slow host  :P )

Thanks!
check in phpinfo to find out if your host has it installed and compiled or not

Quote
hello i french and your mod is interessant but is in english... can you créate a file french.lng for your mod?
maybe i will...
to tell you all the truth, i haven't had the will to do the gallery mod lately since andy from ttforum stole it
maybe i'll continue developing this gallery again sometime in the future when my mood changes, sorry :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 19, 2003, 05:55:37 AM
O.K... Total newbie, here... Please help.

I have installed Coppermine v1.10 and the Gallery Mod v.97 over my YaBBSE 1.52 installation and everything seems to work fine except (and this is a BIG except) when a user clicks the gallery button, they have to log in to Coppermine. Why bother integrating this into YaBBSE if there's no cookie passing? Have I overlooked something here? I could swear I've seen Coppermine implemented on other YaBBSE boards without having two different logins.

Anyone?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 19, 2003, 09:24:30 AM
Hopefully the developer will comment, but it SHOULD integrate.  You shouldn't have that login screen.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: JRCarr on May 19, 2003, 09:39:05 AM
My understanding is that the developer has not upgraded the Gallery Mod to work with the latest version of 1.10.  There were some major changes in this version that was going to require some extensive rework in the mod and as he pointed out in an earlier post, he is not currently working on this Mod right now.

Jack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 19, 2003, 12:38:35 PM
JRCarr is right, the one I integrated to YSE is Coppermine 1.0 RC3, 1.1 has it's own user system. you'll also need the modified coppermine (link is in the first post) to run it with YSE, the clean version from coppermine site won't work
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 19, 2003, 02:23:10 PM
Oh, my apologies, I wasn't paying attention to the coppermine version number.  My gallery uses the older version I guess.

Jason
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 19, 2003, 05:51:01 PM
Hi.  I'm still working with my host on installing the GD library so I can run this great mod.  The host installed the GD library and it broke PHP.  :P

Does anyone know if there is a problem running the GD lib on a IIS host?  Anyone here running the gallery on a IIs host?  Thanks!

John
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrimSon_ReD on May 20, 2003, 12:59:49 AM
I just wanted to say THANK YOU!

And state that this is one of the coolest mods
I have ever used. ;D

My only desire in its improovement would be
to allow the creation of member group galleries.
and private galleries for featured members.

I must commend you on a kickass mod.
And it works great in PfaBBulouS!

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 12:25:04 AM
JRCarr is right, the one I integrated to YSE is Coppermine 1.0 RC3, 1.1 has it's own user system. you'll also need the modified coppermine (link is in the first post) to run it with YSE, the clean version from coppermine site won't work
O.K... I have now installed RC3 and users no longer have to login to upload images or view galleries, but I'm still not seeing the Gallery Settings menu like I think I'm supposed to and the look of the gallery is not integrated with the look of YaBBSE (see image http://www.drunk-n-stupid.com/images/compare.jpg (http://www.drunk-n-stupid.com/images/compare.jpg)). Is the YSE header supposed to carry over to the gallery? Have I done something wrong?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 01:01:22 AM
you must be missing <yabb galleryMenu> tag
it's in the readme
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 01:16:42 AM
Here's the first table following the 'head' in my template:

<table class="bordercolor" cellspacing="0" cellpadding="0" width="90%" align="center" bgcolor="#4d8bc4" border="0">
  <tr>
    <td>
      <table class="bordercolor" cellspacing="1" cellpadding="0" width="100%"  align="center" bgcolor="#4d8bc4" border="0">
        <tr>
          <td>
            <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="windowbg2">
              <tr>
                <td valign="middle" align="left" bgcolor="#ffffff"><img alt="logo" src="YaBBImages/dnslogo.gif" /></td>
                <td valign="middle" bgcolor="#ffffff"><font size="2"><yabb uname><yabb im><br /><yabb time></font></td>
              </tr>
            </table>
          </td>
        </tr><tr valign="middle" align="center" bgcolor="#4d8bc4">
          <td bgcolor="#afc6db" class="windowbg2"><font size="1"><yabb menu><yabb galleryMenu></font></td>
        </tr>
        <tr>
          <td width="100%" bgcolor="#ffffff" height="24" class="windowbg2"> <yabb news></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Is it in the wrong place?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 01:43:18 AM
what you install is the original coppermine gallery script from coppermine site
you have to install the modded one (it's inside CoppermineYSE1.5.1-RC3.zip)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 01:47:39 AM
I'm sorry... I guess I never found that file. Is it mentioned in the original message in this thread? Please tell me where I can download it.

Thanks.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 02:02:27 AM
http://www.monkey-pirate.com/php/ysemods/Gallery0.95_YSE1.5.1.zip
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 02:41:26 AM
Ah! Thank you!

I get it now. It's a little confusing 'cuz you have the 1.51 mods which include the modded Coppermine install and then the 1.52 mod which doesn't. I just downloaded the 1.52 file and thought I had everything.

Thanks again!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 03:39:36 AM
i guess that's kinda vague :P
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Norbert on May 22, 2003, 03:43:27 AM
1. My forum uses the german buttons. When I go the gallery there'll be shown the english buttons. What can I do without copying the german buttons into YaBBimages?
2. Which are the best thumbnail settings? GD1, GD2, ImageMagick
3. Is there a possibility to change the title of the pictures from the gallery?

My Forum (http://dewender.de/forum/)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 06:36:40 AM
Alright... Now I've got it running great! Except...

It doesn't use the same CSS as YSE and when I click on "Edit Gallery CSS" in the Gallery Settings, it brings up a CSS alright, but when I change anything, save and then refresh, nothing changes! Beyond that, I have no idea what the different headings mean. Any idea why?

How come the "themes" that came with Coppermine aren't used in the modded version, anyway?

Thanks again, though! It's great!!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 06:38:33 AM
By the way... I fixed the metblue buttons. A lot of them were sized wrong or the text was slightly too high. You can download the new pack at http://www.drunk-n-stupid.com/images/metblue.zip (http://www.drunk-n-stupid.com/images/metblue.zip)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 07:01:21 AM
Quote
It doesn't use the same CSS as YSE and when I click on "Edit Gallery CSS" in the Gallery Settings, it brings up a CSS alright, but when I change anything, save and then refresh, nothing changes!

Nevermind... I figured it out.


Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 22, 2003, 07:21:51 AM
Any idea on when we might see a permanent fix for the newsearch.php problem? One that doesn't disable the $title variable?

TIA
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 03:25:47 PM
Any idea on when we might see a permanent fix for the newsearch.php problem? One that doesn't disable the $title variable?

TIA
i think there's a fix for this a few pages back... u just have to do some digging :P


1. My forum uses the german buttons. When I go the gallery there'll be shown the english buttons. What can I do without copying the german buttons into YaBBimages?
2. Which are the best thumbnail settings? GD1, GD2, ImageMagick
3. Is there a possibility to change the title of the pictures from the gallery?
1. edit include/init.inc.php, search for
Code: [Select]
include_once "$boarddir/english.lng";replace with
Code: [Select]
include_once "$boarddir/german.lng";
2. it depends on what your server supports, check the phpinfo to see what you have
GD2 and ImageMagick should make better thumbnail than GD1

3. i dont remember...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 03:27:23 PM
I'm getting the following error message when running the install:

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)

thanks.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 22, 2003, 03:48:24 PM
That typically means your sql variables (to connect to your database) aren't correct...such as your database name, username, pwd, localhost, etc...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Norbert on May 22, 2003, 03:53:05 PM
THX, Spaceman-Spiff.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 22, 2003, 04:07:05 PM
I don't believe you can change picture titles without going into the db to do it manually.  I wanted to do that the other day but didn't find a set way to do it easily.

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 04:20:43 PM
That typically means your sql variables (to connect to your database) aren't correct...such as your database name, username, pwd, localhost, etc...

HI Charlotte,  well I was never prompted for them.  the install.php prompts for imagemagick path only. ??
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 04:33:31 PM
That typically means your sql variables (to connect to your database) aren't correct...such as your database name, username, pwd, localhost, etc...

HI Charlotte,  well I was never prompted for them.  the install.php prompts for imagemagick path only. ??

Actually, it appears that the install program is not picking up the YSE variables.  anyone know the reason for this?

thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 22, 2003, 04:39:07 PM
That typically means your sql variables (to connect to your database) aren't correct...such as your database name, username, pwd, localhost, etc...

HI Charlotte,  well I was never prompted for them.  the install.php prompts for imagemagick path only. ??

I'm at work and can't check from here, but isn't there a var file of some sort that you have to edit and upload prior to running the install?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 04:51:41 PM
Hmm, I don;t think there is a VAR file, the PHP files appear to take the YSE variables.  Anyway, I have created the tables manually and now to just find out how to get rid of the yabb gallerycopright notice... and test it out.  Thanks.

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 05:11:38 PM
OK, fixed the gallery copyright problem, but do not see a hotlink to upload a picture.  I see DELETE MODIFY and MOVE PICTURES  -- no option to upload a picture to an album (albums create just fine).

Any ideas?  Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 05:27:32 PM
slack, try the manual gallery installer (link in 1st post)

and for the upload link, u need to add <yabb galleryMenu>
read the readme file for more tags to add to your template
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 06:15:59 PM
slack, try the manual gallery installer (link in 1st post)

and for the upload link, u need to add <yabb galleryMenu>
read the readme file for more tags to add to your template

Thanks Spaceman!  roger, roger.

It is working now.  (galleryMenu was missing a bracket <sigh>).  the quality of the uploaded picture really suffers... goes from nice color photo to black white and green.  I'm using GD2, is this a settings problem?

Thanks again!  
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 06:27:13 PM
Found it, it was the create intermediate size pic option.

The logo is not showing and the CSS HTML box graphics at the bottom of the page are not showing.  How would I fix these?

Great Mod!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 22, 2003, 07:02:24 PM
set all your images in template into full url, or full path
example, instead of YaBBImages/logo.jpg
change into:
/forum/YaBBImages/logo.jpg or http://www.site.com/forum/YaBBImages/logo.jpg
the image was broken because the gallery is in different folder
this also applies to external css or js files link
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on May 22, 2003, 09:16:21 PM
Got it.  Thanks for you help!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 23, 2003, 02:31:24 AM
Anyone have any idea why nothing happens when I click an image to load the full-size one? The link points to "javascript:;". Seems like that's wrong... but what do I know?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CrazyC on May 23, 2003, 12:18:25 PM
Look back a few pages in this thread, there is a fix posted for anyone that was having javascript errors.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gus on May 23, 2003, 01:03:47 PM
Looks like it's a nice mod but I do have a small problem...

The slide show doesn't work =o(

Could you take a look  at my site (http://www.armymedic.info/yabbse/index.php) and see if you can see whats up please?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 23, 2003, 01:18:55 PM
put this: <yabb galleryHeader>
outside the <style> tag in your template
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gus on May 23, 2003, 01:28:05 PM
Thats fixed the asthetics  :)
But not the slideshow   :-[
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 23, 2003, 02:15:50 PM
u're also missing the closing </head> tag
Code: [Select]
</STYLE>
<yabb galleryHeader>
change it to:
Code: [Select]
</STYLE>
<yabb galleryHeader>
</head>
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gus on May 23, 2003, 04:48:42 PM
Dont' look at my template.... it's embarassing  :-[
Hacked together as you can see  ;)

Ok, thanks for the lesson in basic html  ;) but it's still not changing the pictures in slideshow  :'(

Oh, btw, was there a cure for the javascript error in the text imput field after? I tried to follow this thread through but got lost/distracted  ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 23, 2003, 05:17:27 PM
actually, your slideshow does work
though i had to wait for a few secs and it doesnt work very well (tested in mozilla firebird)
maybe its because of the other JS stuff in your forum
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gus on May 23, 2003, 05:51:06 PM
maybe its because of the other JS stuff in your forum

Could be I guess.  took the shoutbox out but that didnt do anything to help the problem.  Could be the munus I guess :(

Ok, thanks anyway.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 25, 2003, 03:34:51 AM
Look back a few pages in this thread, there is a fix posted for anyone that was having javascript errors.

If you mean making sure scripts.js is uploaded in binary mode, I did that already. No love.

Spiff? Could you maybe look at my gallery and tell me why I can see full size images? Does it have something to do with the fact that I patched the gallery to allow searchnew.php to work?

TIA
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on May 25, 2003, 09:30:48 PM
Did the bug with the gallery suddenly stopping sorting ever get found. My 1.4.1 installation has suddenly "stopped sorting" the galleries. Nothing has been added since it was working so it shouldn't be a database thing, I think...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on May 25, 2003, 09:54:30 PM
Wait, I found it, on page 39. Thanks to Tomahawk for fixing this bug! I was looking too far back  ;)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gus on May 26, 2003, 07:15:24 AM
u're right, there's a js error
i'll change the textbox with a yse-like textarea in the next version

Is there a quick fix for this in the interim?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on May 26, 2003, 07:57:54 PM
Spiff? Could you maybe look at my gallery and tell me why I can see full size images? Does it have something to do with the fact that I patched the gallery to allow searchnew.php to work?

TIA
that will be a js error
in your template:
Code: [Select]
 <style type="text/css">
  <yabb galleryHeader>
<yabb galleryHeader> should be outside the style tag (i thought i've said this before)
just move it above the <style> line
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: meast on May 27, 2003, 08:24:25 PM
THANK YOU!!!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on May 27, 2003, 11:56:17 PM
I'll say it again...GREAT MOD...just did my second problem-free install on a new site...this time was a fresh install on a new 1.5.2/3 board...but my previous upgrades have been hassle free too.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Pinoywebhost on May 28, 2003, 01:16:19 AM
Hi,

I've been using this gallery from the start, upgraded it and works great...my only request for now (except for the bugs to evaporate ;D) is to have a new uploaded pics to be displayed on my main site...what do you call this?? The old gallery mod in the old yabb have this...

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: zarsky99 on June 11, 2003, 11:16:17 AM
Spaceman or anyone else,

Has anyone looked into the new coppermine dev 1.1 version.  Greg has changed the codebase so it now includes basic user integration via bridge inc files.  I was hoping someone could bridge this version to yabbse.  I prefer to keep coppermine seperate from my yabb board, so i can enjoy the updates more easily.  I would love a basic user integration though....any thoughts?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on June 11, 2003, 12:41:30 PM
This is really cool! It looks like he's using a module to translate to the bb's database. Whan the gallery needs user info it used functions from the bridge to access the BB database. Slick!

Somebody who knows a little about the YaBB database should be able to create a bridge between coppermine and YaBB. It may not integrate as tightly, but it'll allow much easier upgrades.

For me, I'll stay with my hacked version of 1.0 I've made too many changes (and forgot what I did) to do it all again.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: zarsky99 on June 12, 2003, 01:34:17 PM
anyone?? anyone??  bueler???

Just wondering if anyone was willing to tackle yabbse integration using the new coppermine bridge file format?

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 12, 2003, 04:35:21 PM
hmm... but then what about the administrator permissions?
i'll take a look at it if i have some time, can't promise much though
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: jack-uk on June 16, 2003, 02:38:10 PM
It looks as though admin permissions are handled within the bridge file.

I have just started looking at this, but my (almost complete) lack of knowledge about Coppermine is a bit of a hinderence ;) .. sill, something to get my teeth stuck into.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: jack-uk on June 17, 2003, 01:09:51 AM
Woo...
Done a hack & Slash job on the vBulletin bridge.

User/Group integration seems to be working 8)
I've hideously broken most album management & batch uploads tough ::)

Still ... not bad for a few hours hacking. Hopefully, I'll be able to get it working when I get in from work tonight :)

Yay .. it seems to work now :) - apart from the 'register' 'logout' 'profile' etc buttons.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: zarsky99 on June 17, 2003, 01:25:40 PM
jack,

sweet...I wish you luck....I am really excited to get this integration.

I like the bridge method better than full blown integration, because it allows me to upgrade coppermine independantly of yabbse, and keeps my major mods to yabbse down to manageable level.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: jack-uk on June 17, 2003, 01:31:41 PM
hehe .. never noticed you'd posted there, so I just modded my old post ::)

It seems to work great, apart from some minor 'cosmetic' functions (as above).
However, there is a potential licensing issue as I am mixing some yabbse code (authentication stuff) with some GPL code. I'll have to get that out of the way before I publish.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Pinoywebhost on June 18, 2003, 06:15:10 AM
I've been using this gallery for sometime now and it works great. Just today, I upgraded my forum to 1.5.1 and also the gallery. The only problem right now is the gallery icon on the forum is not showing...but if you go directly to http://myhost.com/forum/gallery , the gallery is working.... The needed tags on the template is still in there.

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: 1979Z28 on June 18, 2003, 01:04:13 PM
Look in Subs.php and make sure that it's shown in there, somewhere in .yabbmenu
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 18, 2003, 05:17:50 PM
you have to run the .mod file and upload the gallery.gif image
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Koth on June 22, 2003, 09:20:38 AM
Will this mod be upgraded to 1.5.4?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: BiErLeEuW on June 22, 2003, 09:59:46 AM
it works fine with 1.5.4
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on June 22, 2003, 11:30:38 AM
Does my server must install Image Magick (http://www.imagemagick.org) or I can do it?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: oldiesmann on June 22, 2003, 12:52:52 PM
Note: Above question has been answered. (Nope. Don't need it.).
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on June 22, 2003, 01:17:56 PM
Note: Above question has been answered. (Nope. Don't need it.).
Sorry :-[

I have got a problem, it links all the menu items to the gallery directory, for example for the profile it links to "forum/gallery/;action=profile;user=admin" instead of "forum/index.php?;action=profile;user=admin", does anybody knows how I can fix this?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: zarsky99 on June 23, 2003, 11:11:17 AM
Spaceman or Jack-uk,

Have you all made any progress on the bridge file.

Jackuk,

Did you resolve the legal questions?  please release what you have if so.

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: jack-uk on June 23, 2003, 12:28:41 PM
Yup, I have made progress on the bridge - it is working fine on the board that I run.

However, I am still waiting for the official OK from the YaBB SE authors...

[Unknown] replied a few days back saying that he didn't think it was going to be a problem, but was referring it to Jeff for the final decision.

Don't worry, I'm as anxious to get this posted as you are - and it'll be posted here as soon as I get the say-so.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 23, 2003, 12:39:58 PM
Note: Above question has been answered. (Nope. Don't need it.).
Sorry :-[

I have got a problem, it links all the menu items to the gallery directory, for example for the profile it links to "forum/gallery/;action=profile;user=admin" instead of "forum/index.php?;action=profile;user=admin", does anybody knows how I can fix this?
check Subs.php, search for $yymenu
it should use $scripturl, and i dont think the gallery script changed that var...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on June 23, 2003, 12:48:26 PM
Thanks for your answer, the menu works ok at the forum but when you get in the gallery you have got that problem :-\
You can check it at http://roxette.cs.caltech.edu/runto/forum/gallery/ :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: zarsky99 on June 23, 2003, 02:41:27 PM
Don't worry, I'm as anxious to get this posted as you are - and it'll be posted here as soon as I get the say-so.

Exxxxxcellllannt....  8)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 23, 2003, 05:13:54 PM
Thanks for your answer, the menu works ok at the forum but when you get in the gallery you have got that problem :-\
You can check it at http://roxette.cs.caltech.edu/runto/forum/gallery/ :-\
thats pretty weird, since the gallery shouldn't modify the content of $boardurl and $scripturl
try this: edit Subs.php, search for
Code: [Select]
$scripturl = "$boardurl/index.php";replace with
Code: [Select]
$scripturl = "http://roxette.cs.caltech.edu/runto/forum/index.php";
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Pinoywebhost on June 24, 2003, 04:43:28 AM
you have to run the .mod file and upload the gallery.gif image

Hi!

Thanks it is working now. I can now see the gallery button. I installed the 1.5.2. instead of the 1.5.1. coz 1.5.1 mod have some errors...but I have the copyright problem on my gallery..what to do? I've done, what the text files are saying in the mod...

thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: NaturalStateReb on June 25, 2003, 11:12:30 AM
Did the manual install, and it said it went successfully.  However, when I click on the Gallery button, it comes back to my SE board and doesn't go to the gallery.  When I go to the gallery's url, it comes up.  My button is obviously not pointing to the right place.  How can I get it fixed?

Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gere on June 26, 2003, 05:49:09 AM
Is it possible to allow users delete their own pictures?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: NaturalStateReb on June 26, 2003, 10:19:59 AM
Did the manual install, and it said it went successfully.  However, when I click on the Gallery button, it comes back to my SE board and doesn't go to the gallery.  When I go to the gallery's url, it comes up.  My button is obviously not pointing to the right place.  How can I get it fixed?


Alright, I finally got this to work.  I had to change the $scripturl line in Subs.php to this:

$scripturl = "http://www.myboard.com/yabbse";

The link just kept pointing back to the yabbse directory, rather than the gallery directory without this change.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Valconeye on June 26, 2003, 02:01:36 PM
great mod, but it doesnt work for me,

Code: [Select]
Warning: main(/home/warcraft/public_html/forums/gallery/include/config.inc.php) [function.main]: failed to create stream: No such file or directory in /home/warcraft/public_html/forums/gallery/include/init.inc.php on line 36

Warning: main() [function.main]: Failed opening '/home/warcraft/public_html/forums/gallery/include/config.inc.php' for inclusion (include_path='') in /home/warcraft/public_html/forums/gallery/include/init.inc.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/warcraft/public_html/forums/gallery/include/init.inc.php:36) in /home/warcraft/public_html/forums/Sources/Subs.php on line 361

Warning: Cannot modify header information - headers already sent by (output started at /home/warcraft/public_html/forums/gallery/include/init.inc.php:36) in /home/warcraft/public_html/forums/Sources/Subs.php on line 363

Warning: Cannot modify header information - headers already sent by (output started at /home/warcraft/public_html/forums/gallery/include/init.inc.php:36) in /home/warcraft/public_html/forums/Sources/Subs.php on line 369

Warning: Cannot modify header information - headers already sent by (output started at /home/warcraft/public_html/forums/gallery/include/init.inc.php:36) in /home/warcraft/public_html/forums/Sources/Subs.php on line 371

Code: [Select]
An Error Has Occurred!

2: Cannot modify header information - headers already sent by (output started at /home/warcraft/public_html/forums/gallery/include/init.inc.php:36)
(/home/warcraft/public_html/forums/Sources/Subs.php ln 361)

I read almost all of the 45 pages, but i find no fix for this problem, i might be blind, so if it is there it wont be hard to help me! :)

my board url is, http://64.119.172.130/forums/gallery/ (the domain name hasnot been transfered yet)

I could not run the install.php so i tried the manual install, (all i have to do is upload those 2 files, and run the dbmod.php, right?)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 27, 2003, 11:49:41 AM
Quote
Warning: main(/home/warcraft/public_html/forums/gallery/include/config.inc.php) [function.main]: failed to create stream: No such file or directory in /home/warcraft/public_html/forums/gallery/include/init.inc.php on line 36
make sure u've uploaded config.inc.php into include/ directory, and set it CHMOD 666

Quote
I could not run the install.php so i tried the manual install, (all i have to do is upload those 2 files, and run the dbmod.php, right?)
u'll need to upload all of the source files too, of course ;)


Quote
Is it possible to allow users delete their own pictures?
i dont remember if the feature doesnt exist or its buggy
if it is buggy, the fix should be somewhere in the previous pages, or try the alternative db_input.php (link in the first post)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on June 27, 2003, 01:06:53 PM
Quote
Is it possible to allow users delete their own pictures?

Yes, but not very secure. Send me an email, and I'll try to recall what I did to make it possible.

nerd(at)nerd3d(dot)com
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on June 27, 2003, 01:09:15 PM
Spaceman-Spiff, I have got a problem with the gallery... when I upload a picture it doesn't upload it to the album, can you please help me? :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 27, 2003, 01:35:26 PM
if im not mistaken, you were getting a blank page when uploading?
1. check if your host supports GD 1 or 2, check in phpinfo and match it with your gallery settings
2. check if the file is uploaded to albums/userpics/ or not
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on June 28, 2003, 05:19:03 PM
if im not mistaken, you were getting a blank page when uploading?
1. check if your host supports GD 1 or 2, check in phpinfo and match it with your gallery settings
2. check if the file is uploaded to albums/userpics/ or not
yes, I get a blank page. The pictures are uploaded to albums/userpics but I am not sure if it support GD1 or 2, how can I know it? ???
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 28, 2003, 06:51:15 PM
check in phpinfo, if you have GD installed, you should see something like:
gd
GD Support    enabled
GD Version    bundled (2.0 compatible)
GIF Read Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled

you'll need to have GD, GD2, or ImageMagick installed in the server in order to have the gallery working
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on June 28, 2003, 06:58:56 PM
CokeCan, this may help you figure out what your server has on it.

http://us3.php.net/phpinfo (http://us3.php.net/phpinfo)
Title: Help with getting mod button to show please
Post by: kyleontheweb on June 30, 2003, 09:27:50 AM
Hi!

I'm sorry, help with this would be very much appreciated.  I am using Yabbse V1.4.  The gallery mod said installation was fine, but I cannot get the gallery button to show up despite inserting the tags into my template.  Perhaps I have done this incorrectly?  Here is my code:

-Created by Tim C
-Email: tceuppens@xnull.com
-Webpage: http://yabb.xnull.com/
--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Pet ShowNTell Forums</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<yabb galleryHeader>
<!--
body            {font-size: 10px; font-family: Verdana, Arial, helvetica;
                 scrollbar-face-color: #2C5A8A;
                 scrollbar-shadow-color: #2C5A8A;
                 scrollbar-highlight-color: #5482B2;
                 scrollbar-3dlight-color: #5482B2;
                 scrollbar-darkshadow-color: #184676;
                 scrollbar-track-color: #1D4B7B;
                 scrollbar-arrow-color: #FFCC00; }
table      {border: 4 groove; border-color: #5482B2;}
td      {border: 1 outset; border-color: #5482B2;}
a           {text-decoration: none;}
a:visited   {text-decoration: none;}
a:hover     {text-decoration: underline , overline;}
.windowbg      {background-color: #184675; font-size: 10px; font-family: Verdana, Arial, helvetica;}
.windowbg2    {background-color: #0E3C6C; font-size: 10px; font-family: Verdana, Arial, helvetica;}
.windowbg3     {background-color: #CCCC00; font-size: 10px; font-family: Verdana, Arial, helvetica;}
.titlebg      {background-color: #225080; font-size: 10px; font-family: Verdana, Arial, helvetica;}
.text1         {font-size: 10px; font-family: Verdana, Arial, helvetica; color: #FFCC00}
.catbg         {background-color: #366494; color: #FFCC00; font-size: 10px; font-family: Verdana, Arial, helvetica;}
.bordercolor   {background-color: #083666;}
.quote         {font-size: 10px; font-family: Verdana, Arial, helvetica; color: #AAAA00; background-color: #083666;}
.code          {font-size: 10px; font-family: Verdana, Arial, helvetica; color: #CCCC00; background-color: #083666;}
-->
</style>
<yabb galleryHeader>
</head>
<body text="#000000" link="#0033ff" bgColor="#f5f5f5"<yabb galleryBodyTag>
<body bgcolor="#225080" text="#FFCC00" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<div align="center">
  <table width="70%" border="0" cellspacing="1" cellpadding="1">
    <tr bgcolor="#214263">
      <td>
        <div align="center"><font size="2"><yabb boardname> : <yabb title></font></div>
      </td>
    </tr>
    <tr>
      <td>
        <div align="center"><font size="2"><yabb uname><yabb im></font><br>
          <yabb menu> </div>
          <yabb galleryMenu>
      </td>
    </tr>
  </table><br>
<p><yabb main></p>
  <p><yabb time></p>
  <p><yabb copyright></p>
</div>
</body>
</html>

***END CODE***

Thanks for looking at this!
~Kyle
Title: Re:Help with getting mod button to show please
Post by: Spaceman-Spiff on June 30, 2003, 09:47:02 AM
have you run the .mod file and uploaded the changed files and gallery.gif into YaBBImages?

also, you have double <yabb galleryHeader> in your <head> tag
you can deletet he one right under <style type="text/css">

my final comment, upgrade to the latest yabbse (v1.5.4), it's much better than v1.4
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on June 30, 2003, 10:01:28 AM
Oh, I'm sorry Spaceman-Spiff, it is 1.5.4 that I have.  I listed it wrong.

I will removed the tag you mentioned also.
What I did, was I downloaded the version .95 file, and followed the instuction in the .txt.  Except for one thing, I didn't run the mod.  I acually seem to have missed that line.  Sorry, my goof.  I have never run a .mod file or boardmod before, but I know where I can get both of those.  Is it ok to go ahead and run the mod now, or do I need to do something else now that I have gone throught the other steps?

Thanks so much for you help,
~Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 30, 2003, 10:03:21 AM
it's okay to do that the last
just upload the changed files afterwards
i think they're only english.lng, index.php and Subs.php
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on June 30, 2003, 10:55:34 AM
Thank you again.  I got the boardmod and the mod file.  It does steps 1-6 of the instalation, then steps 7 and 8 get a "cannot find search string" error and it won't do the mod.  

Do you think this is becuase I have "Supermod" installed also?

Thanks!
~Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 30, 2003, 11:08:42 AM
could be...
btw, you should be using this for YSE 1.5.2 and above: Download .mod file for YSE 1.5.2-1.5.4 (http://www.immortalshades.com/spaceman/gallery/GalleryMod_ModFile_v0.97_yse1.5.2.zip)
that should fix at least one of the steps u're having problems with
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on June 30, 2003, 01:18:28 PM
Spaceman,

I am sorry to continually drain from your expertise.  If it becomes apparent that I will not be able to get this to work then I will stop asking any more questions.  

The one last thing I wanted to say about this is that I have found that the gallery works from the index.php page, and all the buttons show up.  The only problem there is with it is that the buttons do not show up in the regular forum view.  Is that what the mod is supposed to do?  Is there perhaps another way I could link to the gallery pages from the main forum page?

Thanks again,
~Kyle

And thanks for making this great mod, you seem to have made the only way to get a gallery into YABBSE!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 30, 2003, 01:38:05 PM
hmm...
pls tell me the url to your forum
you can PM that to me if you dont want to post it here
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on June 30, 2003, 01:39:45 PM
Certainly,
the url is http://www.petshowntell.com/yabbse

for the gallery, it is http://www.petshowntell.com/yabbse/Gallery/index.php

Thanks!
~Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 30, 2003, 01:54:27 PM
looking from your yabb menu, it looks like you've changed some stuff in $yymenu inside Subs.php
that's maybe why the .mod file didnt find some string in Subs.php
u can try to download this: http://www.immortalshades.com/spaceman/gallery/GalleryMod_ModFile_v0.97_yse1.5.2.zip
and run it, see which string BoardMod doesnt find, then try to edit Subs.php to match the search

if you want me to do it for you, you can mail me your Subs.php -> spiff at monkey-pirate dot com

oh, btw, u might want to add <!- in front of your template, so the credit wont show in the board ;)
Code: [Select]
<!-- Created by Tim C
-Email: tceuppens@xnull.com
-Webpage: http://yabb.xnull.com/
-->
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on June 30, 2003, 06:59:23 PM
Spiff,

I sent you an email from kyleontheweb@petshowntell.com

Thanks!
~Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on June 30, 2003, 10:29:59 PM
Is there a way to get the Photo Gallery to use a different background - like Windowbg2 or Windowbg3?  I'm now using a jpeg for a background and while the forum looks good - the gallery on this background does not.

Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on June 30, 2003, 10:36:52 PM
edit the gallery css file
u can do it through the admin page or edit the css and  upload it to the server
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on June 30, 2003, 11:24:18 PM
Thanks Sapceman.  I cannot find where to edit a gallery CSS file off the admin page but I see Style.CSS in the gallery directory - so will fool with that.  

Thanks again!
slack
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on July 01, 2003, 12:02:40 AM
A little while back somebody posted a fix for the album sort problems associated with global settings on some PhP installations. The fix worked except for a tiny glitch, the album (at least on my server) did not pick up the default sort until an album page was clicked on...  The first page would be unsorted.

OK... I decided to hunt that glitch down and squash it. It's a one-liner in index.php

About line 128 replace this
Code: [Select]
echo "<a href=\"thumbnails.php?album=" . $row['aid'] . "\" class=\"albums\">"; With this
 
Code: [Select]
echo "<a href=\"thumbnails.php?album=" . $row['aid'] . "&sort=" . $CONFIG['default_sort_order'] . "\" class=\"albums\">";
Note this is on the 1.4.1 version the change may vary slightly on 1.5.x
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 01, 2003, 12:16:28 AM
Thanks Sapceman.  I cannot find where to edit a gallery CSS file off the admin page but I see Style.CSS in the gallery directory - so will fool with that.  

Thanks again!
slack
its not in forum's admin page
but in the gallery admin page/gallery settings page
the link should be: /gallery/admin.php?action=modifyCSS
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Slack on July 01, 2003, 08:59:51 AM
Ah, found it Spaceman - you can see the problem with a non contrasting background!  :P

Can you tell which CSS class it edit to display a background jpeg in the gallery?

Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on July 01, 2003, 12:27:20 PM
Thanks Spiff!  I appreciate all your efforts in helping me get my gallery working properly.  You're the man!

Also, I too was able to use the css information you just posted about changing the backgrounds and such, I was wondering about that myself.  It works great!

I still am unable to get my gallery buttons to show up directly on the main forum page, but that's ok if I don't get that working, the mod still works great from the direct link.

Thank you!
~Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 01, 2003, 02:04:50 PM
Can you tell which CSS class it edit to display a background jpeg in the gallery?
if you do View Source in the gallery page, you can see which table uses which style
i think in the main page (album list), it uses class="tableb"
i dont know about other pages

Quote
I still am unable to get my gallery buttons to show up directly on the main forum page, but that's ok if I don't get that working, the mod still works great from the direct link.
it is designed that way, will need to add more code to do that
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: kyleontheweb on July 02, 2003, 02:03:28 PM
Again I must sing the praises of the allmighty Spiff!  My forum is now showing gallery buttons and all is grand!

Thank you very much indeed sir.

:-}
`Kyle
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 02, 2003, 02:18:03 PM
Discussion on the bridge file license has been split here: http://www.yabbse.org/community/index.php?board=134;action=display;threadid=24439 (http://www.yabbse.org/community/index.php?board=134;action=display;threadid=24439)
thx to groundup
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: NaturalStateReb on July 02, 2003, 03:08:21 PM
Was a fix ever developed for the "search new pictures" error?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 02, 2003, 03:10:12 PM
Was a fix ever developed for the "search new pictures" error?
yes, i cant remember if its in the fixed db_input file, or in one of the pages o.o
i remember fixing it for sure...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on July 02, 2003, 07:48:25 PM
Right here...
To get the search new function working, edit addpic.php, search for:
Code: [Select]
if (add_picture($aid, $dir, $pic)){and replace with
Code: [Select]
if (add_picture($aid, $dir, $pic, '')){
as simple as that :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on July 02, 2003, 09:08:16 PM
Is it posible to do order the albums in date descending when there's a new picture?, it will be easier check which albums it's updated :)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on July 02, 2003, 09:47:07 PM
Yes, and if the sort options are not working there is a fix for that somewhere in this thread. Is seems somewhere around page 39 if memory serves. I just recently posted a small fix for the fix, Page 46 I think.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: NaturalStateReb on July 03, 2003, 02:03:48 PM
Right here...
To get the search new function working, edit addpic.php, search for:
Code: [Select]
if (add_picture($aid, $dir, $pic)){and replace with
Code: [Select]
if (add_picture($aid, $dir, $pic, '')){
as simple as that :)


I tried this fix, but I still get the following error:

Fatal error: Call to undefined function: db_connect() in /home/u4/hogville/html/yabbse/gallery/searchnew.php on line 42
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Metho on July 14, 2003, 02:19:39 AM
Alright, I went through 30+ pages of this thread and nothing worked, so I guess I'll ask the question. Been asked before, but solutions offered don't seem to work.

The gallery is adopting what I assume are the default css styles. <yabb galleryHeader> is outside the style tag in my template, any changes to the gallery's style.css file don't seem to change anything (and the file is chmod 666). Weird thing is if I do a force refresh (ctrl f5) the tables DO adopt the correct css colors for a second, but then revert back to the defaults...any clues?

Thanks,

Metho
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 14, 2003, 09:43:23 AM
which tables are you talking about?
some of the tables are using bg images
that could be the problem
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Metho on July 14, 2003, 06:19:16 PM
Oi, sorry for leaving that out. I can't get any of the original colors to change to something else, actually. But with that force refresh thing, the table color where the album title does change to my web site color. Here's a default and then when I refresh so you can see the difference. http://www.peacefulforest.net/blueone.gif , http://www.peacefulforest.net/greenone.gif .

Thanks again,

Metho
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 15, 2003, 06:25:50 PM
the album title's bg is using an image, you'll need to remove that image from the css so it wont show blue anymore, or make a green image and overwrite the blue one

the button styles/colors can be changed in the css
they should be the nav classes
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Metho on July 16, 2003, 02:55:50 AM
Thanks much, it was the darn img like you said. Looks good. One thing though. I was trying to get gallery stats on my yabbse index page, generally messing things up and not succeeding. After giving up for a day, I noticed on the main gallery page, the stats table at the bottom is only 1 px high. Oi! I looked through index.php and picstat.php, and everything looks good, then I tried uploading a fresh copy of each, no worky...any ideas what I messed up or which file would cause the table to only be a pixel with no info in it? :(

As always, thanks.

Methonis
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Metho on July 16, 2003, 05:26:35 AM
Ha, I'd included some functions into to subs.php in attempts to get it on the boardindex, this somehow broke the stats in the gallery. Remove and fixed now. Just need to get them on the boardindex now and all will be well.

Thanks again,

Methonis
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: oldiesmann on July 19, 2003, 10:53:32 AM
Well, other than the problem with the links in the menu (which is something I'm trying to fix), there is one other problem. Whenever someone posts a comment, after seeing the thing saying that the comment has been posted, it redirects to db_input.php. This appears as a plain white page with the error messages about an illegal copy of YaBB and an illegal copy of Coppermine Gallery Mod at the top. The comment does get posted, but I have no clue why these copyright tag errors are occurring.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on July 19, 2003, 12:43:39 PM
Quote
This appears as a plain white page with the error messages about an illegal copy of YaBB and an illegal copy of Coppermine Gallery Mod at the top.
We usually solve this by putting a copy of the template.html from the YaBB folder in with gallery.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on July 23, 2003, 07:20:13 PM
Quote
This appears as a plain white page with the error messages about an illegal copy of YaBB and an illegal copy of Coppermine Gallery Mod at the top.
We usually solve this by putting a copy of the template.html from the YaBB folder in with gallery.
I keep on getting an error message saying that there's an error at line 609, can someone please help me? :-\
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 23, 2003, 07:34:19 PM
at line 609 of what file?
have you tried the bridge file mod yet? it should be better than this version
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on July 27, 2003, 10:24:08 PM
I have a few quick questions:

1.  Is it possible to disable the thumbnail on a specific album?

I have about 15 or so albums but one of which is NSFW and I'd like to disable the thumbnail preview for that one album only.  Is this possible?

2.  How can I order the albums?  I have tried renumbering them in phpMyadmin, but that disassociates all images from that album.  Sometimes adding a new album will alphabetize it, sometimes it's at the end.  I can't figure out the reasoning it's using.

Any ideas?

Thanks!
Jason
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 28, 2003, 10:08:17 AM
both features are not available in this version of coppermine, or my mod
check if you can do that in the latest coppermine version or not
if it is, you can use the bridge file mod...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: charlottezweb on July 28, 2003, 11:53:04 AM
Okay, thanks.  I'll look into that.

Jason
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: FaSan on July 28, 2003, 06:39:47 PM
Hi !

I've a Problem with the "Add Comment" at the pics.
When I clik on the box, is open a explorer's window error and i don't write.

Excuse me but my english is little.


FaSan


PS : Tested with Mozilla, and no problem with it.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: CokeCan on July 29, 2003, 12:05:05 AM
at line 609 of what file?
have you tried the bridge file mod yet? it should be better than this version
ok, now I am using that add-on but now it says that there's an error at line 366
If you can please check it at http://roxette.cs.caltech.edu/runto/forum/gallery

Thanks for your help!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on July 29, 2003, 01:53:51 AM
i dont see the error
maybe it only shows for users, not guests?
please paste the full error message here
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: FaSan on July 29, 2003, 02:19:32 AM
Hi !

I've a Problem with the "Add Comment" at the pics.
When I clik on the box, is open a explorer's window error and i don't write.

Excuse me but my english is little.


FaSan


PS : Tested with Mozilla, and no problem with it.


Hi !
I try to disable "debug" of IE6 and now this work. On the SX of Window see the Alert Message.

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Gere on August 09, 2003, 12:07:50 PM
Hello,

Some new pics in my gallery have this problem, the thumbnail is ok but when the big pic doesnt show.
The big pic is in the right folder but it just doesnt show it.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on August 09, 2003, 01:23:03 PM
url pls
does it contain weird characters by any chance?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: oldiesmann on August 09, 2003, 07:54:16 PM
New problem... We can't get the gallery to sort the pictures any other way but the default "date ascending" even if we change the default in the gallery settings. I've checked the config file, and it has the correct settings. No matter what I try (short of hard-coding it to always display pictures by date descending), it won't work.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Nerd3d on August 10, 2003, 12:54:58 AM
There is a fix for the album sort thing a few pages back. You will need to hack a bit to make it happy. I has to do with global variables settings if the php configuration.
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: oldiesmann on August 10, 2003, 01:43:14 PM
Thanks!
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: searanch on August 22, 2003, 08:36:56 PM
I have upgraded SE 1.4.1 to 1.5.4 and lost my coppermine photo gallery button on the top menu. My coppermine still works from its own directory. Can someone help me put my gallery button gallery.gif back and make it work?

I have searched for hours on all the threads and I can't make head nor tail of it. Thanks in advance for any and all help...
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on August 23, 2003, 11:20:41 AM
download the mod for 1.5.x in the first post
and you only need to run the .mod file, no need to reinstall the gallery
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: GWP on August 24, 2003, 04:18:16 PM
Spaceman-Spiff,
I am so sorry to come across with such a stupid question, but I would really like this mod.

Where is the actual mod file??
I have DL the mod for "Download .mod file for YSE 1.5.2-1.5.4" and had a loook at it, I simply cannot see how it installs an entire Gallery.

Have i DL a fix or do i need to DL the original gallery from coppermine (if so, which version)
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on August 29, 2003, 09:27:06 AM
the package that you need (and containing a .mod) file is in the first post, however, it is recommended to use this mod instead: http://www.yabbse.org/community/index.php?thread=24525
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: smacktalk on August 29, 2003, 04:37:44 PM
it is recommended to use this mod instead: http://www.yabbse.org/community/index.php?thread=24525

Why?
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on September 02, 2003, 03:22:28 PM
it is recommended to use this mod instead: http://www.yabbse.org/community/index.php?thread=24525

Why?

because its loosely integrated with YSE, meaning, you can always follow the upgrades in coppermine program easier
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Coyote on January 17, 2004, 09:04:03 PM
Sorry to revive such an old post - but does anyone have this file - as Spiffs link doesnt work anymore - and I dont want to deintegrate Spiffs version and use the bridge version - especially as SMF is nearly here.


http://www.monkey-pirate.com/php/ysemods/Gallery%20Mods/db_input_fixed.zip

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Spaceman-Spiff on January 19, 2004, 06:07:27 PM
pls check here: http://www.immortalshades.com/spaceman/mods/gallery_mod/
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: Coyote on January 25, 2004, 08:28:15 AM
That didnt work :(

I hoping that this will fix the major hole in coppermine 1.03 - is  this the case?

Thanks
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: FaSan on February 07, 2004, 04:59:36 PM
Hi .. i 've found a little bug.

When i modify the Text of the Album Description, i receved a error of copyright.


Excuse my little english



FaSan
Title: Re:[Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod
Post by: jack-uk on March 03, 2004, 02:32:49 PM
I hoping that this will fix the major hole in coppermine 1.03 - is  this the case?

Probably not, but upgrading to Coppermine 1.2.1 should 8)

http://coppermine.sf.net (http://coppermine.sf.net)