Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

[TESTING] Featured Photo Block
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 06, 2003 7:01 pm    Post subject: [TESTING] Featured Photo Block Reply with quote

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.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: [TESTING] Featured Photo Block  

Back to top
nwells

Beginner
Beginner


Joined: Sep 22, 2003
Posts: 5

PostPosted: Mon Oct 06, 2003 9:05 pm    Post subject: Re: [TESTING] Featured Photo Block Reply with quote

Worked great for me Dari, thanks so much for your quick work! Exactly what I wanted!

Have a good one,
Nathan
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 06, 2003 9:07 pm    Post subject: Reply with quote

awesome, glad to hear that it's all working out for ya Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
daveburley

Beginner
Beginner


Joined: Oct 03, 2003
Posts: 18

PostPosted: Tue Oct 07, 2003 6:16 am    Post subject: Reply with quote

I installed it and got errors Dari Sad

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 ?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 07, 2003 7:14 am    Post subject: Reply with quote

doh...you're right Smile my bad. it should be featured_photo.php...do you get that error when you make the change?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
daveburley

Beginner
Beginner


Joined: Oct 03, 2003
Posts: 18

PostPosted: Tue Oct 07, 2003 11:14 am    Post subject: Reply with quote

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 Smile
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 07, 2003 11:19 am    Post subject: Reply with quote

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")) {
            showChoice('Feature Photo',
               'featured_photo.php',
               array('set' => 1,
               'set_albumName' => $myAlbum->fields['name'],
               'id' => $id));
         }
directly underneath it.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
daveburley

Beginner
Beginner


Joined: Oct 03, 2003
Posts: 18

PostPosted: Tue Oct 07, 2003 11:25 am    Post subject: Reply with quote

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 ?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 07, 2003 11:28 am    Post subject: Reply with quote

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).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
daveburley

Beginner
Beginner


Joined: Oct 03, 2003
Posts: 18

PostPosted: Tue Oct 07, 2003 11:34 am    Post subject: Reply with quote

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 !!!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 07, 2003 11:37 am    Post subject: Reply with quote

when you select it, does a window pop up saying that the feature photo was saved?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
daveburley

Beginner
Beginner


Joined: Oct 03, 2003
Posts: 18

PostPosted: Tue Oct 07, 2003 11:40 am    Post subject: Reply with quote

Sorted Smile

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
Back to top
Offline View user's profile Send private message
cuscus

Beginner
Beginner


Joined: Oct 10, 2003
Posts: 2

PostPosted: Sun Oct 12, 2003 8:26 pm    Post subject: Re: [TESTING] Featured Photo Block Reply with quote

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?
Back to top
Offline View user's profile Send private message
nwells

Beginner
Beginner


Joined: Sep 22, 2003
Posts: 5

PostPosted: Mon Oct 13, 2003 3:04 am    Post subject: Reply with quote

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
Back to top
Offline View user's profile Send private message
cuscus

Beginner
Beginner


Joined: Oct 10, 2003
Posts: 2

PostPosted: Mon Oct 13, 2003 11:15 am    Post subject: Reply with quote

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/
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia