![]() |
Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher
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
Make sure you click the freaking Install button. Otherwise you will run the risk of being skipped over in my Christmas Card Mail Out. |
wot gallery is this - just done a search and it come up with nothing ?
|
Quote:
You can find it here: http://www.vbadvanced.com/products.p...roductinfo&p=5 the nail geek great mod :) |
Quote:
|
Class will be installing this soon :D
|
Looking good :) When I get the gallery this will prolly come along with it, for those lazy members of mine :p
|
This is looking good. I'm waiting for the final vBa Gallery but I already bought the license so I'll give this a try.
|
Great hack, but I had to make some changes to get it working.
First, I had to set the template code to the following as the phrases didn't display in the template: Code:
<fieldset id="photobox" title="My Photos"> Code:
$mediaext = array( '.gif', '.jpg', '.jpeg', '.png', '.psd', '.bmp' ); Code:
images.imageid, filename, thumbname, extension, images.title, categories.title AS cattitle Lastly, next shows up even when you have no more photos. A band-aid for this is to add: Code:
if($numrows < $perpage) Code:
$numrows = $DB_site->num_rows($myphotos); |
Oh! And there is no phrase $vbphrase[geek_gallery_back] created. Once it's created, the previous link will work.
|
Nail Geek,
Now you should write something like this for the vBa Links Directory as well!!! :) |
Thanks LunaTech. Sorted all your points out and updated the package!
|
Quote:
|
I have one more change if you want it to work when they post in the gallery too. In the js file you have to change the path from 'geek-gallery-popup.php' to '../forum/geek-gallery-popup.php'
:) Great script btw. I've really enjoyed it. |
Quote:
|
Updated package to 2.0 with UI changes and more insertion options.
nJoy |
Hmm just installed and the Phrases don't seem to be working for me they are in the phrase group but not appearing in the popup or under the smilies. I've hard coded the smilies one to get it working.
Also the insert doesn't seem to work in Firefox .9 :( |
Quote:
Ill look into the firefox issue today. |
yea. The Firefox issue I will need to redo the javascript for wysiwyg editor. The problem is the DOM is different for the wysiwyg editor. It works fine for the standard editor option though.
I will really try to get this done today, but if not it will be 1 week before I get back and can sort it. Fingers Crossed ;) |
Quote:
The issue is that this hack doesnt play well with the Mozilla wysiwyg editor. In a nutshell, it doesnt insert the images. I worked for awhile today around this issue and was saddened to discover that the wysiwyg editor for Mozilla does not support inserting HTML?!?!? I can insert the image... but I just cant insert a linked image in one fell swoop. I am working out the code to insert the image then loop through the elements until I get the image and try to link that... but sadly my time is up. I am out of here for a week so this baby gets a 'Known Issue': 'Known Issue': Does not insert images with Mozilla WYSIWYG editor All other editors (standard and other wysiwyg) work fine. Hopefully, some wise man will figure this out for me in my absence. Otherwise I will sort it on my return (worse case scenario... you wont be able to insert linked images). Sorry :( |
Quote:
As for the Firefox Issue cheers least I know to hold off on the main site at the moment. |
Quote:
Do help me ! |
Quote:
HTH's |
Great Mod! Any future updates include a listing of vBGallery categories 'owned' by that particular user? Since I'm the admin, I setup several categories and as my users start to upload and organize their pics, they will also start increasing their categories.
It would be nice for to popup to show a list of categories for the user to pic from. Just a thought. Thanks, Joe |
Quote:
|
Quote:
Here is a detailed error tht I get : Quote:
|
Quote:
It is conking out as the URL being passed to getimagesize does not exist. Try under another user name as well. |
Any luck with the Firefox WYSIWYG problem?
|
Quote:
If anyone knows how to send a 'paste html' command to mozillas wysiwyg editor... I would be one happy chap. |
Quote:
http://www.mozilla.org/editor/midasd...rityprefs.html Ie, a client problem which can be solved by the user. |
Quote:
Therefore I can change it to insert just a large or small image, just not link it! There may be a way to insert the image and loop through the wysiwyg elements and THEN link it... but that sounds sketchy :) Anyone have any suggestions? |
Quote:
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. |
Quote:
|
Quote:
|
Nice, but only one problem I am having is that the box show but no photo's?
|
Quote:
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 |
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 ? |
:disappointed: Oh i, got something now, I can now get the show images link, getting the poppup window but blank, Dam
|
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:
|
Quote:
|
Quote:
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. |
All times are GMT. The time now is 06:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|