![]() |
inc_features.php to show photos on a vbP3 portal front page I'm running PhotoPost PHP 4.86 vB3 Enhanced and want to display a selection of photos on my vbP3 portal front page using inc_features.php from PhotoPost. Reading the 4.8.5 Enhanced vB3 Index Integration thread it tells you how to put photos on your forum index page which isn't what I want. I've edited the inc_features.php as directed and created a PHP block on my portal and included the code to call the photos. The block is appearing on the front portal pages but no photos are being shown. |
Code modification discussions are discussed at Photopostdev.com I can tell you quick off that you would need to make sure you try and see what happens when you blank out this line if ( $ViewPerm[$pcat] == 1 ) continue; |
I've posted over at Photopostdev.com three weeks ago and nobody's offered any assistance. There's not much 'support' for problems over on Photopostdev.com and I'm not the only one to comment on this over this last few weeks. |
As you know, PPDev is a community website not supported by PhotoPost Staff. |
This is so frustrating!!! In one post you've told me to use inc_features.php which I have and can't get it to work (detailed in this thread) where you tell me you can't offer me help - go somewhere else. |
I'm trying to reply in two threads; so better kept to one. What I am trying to suggest is that you use inc_features.php as the template for a vBPortal integration. We don't support a vBPortal integration simply because we've never written one and as a policy we can't support code we didn't write. PPDev is a way to try and get other people involved to help build a mod common to other users. As I explained in my other post, inc_features.php is a template - the template we support is for vB3. It's a self contained script which can be used for any integration (I wrote and documented one for .threads and posted it) simply by changing the HTML code contained within. Since I am not familiar with vBP integrations at that level, I don't have a way to support your request. However, I suggested PPDev which may (or may not) have people who are more familiar who can help. If you use inc_features.php as a baseline, then you should be able to modify the HTML to suit your integration. |
In VBportal simple make a PHP code block with the code from inc_features.php without the <? and ?> php identifiers. Alter the line to include the full path to the file so it can be found require "config-int.php"; That should be all you need to do as your replicating the code as Michael stated in inc_features.php |
I'm not an expert on HTML and PHP but always try to use a bit of logice in trying to get things to work. I've got my PHP block created in vbPortal - the block with the title I've given it is displayed when the page is generated but still no photos or error messages are displayed. |
Here#s the code I'm using in the PHP block: Code: Content visible to verified customers only. |
Make sure the require is the right path to it and remove this line and test if ( $ViewPerm[$pcat] == 1 ) continue; |
The very first line is require "./gallery/config-int.php"; wghich is correct as my PhotoPost is installed in /gallery and config-int.php is in /gallery I've removed if ( $ViewPerm[$pcat] == 1 ) continue; and there's no change - still no photos showing up. |
Okay well I suggest you continue this discussion on the mod site http://www.photopostdev.com |
And what's the likelihood of me getting any support over on photopostdev.com? Been there done that already in terms of posting for help. I've created a .php with the aforementioned code contained it it, then called it from a browser... nothing but a blank page. |
I beleive as its been pointed out we support our product here on this forum. Since your trying to do something outside of asking for support we have suggested you to go a hack site to discuss your hack. Photopostdev is not affiliated with our company in any way so I cant tell you if you will get a response. Also remember with your file you have your not using the html yet as its a variable you have this Quote:
Quote:
|
Quote:
I'm not an HTML or PHP expert.... what am I meant to do with the code that you detailed in your previous post? |
Criscokid It has been stated several times product support does not include helping people modify there code to do something our package is not designed to do by default. The code block you are refering to is a block written to show pics on a vb3 index page and the documentation for that is well documented. I have given you hints many times in this thread as I try and be nice however as noted it is time you take this discussion to the right forum for an answer. I think my post above stated exactly what you need to do and why the block did not display |
I do appreciate other people's help and offer help to other where and when I can. In this case (your post of yesterday) you've given me two lots of code that I don't know what to do with or where to put them and that doesn't help me to help myself. As I've said before I'm not an HTML or PHP expert - somethings that may be obvious to yourselves isn't necessarily obvious to others. |
My hint above was very clear for someone who is not a developer. Your missing the instructions. Quote:
|
| All times are GMT -5. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0