| Author |
Message |
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Wed May 24, 2006 1:27 pm Post subject: Using the imageblock module code within php-nuke |
|
|
Hello,
I'm trying to make a php-nuke block to display the most recent image in gallery 2. Using the code below allows everything to show up perfectly:
@readfile('http://www.mysite.com/site/modules/gallery2/main.php?g2_view=imageblock.External&g2_blocks=recentImage&g2_show=none&g2_maxSize=105');
The only issue is that the linked picture links to the non-integrated side of the photo gallery. Is there any way to modify this so that it links to the integrated gallery or doesn't link at all? Thanks very much! |
|
| Back to top |
|
|
AdBot
|
| Post subject: Using the imageblock module code within php-nuke |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed May 24, 2006 1:29 pm Post subject: Re: Using the imageblock module code within php-nuke |
|
|
| use the block file that came with the integration package. |
|
| Back to top |
|
|
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Wed May 24, 2006 4:52 pm Post subject: Re: Using the imageblock module code within php-nuke |
|
|
Hey,
Thanks for the quick reply! I would use the block that came from the integration, but the site that I'm using it on is only based on php-nuke and is not actually phpnuke. I have changed the layout entirely and I can no longer use blocks as they were intended.
To get an idea of what i'm talking about, here is the link to the site that I'm working on...
http://www.njdirt.com/06
The most recent photo is on the right side of the site, and as I said, everything is still being constructed. I've tried to manipulate the nuke block from the integration package prior to this, without any luck. I hope you can help me out.
Thanks,
Mark D. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri May 26, 2006 6:47 am Post subject: Re: Using the imageblock module code within php-nuke |
|
|
| what is the syntax, etc of the block files that you use for your site? |
|
| Back to top |
|
|
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Sat May 27, 2006 1:36 am Post subject: Re: Using the imageblock module code within php-nuke |
|
|
In order to make the "blocks" appear within the site, the code is as follows:
The theme file where the block will be found includes this a line like this:
require_once("windows/login.php");
loginform($usr_id);
where loginform is a function within the file login.php.
Since these windows usually do simple things, the function will often be the only thing in the file. As the php-nuke block file is composed of many functions, I cannot seem to make it appear as I want.
Thanks for the quick reply! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat May 27, 2006 9:10 am Post subject: Re: Using the imageblock module code within php-nuke |
|
|
try:
Code: › @readfile('http://www.mysite.com/site/modules.php?name=gallery2&g2_view=imageblock.External&g2_blocks=recentImage&g2_show=none&g2_maxSize=105'); |
|
| Back to top |
|
|
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Tue May 30, 2006 3:01 am Post subject: Re: Using the imageblock module code within php-nuke |
|
|
Hello,
Thanks for the suggestion, but I have already tried that. I'm not sure why, but that code tries to reload the entire page where the photo would show up and causes a great big mess.
If there is even a way that I could just disbale the link, I'd be set. Do you know if that can be done?
Many thanks! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue May 30, 2006 12:03 pm Post subject: Re: Using the imageblock module code within php-nuke |
|
|
| honestly, i don't think that can be done. might want to check in the main gallery forums though. if you do figure it out, or if they answer it for you, please post back w/ the soltuion. |
|
| Back to top |
|
|
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Tue May 30, 2006 12:28 pm Post subject: Re: Using the imageblock module code within php-nuke |
|
|
| Will do. Thanks for the help, and I'll get back to this when it gets working |
|
| Back to top |
|
|
skistyle
Beginner


Joined: Dec 24, 2004 Posts: 18
|
Posted: Sat Nov 25, 2006 1:38 pm Post subject: Re: Using the imageblock module code within php-nuke |
|
|
Ahhhh I still can't figure this out!!
Please look at www.njdirt.com [njdirt.com]. The imageblock is on the right side of the page, about 1/3 down. I must have the link point to the integrated gallery or remove the link.
Does anyone know how to do this? Please help!!!
Many thanks!
P.S. - Shouldn't there be some place in the code where the link is compiled? Couldn't I just manaully type the link in and use a variable to provide the right item number in the link?
Again, thanks |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Dec 04, 2006 8:26 am Post subject: Re: Using the imageblock module code within php-nuke |
|
|
| in theory, the code i used above should work. the only other suggestion i can offer is to look in the g2 site admin -> imageblock. there is a code snippet in there that shows how you can insert the block in external sites, etc, but i think that might be the same as what i've posted above. |
|
| Back to top |
|
|
|
|
|
|
|