Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PhotoPost PopUp vB Code Details »»
PhotoPost PopUp vB Code
Version: 1.01, by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-28-2004 Last Update: 02-13-2005 Installs: 14
Is in Beta Stage  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 02-03-2005, 08:19 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #83  
Old 02-03-2005, 11:00 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #84  
Old 02-04-2005, 12:05 PM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MPDev
Sorry to hear that - although, most people who make such a claim rarely turn out to be anyone with any real experience with our support staff. I've never heard anyone say "sorry we cant help you" and if it did happen, I would be very disappointed as we spend alot of time and money on support.

I'll be redoing the mod for the upcoming PP5 release and will post it when its ready. I'm using it on PhotoPostDev.Com with no problems so far, but am in the process of updating with the current security releases.

More than likely, if you aren't getting the popup, then you didn't modify the code properly. It's not an overly complicated mod; but one that I'll look at again soon.
It's funny how you came running here to post within hours of two people slamming your product support. You hadn't posted in here in ages before that. I've licensed your photopost product since it was in Perl many years ago so I can assure you I have vast experience of dealing with your support personnel. It really hasn't improved much since it was virtually a one-man show.

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.
Reply With Quote
  #85  
Old 02-04-2005, 09:04 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #86  
Old 02-04-2005, 10:24 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
I own 3 photopost licenses and 1 classified license, and have been a member here since April 2002. I have had numerous questions relative to technical support and have always been treated exactly like I would expect to be treated, being a paying customer. Scott, Michael and Chuck are excellent at what they do. The popularity of 2 of my sites is due solely to photopost and the PP crew.
Quote:
i've had nothing but great support and good advice concerning PP.. well worth every penny IMO.
Quote:
omegatron was friendly and helpful for my queries, though i had been lil rude to him
Quote:
Yes, omegatron = chuck.

One of the most helpful people i've ever met
Quote:
My post count indicates the number of times I've nagged you over the years, and Carole and I want to thank you for giving us so much of your time. (If somebody else had to wait for support it's probably our fault LOL).

Seriously, I can't even comprehend the stamina it takes to contend with multiples of me's at a time.
Its unfortunate if nighteyes had a negative experience with our support - it's certainly not from a lack of effort (but maybe a lack of sleep).

I'll have a new version of this mod out soon.
Reply With Quote
  #87  
Old 02-11-2005, 10:26 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #88  
Old 02-18-2005, 05:52 PM
Moncha's Avatar
Moncha Moncha is offline
 
Join Date: Apr 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MPDev
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).
Michael, since I'm not using the Beta 5 yet, any way of posting what changes need to be made to the script so the correct file & filename structure will work with the older version 4.86?
Reply With Quote
  #89  
Old 02-28-2005, 05:00 PM
Moncha's Avatar
Moncha Moncha is offline
 
Join Date: Apr 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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) ) {
under that, put:
Code:
$theext = get_ext( $thisphoto['bigimage'] );
next, find:
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=\"\" />";
and replace with:

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=\"\" />";
(Removing the * in the [*url][/url*]

And need to change the template,
Find:
Code:
opener.document.vbform.message.value = BodyVal + '[img]' + UBBCode + '[/img]';
replace with:
Code:
opener.document.vbform.message.value = BodyVal + UBBCode;
Or if you want to have space between the thumbs, replace with this:
Code:
opener.document.vbform.message.value = BodyVal + UBBCode + ' ';
or:

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=\"\" />";
If your DB's are separate but have the same password, change the FROM pp_photos in the query.
Code:
$query = "SELECT id,cat,title,bigimage,medsize FROM pp_photos WHERE userid ='{$user}' AND storecat=0 ORDER BY date DESC LIMIT $page,16";
to FROM databasename.photos so it looks sort of like this:
Code:
$query = "SELECT id,cat,title,bigimage,medsize FROM databasename.photos WHERE userid ='{$user}' AND storecat=0 ORDER BY date DESC LIMIT $page,16";
(Changing the databasename to match what your PP database name is)

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.
Reply With Quote
  #90  
Old 08-02-2005, 04:36 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09949 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete