 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
November 6th, 2007, 07:41 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
| inc_features.php
is it possible to call this script separately on multiple pages? Or is it using conflicting statements that will have issues?
i.e. I'm using inc_features.php to do most_views and inc_features.php to see latest.
I asked in the how do i, since the mod section is slow and this is actually an out of the box feature of photopost. If you could just let me know what would be conflicting by pulling these on both pages, assuming I'm using different $photopostfeature to do so? What else needs to be changed in the second script?
thanks
|
| |
November 6th, 2007, 07:44 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
Well this is still a mod question
You can not call the file multiple times since you can only set that file to pull one result. You could create multiple files based on that one file and number them 2 3 4 etc as long as any files put on the same page you would need to remove any functions out of the extra files so you do not get redeclare errors.
|
| |
November 6th, 2007, 08:33 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Thats what I'm trying to figure out chuck  and i appreciate the response. I did rename them as you said, and I renamed the function that is called $whatever on the page, since the cmps im trying to call it on uses an include? of some kind im guessing. So, even after renaming both those things it still fails. I guess i could turn on errors to see whats happening, but i imagine its something simple in there somewhere im missing?
|
| |
November 6th, 2007, 09:17 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
what I mean by functions is this as thats all you need to remove. You will of course want to change $photopostfeature to say $photopostfeature2 etc for all your files. If you wish to ask further mod questions you may do so in THE MOD CORNER. Code: Content visible to verified customers only.
|
| |
November 6th, 2007, 09:42 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Ya, that doesnt seem to help, it doesn't want to include 2 on the same page despite removing the function, changing how its called on the page, etc. If you like, move it to the mod corner but I'd like to explore why it wouldn't be working.
|
| |
November 6th, 2007, 10:20 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
It works fine. If I take a plain PHP file say called test.php and upload it to my main webpage I see photo blocks fine. You take the second file call it inc_features.php remove the functions noted. You set the q_switch to what you want and then make $photopostfeature to say $photopostfeature1. Code: Content visible to verified customers only.
|
| |
November 6th, 2007, 10:27 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
hmm... mine does not. I wonder if its the stuff i added to restrict cats being displayed? Code: Content visible to verified customers only.
actually, if i create that same file, adjust my gallery location--and try to include either one it doesnt work
|
| |
November 6th, 2007, 10:38 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
i think i'd need to turn url_include on in php5.ini?
|
| |
November 6th, 2007, 10:44 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
very well could be you should try regular files and see.
|
| |
November 6th, 2007, 11:53 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Nope, I can pull that the header.htm stock and i turned on the URL include--still can't pull the standard file (unmodified). Oh well...
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 08:35 AM. | |