Previous Thread
Next Thread
Print Thread
Rate Thread
#213905 02/16/2002 3:30 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
We would like to integrate a photo album /gallery into our threads. Currently users post pics as attachments, but to view them, you've got to go through each message.

What I'm looking to do...or potentially hire someone to do is create a gallery, with thumbnail images where you can browse photos, click the thumbnail and see the full sized version. We also want user pic uploads to be fully moderated. Working in something similar to this: http://www.rjmall.com/gallery/

There's also a program we can buy called PhotoPost at http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=4253
it uses MySQL and says you can integrate it with phpBB User Database. That brings up the key issue. If I install a separate program, then users have to create user IDs and passwords there (what a confusing pain).
I would love to have a solution that could be made to work from the UBBThreads database of users etc.

We would like these galleries to have restricted access to only certain groups in our UBBThreads.

Anyone have any idea of plug in's that work with the user Database of users and groups...or know of anyone capable of doing this?

Sponsored Links
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Keslin has a gallery system that would probably work for you, based on the forum software. I dont know if she will be willing to sell or share the code, ask her. Initially she was going to share it with us, but I guess she didnt had time. Warning: adult content at her site.

But maybe you will be able to find someone who can do a completely different gallery system based on ubbthreads. Will be interested in how it goes. []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Here's a small hack that will allow you to view attachments in line if they have a specific extention.

In your showflat and showthreaded scripts just above echo statement where the $Body of the post is printed add this:

if ($user['U_Username']) {
if (eregi("\.GIF|\.JPG|\.PNG", $File)) {
echo "<IMG SRC="$config[fileurl]/$File" Border="0">";
}
}

Hope this helps... I'd try explaining more but those scripts are so hacked up it's not funny... I'll try taking a look at a fresh script and explain where this goes later tonight []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks Dave -
That should come in real handy in the meantime.

I couldn't quite figure out where to place it though. Tried several places (above an echo $Body), a couple didn't work.
I had it working, but it was in the space with the title...then moved it a bit and got an error.

Still have lots to learn. If anyone can tell me under which section to put it, I'd appreciate it.

Oh - MTO, do you know how to contact Keslin? Her username is deleted here. []https://www.ubbdev.com/threads/php/images/icons/frown.gif[/]

Thanks!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I'll try and get some locations posted on a clean set of scripts tonight. I'm looking at them right now. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

If I get a chance I'll look for some GPL gallery scripts and see if I can modify one to use the forum's authentication. (don't hold your breath on this one... lol it's on my list but not at the top) []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Well I think I may have figured it out on my own. I'm not a programmer, but I printed it all out, and tried to follow the logic.
In the last occurance of "If there is a poll in the post..." I made the section that began with "echo" look like this:

echo "
</td></tr></table></td></tr>
<tr><td width=83% class="lighttable">
<br><P class="post">
$Body <br>
";
if ($user['U_Username']) {
if (eregi("\.GIF|\.JPG|\.PNG", $File)) {
echo "<IMG SRC="$config[fileurl]/$File" Border="0">";
}
}

echo "

$Signature
$PrintLastEdit
<p class=small>{$ubbt_lang['POST_OPT']}
<a target="_blank" href="{$config['phpurl']}/printthread.php?Cat=$Cat&Board=$Board&main=$Number&type=post"><img align=absmiddle alt="{$ubbt_lang['PRINT_POST']}" src="{$config['images']}/print.gif" border=0></a>
";




This made the attachment appear after the Body, but before the signature.

So far all still seem OK. I haven't crashed it all out yet. []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]
Thanks!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Looks like a great start! []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]

Here's a text file that should help if you want the image to be placed in front of the body.
Attachments
44506-5.5-inlineimages.1.0.txt (0 Bytes, 12 downloads)

Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Woups! Username deleted! That´s why I had some trouble finding her posts! Haha, didnt notice.
Try contacting her uhm... at her webpage, I guess. []https://www.ubbdev.com/threads/php/images/icons/crazy.gif[/] Keslin´s web page, WARNING: adult content.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Something like this?

http://www.chattersonline.com/test/index.php?Cat=&paction=pictureview

[]/forum/images/icons/smile.gif[/]

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Looks cool Dave! Is that gonna be part of the next index page?

Does it actually create the thumbnail image? What if the picture is full screen? []/forum/images/icons/smile.gif[/]

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Thumbs will be the harder part creating this. I think I can create some sort of script to read the attachment directory and create thumbs of any image that's possible to do so for and store them in a "thumbs" directory. Then when displaying the images it would look to see if the thumb existed for the image and if not it would display a default "thumb not found" image? LoL way to much for me to be thinking about right now...

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You're doing GREAT work Dave!!!!

I read it somewhere else... but InfoPop does need to hire you. []/forum/images/icons/smile.gif[/]

Joined: Jun 2002
Posts: 19
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 19
I have a copy of 'gallery' installed. I love this script and its future is promising. But, It would be a good candidate for ubbt integration.

http://gallery.menalto.com/

sP

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I liked it too.... it was simple and easy to use.

There are some other threads on the subject..... but there is now a product available called PhotoPost www.photopost.com which does fully integrate with Threads.

I've been using various versions of it for several months and it works like a charm. Michael Pierce, the developer has done some great things here to even take the integration a step further.

You might wish to check it out.
Let me know if you've got any questions as to how it integrates.

Joined: Jun 2002
Posts: 19
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 19
How well does PP work for other media formats like video and audio?

Thanks.
sP

Last edited by sirpineal; 09/02/2002 10:14 PM.
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
The new version (3.1) which is in RC1 right now and is due out final this week supports video formats. Not sure about audio at this time.

Joined: Jun 2002
Posts: 19
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 19
Reading the message boards over there and it seems it supports just about any media with some minor mods to the code. Cool, Michael thought ahead about this in writing PP.
I think I will buy it and play around.

sP

Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
Joined: Jan 2001
Posts: 62
obviously some time has passed since you wrote this message.

Photopost indeed natively supports the UBBT user database along with a few other board scripts.

it looks very nice.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, and there are some great mods available to more closely integrate it into threads.



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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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 20240430)