| Author |
Message |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Sep 14, 2005 6:45 am Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
| i'll check into it...warhawk911, can you post the lines from your gallery2.cfg file? |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
|
|
|
| Back to top |
|
 |
warhawk911
Beginner


Joined: Sep 13, 2005 Posts: 5
|
Posted: Wed Sep 14, 2005 10:07 am Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
This is the only way i was able to make the gallery working, if i change something, it stop working
<?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 |
|
|
MrPapa
Beginner


Joined: Jul 03, 2005 Posts: 14
|
Posted: Wed Sep 14, 2005 4:36 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Sep 15, 2005 6:23 am Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
i'm mulling over this....give me a few days  |
|
| Back to top |
|
|
MrPapa
Beginner


Joined: Jul 03, 2005 Posts: 14
|
Posted: Thu Sep 15, 2005 9:42 am Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
No problem, you have been more than kind in your support...
Mr Papa |
|
| Back to top |
|
|
warhawk911
Beginner


Joined: Sep 13, 2005 Posts: 5
|
Posted: Thu Sep 15, 2005 10:53 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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
Thanks for the Help
warhawk911 |
|
| Back to top |
|
|
warhawk911
Beginner


Joined: Sep 13, 2005 Posts: 5
|
Posted: Sun Sep 18, 2005 10:42 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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
Thanks
Yannick |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Sep 20, 2005 6:39 am Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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 |
|
|
warhawk911
Beginner


Joined: Sep 13, 2005 Posts: 5
|
Posted: Tue Sep 20, 2005 3:18 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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....
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 |
|
|
MrPapa
Beginner


Joined: Jul 03, 2005 Posts: 14
|
Posted: Thu Sep 22, 2005 12:29 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
Dari,
Any chance to think on this one further?
Thanks...
Mr Papa |
|
| Back to top |
|
|
chumpo
Beginner


Joined: May 22, 2003 Posts: 6
|
Posted: Wed Oct 12, 2005 8:50 pm Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain |
|
|
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 |
|
|
|
|
|
|
|