| Author | Message |
| Post Title: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 06, 2003 7:01 pm
The Featured Photo block (as seen on the PHPNuke.NukedGallery.net testing site) is available for test downloads here [nukedgallery.net]. Please post all questions/problems/etc to this thread.
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
nwells
Joined: Sep 22, 2003 Posts: 5
|
Posted: Mon Oct 06, 2003 9:05 pm
Worked great for me Dari, thanks so much for your quick work! Exactly what I wanted!
Have a good one, Nathan |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 06, 2003 9:07 pm
awesome, glad to hear that it's all working out for ya
|
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Tue Oct 07, 2003 6:16 am
I installed it and got errors Dari
one thing i noted was that in Block-NG-featured-photo.php on line 16 it has:- include("/home/httpd/phpnuke.nukedgallery.net/htdocs/modules/gallery/block-NG-FeaturedPhoto.php"); shouldn't that be:- include("/home/httpd/phpnuke.nukedgallery.net/htdocs/modules/gallery/featured_photo.php"); as the featured photo file is called featured_photo.php ??? I obviously amended the path to reflect my setup I can go into my gallery ok and select a featured photo, but when i go to main page the block has a message on it saying:- "There is a problem right now with this block" Any ideas ? |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 07, 2003 7:14 am
doh...you're right
|
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Tue Oct 07, 2003 11:14 am
Yep, "There is a problem right now with this block" when ever it is activated, tried deleting cache file to no avail !!
Any ideas ? btw in your readme for installation you mention the line in view_album.php is approx 944 to be edited, my file is only 723 lines long |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 07, 2003 11:19 am
hmm ok, find this chunk of code:
Code: › if ($gallery->user->canWriteToAlbum($gallery->album) && $showAdminForm) {
if (!$gallery->album->isMovie($id) && !$gallery->album->isAlbumName($i)) { showChoice(_("Edit Thumbnail"), "edit_thumb.php", array("index" => $i)); showChoice(_("Rotate/Flip") ." $label", "rotate_photo.php", array("index" => $i)); } if (!$gallery->album->isMovie($id)) { showChoice(_("Highlight") . " $label", "highlight_photo.php", array("index" => $i)); } if ($gallery->album->isAlbumName($i)) { $myAlbumName = $gallery->album->isAlbumName($i); showChoice(_("Reset Counter"), "do_command.php", array("cmd" => "reset-album-clicks", "set_albumName" => $myAlbumName, "return" => urlencode(makeGalleryUrl("view_album.php")))); } showChoice(_("Move ") . $label, "move_photo.php", array("index" => $i, 'reorder' => 0)); showChoice(_("Reorder ") . $label, "move_photo.php", array("index" => $i, 'reorder' => 1)); if (!$gallery->album->isAlbumName($i)) { showChoice(_("Copy ") . $label, "copy_photo.php", array("index" => $i)); } if ($gallery->album->isHidden($i)) { showChoice(_("Show") . " $label", "do_command.php", array("cmd" => "show", "index" => $i)); } else { showChoice(_("Hide") . " $label", "do_command.php", array("cmd" => "hide", "index" => $i)); } } and put Code: › if ($gallery->user->isAdmin() && !strcmp($label, "Photo")) {
directly underneath it.showChoice('Feature Photo', 'featured_photo.php', array('set' => 1, 'set_albumName' => $myAlbum->fields['name'], 'id' => $id)); } |
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Tue Oct 07, 2003 11:25 am
hmmmm strange I dont have that exact section in my view_album.php
What version of Gallery are you running, I'm on gallery V1.4.pl1 Could you send or post the whole of your view_album.php ? |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 07, 2003 11:28 am
i'm using the latest CVS version. basically you want to add my section of code to the bottom of the admin drop down list that's presented under the photo (so search for terms like "highlight photo", "delete photo", etc..and add my code to the bottom).
|
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Tue Oct 07, 2003 11:34 am
yep ive done that i.e.
lines 624-652 are as follows:- if ($gallery->user->canDeleteFromAlbum($gallery->album)) { if($gallery->album->isAlbumName($i)) { if($gallery->user->canDeleteAlbum($myAlbum)) { showChoice(_("Delete") . " $label", "delete_photo.php", array("id" => $myAlbum->fields["name"], "albumDelete" => 1)); } } else { showChoice(_("Delete") ." $label", "delete_photo.php", array("id" => $id)); } } if ($gallery->user->isAdmin() && !strcmp($label, "Photo")) { showChoice('Feature Photo', 'featured_photo.php', array('set' => 1, 'set_albumName' => $myAlbum->fields['name'], 'id' => $id)); } if($gallery->album->isAlbumName($i)) { if ($gallery->user->isAdmin() || $gallery->user->isOwnerOfAlbum($myAlbum) && $showAdminForm) { showChoice(_("Permissions"), "album_permissions.php", array("set_albumName" => $myAlbum->fields["name"])); } } if ($gallery->user->isAdmin()) { showChoice(_("Change Owner"), "photo_owner.php", array("id" => $id)); } So what else may be causing my block issue ? The feature photo link is there when i select the drop downs, it allows me to choose and select it ok, but the block has the error !!! |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 07, 2003 11:37 am
when you select it, does a window pop up saying that the feature photo was saved?
|
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Tue Oct 07, 2003 11:40 am
Sorted
i deleted the block and recreated it !!!!! dont know what happened there but its working fine now see http://www.motorhomefacts.com [motorhomefacts.com] top right |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
cuscus
Joined: Oct 10, 2003 Posts: 2
|
Posted: Sun Oct 12, 2003 8:26 pm
I've gotten though all the steps in the README file but don't see the block in my list of blocks when I click "New Block". I might be blind, but what's the name of this block?
|
| Author | Message |
| Post Title: | |
nwells
Joined: Sep 22, 2003 Posts: 5
|
Posted: Mon Oct 13, 2003 3:04 am
The name of the block is the same as the file you uploaded to the "Blocks" directory without the word "block" in front of it.
So it would be something like this: "NG-FeaturedPhoto" -Nathan |
| Author | Message |
| Post Title: | |
cuscus
Joined: Oct 10, 2003 Posts: 2
|
Posted: Mon Oct 13, 2003 11:15 am
I've tried putting the block in "../includes/blocks" and also "../modules/gallery/pnblocks/" but with no luck.
I'm starting to get the sinking suspicion that the problem could be that I am using PostNuke instead of PHPNuke. Is there a port for PostNuke available? Thanks for your help. Cuscus http://www.cuscus.com/ |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 13, 2003 12:18 pm
no postnuke port yet available.
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
drummen
Joined: Oct 01, 2003 Posts: 3
|
Posted: Mon Oct 13, 2003 3:37 pm
Having some problems..
my block gives me this error.. Code: › Warning: main(/hsphere/local/home/avmaster/glidecamcentral.com/modules/gallery/) [function.main]: failed to create stream: Inappropriate ioctl for device in /hsphere/local/home/avmaster/glidecamcentral.com/blocks/block-NG-FeaturedPhoto.php on line 16
Warning: main() [function.main]: Failed opening '/hsphere/local/home/avmaster/glidecamcentral.com/modules/gallery/' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/home/avmaster/glidecamcentral.com/blocks/block-NG-FeaturedPhoto.php on line 16 and my gallery gives me this... Code: › Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/avmaster/glidecamcentral.com/modules/gallery/index.php on line 109
any suggestions? |
| Author | Message |
| Post Title: | |
drummen
Joined: Oct 01, 2003 Posts: 3
|
Posted: Tue Oct 14, 2003 11:52 am
Help!
Anyone? |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 14, 2003 4:26 pm
look on line 109 of your gallery index.php file. make sure that all paren's are closed.
or, reinstall (and overwrite) your existing installation to make sure you get the most recent files. |
| Author | Message |
| Post Title: | |
drummen
Joined: Oct 01, 2003 Posts: 3
|
Posted: Wed Oct 15, 2003 3:01 am
Thanks! I will give it another try.. I don't think I changed anything in the index file...
|
| Author | Message |
| Post Title: | |
achiral
Joined: Oct 29, 2003 Posts: 16
|
Posted: Mon Nov 03, 2003 10:37 pm
www.pritchardphoto.com
ok i got the featured photo block working...sort of. for some reason it works, but totally outside of php nuke if you click on the thumbnail. is there a way to remedy this? edit when i went to the gallery and then clicked on the featured photo block it works inside phpnuke..so now i'm totally confused... |
| Author | Message |
| Post Title: | |
achiral
Joined: Oct 29, 2003 Posts: 16
|
Posted: Mon Nov 03, 2003 11:54 pm
and now i'm just getting this....
ERROR: requested index [-1] out of bounds [8] Fatal error: Call to a member function on a non-object in /homepages/12/d87389744/htdocs/modules/gallery/classes/Album.php on line 744 edit ok i fixed that problem, but the above problem still exists...any ideas? |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 7:59 am
took a look at your site and saw the issue with the photo opening outside of phpnuke. these are the offending lines of code:
Code: › $PHOTO_URL = makeAlbumURL($album->fields['name'], $id);
$ALBUM_URL = makeAlbumURL($album->fields['name']); and i've noticed the same problem on my demo site as well. it must be a gallery version thing. what version are you running? it's an easy fix to make, and as soon as i have it complete i'll post back here. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 8:09 am
ok, got a fix. all are in the modules/gallery/block-NG-FeaturedPhoto.php file.
change this line: Code: › global $gallery;
to this: Code: › global $gallery, $GALLERY_EMBEDDED_INSIDE;
and, add this: Code: › $GALLERY_EMBEDDED_INSIDE = "nuke";
underneath this line: Code: › $content = ""; |
| Author | Message |
| Post Title: | |
achiral
Joined: Oct 29, 2003 Posts: 16
|
Posted: Tue Nov 04, 2003 8:23 am
don't you mean the fixes are found in the featured_photo.php file? and i did those fixes and got "sorry such file doesn't exist" error
modules.php?set_albumName=Chicago&id=chicagosm&op=modload&name=&file=index&include=view_photo.php this is the link and it seems to not be pulling anything for the name[/b] |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 8:28 am
hmm...ok in view_album.php, you had to add this:
Code: ›
if ($gallery->user->isAdmin() && !strcmp($label, "Photo")) { showChoice('Feature Photo', 'block-NG-FeaturedPhoto.php', array('set' => 1, 'set_albumName' => $myAlbum->fields['name'], 'id' => $id)); } change the 'block-NG-FeaturedPhoto.php' line to just 'featured_photo.php' |
| Author | Message |
| Post Title: | |
achiral
Joined: Oct 29, 2003 Posts: 16
|
Posted: Tue Nov 04, 2003 8:31 am
yeah i had changed that before i was getting this problem, still the same thing
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 8:40 am
let me check into it. it was working a second ago, now it isn't...grrrrrr
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 8:59 am
ok, in the effort to make gallery more *nuke friendly, it slightly complicated my job. on that global line, add $GALLERY_MODULENAME to the end, and underneath the $GALLERY_EMBEDDED_INSIDE = "nuke"; line, add $GALLERY_MODULENAME = "gallery"; (replacing gallery with whatever you called your gallery module).
|
| Author | Message |
| Post Title: | |
achiral
Joined: Oct 29, 2003 Posts: 16
|
Posted: Tue Nov 04, 2003 6:16 pm
dari thank you so much...you are the man
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Nov 04, 2003 9:03 pm
i have made the necessary changes to the files available here, and will start the process of updating the exising blocks soon. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
deepsand
Joined: Jun 17, 2003 Posts: 14
|
Posted: Wed Nov 05, 2003 1:50 pm
Awesome job on this block Dari...got it working no problem on my site http://www.deepsand.net one question... I would like to make the photo larger and place top center....is there a simple way to do this?...I looked at the code to no avail...Thanks Mark
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Nov 05, 2003 1:51 pm
it defaults to the thumbnail size. i may be able to add in the code from the updated album block to allow the size to be changed. by top center, do you mean making it a top center block, or having the image top center in the block?
|
| Author | Message |
| Post Title: | |
deepsand
Joined: Jun 17, 2003 Posts: 14
|
Posted: Mon Nov 10, 2003 2:21 pm
I can move the block to top center...I just want the feature photo to be around 400 pixels wide....Thanks...
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Nov 10, 2003 2:58 pm
ok, look at http://phpnuke.nukedgallery.net ...the block is top center, with thumb sized to 400, unfortunately, this is a problem. the original thumb is stored at whatever default size you specified, so doing this "simple resize" results in a crappy image. what i might wind up doing is copying the image as "featured_photo.jpg" and then resizing the image to your desired width. i have questions in with the developers on this issue.
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Nov 12, 2003 8:24 am
Good news, it's fixed. Grab the download from the site. It now has a "THUMB_SCALE" option that you can set to be the size of the largest dimension of the photo. However, due to a bug in earlier versions of Gallery, you MUST have at least 1.4.1-RC3 or 1.4.2-cvs-b5 installed for that functionality to work properly.
|
| Author | Message |
| Post Title: | |
deepsand
Joined: Jun 17, 2003 Posts: 14
|
Posted: Fri Nov 14, 2003 6:33 pm
Awesome Great job Dari..!.......got it working easily...photo was still a bit large (pulling from the gallery) so I went in and indiviually resized the one photo I wanted up front on the site(through admin)...easy enough to go back and resize it back to full size later...Thanks!
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
alexliebe
Joined: Nov 09, 2003 Posts: 5
|
Posted: Wed Dec 03, 2003 3:02 am
hi dari!
the block is great! I use gallery v1.4.1 on a PHP-Nuke-7.0ALPHA2. there is just one problem: when I am logged in as a just an user and not as admin (god) at the same time I get the following error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ai004vne/www/home/nuke/modules/Gallery/classes/database/mysql/Database.php on line 37 there are 3 situations the block works: as Anonymous as Anonymous and admin (god) as an user AND as admin (god) as just an user I get the error mentioned above. once I klick on the featured photo in the block the message is gone - but only as long as I am in the gallery module. when I leave the gallery - the message comes again. do you have an idea? thanx alex |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 03, 2003 7:53 am
hmmm disable the block and see if the error occurs. i'm wondering if FB changed the nuke database structure in 7.0 again (this occured with 6.5 and the gallery team had to add some tweaks). i logged into the demo site as a normal user (non-god) and didn't get any errors...
|
| Author | Message |
| Post Title: | |
alexliebe
Joined: Nov 09, 2003 Posts: 5
|
Posted: Wed Dec 03, 2003 8:27 am
if you were at my site the block was not enabled (because of this error). you only could saw the random block - not the featured block.
if the block is diabled, the error doesn´t occurs. ciao alex |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dgitman
Joined: Dec 07, 2003 Posts: 2
|
Posted: Mon Dec 08, 2003 12:18 am
On the last step of installation when selecting a feature photo within Gallery I recieve the following error message
Fatal error: Call to undefined function: is_admin() in /homedirectory/public_html/modules/gallery/init.php on line 228 line 228 reads if (isset($GLOBALS['admin']) && is_admin($GLOBALS['admin'])) { I'm running Gallery 1.4.1 and PHP-Nuke 7.0. TIA. |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 08, 2003 7:55 am
Sorry, I don't have PHPNuke 7.0 yet. in all previous phpnukes, the is_admin function was in the mainfile.php file. check if it's there, or maybe it's got a new name? if you'd like, you can PM me the file and I'll check.
-dm <who doesn't want to recode everything because of new function names in 7.0> |
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Sun Dec 14, 2003 9:09 am
Hi,
The block works, but the resize option behaves wierdly. The image is (according to mozilla) actually 1.6mb... for a 150x100 image... the location of it is the full size image on my server too... so is this just doing a client end resize by the browser?? |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 8:32 am
yes, i believe that is the case. this was the best option that was given to me by the gallery devs, though i think a new resize method may be available. i'll check into it
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:08 am
dgitman:
ok, i got your mainfile.php, and the is_admin function is there. i'll have to wait until 7.0 is released publically before i can go and figure out what's wrong.... |
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:20 am
dari. doesnt that seem a little unfrientdly to the users bandwidth... downloading a 1.6mb image for a thumbnail?
i think an option to use the thumbnail images instead would be good (then the user can use the 15k thumbnails for anything small, and the full images fora large on.) |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:23 am
i agree totally about the bandwidth issue. the problem is as follows:
example image is 480x640. thumbnail image is 150 on it's longest side. if the user wants something besides the thumbnail sized image, resizing the thumbnail results in a very poor image (esp. if it's resized up). so, resizing the thumbnail would work for resizing to less than the user's thumbnail size, otherwise, you have to use the full image for a resize, which is done via javascript on the client side. i'm going to talk to the devs to see if there's some other way to get this done that's both more client and server friendly. |
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:26 am
what about a resize using image magick? opbviously this is only nice for images that dont change every page view/5 sec... but its the only way you can get a low bandwidth solution.... because client side means downloading the large image...
|
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:27 am
php also has builtin image functions, but i dont know how well they work, id stick with IM or whatever the other one that gallery supports is
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:28 am
yes, but what about people who use netpbm? is the resizing as easy/obvious as it may be (i haven't looked yet) for imagemagick?
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:28 am
php's image functions won't work well enough for this purpose...and it would be too server intensive, i think.
|
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:33 am
assuming youre using daily images, the server load should be fine... how does gallery do resizes? we must be able to call the function that it uses, so that we can just use whatever gallery does (IM/netpbm) to resize, using gallery's functions. so no config for that other than where is gallery.
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:38 am
Gallery resizes them when you upload to the thumbnail, intermediate (if used), and then it saves the full sized image. no resizing on demand is done, it just fetches pre-saved image files. i'll check the upload mechanism and see what they use...
|
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:39 am
but you CAN resize on demand if you want to.
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:41 am
not that i'm aware of...the links under the thumbnail both refer to pre-saved image files. they did use some javascript at one point to have it match your screen resolution, but i think that was taken out due to a bug, and i'm not sure if it's reimplemented (beckett and/or TimJ want to verify this for me?...or do you guys have a good solution to this problem?)
|
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:45 am
er, well. When logged in as admin, in gallery, i see an option to "resize photo" which brings up a page to let me choose what size to make the image. (note, im looking at my medium size image, not my full sized one)
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:46 am
ah, that's the admin option to resize the fullsized image and then save it so users can use that one instead. (i think).
|
| Author | Message |
| Post Title: | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Mon Dec 15, 2003 10:50 am
ok, so cant we hook into that and use that function to create a new image for the random photo?
|
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 15, 2003 10:54 am
i'll look into it
|
| Author | Message |
| Post Title: | |
dgitman
Joined: Dec 07, 2003 Posts: 2
|
Posted: Mon Dec 15, 2003 7:04 pm
Dari:
Thanks, I'll wait until then. Let me know if I can help in anyway. |
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Wed Dec 17, 2003 1:39 pm
I have the same issue as alexliebe, but I am running php nuke V6.9.
The site in question is www.globe-hopping.com i have two blocks running, the featured photo and most popular photo blocks, its def the featured photo block that is the cause as if i disable it the issue vanishes. It only happens if you are a logged in user, not when you are logged in as admin also !!! Any ideas, the problem is there to see now if you take a peek at the site, you would need to register to see it, but take my word its there Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ghadmin/public_html/modules/gallery/classes/database/mysql/Database.php on line 37 |
| Author | Message |
| Post Title: | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 17, 2003 1:43 pm
at the top of the featured photo block, add this to the top:
PHP: ›
<?php global $Version_Num; ?>you may also want to add that to the global statement in the block file that's in the gallery directory as well |
| Author | Message |
| Post Title: | |
daveburley
Joined: Oct 03, 2003 Posts: 18
|
Posted: Wed Dec 17, 2003 2:35 pm
thx a lot Dari that sorted it ok
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
scarah
Joined: Nov 10, 2003 Posts: 2
|
Posted: Fri Jan 09, 2004 3:16 am
Hi, I installed this and have it working great. The only thing is, the thumbnail is turning out bigger than the usual thumbnails, which is throwing off the blocks. If you like, you can see it in action here:
http://www.diagonally.org/phpnuke/index.php Is there any way to tweak that? Thanks! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Jan 09, 2004 4:21 am
In the file 'featured_photo.php' (/yoursite/modules/gallery) look for this line (near the top)
define(THUMB_SCALE,0); // Leave at 0 to use your thumbnail size, otherwise set to desired width of photo. Simply change the '0' to whatever size pixels you need (120?) |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
scarah
Joined: Nov 10, 2003 Posts: 2
|
Posted: Fri Jan 09, 2004 5:30 am
Perfect, thanks. Also, I apologize if this came up before, I linked directly to the 5th page of the thread somehow and only just noticed it wasn't the first.
Thanks again! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sat Jan 10, 2004 1:13 am
Hi...I tried to install this block and I get these errors...I know its something with the base_dir but I don't know how to fix it
Warning: main(): open_basedir restriction in effect. File(/home/httpd/phpnuke.nukedgallery.net/htdocs/modules/gallery/featured_photo.php) is not within the allowed path(s): (/home/immortal:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(/home/httpd/phpnuke.nukedgallery.net/htdocs/modules/gallery/featured_photo.php): failed to open stream: Operation not permitted in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(): Failed opening '/home/httpd/phpnuke.nukedgallery.net/htdocs/modules/gallery/featured_photo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 can anyone help? |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Jan 10, 2004 7:56 am
read the installation instructions, you didn't change your paths
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sat Jan 10, 2004 12:07 pm
what installation instructions? u mean the config wiz? and if so how do i get back there? and what do i change the paths to?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
xian
Joined: Jan 09, 2004 Posts: 4
|
Posted: Sat Jan 10, 2004 10:56 pm
zariah wrote: › what installation instructions? u mean the config wiz? and if so how do i get back there? and what do i change the paths to?
in the zip file which can be downloaded from here there is a folder named "featured_photo." in this folder you will find a file "READ ME" which contains the instructions which dari is reffering to. best |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 12:29 am
I've read that quite a few times...
1. Put the block-NG-FeaturedPhoto.php file in your blocks directory. Edit the GALLERY_BASEDIR as needed. I'm not sure what you mean by edit the gallery_basedir or even where i go to do that I'm not even sure if thats the problem |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 1:58 am
OK...I tried to set it to the right paths and im pretty much getting the same error...
Warning: main(): open_basedir restriction in effect. File(/home/httpd/www.immortality.cc/modules/gallery/featured_photo.php) is not within the allowed path(s): (/home/immortal:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(/home/httpd/www.immortality.cc/modules/gallery/featured_photo.php): failed to open stream: Operation not permitted in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(): Failed opening '/home/httpd/www.immortality.cc/modules/gallery/featured_photo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 2:01 am
GRRRRRR!!!!!
I finally get the error messages to go away and the lil block thing pops up but it says this inside the block: There is a problem right now with this block. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 2:47 am
i know i post too much but i really want this to work...
when i tried to fix it im now getting this error...i went back and did everything again and its still not working Warning: main(): open_basedir restriction in effect. File(/home/httpd/www.immortality.cc/public_html/modules/gallery/featured_photo.php) is not within the allowed path(s): (/home/immortal:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(/home/httpd/www.immortality.cc/public_html/modules/gallery/featured_photo.php): failed to open stream: Operation not permitted in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(): Failed opening '/home/httpd/www.immortality.cc/public_html/modules/gallery/featured_photo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sun Jan 11, 2004 5:38 am
Please post the CONFIG lines from the top of the BLOCK
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 9:48 am
if (eregi("block-NG-FeaturedPhoto.php",$_SERVER[PHP_SELF])) {
Header("Location: ../index.php"); die(); } // Change this to whatever path your Gallery is installed in. include("/home/httpd/www.immortality.cc/public_html/modules/gallery/featured_photo.php"); ?> |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Sun Jan 11, 2004 9:59 am
Is that what u mean?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
kris787
Joined: Dec 19, 2003 Posts: 2
|
Posted: Fri Jan 30, 2004 5:17 pm
dgitman wrote: › On the last step of installation when selecting a feature photo within Gallery I recieve the following error message
Fatal error: Call to undefined function: is_admin() in /homedirectory/public_html/modules/gallery/init.php on line 228 line 228 reads if (isset($GLOBALS['admin']) && is_admin($GLOBALS['admin'])) { I'm running Gallery 1.4.1 and PHP-Nuke 7.0. TIA. I ran into this same issue. I had to make sure my featured-photo.cache file was chmod to 777 and that fixed it... |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
valerie
Joined: Dec 16, 2003 Posts: 9
|
Posted: Tue Feb 03, 2004 10:11 pm
dari wrote: › The Featured Photo block (as seen on the PHPNuke.NukedGallery.net testing site) is available for test downloads here [nukedgallery.net]. Please post all questions/problems/etc to this thread.
Hi -- I've read all the posts but I haven't seen anyone with my error yet: ERROR: requested index [-1] out of bounds [20] Fatal error: Call to a member function on a non-object in /home/kalorama/public_html/modules/gallery/featured_photo.php on line 87 I am not sure which version of phpnuke I am using. I think it is 6.9 but is there someplace I can check to know for sure? I am running Gallery 1.4.1. Any ideas what is causing my problem? Thanks for any help. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Feb 04, 2004 1:47 am
Try deleting the associated 'featured-photo.cache' file from your ALBUMS directory and refresh the page
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
valerie
Joined: Dec 16, 2003 Posts: 9
|
Posted: Wed Feb 04, 2004 10:44 am
Nope --
I've deleted it, recreated it, changed permissions and then redid everything again after intalling the new RC2 version of Gallery. Saving the feature photo aspect works approrpriately (it is an option in the drop down list and when I select it, I get the confirmation that a new featured photo was saved) but when I show the block, I still get the same error. What else could be wrong? I don't know if this could help diagnose the problem, but if I delete the cache file created when I select a featured photo and create instead a new blank cache file, I get the "no feature photo" message in the block, so the block works fine as long as no featured photo has been selected. Once I select one, I get that same error message. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:06 am
Hi...
When I tried to install this block again I got the following error: Warning: main(/home/immortal/http://www.immortality.cc/public_html/modules/gallery/featured_photo.php): failed to open stream: No such file or directory in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 Warning: main(): Failed opening '/home/immortal/http://www.immortality.cc/public_html/modules/gallery/featured_photo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/immortal/public_html/blocks/block-NG-FeaturedPhoto.php on line 16 I read the directions 100 times and thought I did everything right this time. Could someone please help me fix this problem? Thanx! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 1:59 am
zariah,
make sure that line 16 in your /blocks/block-NG-FeaturedPhoto.php is: Code: ›
include("/home/immortal/public_html/modules/gallery/featured_photo.php"); |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 12:03 pm
ok thanx i changed it to that and now i get
Warning: file(/home/immortal/public_html/albums/featured-photo.cache): failed to open stream: No such file or directory in /home/immortal/public_html/modules/gallery/featured_photo.php on line 63 Warning: Invalid argument supplied for foreach() in /home/immortal/public_html/modules/gallery/featured_photo.php on line 72 |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 12:26 pm
Does featured-photo.cache exist in your ALBUMS folder? If not, try created an empty file called featured-photo.cache and upload to your ALBUMS folder and chmod it to 777
For the foreach() error try: http://www.nukedgallery.net/faq-4-D.++E ... ges.html#1 |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 12:34 pm
oh coolies its up with no errors...thanx slack!
i guess my last newbie question would be how do i put a featured photo in there hehe...it just says no featured photo |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 12:42 pm
Check to see if the file:
/albums/featured-photo.cache has anything in it and it's chmod to 777. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 12:49 pm
ok i checked and it had <?php code in it so i made a new blank doc with nothing and im back at the same spot....and it is 777
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 1:02 pm
Just as a test:
try changing the following in the featuered_photo.php define(FEATURE_CACHE, $gallery->app->albumDir . '/featured-photo.cache'); to define(FEATURE_CACHE, '/home/immortal/public_html/albums/featured-photo.cache'); There are two places to change. Then try adding a new featured photo |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:05 pm
ok i changed that...my question is how do i add a new featured photo?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 1:10 pm
From the README file included with Featured Photo
Quote: ›
Here's how you install this block: ****NOTE**** YOU MUST HAVE AT LEAST GALLERY 1.4.1-RC3 OR GREATER INSTALLED FOR THE "RESIZE IMAGE" PORTION OF THIS BLOCK TO WORK. IF YOU DO NOT HAVE AND/OR DO NOT WISH TO UPGRADE, YOU **MUST** LEAVE THE "THUMB_SCALE" VARIABLE SET TO 0, OTHERWISE, THE BLOCK WILL NOT FUNCTION. THIS IS DUE TO A SMALL BUG IN PRIOR VERSIONS OF GALLERY. *********** 1. Put the block-NG-FeaturedPhoto.php file in your blocks directory. Edit the GALLERY_BASEDIR as needed. 2. Put featured_photo.php in your Gallery directory and edit as indicated. 3. Add the following line to the bottom of the safe_to_include array in the index.html file in your Gallery: "featured_photo.php" 4. Add the following code to your view_albums.php file, around line 944 or so (right above the line reading if ($gallery->user->canDeleteFromAlbum($gallery->album) && $showAdminForm) { ): if ($gallery->user->isAdmin() && !strcmp($label, "Photo")) { showChoice('Feature Photo', 'featured_photo.php', array('set' => 1, 'set_albumName' => $myAlbum->fields['name'], 'id' => $id)); } 5. Activate the block, and choose a featured photo. If it gives you an error about featured-photo.cache, create an empty file with that name in your albums directory. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:15 pm
I've read the readme...im just lost on this part:
5. Activate the block, and choose a featured photo. If it gives you an error about featured-photo.cache, create an empty file with that name in your albums directory. How do I choose a featured photo? I'm logged into my gallery as admin right now and I don't see where the option is. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Feb 05, 2004 1:16 pm
go into an album, the dropdown under each photo will now have a "Featured Photo" selection.
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:17 pm
n/m im dumb...computer stuff that is common sense to other ppl is totally foreign to me...thanx again slack!
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:19 pm
Ok its working but the thumbnail is like sticking way out of the box
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:20 pm
hehe thanx dari thats what i was looking for...the most basic answer possible
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Feb 05, 2004 1:41 pm
http://www.immortality.cc
i did some searches on how to fix the size? and couldn't find anything...would someone mind taking a look and tell me what is wrong with the image size and why it doesn't fit in the box. thanx! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
slackbladder
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 05, 2004 1:47 pm
In featured_photo.php, change:
define(THUMB_SCALE,0); to define(THUMB_SCALE,XXX); where XXX = the size you want (px) |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Fri Feb 06, 2004 12:44 am
awesome...thanx so much for your help with this slack..and dari for making this possible i love u guys!!!!
|
| Author | Message |
| Post Title: | |
BurZurk
Joined: Dec 21, 2003 Posts: 2
|
Posted: Sun Feb 22, 2004 12:25 pm
dari wrote: › at the top of the featured photo block, add this to the top:
PHP: ›
<?php global $Version_Num; ?>you may also want to add that to the global statement in the block file that's in the gallery directory as well Thanks Dari- it's a great block and with your help I was having the same problem above and this worked great. www.nomercygiven.com |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Wed Feb 25, 2004 12:50 pm
Hey Dari. Its been a while since ive looked here. I was wondering if this block has been modified to use the already existing thumbnail (or generate a new one) rather than forcing the user to download a large, hi-res image and resize it client side.
cheers |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block-Featured-Album Slideshow) | |
lzmarine
Joined: Feb 24, 2004 Posts: 3
|
Posted: Sat Feb 28, 2004 3:56 pm
Modified the Improved Featured Photo Block to create a thumbnail slideshow (primitive state, but testing welcome) for a designated album. The Gallery file is beta (hack) code available at: http://MagnoliasFlorist.com/featured_album.php.tgz. Just modify the original featured photo block to point to this file and edit the view_album.php Gallery file to include:
Code: › if ($gallery->user->isAdmin() && $gallery->album->isAlbumName($
i)) { showChoice('Feature Album', 'featured_album.php', array('set' => 1, 'set_albumName' => $myAlbum->fields['name'])); } This can be added just under the location recommended for the feeatured photo block. Any feedback welcome. If there's a fair amount of responses, I'll take the time to write a README... unless anyone else wants to do it! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
inSaNE_iRIsH
Joined: Jun 19, 2003 Posts: 101
|
Posted: Sun Mar 07, 2004 8:01 pm
well, i tried it out and i get this error
Code: › Fatal error: Call to a member function on a non-object in /home/virtual/site21/fst/var/www/html/html/modules/gallery/featured_album.php on line 110 |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
inSaNE_iRIsH
Joined: Jun 19, 2003 Posts: 101
|
Posted: Sun Mar 07, 2004 8:11 pm
hey, by the way, dari, my gallery is v1.3.4, the feature photo is huge, it isnt the size of a thumbnail, its the size of the pic after clicking on the thumbnail, is that what it is supposed to be?...also, if i wanted to upgrade, how do i "upgrade"? the dl at gallery is everything, how do i upgrade without losing my customization/hacks?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Mar 08, 2004 8:03 am
hmm your error will probably be fixed with an upgrade. as for your mods and/or hacks, you'll have to perform a diff and see what you've done. there is no easy way to merge the files (there have been LOTS of changes since 1.3.4).
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Wed Mar 10, 2004 10:09 pm
Hi,
I reinstalled this block for my new site and I'm getting an error I've never seen before. I checked the FAQ and the forums here for an answer but could not find one. I am running PhP-Nuke 7.0 and Gallery version 1.4.2 My site is http://www.immortality.cc/ Code: › Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/immortal/public_html/modules/gallery/classes/database/mysql/Database.php on line 37
Anyone know what that means? |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Wed Mar 10, 2004 10:11 pm
Oh and I do not get this message when logged in as admin and unregistered users do not get it either. It only shows up when someone logs in as a registered user.
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Mar 11, 2004 8:18 am
hmm...this is usually a problem with the database...when you configured gallery, did you select "PHPNuke" as your embedded environment?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Thu Mar 11, 2004 11:34 am
I'm not sure...how do I run the config again to check?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
zariah
Joined: Nov 30, 2003 Posts: 41
|
Posted: Fri Mar 12, 2004 12:24 am
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
garyd60
Joined: Mar 12, 2004 Posts: 1
|
Posted: Sat Mar 13, 2004 12:17 am
I installed the featured photo block. Everything went fine untill I clicked on the select featured photo. then I get this error
Code: › Fatal error: Call to undefined function: is_user() in /home/garyd60/public_html/gallery/init.php on line 247
Here is line 247Code: › } else if (is_user($GLOBALS['user'])) {
I have version 1.4.2 of gallery installed and also phpnuke is ver 7.0 Hey! I fixed the problem. I had installed Gallery in my Public_html dir. and just needed to reinstall it in phpnuke/modules/ dir. and re-edit the files and it works like a charm. thanks for your time.By the way great mod. |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
iscream
Joined: Mar 17, 2004 Posts: 3
|
Posted: Tue Mar 23, 2004 1:30 pm
dari wrote: › hmm...this is usually a problem with the database...when you configured gallery, did you select "PHPNuke" as your embedded environment?
I have run the config script at least 4 times looking for this option.. Cant seem to find it. Gallery 1.4.2 PHPNuke 7.1 getting error: Code: › Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/jesse/www/modules/Gallery/classes/database/mysql/Database.php on line 37
When logged on as a normal user/not logged on... but when logged on as admin, do not get this error.. Gallery has been installed in phpnukes /modules dir and I have added the module succesfully... Thanks to all! Jesse NM: - switched to the random image generator instead... |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
darkknight
Joined: Aug 21, 2003 Posts: 54
|
Posted: Thu Apr 15, 2004 11:03 am
Has this block's code been updated? does it still use the full hi-res image in the block, or does it behave properly and use the thumbnail (or generate a thumb)?
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
Insolence
Joined: Apr 24, 2004 Posts: 1
|
Posted: Fri Apr 30, 2004 3:49 am
darkknight wrote: › Has this block's code been updated? does it still use the full hi-res image in the block, or does it behave properly and use the thumbnail (or generate a thumb)? I was wondering the same Great concept though! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
bulldog
Joined: May 21, 2003 Posts: 1
|
Posted: Tue Jun 29, 2004 5:20 pm
Thanks for the great block. I had it working great until I logged off as administrator. Now above the block I have "mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mywebpath/modules/gallery/classes/database/mysql/Database.php on Line 37"
Any ideas? Thanks again! EDIT: Sorry for the post... I didn't realize there were 8 pages of posting until after the fact. Dari, you answered the Database.php problem earlier. Simply add <?php global $Version_Num; to the top of the block. Worked like a charm! Thanks again! |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
Debz
Joined: May 05, 2004 Posts: 24
|
Posted: Sat Jul 10, 2004 5:39 am
i dont have any errors with this block but i dont have a drop-down option under any photos to add as a feature photo... (am logged in as admin)
any ideas? |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
Debz
Joined: May 05, 2004 Posts: 24
|
Posted: Sun Jul 18, 2004 7:03 am
bump! Still don't have the option to add a pic as featured photo
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
blushn
Joined: Jul 18, 2004 Posts: 1
|
Posted: Sun Jul 18, 2004 8:22 pm
n/a
think I fixed the problem i was having Thanks, Bree |
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
CBR
Joined: Oct 06, 2004 Posts: 1
|
Posted: Wed Oct 06, 2004 9:08 am
Anyone get the resolution to the below error? I too dont get the error when logged in as admin.
Code: › Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/30/d100415342/htdocs/OutdoorsGoneWild.com/modules/gallery/classes/database/mysql/Database.php on line 37
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
chiumanfu
Joined: Jul 26, 2003 Posts: 7
|
Posted: Sat Nov 13, 2004 9:07 am
Great block Dari! Is there an update out there that uses the thumbnail instead of the high res original pic? If not...here's your friendly reminder.
|
| Author | Message |
| Post Title: Re: [TESTING] Featured Photo Block | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Nov 13, 2004 2:53 pm
not yet, but give me some time (still getting things back to normal after the wedding and honeymoon)
|