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 December 19th, 2005, 10:55 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2005
Posts: 7
Classifieds on Front Pg using vBadvanced CMPS v1.0.1?

I was here about a month ago looking around and thought that I found an article on using Classifieds on the front page with vBadvanced CMPS ... but for the life of me I can not find it today (and yes, I've searched and searched).

Does this exist or did I dream it?

Thanks!
Donna
Aracnakat is offline   Reply With Quote
Old December 19th, 2005, 11:02 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,685
You could probally make a PHP block in CMS with this contents

include{'../classifieds/inc_ads.php');

echo "classifiedsfeature";

Here is the script

http://www.photopost.com/forum/showthread.php?t=116508

Make sure when making your CMS PHP that this is set to NO as we already do our our html in the file

Use Module Shell Template: NO
__________________
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 January 2nd, 2006, 12:06 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
This file is not in my classifieds folder

inc_ads.php
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 12:16 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Figured out it was attached to the other thread. Thanks.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 12:39 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
I get this message instead of the info being displayed...

include('../classifieds/inc_ads.php'); echo "classifiedsfeature";
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 10:11 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,685
what are you trying to say here?
__________________
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 January 2nd, 2006, 10:44 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Go here, you will see. I followed insturctions and all I see is the code on the page instead of the output, looks like its not running.

http://betasite.lowriderlife.com/for...p?page=sitemap
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 10:48 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,685
Check how your making your boxes they need to be on separate lines and need to be separate php blocks. I can not make sense of what your doing with that error but it looks like your typing two blocks into one and on the same line statement.
__________________
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 January 2nd, 2006, 10:56 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
I have 2 boxes,

adv_portal_classifieds:
include('../classifieds/inc_ads.php');
echo "classifiedsfeature";

and

adv_portal_photopost:
include('../gallery/inc_features.php');
include('../gallery/inc_photopost.php');
echo 'photopostfeature'

For instance I have a "Featured Classified Ads" module and the setting for Template Module Options is adv_portal_classifieds. I feel I followed the instructions pretty good, it was the same thing I did on the forum page and that worked, with the exception of the echo thing. I did not do that on the forum, I tryed many santax's nothing has worked yet.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 11:17 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,685
Right but when setting up these boxes did you define them as PHP BLOCKS?

Looks to me here if the code is as you posted they are not php blocks but simply html as all vbadvanced is doing is printing the contents of the box as if its html

Basically what you are doing is this. You make a php block with the two lines above no templates are accessed or made. You also select no for this

Use Module Shell Template: NO

Basically it is as simple as a php block which will parse those two lines and since that file has all the html to display things it is handled.
__________________
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 January 2nd, 2006, 11:22 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Forgive me I am missing it, where do I define the as PHP BLOCKS? I can't find that option.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 11:49 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,685
Okay well I don't use advanced but I have helped user's before and it should work exactly like vb portal's program. When you first select in admin to make a new block there should be a drop down that you pick what type of block html rss php etc. At least thats my best recollection here.
__________________
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 January 13th, 2006, 11:05 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 56
Just curious.. has anyone been able to get this to work? In vbAdvanced, adding PHP blocks isn't quite as straight-forward as in vbPortal. The PHP file has to live in the /modules directory. I played around for a while trying to get it to work, but couldn't. If anyone knows the vbAdvanced instructions, I'd be very interested!
volarium 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
Does it work with vBadvanced CMPS yitzklein ReviewPost Installation & Upgrades 7 November 30th, 2005 05:48 PM
PhotoPost Classifieds... Random or Most Recent ads on Front Page of Vbulletin? Chris@TSE Classifieds How do I...? 31 November 8th, 2005 07:02 PM
Add a random image block to my vBa CMPS front page? Sanjiyan How Do I? - vBulletin 3.0.X 4 February 6th, 2005 05:23 PM


All times are GMT -5. The time now is 10:23 AM.

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