View Full Version : Classifieds on Front Pg using vBadvanced CMPS v1.0.1?
December 19th, 2005, 10:55 AM
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?
December 19th, 2005, 11:02 AM
You could probally make a PHP block in CMS with this contents
Here is the script
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
January 2nd, 2006, 12:06 AM
This file is not in my classifieds folder
January 2nd, 2006, 12:16 AM
Figured out it was attached to the other thread. Thanks.
January 2nd, 2006, 12:39 AM
I get this message instead of the info being displayed...
include('../classifieds/inc_ads.php'); echo "classifiedsfeature";
January 2nd, 2006, 10:11 AM
what are you trying to say here?
January 2nd, 2006, 10:44 AM
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.
January 2nd, 2006, 10:48 AM
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.
January 2nd, 2006, 10:56 AM
I have 2 boxes,
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.
January 2nd, 2006, 11:17 AM
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.
January 2nd, 2006, 11:22 AM
Forgive me I am missing it, where do I define the as PHP BLOCKS? I can't find that option.
January 2nd, 2006, 11:49 AM
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.
January 13th, 2006, 11:05 AM
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!
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.