Previous Thread
Next Thread
Print Thread
Rate Thread
#254283 07/24/2003 3:08 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay this has been around for sometime but last time anyone posted this was a year and a half ago.

Original author is casper. All I did quite some time ago is just convert the needed code into a free custom box in IIP as the original version hard coded things into IIP.

Just download the custompalbox and name it to whatever number you have free in the custom ones and set where you want it displayed. Also fill out the database connect info Rename it to php extention from txt
Attachments
89732-custombox2pal.txt (0 Bytes, 62 downloads)

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thank you. *bows* But I after edit the config I get the following:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/web17/html/dclan/ubbthreads/pals/custombox2pal.php on line 91

I m sure to set up the database connection information correctly. Any idea ?

/edit: OK, I got it. ! I have to setup the tablename. the script use photo and i use pp_photo. Second thing is to set up the imagepath. Now it work's, great.

Than you !

Last edited by Zarzal; 07/24/2003 4:11 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No Problem

Joined: Jun 2003
Posts: 88
Power User
Power User
Offline
Joined: Jun 2003
Posts: 88
Can you post a link to a demo of what exactly it looks like? Thanks

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Demo: Take a look at www.dragon-clan.de, on the left side.

A special notice and security warning. If you use this pal you can bypass the login and restrictions to display the full size image and the whole content of the image group.

The script dosn't check the rights to display the full size image. Thumbnails will be selected from the whole lib without set allowed galleries in the script itself.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Zarzal that is incorrect to a degree. The script has a function built in called $forcats

Look for

$forcats ="";

and change to something like this

$forcats ="502,504";


So if you want only specific galleries able to display. You right however this script does just grab a random image from the database which is exactly what it is intended to do. If there are specific things you want included let me know.

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Yes, I know. I wrote : "Thumbnails will be selected from the whole lib without set allowed galleries in the script itself." For me its now not a problem. Its just a litte note for people who like to use this.

Maybe an idea for upcomming versions: the select from database should be include the username and his rights inside the gallerie. So only thumbs will displayed that allowed for this user/ guest without set the allowed galleries in the script.

I don't need this right now. the script works fine for me.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
That feature while a good idea would not be advisable since for any visitor to the site they would get a big fat X.

Now if this were a private forum where only users would see the entrance page then it would work.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Yeah, I need to do this. I also need to rewrite the forum listing as I use an array to display the category list in PP which greatly reduces the number or queries for larger boards.

Sponsored Links
gailg #254293 09/02/2003 1:38 PM
Joined: Aug 2003
Posts: 24
Newbie
Newbie
Offline
Joined: Aug 2003
Posts: 24
Hey Chuck,

I just installed this mod. Link to the actual photo works but on the PAL page it shows a big X.

Any ideas. I'll look at it and see if I go some thing wrong.

/EDITED

Figured it out... Great Mod.. Thanks!

Last edited by filamballa; 09/02/2003 1:52 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yeah you need to fill in ALL paths

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yeah you need to fill in ALL paths

Yah gotta just love Photopost a great product all around and goes hand in hand with threads.

Joined: Aug 2003
Posts: 24
Newbie
Newbie
Offline
Joined: Aug 2003
Posts: 24
cheers!

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
sweet...works great after figuring out the path setting. Have to remember that you need /data/ in the SRC= path.

Had me thinking for a few.


scot #254298 10/05/2003 5:21 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
$pp_url="PATH/TO/PHOTOPOST/INSTALL";

Would probably help if you changed it to:

$pp_url="URL/TO/PHOTOPOST/INSTALL";

Other than that, great mod


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Hey Chuck, how do you have more than one photo to the front page?


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL You like the multiple one hey Allen


Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yeah, someone was asking for it


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yeah someone else asked me for it and I gave it to them.

I will post it

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Omegatron said:
Yeah someone else asked me for it and I gave it to them.

I will post it [/]

Omegatron is very good!
http://www.laondalatina.com

luan #254304 10/08/2003 12:14 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thank you Chuck


- Allen wavey
- What Drives You?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)