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  

Gallery2 PHP-Nuke Integration on Add-On Domain
Goto page Previous  1, 2
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
dari

Site Admin
Site Admin


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

PostPosted: Wed Sep 14, 2005 6:45 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

i'll check into it...warhawk911, can you post the lines from your gallery2.cfg file?
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain  

Back to top
warhawk911

Beginner
Beginner


Joined: Sep 13, 2005
Posts: 5

PostPosted: Wed Sep 14, 2005 10:07 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

This is the only way i was able to make the gallery working, if i change something, it stop working Sad

<?php
$g2embedparams = array (
'embedphpfile' => '/export/web/hockey/html/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => '/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'true';
?>
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Wed Sep 14, 2005 4:36 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Your config looks very similar to mine except I put gallery2 under modules where you did not.

Appears the key for both of us to get G2 working was to have a null embed path, but that prevents the nuke block from working for some reason.

Dari, if needed, I can give you access to my site to check things out. Appreciate all your help.

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Sep 15, 2005 6:23 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

i'm mulling over this....give me a few days Smile
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Thu Sep 15, 2005 9:42 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

No problem, you have been more than kind in your support...

Mr Papa
Back to top
Offline View user's profile Send private message
warhawk911

Beginner
Beginner


Joined: Sep 13, 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 10:53 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Thanks dari,

Btw, i will post this on a php board but who know, maybe somone here will know,
I know a way in Javascript to do what i need to do, but i need to do about the same thing in PHP:

String Expressions as Identifiers
The ability to build the string used as the property name can be very useful in loops and with dynamically generating web pages (server side) that have variable length content. The strings can be the result of expressions that concatenate string literals with variables

Javascript Ex:

<form name="formName" action="#">
<input type="text" name="field_1">
<input type="text" name="field_2">
<input type="text" name="field_3">
</form>
- the following loop will clear the value property of each element it turn:-

for(var c = 1;c < 4;c++){
document.forms["formName"].elements["field_"+c].value = "";

NOW, i will give a small PHP cript that would require to do the same thing, I KNOW i could use aray etc.. but i need to know how to do it this way.

$var_1 = "hi";
$var_2 = "how";
$var_3 = "are";
$var_3 = "you";

for($i=0;$i<4;$i++) {
echo $var.$i;
}

Now, echo $var.$i will not work but how to make a string from 2 sting and this will identifie the var: $var_1

Anyway i am not sure if a am clear, i have been loking everywhere on the web for this, i only find ppl that say it possible, but know one say how Sad

Thanks for the Help
warhawk911
Back to top
Offline View user's profile Send private message Visit poster's website
warhawk911

Beginner
Beginner


Joined: Sep 13, 2005
Posts: 5

PostPosted: Sun Sep 18, 2005 10:42 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

MrPapa,

I did my own Gallery2 Ramdom Block for PhpNuke. It working very fast and easy to setup. You can have a look at

http://www.cdhl.net [cdhl.net]

You can d/l the Zip: block-G2_Random_Warhawk.zip at:

http://www.cdhl.net/block-G2_Random_Warhawk.zip [cdhl.net]

It is so basic, i can't belive it working that great lol, the only
problem is when a picture is vertical, it will still put it in 150*113.

But anyway, I was not able to wait for a Fix Smile

Thanks
Yannick
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Tue Sep 20, 2005 6:39 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

warhawk911-
this is not a good way to code the block - no permission checks on images are done, so users can see images for which they are not authorized.
Back to top
Offline View user's profile Send private message Visit poster's website
warhawk911

Beginner
Beginner


Joined: Sep 13, 2005
Posts: 5

PostPosted: Tue Sep 20, 2005 3:18 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

I know, but i am using the gallery as a single user for My hockey Ligue, so for me it working perfectly, and very fast.. I know MrPapa has only on single gallery to .. so it sould work ok for him to while we can make the Real one work. I didn't get the chance to test it but if i Select an Picture ID from a private gallery, would the thumbnail still be created or will just failed? Cause if it failed, i could then just do a loop until a good Thumbnail is created and then display....

But that would slow down the web site.... Sad

Does the Galler2 thumbnail script verifie User permision? I hope so ... or anyone could just take the url and change Picture ID ...

Anyway tell me if the Loop until a good thumbnail would be a workaround for the moment. I would edit my script to make it test ...

Or just make a SQl query that make sure it random on picture that are Public ...
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Thu Sep 22, 2005 12:29 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Dari,

Any chance to think on this one further?

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
chumpo

Beginner
Beginner


Joined: May 22, 2003
Posts: 6

PostPosted: Wed Oct 12, 2005 8:50 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

i've the same problem as warhawk911.

gallery2 imageblock will not display any images.

also browsing to http://website/modules/gallery2/ brings up this error,

"You can't access this file directly..."

even though i have allow access config.php in gallery2 directory.

$gallery->setConfig('mode.embed.only', false);

I'm running phpnuke 7.9 (i think this is the cause of the issue, i think it has some new security for module directories??? i could way off on this, but maybe module.php is different in v7.9)

I'm a newbie for sure.

embedded Gallery2 works fine otherwise, far as i can tell.

I'm going to use warhawk911's random block for the time being as it works fine, and i don't have any images that are private/hidden.

(any chance we'll get a scrolling image blocks that allow from more then one image? user def number of images)
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2

 
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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filterWorld Meds Direct

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