vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Geek Gallery Popup 4.0 (https://vborg.vbsupport.ru/showthread.php?t=99011)

gldtn 05-19-2006 07:33 AM

Geek, is it possible to do this with vB default attachments? Sorta like letting the users pull his images uploaded by the user itself?

Thanks :D

The Geek 05-19-2006 07:50 AM

Not without some serious tweaking :(

Isnt it easier for the user to just upload the same image and insert into their message anyway?

BlackxRam 06-08-2006 08:11 AM

Running Latest Photopost and the script is unable to located any images. I get the message:

If you see this you dont have any images

My Gallery is located in a folder multimedia on my site root and my forums are located in folder forums on my site root.

Anyone have any ideas?

settings are as follows:

prefix= pp_
path= /home/ultragam/public_html/multimedia
domain= http://www.ultragameplayers.com/multimedia
data folder= /data

any ideas?

futuredood 06-29-2006 04:03 PM

i thumbed through this thread and had a couple of probs i couldn't find help on. to confirm, this does work on vb 3.5.4 and vbgallery 1.0.2.

- for thumbs, i needed to change /gallery0/ to /gallery/files/. I added /files to

$folders = preg_split('//', $userid, -1, PREG_SPLIT_NO_EMPTY);
foreach ($folders AS $uid)
{
$folderstring .= '/' . $uid;

yet, I can't manage to get rid of that 0 right after /gallery

- on insert, the image properties should be /gallery/files not just /gallery

morrow 07-10-2006 04:37 PM

nice hack... Clicking install!

futuredood 07-22-2006 03:54 AM

here's the bug i encountered, which i'm sure everybody has for 3.5.4:

everything works fine when you post a comment. when you edit a comment and hit save, the link no longer works.. it becomes just a text link. this seems like a minor bug that i hope can be fixed?

mrderanged 08-28-2006 11:23 PM

Does this hack work with 3.6?

Thanks

Kihon Kata 08-29-2006 03:01 AM

Quote:

Originally Posted by mrderanged
Does this hack work with 3.6?

Thanks

Nope, it doesn't. Currently I have been conversing with GEEK and he'll look into this soon. But not soon enough for me. If anyone knows how to PORT this up, Let us know

mrderanged 08-29-2006 03:13 AM

Hey Geek,

Any way to "grease" the wheels on getting this to work with 3.6? I have paypal.... ;)

Thanks

LBmtb 09-24-2006 11:06 PM

Quote:

Originally Posted by kahmeal
Not sure if this is a new bug or not, but when the images belong to other categories in addition to the members gallery, I get a bunch of blank thumbnails listed along with the working thumbnails from the member's gallery. Here's a screenshot:

https://vborg.vbsupport.ru/

This problem does not occur if no additional category is specified for a given image when it is uploaded by the user.

I have the same problem. :ermm: Photopost version 5.3.1 and VB 3.6. If you need a few bucks via paypal for 'encouragement,' PM me. This would be very nice if it would would perfectly. Dont know if it matters but I also paid for GARS.

Kihon Kata 09-24-2006 11:40 PM

I have been beggin' Geek right here

Hopefully he'll get to it soon.

cellarius 11-08-2006 05:05 AM

Quote:

Originally Posted by mrderanged
Does this hack work with 3.6?

Yes, it does. Just installed Photopost 5.5 and this hack on 3.6.2, working like a charm right out of the box. No problems whatsoever.

Sven

mindbuster 11-17-2006 05:04 AM

For those who are using photopost vBGallery, and not the ordinary photopost, you can edit the geek_gallery_popup.php file and rename the tables, any occurance of "adv_gallery_whatever" should be changed to "ppgal_whatever", that makes geek_popup work with vB3.6, i just went through it, works fine.

Just a hint :)

CeBra 11-17-2006 12:03 PM

Quote:

Originally Posted by cellarius (Post 1112861)
Yes, it does. Just installed Photopost 5.5 and this hack on 3.6.2, working like a charm right out of the box. No problems whatsoever.

Sven

mmh - I tried it today with PP 5.5. and vB 3.6.3 and ran into a db_connect error.
I have PP and vB installed in different db's for backup-reasons.

Error-message is:

Invalid SQL:
SELECT count(id) total FROM d123456.pp_photos WHERE userid=1;

MySQL-Fehler : Access denied for user: 'd5896545@localhost' to database 'd123456'

Any idea where I can set the db login values? (If that's the only problem here ..)

Any help is much appreciated

rwilkins108 12-02-2006 10:12 AM

Quote:

Originally Posted by LBmtb (Post 1082706)
I have the same problem. :ermm: Photopost version 5.3.1 and VB 3.6. If you need a few bucks via paypal for 'encouragement,' PM me. This would be very nice if it would would perfectly. Dont know if it matters but I also paid for GARS.

I had the same problem and changed two of the SQL Select statements in the geek-gallery-popup.php file to ignore the row if it's a category (storecat=0).

here are the two places I had to change for PP:

FROM:
PHP Code:

$pages $db->query_first("SELECT count(id) total FROM $gallery_db$pp_prefix "photos WHERE userid=$userid"); 

TO:
PHP Code:

$pages $db->query_first("SELECT count(id) total FROM $gallery_db$pp_prefix "photos WHERE userid=$userid AND storecat=0"); 

AND

FROM:
PHP Code:

    $query="SELECT
        images.id AS imageid,images.cat,c.catname AS cattitle,'' AS extention,images.title,
        images.bigimage AS filename,images.medsize,images.width owidth, images.height oheight,images.medwidth width,images.medheight height
        FROM 
$gallery_db$pp_prefix "photos AS images
        INNER JOIN 
$gallery_db.  $pp_prefix "categories AS c on images.cat=c.id
        WHERE images.userid=
$userid and images.approved=1 ORDER BY images.date DESC LIMIT $start ," . ($perpage); 

TO:
PHP Code:

    $query="SELECT
        images.id AS imageid,images.cat,c.catname AS cattitle,'' AS extention,images.title,
        images.bigimage AS filename,images.medsize,images.width owidth, images.height oheight,images.medwidth width,images.medheight height
        FROM 
$gallery_db$pp_prefix "photos AS images
        INNER JOIN 
$gallery_db.  $pp_prefix "categories AS c on images.cat=c.id
        WHERE images.userid=
$userid and images.storecat=0 and images.approved=1 ORDER BY images.date DESC LIMIT $start ," . ($perpage); 

Ron

rwilkins108 12-03-2006 01:10 AM

Just wanted to say this mod is great, i love it! I wanted to add a bit of functionality to it, so I posted this on PhotoPost's web site and wanted to see if anyone here has any idea:
__________________________________________________ ___
Hi, I've got Photopost Pro and it's great.

I've got a vB mod that allows you to insert an image from your gallery into the WYSIWYG editor (Geek Gallery Popup 4.0) and it works nice, but I'd like to add 1 more piece of functionality to it, uploading pictures to your gallery right in the "insert an image" popup.

I've added 2 text boxes to that popup, one that would take a URL and one that is for a File (with browse button) as well as a button to upload the requested file to the person's gallery.

The question is, how do I actually upload it? Is there a PP function I can call that, given file and user information, would upload into their own gallery? I'd like it to just upload without opening another page, no description nor category selection, just to the user's gallery. If not a function, would the only other way to insert via sql, any other ideas on how to do this?

Thanks a ton!

dpnow 12-05-2006 01:46 PM

Quote:

Originally Posted by CeBra (Post 1119305)
mmh - I tried it today with PP 5.5. and vB 3.6.3 and ran into a db_connect error.
I have PP and vB installed in different db's for backup-reasons.

Error-message is:

Invalid SQL:
SELECT count(id) total FROM d123456.pp_photos WHERE userid=1;

MySQL-Fehler : Access denied for user: 'd5896545@localhost' to database 'd123456'

Any idea where I can set the db login values? (If that's the only problem here ..)

Any help is much appreciated

I have much the same problem - does anyone have a suggestion?

Ian

HP10T 01-06-2007 06:20 AM

For some reason I don't even have thumbnails showing in my popup window, anyone have any input?

UtahNissans 01-06-2007 04:22 PM

Ahhh I had the server path and gallery url swapped so that is why no pics showing. THanks for the awesome mod!

dpnow 01-12-2007 06:45 PM

Quote:

Originally Posted by kahmeal (Post 880996)
Not sure if this is a new bug or not, but when the images belong to other categories in addition to the members gallery, I get a bunch of blank thumbnails listed along with the working thumbnails from the member's gallery. Here's a screenshot:

https://vborg.vbsupport.ru/

This problem does not occur if no additional category is specified for a given image when it is uploaded by the user.

Hi, did this issue get resolved as I have exactly the same problem. If an image is displayed in a secondary category, its thumbnail doesn't show.

Thanks,

Ian

Trana 01-27-2007 08:54 PM

Any chance of this working in the PM editor window? Right now it just shows PHP gibberish:

Quote:

input->clean_array_gpc('r', array( 'start' => TYPE_UINT, 'page' => TYPE_UINT, 'catid' => TYPE_UINT, 'option1' => TYPE_UINT, 'option2' => TYPE_UINT, 'ed' => TYPE_STR, )); $start = $vbulletin->GPC['start']; $perpage = $vbulletin->GPC['perpage']; $catid = $vbulletin->GPC['catid']; $page = $vbulletin->GPC['page'] ? $vbulletin->GPC['page'] : 1; $option1 = $vbulletin->GPC['option1']; $option2 = $vbulletin->GPC['option2']; $ed = $vbulletin->GPC['ed'] ? $vbulletin->GPC['ed'] : $_POST['ed']; // START GEEKPOPUP SETTINGS $gallery_db = $vbulletin->options['geekgallery_db']; $photo_system = $vbulletin->options['geekgallery_system']; $pp_prefix = $vbulletin->options['geekgallery_pp_prefix']; $pp_five = $vbulletin->options['geekgallery_pp_is_five']; $pp_ver = $vbulletin->options['geekgallery_pp_ver']; $gallery_path = $vbulletin->options['geekgallery_url']; $data_folder = $vbulletin->options['geekgallery_data']; $default_method =

DrewStr 02-05-2007 09:00 PM

Works with PP 5.31 and vb 3.6.4 as is. I did add this file to the excludes page in vbSEO geek-gallery-popup.php as suggested by Lizard King here: http://www.thevbgeek.com/showthread.php?t=2083

DrewStr 02-28-2007 03:24 AM

Well, it works great except for the IE issue putting the images at the header instead of the post.

Would gladly pay to support further development of this hack. And I don't mean $25 either.

tormodg 02-28-2007 04:31 PM

No problems at all with this plugin on our boards using vBgallery and vB 3.6.4.

cellarius 03-08-2007 07:34 PM

Quote:

Originally Posted by kahmeal (Post 880996)
Not sure if this is a new bug or not, but when the images belong to other categories in addition to the members gallery, I get a bunch of blank thumbnails listed along with the working thumbnails from the member's gallery. Here's a screenshot:

http://booost.com/kamil/geekpopup_bug.png

This problem does not occur if no additional category is specified for a given image when it is uploaded by the user.


Hot fix, quick and dirty:

in geek-gallery-popup.php in/around line 219 replace
PHP Code:

$pages $db->query_first("SELECT count(id) total FROM $gallery_db$pp_prefix "photos WHERE userid=$userid "); 

with
PHP Code:

$pages $db->query_first("SELECT count(id) total FROM $gallery_db$pp_prefix "photos WHERE userid=$userid and storeid=0 "); 

and in/around line 228 replace
PHP Code:

WHERE images.userid=$userid and images.approved=1 ORDER BY images.date DESC LIMIT $start ," . ($perpage); 

with
PHP Code:

WHERE images.userid=$userid and images.approved=and images.storeid=0 ORDER BY images.date DESC LIMIT $start ," . ($perpage); 


No guarantee whatsoever, works well for me.

HTH,
cellarius

tatertot 03-16-2007 05:33 AM

Great hack, I just got it working on vbgallery2.1 and vbulletin 3.6.5.
All that's needed is select 'vba' in the geek options and replace adv_gallery_ with ppgal_ in the php file.

Now is there a way to upload to the gallery from a link in the smiley box? It's getting late and I'll figure a way but this is a great hack, thank you Geek!

jluerken 04-15-2007 08:52 AM

Hi,

I am using PhotoPost vBGallery v2.1 and the original file was not working for me.
I modified it to reflect the latest db changes since the vBGallery was sold to the photopost guys.

Here the file.

Test on 3.6.5 and vbGallery 2.1

kimmer 04-15-2007 05:25 PM

Will this work for this vbimagehost mod? https://vborg.vbsupport.ru/showthrea...hlight=gallery

jluerken 04-25-2007 08:09 PM

Updated vBGallery to v2.2
This brings the following error now with this hack

Quote:

Warning: Invalid argument supplied for foreach() in /path/gallery/gallery_global.php on line 84
Anyone an idea? Geek cannot give support on this anymore cause he is currently working on other projects taking all his time.

ArchangelX 04-26-2007 03:25 AM

Quote:

Originally Posted by DefenceTalk (Post 850204)
Tony, how did you get those category list to appear in directories?

thanks

Same here...any idea on this? Mine looks great, works fully, but all I have is a "Directories" link, that's it.

I would love to have this fully functioning. Please let me know if anyone has a fix for this, thanks!

jluerken 04-28-2007 08:31 AM

Quote:

Originally Posted by ArchangelX (Post 1235610)
Same here...any idea on this? Mine looks great, works fully, but all I have is a "Directories" link, that's it.

I would love to have this fully functioning. Please let me know if anyone has a fix for this, thanks!

Ok I have a fix now for vBGallery 2.2

Thanks to Andreas for this!

Find in geek-gallery-popup.php

PHP Code:

 'adv_gallery_opt',
 
'gallery_ugroups'); 

around line 37 and change to

PHP Code:

 'adv_gallery_opt',
 
'ppg_stats',
 
'gallery_ugroups'); 


Kihon Kata 04-28-2007 02:51 PM

Running vBGallery 2.2 and I've tried the above fixes. I'd like to get this running again. Seems as if the error has to do with how it's calling the table "DATABASE-NAME-IS-HERE.ppgal_photos". I looked at my tables and I am not even running a table called "ppgal_photos", but rather "ppgal_images"

Help?

(I've elected to remove the site name)

Check out my problem:

Code:

Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT count(id) total FROM ppgal_photos WHERE userid=4;

MySQL Error  : Table 'DATABASE-NAME-IS-HERE.ppgal_photos' doesn't exist
Error Number : 1146
Date        : Saturday, April 28th 2007 @ 08:35:10 AM
Script      : http://www.SITE-NAME-IS-HERE.com/forums/geek-gallery-popup.php?ed=vB_Editor_001
Referrer    : http://www.SITE-NAME-IS-HERE.com/forums/newthread.php?do=newthread&f=15
IP Address  : XXXXXXXXXX
Username    : XXXXXXXXXXXX
Classname    : vB_Database


jluerken 04-28-2007 04:38 PM

Quote:

Originally Posted by jluerken (Post 1228170)
Hi,

Test on 3.6.5 and vbGallery 2.1

https://vborg.vbsupport.ru/showpost....&postcount=188
Quote:

Originally Posted by jluerken (Post 1236903)
Ok I have a fix now for vBGallery 2.2

Thanks to Andreas for this!

Find in geek-gallery-popup.php

PHP Code:

 'adv_gallery_opt',
 
'gallery_ugroups'); 

around line 37 and change to

PHP Code:

 'adv_gallery_opt',
 
'ppg_stats',
 
'gallery_ugroups'); 


Use the file attached and include the little change for 2.2 and it should work

DaveS 05-12-2007 08:53 AM

Quote:

Originally Posted by Trana (Post 1168552)
Any chance of this working in the PM editor window? Right now it just shows PHP gibberish:

For anyone else getting this. I've just had this after I moved servers.
It's because the opening line is <? and not <?PHP
If you change it, it works fine.
Hope that helps someone!

Bellinis 07-07-2007 10:09 PM

Recently we moved our site to a new server.
After the move we changed the path settings accordingly in GGP, but we are still getting this weird dbase error:

Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT count(id) total FROM tsjech_photo.photos WHERE userid=1;

MySQL Error : SELECT command denied to user 'tsjech_vbulletin'@'localhost' for table 'photos'
Error Number : 1142
Date : Sunday, July 8th 2007 @ 01:06:50 AM
Script : http://www.mydomain.net/board/geek-g...=vB_Editor_001
What could be causing this??

jluerken 07-08-2007 08:05 AM

Its already saying this
Quote:

SELECT command denied to user 'tsjech_vbulletin'@'localhost' for table 'photos'
It means that you must check the DB right for user tsjech_vbulletin. This user does not have enough rights. With phpMyAdmin its just a few clicks

Bellinis 07-08-2007 08:21 AM

Thanks, got it working now. Both databases used a different username, so just to make sure, I added the vb user to pp and the other way around :)

Subah 08-15-2007 09:00 PM

Any update for 3.6.8 ?

tormodg 08-16-2007 02:57 AM

Quote:

Originally Posted by Subah (Post 1318428)
Any update for 3.6.8 ?

It's working fine for us on 3.6.8 using vBgallery 2.2.

jluerken 08-16-2007 11:35 AM

Quote:

Originally Posted by tormodg (Post 1318605)
It's working fine for us on 3.6.8 using vBgallery 2.2.

But it does not seem to work with 3.6.8 and vBGallery 2.3. You get a blank white pop-up screen.


All times are GMT. The time now is 07:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01734 seconds
  • Memory Usage 1,871KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete