PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 9th, 2009, 01:15 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2009
Location: Ohio
Posts: 91
Complete the nuke integration

Okay its almost integrated. The Login is integrated. Very excellent. Thats probably 75 % of the work to complete integration and 90% of the difficulty.

Nuke uses a standard opentable and closetable for the start and finish of each page. This open table function provides the header and the footer and left and right colums.

The wrap doesnt seem to care much what the module does as long as the module doesnt try to over-write the wrap.

The module sits in the center of the page.

In theory if youve done the login this wrapping of everything else shouldent be THAT difficult.

In fact, it looks like it might have already been done for VB? Is that right?

So at the moment I am running it as a module with an Iframe. Obviously this is the cheezy way to do it. Id like to see it integrated for real by using my headers and footers and side blocks.

This also gives me the ability to encorporate stats from traffic into nuke from the classifieds as these stats are done in the header and footer.

This is my code for the Iframe

Code:
Content visible to verified customers only.
I kinda wondered if mabie one of the VB hacks might work but I know nothing of VB. Can you suggest if it would be possible .. and which VB hack would be best that I could use to try and incorporate this? ... it seems there are 3 ? and they each do it differently ???

Last edited by draxx; June 9th, 2009 at 01:21 PM.
draxx is offline   Reply With Quote
Old June 9th, 2009, 01:52 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
I dont think a vb will help you persay

You could theoretically write up a nuke header footer thing in header-inc.php like we do vb if you know what transpires and goes on but I personally am not too familiar with nuke so I really dont know what it does.

why would you need to do an iframe? if opentable and close table do everything you claim then you should be able to simply wrap those as the header and footer.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 9th, 2009, 03:16 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2009
Location: Ohio
Posts: 91
Yeah thats what I'm thinking too. Okay I will try that this night with the header.inc and footer inc.

I did an Iframe because I tried it real fast and it dident work and there were a ton of other things I wanted to conqure first.
draxx is offline   Reply With Quote
Old June 9th, 2009, 03:25 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
You should theoretically be able to create a header and footer php files to load the php you want and then link them under admin global options.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 9th, 2009, 05:42 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2009
Location: Ohio
Posts: 91
You mean I can link a header.php and a footer.php through admin global options instead of a header.html ? In this case who's header footer does it call first? ppclassifieds or the supplied one?

I added the opening stuff to index.php in ppclassifieds. Nuke loaded the main page of the module perfectly. But when I click on a category or something else it does not run this feature off of index.php but rather loads another (Showproduct,showcat). So I tried adding the nuke stuff to that file and it complained and said it could not find my mainfile.

Warning: main(mainfile.php) [function.main]: failed to open stream: No such file or directory in /var/www/virtual/domain.com/htdocs/modules/Classifieds/showproduct.php on line 19

Fatal error: main() [function.require]: Failed opening required 'mainfile.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/domain.com/htdocs/modules/Classifieds/showproduct.php on line 19

It should be looking in
/var/www/virtual/domain.com/htdocs/ - or the root web directory, for mainfile.

This has something to do with phpself?

Is there a way I can tell it not to forget its a nuke module when I load showcat or showprod?
draxx is offline   Reply With Quote
Old June 9th, 2009, 10:03 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
You want to use header and footer files so it loads the same throughout the program.

Your require line is incorrect. Either place the full server path to the file you want to find or use something like this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 9th, 2009, 11:25 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: May 2009
Location: Ohio
Posts: 91
Okay I tried that and got a blank screen. At least the errors went away
draxx is offline   Reply With Quote
Old June 9th, 2009, 11:32 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
You might want to check your server error logs to see what the true error is.

You can also try placing a full server path to that file

So your header.php should look like this

Code:
Content visible to verified customers only.
Your footer.php file something like this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 10th, 2009, 12:50 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: May 2009
Location: Ohio
Posts: 91
Tried that and got a blank screen. There is no errors in my error logs other than those file not found errors I told you about in another post.

Curious - any ideas why it would let me wrap index.php but not showcat or showprod ?
draxx is offline   Reply With Quote
Old June 10th, 2009, 01:33 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
Are your files existing where your telling the program they are?

I really would not know since I dont deal with Nuke. Your server error logs as I posted earlier might give you some idea.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nuke integration draxx Before You Buy 47 June 7th, 2009 10:30 AM
Nuke Integration gameover Classifieds Installation & Upgrades 7 November 28th, 2007 06:59 PM
VB3 Complete Integration Problem Imprezer Photopost Pro Installation & Upgrades 2 July 24th, 2005 10:44 PM
PHP Nuke and Photopost Integration Josh Schnapp Photopost Pro Installation & Upgrades 3 May 30th, 2005 08:03 PM
PHP-Nuke Integration w/ Existing Photopost DerekG Photopost Pro Installation & Upgrades 2 September 7th, 2004 08:11 PM


All times are GMT -5. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0