 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 13th, 2005, 08:31 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2005
Posts: 2
| How do I setup the Featured Photo / Random Image on non VB Pages?
I've looked high and low in the forums and just can't for the life of me find an explaination of how to add this box to pages outside of photopost and vb forums.
I want to add it to my main page of the site I run as well as add it into the forums in a side bar.... The forums that I run are Invision 1.3...
If you look at my site: www.htpcnews.com I want to put it in the area that currently has an image that says "advertise with htpcnews." (just a plain jane php page) and then in the forums on my advertising bar on the left: www.htpcnews.com/forums/index.php
If anyone can point me in the right direction i'll be forever grateful... I have looked over at the "dev" site and still don't see anything about this. I know I can't be the only one trying to put that box outside of a VB / photopost page...
Thanks in advance for the help.
Brad Gilomen
Home Theater PC News
|
| |
February 13th, 2005, 09:49 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
On the development site there are thumbnail includer hacks over there.
This is what you need to search for. There are a couple posted on photopostdev.com
|
| |
February 14th, 2005, 12:55 AM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2005
Posts: 2
|
For future reference of everyone here at the site, I figured this out and there is no need to use any "thumbnail hack" or anything. Everything you need is built right into photopost... I'm kinda amazed the guys that did the app don't just post these instructions since it involves just adding code to your website (not altering any code in photopost)
Anyways, here goes... All I did was placed these two sets of code on a page and it's working like a charm..
Up at the top of my page I have: Code: Content visible to verified customers only.
And then wherever I want the random image to appear, I simply placed this line of code: Code: Content visible to verified customers only.
Like I said, no modifying of anything is necessary to make this work as it just uses the code built into the app... All this does is calls upon one of the templates to output its information where you choose to do so.
If you want to see a little demo, check it out on the right side of my site: http://www.htpcnews.com |
| |
February 14th, 2005, 08:52 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Basically we dont assist in modification questions. Whenever someone asks something outside support we simply refer them to post and look over at the development site
Yes what your going with would be the simplest of mods.
|
| |
February 15th, 2005, 01:52 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2003 Location: Mt. Horeb, WI
Posts: 26
|
What if you want to show more than 1 random image? Do you simply change the 1's to a different number? And how would you change it from using a "random" image to a defined category? And could I do something similar to the PP Classifieds?
|
| |
February 15th, 2005, 02:01 PM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2003 Location: Mt. Horeb, WI
Posts: 26
|
I figured it out. The first 1 is the number of columns and the second is the number of images. So if you want 5 random images in a single column change it to 1, 5.
display_gallery("random", "", "", 1, 1);
|
| |
February 21st, 2005, 01:44 PM
|
#7 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I've added Code: Content visible to verified customers only.
to my vbPortal index.php file and in a PHP block added Code: Content visible to verified customers only.
doesn't generate any photos at all - I want 4 colums on 1 row.
|
| |
February 21st, 2005, 02:19 PM
|
#8 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
For vbportal, I would recommend using the inc_features.php product included in the download.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
February 21st, 2005, 02:25 PM
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I tried that and couldn't get it to work... inc_features.php to show photos on a vbP3 portal front page where I was told to ask over on Photopostdev.com which I did three weeks ago and nobody's offered any assistance. I then found this thread so thought I'd give it a try - again I can't get it to work.
|
| |
February 21st, 2005, 03:03 PM
|
#10 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
I guess I'm not familiar with vBP codeblocks enough to offer how to fix that. The inc_features.php script is itself a framework that can be used in any integration - all that changes is the HTML code which is used to display the featured photos. In the case of the included inc_features.php, it's formatted for vB. There's a .threads version posted in several areas.
It's difficult to support every possible integration without a better understanding of the underlying use - in this case vBPortal. Since inc_features.php is a self contained script, the only thing that would change is the HTML.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
March 1st, 2005, 10:57 AM
|
#11 (permalink)
| | Senior Member Verified Customer
Join Date: Nov 2002 Location: Reykjavik, Iceland
Posts: 720
|
After some help from the photopost team.
I got this working partly
the photos show, but I think the swich is not working
It only shows photos from one cat,
this was done by copying and renaming inc_features.php to inc_latest.php
then I made a new php called latest.php
it has this code Code: Content visible to verified customers only.
I then Include latest.php where I want the photos to show.
__________________
Geiri
|
| |
February 2nd, 2006, 02:13 AM
|
#12 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2006
Posts: 20
|
Pertaining to "Beyond" Thread, I would like to add random photos in my main index site (not PP) the easy way.
I added the code:
<?php
require "./photoalbums/htdocs/pp-inc.php";
?>
note: since my pp-inc.php is located in /photoalbums/htdocs/pp-inc.php
AND
<?php
display_gallery("random", "", "", 1, 1);
?>
And, I get nothing. Any suggestions and how to fix the problem?
the site: www.disneypost.com |
| |
February 2nd, 2006, 10:21 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You are not going to get nothing since more than likely it is permissions related. Code: Content visible to verified customers only.
Just use something like this and remove this line from your inc_features.php to remove the permissions blocking in case your using on a non vbulletin page Code: Content visible to verified customers only.
|
| |
February 2nd, 2006, 09:07 PM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2006
Posts: 20
|
Ok, I tried what you do told me to do. I erased Quote: |
if ( $ViewPerm[$pcat] == 1 ) continue;
| in my inc_features.php, and added the code on my main page (non VBulletin) that you told me.
I get nothing.
I double checked, with no luck.
For example, you can see the code under: http://www.disneypost.com/test.html
or on the main page http://www.disneypost.com
Please help. :-)
|
| |
February 2nd, 2006, 09:59 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You can not throw a PHP include in a normal html file usually
That would work in a phtml file
Try making your file a PHP file
|
| |
February 3rd, 2006, 01:21 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 34
|
Hi There! I'm trying to bring one random photo into a table cell that is 288 pixels wide. However, when I put the following code in that cell, the whole table gets blow way out. Code: Content visible to verified customers only.
One small 100x100 image is rotating in the space nicely, but that space is all wacked out. And I can't seem to find anything in pp-inc.php to let me adjust any table or anything. Plus, even if I did find it, I'm afraid it would screw up the actual PhotoPost pages.
Please help. Thanks!
|
| |
February 3rd, 2006, 02:03 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
I would suggest using the code in inc_features.php and make the edit above. You can edit the html in that file to suit your needs.
The random gallery is going to print a table width based on your photopost settings width so unless possibly you might want to consider wrapping your current code with a table that is only 288 wide to constrain it.
|
| |
February 3rd, 2006, 02:58 PM
|
#18 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2006
Posts: 20
|
Going back to my original question. I want to add Quote:
<?php
require "/home/foldernamehere/public_html/gal/pp-inc.php";
display_gallery("random", "", "", 1, 1);
?>
| in my index.html (html not PHP file, that is not Vbulletin) on a normal page. You telling me I can't add PHP on my html page. All I have to do is convert my index.html to index.php, and it should work, however, will my Javascripts work as well? I am using Dreamweaver to do this?
You said, "You can not throw a PHP include in a normal html file usually
".. What do you mean by usually? Is there a way to post random images from my gallery, on my index.html(non Vbulletin page)? Please, what is the easiest least painless way how to do this. I have already tried 3 different scenerios, with no solution.
note: I have javascripts in my index.html as well.
I know I ask a lot of questions, but as Socrates put it, " You learn by asking questions"
Last edited by disneypost; February 3rd, 2006 at 03:11 PM.
|
| |
February 3rd, 2006, 02:58 PM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 34
|
Thanks! Chuck. I'm a bit unclear on how to get this going, though. Do I alter the inc_features.php file directly, or do I copy and paste code from there into my homepageIndex.php page? Thanks for any info....still kind of new to this. Thanks!
|
| |
February 3rd, 2006, 04:44 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
thirtytwo You can edit inc_features.php directly if not using it elsewhere. Otherwise a copy is fine as long as you place the proper path to config-int.php in there.
Now disney it is like this. a normal html file does not know what php is. Usually one would need to have the server setup to allow php includes in normal html includes otherwise phtml works by default. If you have the index html file a php it will work but you need to surround any normal html like so
sample php file here Code: Content visible to verified customers only.
|
| | |
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 05:06 PM. | |