PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   inc_features.php to show photos on a vbP3 portal front page (http://www.photopost.com/forum/photopost-pro-installation-upgrades/111788-inc_features-php-show-photos-vbp3-portal-front-page.html)

criscokid January 28th, 2005 05:37 AM

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.

Chuck S January 28th, 2005 10:39 AM

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;

criscokid February 21st, 2005 12:32 PM

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.

Michael P February 21st, 2005 01:27 PM

As you know, PPDev is a community website not supported by PhotoPost Staff.

criscokid February 21st, 2005 01:40 PM

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.

Michael P February 21st, 2005 02:07 PM

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.

Chuck S February 21st, 2005 02:40 PM

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

criscokid February 22nd, 2005 03:58 AM

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.

criscokid February 22nd, 2005 04:04 AM

Here#s the code I'm using in the PHP block:

Code:

Content visible to verified customers only.

Chuck S February 22nd, 2005 11:15 AM

Make sure the require is the right path to it and remove this line and test

if ( $ViewPerm[$pcat] == 1 ) continue;

criscokid February 22nd, 2005 01:08 PM

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.

Chuck S February 22nd, 2005 05:00 PM

Okay well I suggest you continue this discussion on the mod site http://www.photopostdev.com

criscokid February 22nd, 2005 05:17 PM

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.

Chuck S February 22nd, 2005 05:30 PM

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:

$photopostfeature = <<<PPPRINT
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$columns" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('featurepal');"><img id="collapseimg_featurepal" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_featurepal].gif" alt="" border="0" /></a>
Featured Photos
</td>
</tr>
</thead>
<tbody id="collapseobj_featurepal" style="$vbcollapse[collapseobj_featurepal]">
$featured
</tbody>
</table>
</td>
</tr>
</table>
<br />

PPPRINT;
it should be something like this below that code block

Quote:


echo "$photopostfeature";


criscokid February 23rd, 2005 03:18 AM

Quote:

Originally Posted by omegatron
I beleive as its been pointed out we support our product here on this forum.

It is your product code that I'm trying to get to work - I'm trying to show PhotoPost photos on a non PhotoPost page (plain HTML page).

I'm not an HTML or PHP expert.... what am I meant to do with the code that you detailed in your previous post?

Chuck S February 23rd, 2005 11:08 AM

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

criscokid February 23rd, 2005 12:08 PM

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.

Chuck S February 23rd, 2005 12:38 PM

My hint above was very clear for someone who is not a developer. Your missing the instructions.

Quote:


it should be something like this below that code block

note the word below. Please any other questions or comments on a hack please keep them to the hack site.


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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97