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

Reply
 
Thread Tools
Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher Details »»
Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher
Version: 3.00, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 12-17-2004 Last Update: 02-19-2005 Installs: 50
 
No support by the author.

IMPORTANT:
Please note that I can no longer support this project. Primarily as it is designed for vb3.0.x and I no longer use that version (im obviously on vb3.5x ). There is a version for vb3.5 over here . This project is left here for the community.
-----------------------


Inspired by mpdev's photopost popup modifcation.
I used photopost and had his modification installed. When I moved from photopost to vBadvanced Gallery, I needed the same type of hack - so here it is!

This lil doofer is designed to allow your users to open up a popup window while creating a post. The popup window will display all of the users images in thier gallery (vba or photopost) and allow them to click on an image to insert it into their post (inline). They can insert the image as a thumbnail, large image, or a clickable thumbnail that will open the large image in a seperate window. The real cool thing here is that all this works no matter which editor they are using.

You must have vBadvanced Gallery installed and working or PhotoPost 4 or higher duh.

Difficulty: Easy
File modifications: A few (only for phrases).
Time: About 5 minutes
Sign: Libra

Known issues:
Mozilla wysiwyg editor does not allow for html inserts which limits their options to thumbs or original pics only.

Change Log
v. 3 Update 20/2/05
Rewrote most of file to include support for PhotoPost. You can now set up your installation to use either vBadvanced Gallery or PhotoPost 4 or 5. This is determined by the settings in your geek-gallery-popup.php file. Special thanks goes to MPdev for helping sort out the PP integration.

v.2.01 update 11/2/05
fixed mozilla support

v.2 update 3/1/05
  1. Added a couple more insertion methods
  2. Tidied up UI big time
  3. Auto sized popup window
  4. Finished the phrasing (found a hard coded phrase)
v.1.1 updated 21/12/04
  1. Added phrasegroup additions to newreply, newthread and private as phrases were not appearing there (easy edits).
  2. Made the $mediaext easier to edit (types of images allowed in popup)
  3. Fixed typo in template that always showed the Next button (took me ages to find the stupid thing)
  4. Fixed Back phrase as it was overwritten during the install
  5. Fixed problem where in non wysiwyg editor, the clickable thumb was screwing up
To upgrade: Follow instructions in the Readme

Make sure you click the freaking Install button. Otherwise you will run the risk of being skipped over in my Christmas Card Mail Out.

Show Your Support

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

Comments
  #32  
Old 01-21-2005, 05:43 AM
tormodg tormodg is offline
 
Join Date: Oct 2004
Location: Oslo, Norway
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Therefore I can change it to insert just a large or small image, just not link it!
Do you mean that you can get the image to display after posting, but not make it clickable?

For me that would be nice anyway because it's more important to get the images in. I can link manually if I need to, then we can get the rest sorted eventually.

I'd really like to help out with this...I'll hear with my dev team if anyone has a clue about this. They are mostly firefoxers and linux freaks, though.
Reply With Quote
  #33  
Old 01-21-2005, 06:26 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tormodg
Do you mean that you can get the image to display after posting, but not make it clickable?

For me that would be nice anyway because it's more important to get the images in. I can link manually if I need to, then we can get the rest sorted eventually.

I'd really like to help out with this...I'll hear with my dev team if anyone has a clue about this. They are mostly firefoxers and linux freaks, though.
Thats exactly what I mean. Let me see if I can squeeze out the time for the image insertion... that part wasnt hard (just run the execcommand(insertimage,false,imagepath)
Reply With Quote
  #34  
Old 01-21-2005, 06:53 AM
tormodg tormodg is offline
 
Join Date: Oct 2004
Location: Oslo, Norway
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Thats exactly what I mean. Let me see if I can squeeze out the time for the image insertion... that part wasnt hard (just run the execcommand(insertimage,false,imagepath)
That's great, nail geek. Your GAS is a perfect example of how things should work in this world.
Reply With Quote
  #35  
Old 01-21-2005, 08:50 PM
marinefiend's Avatar
marinefiend marinefiend is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, but only one problem I am having is that the box show but no photo's?
Reply With Quote
  #36  
Old 01-21-2005, 08:57 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

Quote:
Originally Posted by marinefiend
Nice, but only one problem I am having is that the box show but no photo's?
Hey there, have you checked the paths?
Can you post a screenie of the box?
Double check the phrases installed by editing a random geek phrase (just do a phrase search for geek_ variable). Dont change the phrase, just edit and save... sometimes there is an issue with the phrases being built and that sorts it.

If the user has no pics, it should say something like 'sorry, your dont have any freaking pics'.


About the Mozilla WYSIWYG problem -> I honestly didnt get around to it today and I am pretty much out of o here for a couple of days (except for quick check-ins).
I am really sorry bout that guys! I promise to get the Mozilla insert image function going asap (cant make it clickable though!).

nJoy
Reply With Quote
  #37  
Old 01-21-2005, 11:40 PM
marinefiend's Avatar
marinefiend marinefiend is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I would do exactly what you say but I am still learning all this as my site is brand new, and I am still learning PHP and all the techno

So you have me lost with the phrase search?

And I have not got a screen capture prog, as I have yet to get a good one.

But I can tell you the box shows right where you said it would under the smiles, you can highlight the box and where the [More] shows only [ ] would be or whatever there is nothing, but when you run the curser over it it shows you the My Image text at the pointer - so I know it's working, it is not pulling from my pictures ?
Reply With Quote
  #38  
Old 01-22-2005, 12:23 AM
marinefiend's Avatar
marinefiend marinefiend is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:disappointed: Oh i, got something now, I can now get the show images link, getting the poppup window but blank, Dam
Reply With Quote
  #39  
Old 01-25-2005, 07:09 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

Anyone want to check the mozilla functions for me before I update the package?

try replaceing the geek-photo-popup template with this:
PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vbphrase[geek_gallery_my_pictures]</title>
$headinclude
 
<script language="JavaScript" type="text/JavaScript">
<!--
window.resizeTo(($windowwidth 150),($windowheight+<if condition="$show['popups']">200<else />350</if>));
<if 
condition="$show['closewindow']">
self.close();
<else />
self.focus();
</if>
 
function 
sendLink(mysource,mydestination,title,ispopup) {
 
try{
 
    
opener.htmlwindow.focus();
if (
is_ie){
    if (
ispopup=="1"opener.htmlbox.selection.createRange().pasteHTML("<a href='" mydestination +"' target='_blank' title='" title "'><img src='" mysource "' ALT='" title "'></a>");
 
    if (
ispopup=="0"opener.htmlbox.selection.createRange().pasteHTML("<img src='" mysource "' ALT='" title "'>");
}else{
    
alert("Hi there!");
    
opener.htmlbox.execCommand('InsertImage'falsemydestination);
}
}catch(
errorObject){
 
    
BodyVal opener.document.vbform.message.value;
 
    if (
ispopup=="1"opener.document.vbform.message.value BodyVal '[img]https://vborg.vbsupport.ru/[/img]';
opener.document.vbform.message.value BodyVal '[img]https://vborg.vbsupport.ru/[/img]';
}
    
self.close();
}
-->
</
script>
</
head>
<
body>
<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr>
 
    <
td align="left" class="vbmenu_control" width="100%"><b>$vbphrase[geek_gallery_my_pictures]</b></td>
    <if 
condition="$show['popups']">
        <
td class="vbmenu_control" id="a" align="right"><a href="#a">$vbphrase[geek_gallery_insert_tools]</a>
    <
script type="text/javascript">vbmenu_register("a");</script>
</
td>
<else />
</
tr>
</
table>
<
br />
     <
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
     <
tr align="left">
     <
td class="alt1" width="$navbarwidth"><span class="smallfont">
    <
ul><if condition="!is_browser('mozilla')">
    <
li><a href="geek-gallery-popup.php?$session[sessionurl]method=gallery&start=$start">$vbphrase[geek_gallery_insert_gallery]</a></li>
                        <
li><a href="PHP_SELF?$session[sessionurl]method=clickthumb&start=$start">$vbphrase[geek_gallery_insert_clickthumb]</a></li>
<
li><a href="PHP_SELF?$session[sessionurl]method=thumb&start=$start">$vbphrase[geek_gallery_insert_thumb]</a></li>
                        <
li><a href="PHP_SELF?$session[sessionurl]method=large&start=$start">$vbphrase[geek_gallery_insert_large]</a></li>
<else />
<
li><a href="PHP_SELF?$session[sessionurl]method=thumb&start=$start">$vbphrase[geek_gallery_insert_thumb]</a></li>
                        <
li><a href="PHP_SELF?$session[sessionurl]method=large&start=$start">$vbphrase[geek_gallery_insert_large]</a></li>
</if>
</
ul>
</
td>
</if>
</
tr>
</
table>
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
$mypicrow
</table>
<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr class="vbmenu_control"><td align="left"><if condition="$prev>-1"><a href="geek-gallery-popup.php?start=$prev"><b>$vbphrase[geek_gallery_back]</b></a><else />&nbsp;</if>
</
td><td align="right"><if condition="$next>-1"><a href="geek-gallery-popup.php?start=$next"><b>$vbphrase[geek_gallery_next]</b></a><else />&nbsp</if>
</
td></tr></table>$DP_CLOSE
<if condition="$show['popups']">
    <!-- 
insert tools menu -->
    <
div class="vbmenu_popup" id="a_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
<if 
condition="!is_browser('mozilla')">
        <
tr><td class="vbmenu_option"><if condition="$method=='gallery'"><b>$vbphrase[geek_gallery_insert_gallery]</b><else /><a href="geek-gallery-popup.php?$session[sessionurl]method=gallery&start=$start">$vbphrase[geek_gallery_insert_gallery]</a></if></td></tr>
        <
tr><td class="vbmenu_option"><if condition="$method=='clickthumb'"><b>$vbphrase[geek_gallery_insert_clickthumb]</b><else /><a href="geek-gallery-popup.php?$session[sessionurl]method=clickthumb&start=$start">$vbphrase[geek_gallery_insert_clickthumb]</a></if></td></tr>
        <
tr><td class="vbmenu_option"><if condition="$method=='thumb'"><b>$vbphrase[geek_gallery_insert_thumb]</b><else /><a href="geek-gallery-popup.php?$session[sessionurl]method=thumb&start=$start">$vbphrase[geek_gallery_insert_thumb]</a></if></td></tr>
        <
tr>
    <
td class="vbmenu_option">
     <if 
condition="$method=='large'">
     <
b>$vbphrase[geek_gallery_insert_large]</b>
     <else />
     <
a href="geek-gallery-popup.php?$session[sessionurl]method=large&start=$start">$vbphrase[geek_gallery_insert_large]</a>
     </if>
</
td>
</
tr>
<else />
        <
tr><td class="vbmenu_option"><if condition="$method=='thumb'"><b>$vbphrase[geek_gallery_insert_thumb]</b><else /><a href="geek-gallery-popup.php?$session[sessionurl]method=thumb&start=$start">$vbphrase[geek_gallery_insert_thumb]</a></if></td></tr>
        <
tr>
    <
td class="vbmenu_option">
     <if 
condition="$method=='large'">
     <
b>$vbphrase[geek_gallery_insert_large]</b>
     <else />
     <
a href="geek-gallery-popup.php?$session[sessionurl]method=large&start=$start">$vbphrase[geek_gallery_insert_large]</a>
     </if>
</
td>
</
tr>
</if>
        </
table>
    </
div>
    <!-- / 
insert tools menu -->
<
script type="text/javascript">
</if>
<!--
    
// Main vBulletin Javascript Initialization
    
vBulletin_init();
 
    
// Initialize 'Active' Table Cells
    //activecells_init();
//-->
</script>
</
body>
</
html
Reply With Quote
  #40  
Old 01-26-2005, 07:43 AM
tormodg tormodg is offline
 
Join Date: Oct 2004
Location: Oslo, Norway
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Anyone want to check the mozilla functions for me before I update the package?
Geek, I've been swamped with work for the past few days but I'll see if I can give this a shot later today.
Reply With Quote
  #41  
Old 01-27-2005, 02:17 AM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Anyone want to check the mozilla functions for me before I update the package?

try replaceing the geek-photo-popup template with this:
Nope it pop's up a command box saying Hi There and places a image link in that is...
http://www.inyourcity.com/gallery/showimage.php?i=6

Not the actual location which should be
http://www.inyourcity.com/gallery/files/1/1-clyde_5.jpg

I'd look at the code but it's 4am so I'm going to bed it's probably something really simple as well.
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 11:53 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.04648 seconds
  • Memory Usage 2,401KB
  • 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
  • (1)bbcode_php
  • (6)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