Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Mod Name / Version - Photopost Pal v 1.1
Description - The will connect to and pull a random thumbnail from the PhotoPost software and display it in a Pal on your IIP
Working under - UBBT 6.1
Any pre-requisites - IIP 5.1 and PhotoPost
Author(s) - Peter Casserly a.k.a. Casper
Credits -
Demo -
http://www.unnecessaryroughness.com Files Altered - index.php, configpal.php
Database Altered - No
New Files - pp_pal.php
Any other info - I will add instructions for the IIP Management Interface at a later date
I will also add an option for a Random photo or Most Popular photo.
Attachments
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Joined: Feb 2002
Posts: 1,759
Thanks, installing it right now
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Joined: Feb 2002
Posts: 1,759
Hmm.. am I behind in the IIP version or something? I don't see this
code: if ($index_include[1]['custombox3'] == $x && !$xused) { include "{$palspath}/pals/custombox3pal.php"; $xused = 1; }
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Joined: Jun 2001
Posts: 3,273
IIP 5.1 is the current version.
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Yes. Those instrucions are for IIP 5.1.
You can search for any Pal "requestor" and "add below" that.
Try:
code: if ($index_include[1]['quicksearch'] == $x && !$xused) { include "{$palspath}/pals/searchpal.php"; $xused = 1; }
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Joined: Feb 2002
Posts: 1,759
Ahh, I was still using 5.0. I'm behind
Anyway, I have it all installed, but one slight problem. It works as you can see if you click the link in my sig. But for some reason its still looking for my photopost installation in /gallery/
But as you can see, this is my setting:
code: $pp_url="http://www.michiganjeepers.com/photopost";Is the gallery hardcoded somewhere in there or something?
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Oops
Find:
code: echo "<a href="/gallery/showphoto.php?photo=$photo_id"> And change to:
code: echo "<a href="$pp_url/showphoto.php?photo=$photo_id">
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Zip re-uploaded to resolve link issue.
Joined: Jun 2001
Posts: 176
Member
Member
Joined: Jun 2001
Posts: 176
the attachment don't work
Joined: Jun 2001
Posts: 176
Member
Member
Joined: Jun 2001
Posts: 176
the attachment counter works LOL (5 downloads) was at 2 and I tryed 3 times
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Re-uploaded ..... Should work now.
Joined: Jun 2001
Posts: 176
Member
Member
Joined: Jun 2001
Posts: 176
any chance of adding a loop so we can display 4 random images in the center ? something like $count = 0; $count++; if ($count % 3 == 0) then here ORDER BY RAND() DESC LIMIT 4 will that work ? I mean if this code was added to the correct spot in the query.
Last edited by Dslam; 09/30/2002 2:30 PM .
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
I'll set it up so you have an option as to how many images you want to show. I should have something tomorrow.
Joined: Apr 2001
Posts: 3,266
Member
Member
Joined: Apr 2001
Posts: 3,266
Has anyone got this to work? very simply instructions however I do not see anything on my index page and I have one of the options set to 1.
Joined: Mar 2002
Posts: 147
Member
Member
Joined: Mar 2002
Posts: 147
Looks like you have it working to me.
Joined: Apr 2001
Posts: 3,266
Member
Member
Joined: Apr 2001
Posts: 3,266
Yes it would be better to have a more hard coded option in configpal. It drops the added code easily. It took about ten tries to set one of those to a one and saving configpal for it to save without dropping the added text.
Last edited by omegatron; 10/08/2002 5:08 AM .
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
[] any chance of adding a loop so we can display 4 random images in the center ? something like
$count = 0;
$count++;
if ($count % 3 == 0)
then here ORDER BY RAND() DESC LIMIT 4
will that work ?
I mean if this code was added to the correct spot in the query.
[/]
Were you able to implement this 4 pics in the center?
edit: This site - http://www.njflyfishing.com/ has something similar, only it's a VBPortal
Last edited by fishtails; 11/30/2002 12:09 PM .
Joined: Dec 2002
Posts: 173
Member
Member
Joined: Dec 2002
Posts: 173
Hi I've just tried this in UBBT6.2 and II5.2 and can't see anything. Does it work with 6.2? THX
Thanks Liahona
Joined: Dec 2002
Posts: 173
Member
Member
Joined: Dec 2002
Posts: 173
Hi all I could not get this to work........... But Chuck helped me --- now I have a random photo --Great Thanks Chuck
Thanks Liahona
Joined: Jun 2002
Posts: 61
Power User
Power User
Joined: Jun 2002
Posts: 61
Hi, I did everything but cannot get the box to show up, what box in IIP should I make sure is selected? Thanks! -Jason
Joined: Dec 2002
Posts: 173
Member
Member
Joined: Dec 2002
Posts: 173
Hi armyocs That's what happened to me, I could not see the box to tick in the II5.2 config so if I could not tick it then it would not show up. I suggest you see Chuck (omegatron) who helped me.
Thanks Liahona
Joined: Apr 2001
Posts: 3,266
Member
Member
Joined: Apr 2001
Posts: 3,266
Hello army, I need to read the posting rules as I do not want to release something and violate the rules. I could release an updated custompal2box which is how the hack is done but don't want to violate anything here. It does have Just Dave's copyright on it. Since you are basically modifying one of dave's files I don't know if I can post how here. If you contact me privately I will show you how to modify it yourself to get it to work.
Joined: Jun 2002
Posts: 61
Power User
Power User
Joined: Jun 2002
Posts: 61
Chuck- thanks for the help!
Joined: Nov 2001
Posts: 25
Junior Member
Junior Member
Joined: Nov 2001
Posts: 25
I just installed with 6.2 and the latest IIP, and its working great, wonderful mod/pal
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah me too. Works great - I tweaked it to use the $tbopen and $tbclose table wraper, so it would work with Dalantech's table wrapper thing.
Joined: Apr 2001
Posts: 3,266
Member
Member
Joined: Apr 2001
Posts: 3,266
If you use IIP 5.3 you don't need to tweak anything
Dave's already done it.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Posts:
417
Joined: November 2001
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays