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  

Using the imageblock module code within php-nuke

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Wed May 24, 2006 1:27 pm    Post subject: Using the imageblock module code within php-nuke Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Using the imageblock module code within php-nuke  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed May 24, 2006 1:29 pm    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

use the block file that came with the integration package.
Back to top
Offline View user's profile Send private message Visit poster's website
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Wed May 24, 2006 4:52 pm    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
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: Fri May 26, 2006 6:47 am    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

what is the syntax, etc of the block files that you use for your site?
Back to top
Offline View user's profile Send private message Visit poster's website
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Sat May 27, 2006 1:36 am    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
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: Sat May 27, 2006 9:10 am    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
Offline View user's profile Send private message Visit poster's website
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Tue May 30, 2006 3:01 am    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
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: Tue May 30, 2006 12:03 pm    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
Offline View user's profile Send private message Visit poster's website
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Tue May 30, 2006 12:28 pm    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

Will do. Thanks for the help, and I'll get back to this when it gets working
Back to top
Offline View user's profile Send private message
skistyle

Beginner
Beginner


Joined: Dec 24, 2004
Posts: 18

PostPosted: Sat Nov 25, 2006 1:38 pm    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

Ahhhh Mad 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
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: Mon Dec 04, 2006 8:26 am    Post subject: Re: Using the imageblock module code within php-nuke Reply with quote

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
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 » Blocks View previous topicPrinter friendly versionView next topic

 
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 ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

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