 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
January 28th, 2005, 06:37 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| 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.
|
| |
January 28th, 2005, 11:39 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
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;
|
| |
February 21st, 2005, 01:32 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
|
| |
February 21st, 2005, 02:27 PM
|
#4 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,736
|
As you know, PPDev is a community website not supported by PhotoPost Staff.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
February 21st, 2005, 02:40 PM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
|
| |
February 21st, 2005, 03:07 PM
|
#6 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,736
|
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.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
February 21st, 2005, 03:40 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
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
|
| |
February 22nd, 2005, 04:58 AM
|
#8 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
|
| |
February 22nd, 2005, 05:04 AM
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Here#s the code I'm using in the PHP block: Code: Content visible to verified customers only.
|
| |
February 22nd, 2005, 12:15 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Make sure the require is the right path to it and remove this line and test
if ( $ViewPerm[$pcat] == 1 ) continue;
|
| |
February 22nd, 2005, 02:08 PM
|
#11 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
|
| |
February 22nd, 2005, 06:00 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Okay well I suggest you continue this discussion on the mod site http://www.photopostdev.com |
| |
February 22nd, 2005, 06:17 PM
|
#13 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
Last edited by criscokid; February 22nd, 2005 at 06:21 PM.
|
| |
February 22nd, 2005, 06:30 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
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"; | |
| |
February 23rd, 2005, 04:18 AM
|
#15 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| 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?
|
| |
February 23rd, 2005, 12:08 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
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
|
| |
February 23rd, 2005, 01:08 PM
|
#17 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
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.
|
| |
February 23rd, 2005, 01:38 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:34 AM. | |