The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
PhotoPost PopUp vB Code Details »» | |||||||||||||||||||||||||
This mod provides for a Select popup box which displays thumbnails of a users PhotoPost gallery. Clicking on a thumbnail inserts the vB Code for that image into the text area. NEXT and PREV links are provided to scroll through a users photos (16 displayed at a time).
Mod installed at http://www.photopostdev.com + + To Do vBulletin files to edit: 1 PhotoPost files to add: 1 Queries to Run: 0 Templates to add: 1 Templates to modify: 1 Time to install: 15 Minutes + + Known Issues Mod assumes PhotoPost and vB are installed into same database. If you have them in seperate databases, you will need to use a mysql_select_db() to switch to PP and then back to vB in the pppanel.php file. http://www.photopostdev.com/showthre...=1232#post1232 Show Your Support
|
Comments |
#82
|
|||
|
|||
It's a shame to see what is supposed to be a support thread for a hack turn into a slam against the product it supports. IMHO this has no place in the thread. I am glad to see that certain Premium Hack threads give the hack writer moderator privileges so this off-topic tripe can be removed. I am just glad there is an ignore feature. I used it twice on this page.
I come to vbulletin.org to get support for hacks and learn about new ones. If you're here to rant and complain about another product, maybe this particular thread isn't the best place to do it. Regards, Matt |
#83
|
||||
|
||||
I agree, Matt; I thought I'd check in and see what was going on in this thread since I was getting ready to do an update and I find all this "junk"?
You post a mod, 100 people try it and 80 get it working with no problems. 18 give up for one reason or another and 2 people decide to be jerks about it. So what happens? The two people ruin it for everyone else. |
#84
|
||||
|
||||
Quote:
That said, the software is very good and I licensed another copy only in December. So if you know what you're doing and are unlikely to ever need to call on support I highly recommend it. Maybe it's not entirely appropriate posting here... but I still believe it's useful knowledge for those frustrated trying to obtain support for your hack(s) on here to know the support is bad via official channels too, so unlikely you're going to get much on vbulletin.org. |
#85
|
||||
|
||||
Guys, this thread is not for a platform to discuss the support over at photopost.com. It's to provide support for this modification. If you feel begrudged by a product or a service that relates to vBulletin you are quite welcome to post it up (as long as you do so in a polite manner) in the lounge to warn others of your experience.
Please keep the criticism aside from this thread from now on and leave it for specific support Cheers, - Dean |
#86
|
|||||
|
|||||
Thank you, Dean. Since this is my thread, I feel entitled to have the last word since nighteyes continues to misrepresent our support. I'll let it go with a few words from our customers:
Quote:
Quote:
Quote:
Quote:
Quote:
I'll have a new version of this mod out soon. |
#87
|
||||
|
||||
This mod has been updated for use with PhotoPost 5 and is currently being used on PhotoPostDev.Com.
Changes in vB3 up to 3.0.6 required some changes to the pppanel.php script to take the variables and the filenames have been updated to work with the new PP5 filenames (no -thumb and -med filename changes). |
#88
|
||||
|
||||
Quote:
|
#89
|
||||
|
||||
I figured what was wrong. I don't know if how I got it working matches the original code or not but it works.
Here's what I needed to do. in pppanel.php, find: Code:
while ( $thisphoto = $DB_site->fetch_array($myphotos) ) { Code:
$theext = get_ext( $thisphoto['bigimage'] ); Code:
if ( $medsize > 0 ) $imgurl = "{$data_dir}/$ppcat/{$user}{$photo_name}-med{$theext}"; else $imgurl = "{$data_dir}/$ppcat/{$user}{$photo}"; $mthumb = "<img border=\"0\" src=\"{$data_dir}/{$ppcat}/thumbs/$photo\" alt=\"\" />"; To make clickable thumbnails in posts Code:
if ( $medsize > 0 ) $imgurl = "[*url={$data_dir}/$ppcat/{$user}{$photo}][img]{$data_dir}/$ppcat/{$user}{$photo_name}-thumb{$theext}[/img][/url*]"; else $imgurl = ""; $mthumb = "<img border=\"1\" src=\"{$data_dir}/{$ppcat}/$user$photo_name-thumb$theext\" alt=\"\" />"; And need to change the template, Find: Code:
opener.document.vbform.message.value = BodyVal + '[img]' + UBBCode + '[/img]'; Code:
opener.document.vbform.message.value = BodyVal + UBBCode; Code:
opener.document.vbform.message.value = BodyVal + UBBCode + ' '; To place medium images in the post or full sized if medium not available Code:
if ( $medsize > 0 ) $imgurl = "[img]{$data_dir}/$ppcat/{$user}{$photo_name}-med{$theext}[/img]"; else $imgurl = ""; $mthumb = "<img border=\"1\" src=\"{$data_dir}/{$ppcat}/$user$photo_name-thumb$theext\" alt=\"\" />"; Code:
$query = "SELECT id,cat,title,bigimage,medsize FROM pp_photos WHERE userid ='{$user}' AND storecat=0 ORDER BY date DESC LIMIT $page,16"; Code:
$query = "SELECT id,cat,title,bigimage,medsize FROM databasename.photos WHERE userid ='{$user}' AND storecat=0 ORDER BY date DESC LIMIT $page,16"; Side note.. I had to include the [*img][*/img] tags in the code to get them to input if you get two sets, remove the ones inthe aove codes. |
#90
|
||||
|
||||
Has anybody gotten this to work on 3.0.7? I installed it and I get this error:
Database error in vBulletin 3.0.7: Invalid SQL: SELECT id,cat,title,bigimage,medsize FROM pp_photos WHERE userid ='1' AND storecat=0 ORDER BY date DESC LIMIT 0,16 mysql error: Table 'forumdbname.pp_photos' doesn't exist mysql error number: 1146 Date: Tuesday 02nd of August 2005 12:30:28 PM Script: http://www.leetforum.com/forumz/pppanel.php When you say use the same database are you reffering to just the username/registration system or more? P.S. ++++ you all (2) who think photopost sucks. I have had very good support from them and have made multiple suggestions that have ended up in later versions. (www.GamersGallery.com) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|