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 Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 28th, 2005, 08:07 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Including recent photos on CMPS_INDEX

Hello folks, wanting to know something about the featured photo includes.
Using Vbad I created a mod pointing to a php file I called featured.php. Inside the file I put:

Code:
Content visible to verified customers only.
Once saved it brought the featured photos up, but its not in a block. Its at the very top of the screen as u can see in the attachments. Did I mod everything correctly? Should I have done it another way?
Attached Images
File Type: jpg EXAMP.jpg (67.8 KB, 121 views)
shadowdancer36 is offline   Reply With Quote
Old November 29th, 2005, 09:47 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Looks to me like its fine. You just need to echo it where you want it displayed. In vbadvanced just like vbportal you can elect where to display a php block you create.
__________________
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 November 29th, 2005, 10:47 AM   #3 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
The echo shouldn't be in the PHP module. Try creating a new HTML template and make the contents of the following....
Code:
Content visible to verified customers only.
Use the generic shell when creating the module.
KW802 is offline   Reply With Quote
Old November 29th, 2005, 11:48 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
So you can't create PHP blocks to display like VbPortal?

Seems to me I remember doing exactly what I posted on a friends vbadvanced CMS sites just fine
__________________
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 November 29th, 2005, 12:50 PM   #5 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
Quote:
Originally Posted by Chuck S
So you can't create PHP blocks to display like VbPortal?

Seems to me I remember doing exactly what I posted on a friends vbadvanced CMS sites just fine
You can create PHP blocks fine but the output should be done via variables in a template. For example, to create a PHP module that says nothing more then hello world then steps to take would be....

1. Create a new vB template named "adv_portal_mymodule" with the following content...
Code:
Content visible to verified customers only.
2. Create a new PHP module with the following content...
Code:
Content visible to verified customers only.
3. Add the new module to your CMPS page.


If you try to display the output directly from the PHP module then the output will be displayed at the top of the page before the CMPS page loads (as shown in ShadowDancer's screen shot).
KW802 is offline   Reply With Quote
Old November 29th, 2005, 01:05 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I knew there was a reason VBPortal is better and I bought it versus the other product
__________________
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 November 29th, 2005, 01:09 PM   #7 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
Quote:
Originally Posted by Chuck S
I knew there was a reason VBPortal is better and I bought it versus the other product
I'm surprised that vBP would allow an 'echo' command directly from the PHP code.

Having the display layer seperated from the logic level is cleaner.
KW802 is offline   Reply With Quote
Old November 29th, 2005, 01:18 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Having a template is optional.

The blocks are surrounded by div tags and the echoed html is placed properly where you want it placed
__________________
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 November 29th, 2005, 01:21 PM   #9 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
Quote:
Originally Posted by Chuck S
Having a template is optional.

The blocks are surrounded by div tags and the echoed html is placed properly where you want it placed
Ah, that's how they're doing it.

But I still say having the presentation layer seperate from the logic layer is cleaner. The 'day job' deals with 2-tier and 3-tier applications all day long.
KW802 is offline   Reply With Quote
Old November 29th, 2005, 03:47 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Quote:
Originally Posted by KW802
The echo shouldn't be in the PHP module. Try creating a new HTML template and make the contents of the following....
Code:
Content visible to verified customers only.
Use the generic shell when creating the module.
Just to make sure, could you walk thru the entire process? Right now I'm confused about which way to go about creating the template. Am I doing under Vbull? Or under Vbad? OR am I doing both? If so, who codes go in which? Are you saying the code Chuck gave me doesn't apply here?

I just want to be clear so I don't have to keep buggin you all.
shadowdancer36 is offline   Reply With Quote
Old November 29th, 2005, 11:13 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
bump***how the heck my message switch up like that?
shadowdancer36 is offline   Reply With Quote
Old November 30th, 2005, 05:29 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Nov 2002
Posts: 50
I have mine set up as what shadowdancer36 originally had and it works. I think you can make the block go where it's supposed to go by clicking on "Clean Up PHP" when you set up the vB Advanced module..
motors is offline   Reply With Quote
Old November 30th, 2005, 06:40 AM   #13 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
Quote:
Originally Posted by motors
I have mine set up as what shadowdancer36 originally had and it works. I think you can make the block go where it's supposed to go by clicking on "Clean Up PHP" when you set up the vB Advanced module..
The 'clean up' method is a way of trying to over-ride the PHP settings. Based upon how the PHP module is written it may or may not work. The template method is the 'cleaner' method of the two but for some simple PHP modules the 'clean up' method will work as well.
KW802 is offline   Reply With Quote
Old November 30th, 2005, 09:52 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Quote:
Originally Posted by motors
I have mine set up as what shadowdancer36 originally had and it works. I think you can make the block go where it's supposed to go by clicking on "Clean Up PHP" when you set up the vB Advanced module..

Thanks dude! That did the trick!
Now how can I make it verticle instead of horizontal?
shadowdancer36 is offline   Reply With Quote
Old November 30th, 2005, 09:58 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Let me ask that a different way....I know in the inc_features.php I can make it one row, BUT that will change how it's displayed in the forums as well.
Anyway to have it show up differently just on the index page?

Also I notice it's showing up as a block within a block. How come?
shadowdancer36 is offline   Reply With Quote
Old November 30th, 2005, 10:07 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
If your using the inc_features.php just set the columns in that file to 1
__________________
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 November 30th, 2005, 10:26 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Yea that I know, but it will change globally. Anyways to stop that? Also it's showing up as a block within a block. Anyway to not have that happen?
shadowdancer36 is offline   Reply With Quote
Old November 30th, 2005, 10:58 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I am not following what your wanting here as far as columns. Yes it is a global setting

showing up as a block within a block is probally because of your using a template system to load this when the html it needs is already in the file itself.
__________________
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 November 30th, 2005, 11:14 AM   #19 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,408
Quote:
Originally Posted by shadowdancer36
Also I notice it's showing up as a block within a block. How come?
... in the module settings turn off the 'use generic shell' option. If that option is turned on it will present the module contents inside of the generic wrapper template.
KW802 is offline   Reply With Quote
Old November 30th, 2005, 12:11 PM   #20 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 154
Send a message via Yahoo to shadowdancer36
Quote:
Originally Posted by Chuck S
I am not following what your wanting here as far as columns. Yes it is a global setting

showing up as a block within a block is probally because of your using a template system to load this when the html it needs is already in the file itself.
Lets see how much more specific I can get...

I want 1 col, 3 rows (3 pics) for the random pics block on the CMPS_INDEX. ONLY on the CMPS_INDEX!

I see that the INC_FEATURES.PHP is a globat setup file. I want to know if it's possible to only show the 1 col, 3 rows (3 pics) on the cmps_index but keep the 1 col 1 row (3 pictures) in the forum area.

Everyone get what I'm saying now? As for the above confusion, I placed a snap shot of the process since I was never given a step by step. Us newbies gotta stick together

The file size limit cause me to send a smaller almost unreadable version. If you want to see a larger one, go here
Attached Images
File Type: jpg example.jpg (96.4 KB, 47 views)
shadowdancer36 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
cmps_index.php problems and Db Error tidy_boy2005 Installs and Upgrade - vBulletin 3.5.X 2 October 28th, 2005 11:19 AM
sorry if redundant - help with recent photos area sandy Photopost Pro Installation & Upgrades 2 September 2nd, 2005 10:19 PM
recent photos John Photopost Pro How Do I...? 1 July 17th, 2005 02:28 PM
How to make `Recent Photos' work like view all recent pics? mjm Photopost Pro How Do I...? 1 February 3rd, 2005 01:54 PM


All times are GMT -5. The time now is 11:29 AM.

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