Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Geek Gallery Popup 4.0 Details »»
Geek Gallery Popup 4.0
Version: 4.00, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-21-2005 Last Update: 11-07-2005 Installs: 86
Template Edits
 
No support by the author.

From the makers of lint and fuzz come the oh-so-popular-cant-live-with-out Mack that transformed the lives of all whom beheld it.

Yes, this is: Geek Gallery Popup for vBa and PhotoPost*

Gpop will allow your users to easily insert pictures from their gallery into their posts and private messages.

New features include:
Browse by category
Insert aligned images

Installation difficulty: About as hard as a sneeze
File edits: 0
Plugins: 0
template edits: 1

Known issues:
If the editor isnt selected, and you click a pic... it inserts the freaking pic in the page instead of the editor. Odd stuff. Im sure ill figure that out shortly.

*PhotoPost support is built in however please note that I dont have PP any longer and so I cant really test for it. Therefore, if you are a PP user, let me know if it works

Please click install if you install it.

nJoy

Show Your Support

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

Comments
  #92  
Old 11-08-2005, 07:57 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To everyone getting an error like this:

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT count(id) total FROM [database].photos WHERE userid=[uid];

MySQL Error : Table '[database].photos' doesn't exist
Error Number : 1146
Date : Friday, November 4th 2005 @ 12:56:25 PM
Script : http://www.yoursite.com/forums/g...d=vB_Editor_001
Referrer :
Classname : vb_database

Do this...

FIND
PHP Code:
$pages $db->query_first("SELECT count(id) total FROM $gallery_db$photo_prefix "photos WHERE userid=$userid "); 
AND REPLACE WITH:
PHP Code:
$pages $db->query_first("SELECT count(id) total FROM $gallery_db$pp_prefix "photos WHERE userid=$userid "); 
I'm still looking to see what the problem is with the page links.

EDIT...

Okay, found it.

FIND:
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); 
ADD BEFORE IT:
PHP Code:
$start = ($page-1) * $perpage
That should fix the URL problem.
Reply With Quote
  #93  
Old 11-08-2005, 08:07 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That only leaves the issue with the image being inserted in the header when the editor looses focus.
Reply With Quote
  #94  
Old 11-08-2005, 08:22 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You rock man! Ive just been working on this (tough to do when I dont have PP anymore!) This has saved me loads of time for the PP users.

Thanks again! Ill test and update the package.
Reply With Quote
  #95  
Old 11-08-2005, 08:30 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
You rock man! Ive just been working on this (tough to do when I dont have PP anymore!) This has saved me loads of time for the PP users.

Thanks again! Ill test and update the package.
You're the one coming up with the killer hacks. I just fixed a few minor things. Hardly worth mentioning.
Reply With Quote
  #96  
Old 11-08-2005, 09:23 PM
j.kramer j.kramer is offline
 
Join Date: Oct 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi All,

Everything works good untill I start a new thread and try to insert images they all appear on top of site instead of message box.
When just reply to a thread everything works fine!!

Anybody know what could cause this problem?

Geek you already got access to my site so maybe you could also take a look at that one while your at it ;-)
Reply With Quote
  #97  
Old 11-08-2005, 09:29 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can explain the problem. When you start a new thread or even a blank reply, you need to activate the cursor in the editor to give the editor focus, then click on the link for your pictures.

If you just hit the new thread or reply button and then the pic link after the page loads, the editor never has focus so the insert is being done in the document root, which is the page itself.

Note to TheGeek...

I'm sure the answer is in the smilie code. If you take and make a reply, click in the title box and then click on a smilie, focus is returned to the editor and the smilie is inserted in the first character position. That should for your hack too.
Reply With Quote
  #98  
Old 11-08-2005, 09:36 PM
j.kramer j.kramer is offline
 
Join Date: Oct 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FASherman that's what happens indeed, so that's why I thought a reply on thread worked because I already focused cursor.
Reply With Quote
  #99  
Old 11-08-2005, 09:44 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Package update (thanks Fasherman).

The only outstanding issue I know of now is when the image gets dumped into the page instead of the editor.
Reply With Quote
  #100  
Old 11-09-2005, 01:53 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh this is really nice.... Thanks so much!
Reply With Quote
  #101  
Old 11-10-2005, 02:16 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error:

Quote:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/XXXXMYDBXXX/public_html/forums/gallery/geek-gallery-popup.php on line 43

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXXMYDBXXXX/public_html/forums/gallery/geek-gallery-popup.php on line 43
this only is when replying to an image in vbaGALLERY itself.

anyone else get this? or does it work for everyone else?
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 06:23 AM.


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.05126 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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