Log in

View Full Version : Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher


Pages : [1] 2

The Geek
12-17-2004, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=99011) . This project is left here for the community.
-----------------------
[/url]

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 [url="http://www.vbadvanced.com/products....productinfo&p=5"]vBadvanced Gallery (https://vborg.vbsupport.ru/showthread.php?t=99011) installed and working or PhotoPost 4 (http://www.photopost.com/) 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

Added a couple more insertion methods
Tidied up UI big time
Auto sized popup window
Finished the phrasing (found a hard coded phrase)
v.1.1 updated 21/12/04

Added phrasegroup additions to newreply, newthread and private as phrases were not appearing there (easy edits).
Made the $mediaext easier to edit (types of images allowed in popup)
Fixed typo in template that always showed the Next button (took me ages to find the stupid thing)
Fixed Back phrase as it was overwritten during the install
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.

lasto
12-18-2004, 12:20 PM
wot gallery is this - just done a search and it come up with nothing ?

Mone'
12-18-2004, 12:24 PM
wot gallery is this - just done a search and it come up with nothing ?


You can find it here: http://www.vbadvanced.com/products.php?do=productinfo&p=5



the nail geek great mod :)

The Geek
12-18-2004, 12:32 PM
You can find it here: http://www.vbadvanced.com/products.php?do=productinfo&p=5



the nail geek great mod :)

Thanks! Duh. Should have made it clearer (updated the original thread). vBadvanced Gallery is superb software. Anyone with gallery software should look at it.

Ghostsuit
12-19-2004, 06:35 PM
Class will be installing this soon :D

Mephisteus
12-20-2004, 06:24 AM
Looking good :) When I get the gallery this will prolly come along with it, for those lazy members of mine :p

tormodg
12-20-2004, 05:29 PM
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.

LunaTech
12-20-2004, 09:04 PM
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:
<fieldset id="photobox" title="My Photos">
<legend>Gallery</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="open_geek_gallery_window(); return false" title="Pick">Select</a>]</td>
</tr>
</table>
</fieldset>

Next I expanded the media array to:
$mediaext = array( '.gif', '.jpg', '.jpeg', '.png', '.psd', '.bmp' );

Then I had to modify the SQL query to:
images.imageid, filename, thumbname, extension, images.title, categories.title AS cattitle
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
INNER JOIN " . TABLE_PREFIX . "adv_gallery_categories AS categories USING (catid)
WHERE images.userid=$userid and extension in ('gif', 'jpg', 'jpeg', 'png', 'psd', 'bmp') ORDER BY dateline DESC LIMIT $start ,$perpage";


After that, in the popup template I had to remove the $folderstring reference before THUMB in the sendLinked() function.

Lastly, next shows up even when you have no more photos. A band-aid for this is to add:
if($numrows < $perpage)
$next = 0;

below:
$numrows = $DB_site->num_rows($myphotos);
in the php file. You then have to edit the popup template to have <if condition="$next>0"> - there's only one i in the original.

LunaTech
12-20-2004, 09:42 PM
Oh! And there is no phrase $vbphrase[geek_gallery_back] created. Once it's created, the previous link will work.

tormodg
12-21-2004, 08:41 AM
Nail Geek,

Now you should write something like this for the vBa Links Directory as well!!! :)

The Geek
12-21-2004, 08:58 AM
Thanks LunaTech. Sorted all your points out and updated the package!

The Geek
12-21-2004, 08:59 AM
Nail Geek,

Now you should write something like this for the vBa Links Directory as well!!! :)
huh. That could be useful (and most likely not too hard!). Let me finish whats on my plate and i'll look into it!

LunaTech
12-21-2004, 06:05 PM
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.

The Geek
12-21-2004, 06:41 PM
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.
nice touch. I updated the package.

The Geek
01-03-2005, 12:40 PM
Updated package to 2.0 with UI changes and more insertion options.

nJoy

Ghostsuit
01-06-2005, 09:57 PM
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 :(

The Geek
01-07-2005, 05:23 AM
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 :(
hmmm. try editing one of the phrases and saving it. Somone has mentioned that sometimes that sorts out the phrases occasionally not being built correctly.

Ill look into the firefox issue today.

The Geek
01-07-2005, 12:30 PM
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 ;)

The Geek
01-07-2005, 10:10 PM
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 ;)
Just thought I would update this.

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 :(

Ghostsuit
01-11-2005, 06:03 PM
hmmm. try editing one of the phrases and saving it. Somone has mentioned that sometimes that sorts out the phrases occasionally not being built correctly.

Yeah editing one sorted the Phrases :D

As for the Firefox Issue cheers least I know to hold off on the main site at the moment.

pramodha
01-12-2005, 04:46 PM
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

This is the error message tht I get when I open the PoP Up window. Everything else s working fine, except tht the images are'nt displaying at pop-up and I get the error message as above.

Do help me !

The Geek
01-13-2005, 05:17 AM
This is the error message tht I get when I open the PoP Up window. Everything else s working fine, except tht the images are'nt displaying at pop-up and I get the error message as above.

Do help me !
Double check that your $gallery_files_path is correct in the geek-gallery-popup.php file and make sure that file is in your forums directory.

HTH's

Mellow
01-13-2005, 11:24 AM
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

The Geek
01-14-2005, 12:19 AM
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
Not a bad thought... Ill look into this soon ;)

pramodha
01-15-2005, 06:21 AM
Double check that your $gallery_files_path is correct in the geek-gallery-popup.php file and make sure that file is in your forums directory.

HTH's

I double checked my option and still I get the same error !

Here is a detailed error tht I get :

Warning: getimagesize(http://www.mywebsite.com/gallery/files/2/mac_031_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/site/public_html/forum/geek-gallery-popup.php on line 116

Please help me asap ! :ermm:

The Geek
01-15-2005, 07:05 AM
I double checked my option and still I get the same error !

Here is a detailed error tht I get :



Please help me asap ! :ermm:
Huh, have you checked that the file it is wigging out on exists? Maybe it is in the DB but not in the file system? (Though I am not sure how that one could be)

It is conking out as the URL being passed to getimagesize does not exist.
Try under another user name as well.

Ghostsuit
01-18-2005, 12:36 PM
Any luck with the Firefox WYSIWYG problem?

The Geek
01-19-2005, 01:19 AM
Any luck with the Firefox WYSIWYG problem?
Still bashing my head into a wall with it.
If anyone knows how to send a 'paste html' command to mozillas wysiwyg editor... I would be one happy chap.

tormodg
01-19-2005, 10:11 PM
Still bashing my head into a wall with it.
If anyone knows how to send a 'paste html' command to mozillas wysiwyg editor... I would be one happy chap.
Wonder if this is the issue?

http://www.mozilla.org/editor/midasdemo/securityprefs.html

Ie, a client problem which can be solved by the user.

The Geek
01-20-2005, 06:19 AM
Wonder if this is the issue?

http://www.mozilla.org/editor/midasdemo/securityprefs.html

Ie, a client problem which can be solved by the user.
I spent an afternoon on this issue and really it comes down to mozillas wysiwyg editor supports simple commands like execCommand('insertImage', false, 'logo.gif'); or execCommand('insertLink', false, 'blahblahblah'); but you can not insert a linked image!

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?

tormodg
01-21-2005, 05:43 AM
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.

The Geek
01-21-2005, 06:26 AM
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)

tormodg
01-21-2005, 06:53 AM
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. ;)

marinefiend
01-21-2005, 08:50 PM
Nice, but only one problem I am having is that the box show but no photo's?

The Geek
01-21-2005, 08:57 PM
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

marinefiend
01-21-2005, 11:40 PM
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 ?

marinefiend
01-22-2005, 12:23 AM
:disappointed: Oh i, got something now, I can now get the show images link, getting the poppup window but blank, Dam

The Geek
01-25-2005, 07:09 PM
Anyone want to check the mozilla functions for me before I update the package?

try replaceing the geek-photo-popup template with this:

$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', false, mydestination);
}
}catch(errorObject){

BodyVal = opener.document.vbform.message.value;

if (ispopup=="1") opener.document.vbform.message.value = BodyVal + 'https://vborg.vbsupport.ru/';
opener.document.vbform.message.value = BodyVal + 'https://vborg.vbsupport.ru/';
}
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>

tormodg
01-26-2005, 07:43 AM
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.

Ghostsuit
01-27-2005, 02:17 AM
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.

agiacosa
01-29-2005, 10:54 AM
I'm getting a 404 error on the popup.

My gallery is broken up into categories and subcategories: /www/aquaticp/gallery/files/1/0/0/0 will reach the ultimate files.

Anyway to get this to work with your mod?

oz_moses
01-31-2005, 02:54 PM
Awesome hack, I really like it.

A few of the issues I had installing are:

1. Originally I had "[]" below my smilies, rather than the [Open] link. Clicking Edit on one of the phrases then saving saving without making any changes fixed it for the Newthread but not for the Edit. I'm still looking into this one.

2. I am using /forum as opposed to /forums so I needed to change the vbulletin_editor.js edit from

function open_geek_gallery_window(is_wysiwyg) {
photoWindow=window.open('../forums/geek-gallery-popup.php','geekgallery','scrollbars=yes,resizable =yes,width=550,height=500');
}

to

function open_geek_gallery_window(is_wysiwyg) {
photoWindow=window.open('../forum/geek-gallery-popup.php','geekgallery','scrollbars=yes,resizable =yes,width=550,height=500');
}

Ghostsuit
02-11-2005, 04:05 AM
Did you manage to get the WYSIWYG location sorted yet?

The Geek
02-11-2005, 06:32 AM
Did you manage to get the WYSIWYG location sorted yet?
uh. oops. looks like I forgot to come back to this one.

No I cant seem to get the code together for mozilla wysiwyg linked thumbnails so I was putting it together to at least allow users to insert thumbs or full sized images. Ill do this today (scouts honor ;) )

The Geek
02-11-2005, 10:15 AM
As promised - Mozilla support ;)

nJoy the new package (see readme for upgrade instructions)

trulylowcarb
02-11-2005, 07:28 PM
Can't get the install script to start? Verified its presence in the folder ... Do I need to change the permissions or something? I am calling on the right file name -
Noted in the instructions you're still referencing Done that? Good. Now run it (ie point your browser to http://www.franksfunkygyros.com/forum/admincp/geekarticles_install.php
(I caught it, obviously, am NOT nit-picking, am only pointing it out to possibly save you some questions from others, related to that...)

By the way ... you, sir, CRACK ME UP. Thank you.

The Geek
02-11-2005, 07:46 PM
Can't get the install script to start? Verified its presence in the folder ... Do I need to change the permissions or something? I am calling on the right file name -
Noted in the instructions you're still referencing
(I caught it, obviously, am NOT nit-picking, am only pointing it out to possibly save you some questions from others, related to that...)

By the way ... you, sir, CRACK ME UP. Thank you.
:)

Thanks for pointing it out (so you did get it installed...right?!?) ;)

trulylowcarb
02-11-2005, 07:51 PM
No, I cannot get the script to start for me at all, I just get a 404 error...

I was using:
http://mysiteurl.net/forums/admincp/geekgallerypopup_install.php

...same as the actual file name...

trulylowcarb
02-11-2005, 08:01 PM
Eeeek! I should have thought/mentioned that this could very well be due to one mod that is only halfway installed and which I am now painstakingly removing, because it doesn't work for me... it was the "allow users to view titles not content (window shopping"), and it caused a repeated error in the admin resources file, so I reverted that one and now have to manually remove the other phrases and file mods.

Perhaps it was affecting this install? although the forum is working fine in every other regard I can see ....

anyway - in case you care, the error was:
Parse error: parse error, unexpected T_FOREACH, expecting ')' in /home/mysite/public_html/forums/admincp/resources.php on line 70

I feel bad for telling you your mod doesn't work for me prior to removing the other failed mod, as I do know enough to realize that this whole mod thing is like a jenga game and one thing affects everything else ... [where's the blush emoticon?]

I will finish uninstalling the other mod now and then try this one again. I wouldn't have ever done this in this FUBAR order except that the error only came up when selecting 'view permissions' in the admin cp, and I wasn't aware I that I even had the aforementioned problem for a while.

The Geek
02-11-2005, 09:13 PM
no problem. I know what its like. Good luck with it :)

trulylowcarb
02-11-2005, 10:15 PM
Thanks. But, I am back to report (with a clear conscience) that the other mod does not appear to have been involved, and I still get nothing but a 404 error when I try to run the script... has anyone had success with this, or is it just me? Is paid installation available? This looks like a great mod and would be a great addition to my new gallery ....

The Geek
02-11-2005, 10:46 PM
Thanks. But, I am back to report (with a clear conscience) that the other mod does not appear to have been involved, and I still get nothing but a 404 error when I try to run the script... has anyone had success with this, or is it just me? Is paid installation available? This looks like a great mod and would be a great addition to my new gallery ....
SO let me get this right.

You have uploaded all files to their correct locations.
You got to forum/admincp/geekgallerypopup_install.php and then you get a 404 error?

vcross
02-11-2005, 10:46 PM
Is there a version of this that works with vB 3.0.6? I've installed and I don't see the pick from gallery option. (I noticed that the smilies are in a drop down instead of in a separate panel...??) Do you have instructions on how to mod the files by hand?

Thanks in advance -
V

The Geek
02-11-2005, 10:50 PM
Is there a version of this that works with vB 3.0.6? I've installed and I don't see the pick from gallery option. (I noticed that the smilies are in a drop down instead of in a separate panel...??) Do you have instructions on how to mod the files by hand?

Thanks in advance -
V
it works on 3.06.

Did you do the file changes in the readme?

Ghostsuit
02-12-2005, 07:12 AM
Ok just installed this on 3.0.6 and got it working.

There was one error

In geek-gallery-popup.php Line 157
if (!
Needs to be removed. Not sure how it got there because it wasn't in v2.

Also need to
* forum/editpost.php
* Open up your forum/editpost.php

find:

$phrasegroups = array('threadmanage', 'posting');
Change to:

$phrasegroups = array('threadmanage', 'posting','Geek_Gallery_Popup');
This adds the phrases to the edit post section.

Otherwise works perfectly. :D


vcross sounds like you havn't done the editor smilies part of the hack. You might also need to do this

Languages & Phrases > Phrase Manager > select Phrase Type: Geek Gallery Popup > edit a phrase then save it with out a change

This usually activates the installed phrases if they arn't appearing.

KTBleeding
02-12-2005, 03:40 PM
Ok just installed this on 3.0.6 and got it working.

There was one error

In geek-gallery-popup.php Line 157
if (!
Needs to be removed. Not sure how it got there because it wasn't in v2.

Also need to
* forum/editpost.php
* Open up your forum/editpost.php

find:

$phrasegroups = array('threadmanage', 'posting');
Change to:

$phrasegroups = array('threadmanage', 'posting','Geek_Gallery_Popup');
This adds the phrases to the edit post section.

Otherwise works perfectly. :D


vcross sounds like you havn't done the editor smilies part of the hack. You might also need to do this

Languages & Phrases > Phrase Manager > select Phrase Type: Geek Gallery Popup > edit a phrase then save it with out a change

This usually activates the installed phrases if they arn't appearing.
Yeah, I got it working after removing that too.. I didn't notice the editpost.php thing, so thanks for that. :)

Does anyone else experience a lot of lag with this though? I have about.. 30 images (but they are large files) and it takes about 30 seconds to load the popup and pages..

Ghostsuit
02-12-2005, 04:14 PM
havn't got it on the live site yet so that will be the tester really. Won't happen till next week though.

The Geek
02-12-2005, 04:27 PM
Yeah, I got it working after removing that too.. I didn't notice the editpost.php thing, so thanks for that. :)

Does anyone else experience a lot of lag with this though? I have about.. 30 images (but they are large files) and it takes about 30 seconds to load the popup and pages..
Ill look into updating the package to fix that. In the meantime - everyone just use the fix mentioned above.

As far as the speed, I havent really noticed anything significant. When I update the package ill look back at the code and see if there is something laggy (shouldnt be though as the select would be the only thing that slows it down and that is limited to 12 rows per page.

trulylowcarb
02-12-2005, 06:24 PM
You have uploaded all files to their correct locations. You got to forum/admincp/geekgallerypopup_install.php and then you get a 404 error?

There is just the one file, the install file, listed in step 1, yes? Says upload the one file and then run it, then go to the file mods.... ?
I never made it past running the install file... maybe I am missing something really obvious?

The Geek
02-12-2005, 06:27 PM
There is just the one file, the install file, listed in step 1, yes? Says upload the one file and then run it, then go to the file mods.... ?
I never made it past running the install file... maybe I am missing something really obvious?
There is the install and the geek-gallery-popup.php file that goes in your forum directory

trulylowcarb
02-12-2005, 06:32 PM
Am I being too literal? The way I read it, the geek-gallery-popup.php file that goes in your forum directory is step 2... do I maybe need to make the changes in that file and upload it before the install script will run?

trulylowcarb
02-12-2005, 06:34 PM
OK, I just deleted the other download and started over, just for grins and giggles, and now I am getting the install screen.... maybe it was gremlins. Too weird, as I made no changes in the file prior to uploading the first time!!

trulylowcarb
02-12-2005, 06:56 PM
okay dokey, I have completed the install, including the fixes mentioned above. What am I supposed to see now? I have a new thread window open and everything looks just the same to me ...

The Geek
02-12-2005, 07:21 PM
okay dokey, I have completed the install, including the fixes mentioned above. What am I supposed to see now? I have a new thread window open and everything looks just the same to me ...
Sounds like a bad upload. Its happened to me before.

you should see a my photos/select option with the editor. If not... your phrases may not have been built after installation.
Search for one of the phrases (like my photos) then edit it and click save. that usually fixes the phrase prblem.

trulylowcarb
02-12-2005, 07:53 PM
Thanks again for your input. The problem is definitely in the phrases - as in, I don't seem to have any new ones. I ran the install again (twice), then seached again.... no go.
The second time I installed, I copied the list of phrases it said it was inserting to my clipboard, maybe I could add them manually.. ? not sure about the typeid thing though. Any ideas or tips as to trying to add them manually?

The Geek
02-12-2005, 10:00 PM
Thanks again for your input. The problem is definitely in the phrases - as in, I don't seem to have any new ones. I ran the install again (twice), then seached again.... no go.
The second time I installed, I copied the list of phrases it said it was inserting to my clipboard, maybe I could add them manually.. ? not sure about the typeid thing though. Any ideas or tips as to trying to add them manually?
The phrases will be installed, its a semi common problem with installing phrases.
You need to find one of the phrases, edit it and then save it again (without changing it).

Try searching for the following phrase:
Insert thumbnail that opens the original picture in a seperate window

then edit it and save . That will rebuild all of your phrases and sort you out.

HTH's

trulylowcarb
02-12-2005, 10:49 PM
Well there ya go, that one came up, (nothing did earlier for my photos) and I did the edit-save thing on one ... still nothing changed ...Will go back and double-check my insertions and changes now, I guess .... well maybe not right NOW.... It's Saturday after all, and I have plans that involve King Crab legs with drawn butter and a big sirloin and some Miller Lites with my Valentine. ;)

Will surely be back by-and-by to let you know if I ever got it working though, or to whine some more and then try to pick your brain again, if not. I appreciate the hand-holding.

....Taking Phraser off of stun for the weekend.... ;)

MPDev
02-13-2005, 02:39 AM
[.......Issue taken to PM......]

The Geek
02-13-2005, 07:18 AM
Get out man. If you remember I helped fix your freaking hack.

Admitedly this was inspired by your hack as I was using it when I used photopost. When I switched to another product, my users still wanted the popup feature so I made a new popup box that (IMO is far better than the photopost one).

Its ironic you used my code to make your hack work, promised to give me credit, didnt, then come on here pissed that I stole bog standard javascript and an html link.

[edit]Took a deep breath and re-wrote ;)
I also added the reference to your hack in the first post.
[/eidt]

MPDev
02-13-2005, 10:47 AM
[..........Issue taken to PM............]

The Geek
02-13-2005, 12:10 PM
What I do remember is you sending me this polite PM:



Which makes your reply even more confusing.

Looks like you did a great job on your mod, some great ideas in there. I wasn't trying to be rude, just wondering why the lack of respect for someone elses prior work.
Sorry I got so tiffy. I did spend a lot of time working on this hack (and the changes to yours) and I guess I got my back hair up about being accused of simply copying someone elses work.
I have now waxed my back and taken a step back to look at the situation. Yes, your photopost mod was the basis for inspiration for this hack and yes I should have made mention to that fact (I have sinced edited the original post to make that clear).

However, remember that I did work long and hard on this and made massive improvements on the concept behind your popup. There is little similarity between the two hacks aside from the overall concept.

MPDev
02-13-2005, 03:28 PM
No doobt aboot it (I'm not Canadian, so might have misspelled it.), looks great! I wasn't suggesting that the mod was a simple copy, I just felt defensive having developed the original mod and felt that credit should be given where credit is due. While much of the code is new by you, some of mine is still there and it's simply courtesy to acknowledge the effort of those before you.

trackpads
02-13-2005, 03:48 PM
This is a GREAT hack! Thanks for all the work!!

-Jason

trulylowcarb
02-14-2005, 12:45 AM
I am back to say thank you, too, to all and sundry involved in any way with this fabulous and most impressive hack.
I managed to find my prior error in the file mods, and all is now well. Better than well - I am tickled to have this working, and in conjunction with your articles lite mod, Nail Guy, (modified a bit for my own needs), I finally have the forum I always wanted. My users and I salute you!

vcross
02-14-2005, 01:10 AM
I got it working now. I did have to remove the if(! line to get it working though. I am a newbie to php, so a I am learning the ins and outs.

I've installed Eclipse (Eclipse.org (http://www.eclipse.org) with a php plugin from SourceForge and it's helped a lot. Wow... I am blown away with all the open source tools out there to help you!

schford
02-15-2005, 03:30 PM
Hi - I have installed this but when doing a new post and clicking the my photos text a ne wpopup opens and it has this in

"Parse error: parse error, unexpected ';' in /home/rbw/public_html/geek-gallery-popup.php on line 158"

Any ideas?

cheers

stuart

The Geek
02-15-2005, 03:47 PM
Hey Stuart, there is a freaky if(; statement on line 158 of geek-gallery-popup.php that needs removing. Just edit the file, scroll down to the bottom and you will see it.

I have fixed this, but havent been able to release the update as there are some other whistles and bells coming with it that are not quite finished (maybe tomorrow)

schford
02-15-2005, 03:48 PM
thats sorted it :-) thanks - all working at www.rebretherworld.com now :-)

cheers

Stuart

tormodg
02-20-2005, 12:43 PM
Well, this installation thing really is BUGGY, geek. The readme suggests to run the wrong file, there is an underscore too many in the correct name listed just before that.

And all the bugs mentioned by everyone...man, what are you, a GEEK? :)

Awesome hack, pal.

But the Mozilla thing...I still don't get the "add link" options in Firefox, only in IE. Is this correct? Apart from this I do find that the images insert correctly, except that it doesn't differentiate between thumbnail and full size (ie, if I choose to insert the full size image it still just picks the thumbnail).

I have vB 3.0.7 and vBadvanced Gallery RC3, just for the record.

Can you do my nails, too? Why are you no longer the nail geek but just a geek?

And I have a million other questions as well, like why is beer so expensive, but we can discuss that some other time.

tormodg
02-20-2005, 12:49 PM
Just ONE more question before I leave...the images shown to the users. It means that members must have uploaded images under their own name, right?

Okay, wish list item: A "common" category for images which everyone can use in their posts. Or something.

The Geek
02-20-2005, 12:54 PM
Well, this installation thing really is BUGGY, geek. The readme suggests to run the wrong file, there is an underscore too many in the correct name listed just before that.

And all the bugs mentioned by everyone...man, what are you, a GEEK? :)

Awesome hack, pal.

But the Mozilla thing...I still don't get the "add link" options in Firefox, only in IE. Is this correct? Apart from this I do find that the images insert correctly, except that it doesn't differentiate between thumbnail and full size (ie, if I choose to insert the full size image it still just picks the thumbnail).

I have vB 3.0.7 and vBadvanced Gallery RC3, just for the record.

Can you do my nails, too? Why are you no longer the nail geek but just a geek?

And I have a million other questions as well, like why is beer so expensive, but we can discuss that some other time.
Hey Tormod.

You are right - the readme refers to a different hack (not too many picked up on that though!). And yes, there is a freaky IF in the main file.
The problem is that I havent been able to upgrade the package yet. Mainly because I am in middle of an upgrade for it. MPdev asked me to make changes to make it work with Photopost and so I have modified it to work with both vba and pp. Once I can finish marrying up the cahnges - we shall have abrand spanking new version free of the nigglets you mentioned.

THe problem mentioned regarding Firefox is that you cant insert HTML with the mozilla wysiwyg editor. That mans I cant insert a hyperlinked image :( therefore I had to elimianate those options from mozilla browsers.

I would be happy to do your nails - however they run ?300 per set if I do them versus ?30 from a standard salon ;)
And I changed from the Nail Geek to The Geek as it was pissing me off that my vb.org posts were getting higher ranks on google than my web site ;)

PS - Beer is expensive to keep the cost of Vodka cheap :)

Ill see if I can complete this today :)

The Geek
02-20-2005, 01:59 PM
Upgraded package to version 3 to support PhotoPost 4+


To upgrade - uninstall then re-install.

nJoy

NuclioN
02-20-2005, 02:18 PM
I just don't get it why the safe mode MUST be off. Many providers would rather die then turn that off.

The Geek
02-20-2005, 02:20 PM
I just don't get it why the safe mode MUST be off. Many providers would rather die then turn that off.
? eh ?

NuclioN
02-20-2005, 02:25 PM
safe mode restrictions eh. Mailed our host almost dizzy with requests for turning that off. Nope! No way. (nothing to do with this hack but with the photo software as you can imagine) :)

The Geek
02-20-2005, 02:27 PM
safe mode restrictions eh. Mailed our host almost dizzy with requests for turning that off. Nope! No way. (nothing to do with this hack but with the photo software as you can imagine) :)
Oh right! I thought you meant that this hack needed safe mode off!

Which system do you mean - vBa or Photopost?

NuclioN
02-20-2005, 02:28 PM
Both :(

SVTBlackLight01
02-20-2005, 04:22 PM
I know I'm missing something obvious, but my pop-up doesn't pop-up. :confused:

The Geek
02-20-2005, 04:36 PM
Do you see the My Photos link?

BTW: Could you please click install when you get a minute ;)

SVTBlackLight01
02-20-2005, 05:27 PM
Clicked install :)

The link is there, but it ain't popin' up.

I'm also getting an error on the page (newreply and newtread) with the pop-up code in the editor_smiliebox template:

Line: 130
Char: 103
Error: Expected ')'
Code: 0

The Geek
02-20-2005, 05:58 PM
oops. Thought I fixed that.

Edit your editor_smiliebox template and change:

<fieldset id="photobox" title="My Photos">
<legend>$vbphrase[geek_gallery_my_pictures]</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="window.open('geek-gallery-popup.php','geekgallery','scrollbars=yes,resizable =yes,width=550,height=500'; return false" title="Pick">$vbphrase[geek_gallery_select]</a>]</td>
</tr>
</table>
</fieldset>


to:


<fieldset id="photobox" title="My Photos">
<legend>$vbphrase[geek_gallery_my_pictures]</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="window.open('geek-gallery-popup.php','geekgallery','scrollbars=yes,resizable =yes,width=550,height=500'); return false" title="Pick">$vbphrase[geek_gallery_select]</a>]</td>
</tr>
</table>
</fieldset>


or just add the ')' after height=500'

Ill go update the readme. Sorry about that!

SVTBlackLight01
02-20-2005, 06:49 PM
Saweeet!! It's workin' now. :D

Great work! Now I have to go play around with it. :)

SVTBlackLight01
02-20-2005, 07:45 PM
How hard would it be to add another option to post the medium image from the gallery? Some of my full size images are HUGE

This may be especially useful for vBgallery users since there is currently no way to llimit the max full size dimensions.

msimplay
02-20-2005, 07:53 PM
wow it finally works and i LOVE IT thank you The Geek

tormodg
02-20-2005, 08:14 PM
I have one HUGE wish for this thing: the option to align an image left or right. This is rather useful when using an image in an article. Right now I have a custom BBcode that does it for me but it won't work on the images I insert since they are displayed right away in the editor...any way this can be fixed?

And by the way...where is the actual code you put in generated? Maybe I can figure out a way to do this myself.

A second wish would be to have the image embedded in a small table with one column, two rows, so that a caption can be added below. A bit hard with BBCode but a useful thing anyway. :)

The Geek
02-20-2005, 08:15 PM
How hard would it be to add another option to post the medium image from the gallery? Some of my full size images are HUGE

This may be especially useful for vBgallery users since there is currently no way to llimit the max full size dimensions.
GUess it wouldnt be too hard. I was going to do it but decided to focus on GAS3. Ill see what I can do (very busy right now though... so dont hold your breath!)

The Geek
02-20-2005, 08:19 PM
I have one HUGE wish for this thing: the option to align an image left or right. This is rather useful when using an image in an article. Right now I have a custom BBcode that does it for me but it won't work on the images I insert since they are displayed right away in the editor...any way this can be fixed?

And by the way...where is the actual code you put in generated? Maybe I can figure out a way to do this myself.

A second wish would be to have the image embedded in a small table with one column, two rows, so that a caption can be added below. A bit hard with BBCode but a useful thing anyway. :)

The insertion code is in the template (geek-gallery-popup). The alignment thing is quite a handy idea to have - Generally I just highlight the image after insertion and then click the alignment button (centered usually).

As far as the table insertion :surprised: I think it would have to be done with a combination of BB code - otherwise the HTML will get stripped out.

tormodg
02-20-2005, 08:27 PM
Geek, that's strange because for me the alignment buttons don't do a thing for me when it comes to images. I need to align the image so that the text flows on the side of it. Clicking the alignment buttons just doesn't seem to have an effect on images.

Do you have HTML enabled in your forums? Could it possible be a Firefox issue? Hm...sorry for bugging you about this.

The Geek
02-20-2005, 08:41 PM
Got me. Seems to work in FF and IE for me (saying that, my FF is using a standard editor). I just highlight the image/text and click the alignment button. In all fairness I dont think that wraps text around the image. I seem to think that the [img] tags get wrapped in a DIV.

Oddly enough I was going to tell you to ask someone here but - er, it turns out to be you as It looks like you have images inline with your text!

I dont have html enabled. You may want to look at the code for your [img] tag.

HTH's

tormodg
02-20-2005, 09:24 PM
I'll try to append a style class to the code you generate to at least make the images default to a left-alignment. That would be fine for me.

But I found a bug: in the geek-gallery-popup you are missing a closing ] after the first URL statement. So it comes out as [URL[IMG...etc.

SVTBlackLight01
02-20-2005, 09:57 PM
GUess it wouldnt be too hard. I was going to do it but decided to focus on GAS3. Ill see what I can do (very busy right now though... so dont hold your breath!)

I was able to modify the code to insert the medium images instead of the large images, but it presents a problem. Not all of the images in the gallery have a medium size. For now I just disabled the menu option for inserting the large images. So all is good!

The Geek
02-20-2005, 10:09 PM
Tormodg - Is this from the latest install package? I know there way one missing from before and I just combed through my file here and it seems fine. I just want to double check we are looking in the same spot ;)

Blacklight - Ahhh... Actually rings a bell. I think I actually looked into it, but I couldnt find any efficient way of checking for the existence of the files without a lot of extra processing.

tormodg
02-20-2005, 10:10 PM
Geek, I have successfully managed to edit the code so that images are shown inline. Due to the limited options availabe when inserting photos, I resorted to just left-aligning them.

BUT there is a catch here. I was unable to make this work in the Enhanced WYSIWYG editor. I assume the Enhanced editor does some parsing of the images. At any rate it completely ignored any settings I tried to make.

So here is my current solution:

a) Opt for the Standard Editor
b) create a BBcode which looks like this:
<img align="{option}" src="{param}" style="padding:0 5px 5px 0;border:0;" alt="" />
c) edit your geek_photo_popup to use the [img="left"] instead of just [img] tag.

Now all my images will be displayed inline and left-aligned but for my purpose that is fine. I'll see if I can do some more hacking later but right now I need to crash (it's 1:09am over here in Norway).

It would be swell of course to have this work in the Enhanced Editor but I need to familiarize myself with how it works and why it is parsing out my style (I initially appended a class="geekimage" but it never shows up in my source).

Edit: Wonder if this is because I have turned off HTML? Hm...

tormodg
02-20-2005, 10:13 PM
An added bonus to using the standard editor is that the URL is also wrapped around the thumbnail so it works swell in Firefox.

The Geek
02-20-2005, 10:13 PM
Why not just add [ left ] tags to the javascript insertion code?

tormodg
02-20-2005, 10:16 PM
Why not just add [ left ] tags to the javascript insertion code?
The [ left ] tag does not align the image so that text can flow around it - at least I am not able to make that work.

Edit: Another reason to use a custom BBcode is to get the custom spacing which leaves some room to the left and belom the image.

The Geek
02-20-2005, 10:19 PM
aw, right... Like I said - I think that the vb IMG tag gets wrapped in a DIV which would require you to edit that to get wrapped text (or as you have done - create a custom BB code).

tormodg
02-20-2005, 10:22 PM
It works really well for me now! Left-aligned images, and I can control the properties by changing the BBcode if I like. Neat. And I also get the URL inserted in mozilla browser.

Another killer app from Geek. :)

T3MEDIA
02-20-2005, 10:47 PM
ok weird..
Database error in vBulletin 3.0.3:

Invalid SQL: 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 photo.pp_photos AS images
INNER JOIN photo.pp_categories AS c on images.cat=c.id
WHERE images.userid=1 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: select command denied to user: 'mysitesname@localhost' for table 'pp_photos'

mysql error number: 1142

Date: Sunday 20th of February 2005 07:45:59 PM
Script: http://www.mysite.com/forums/geek-gallery-popup.php
Referer: http://www.mysite.com/forums/newreply.php?do=newreply&p=42460

T3MEDIA
02-20-2005, 10:48 PM
what happens if I have no photos saved in photopost? will I get an error?

SVTBlackLight01
02-20-2005, 10:58 PM
T3MEDIA,

It loos like you may have missed some of the settings in geek-gallery-popup.php.

I believe the script prints out a message in the popup if there are no photos in the gallery.

T3MEDIA
02-20-2005, 11:14 PM
in this part of your geek-gallery-popup.php file

// START GEEKPOPUP SETTINGS

// If using photopost, put the name of the database that contains photopost here:
// You can leave blank if photopost is installed on the same database server as vb3
$gallery_db="photo";

is it possable to change the wording to:
// START GEEKPOPUP SETTINGS

// If using photopost, put the name of the database that contains photopost below and comment out if photopost is installed on the same database server as vb3:
//$gallery_db="photo";

The other way is a bit confusing.
Thanks it works now.

T3MEDIA
02-20-2005, 11:15 PM
T3MEDIA,

It loos like you may have missed some of the settings in geek-gallery-popup.php.

I believe the script prints out a message in the popup if there are no photos in the gallery.
you are right SVT. Thanks for the heads up.

T3MEDIA
02-21-2005, 12:59 AM
Ok in Photopost if there is a picture that isnt there anymore you get an error.

I also got this error.

getimagesize(http://www.mysite.com/forums/mypics/data/507/15347nexi0006-thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/virtual/site1221/fst/var/www/html/forums/geek-gallery-popup.php on line 198

So far though looks good.

T3MEDIA
02-21-2005, 01:13 AM
I have a site that uses the webpage & guestbook hack. Imgaine the possabilities!

well there is a odd thing... the phrases dont show up. So I assume you do not have this hack. let me give you the template.

DrkFusion
02-21-2005, 01:31 AM
I checked this out earlier. Seems to work fine with Photopost as well - but there seems to be an error while using IE5 (some users highlighted this) this popup works on occasion and is not consistent.

The Geek
02-21-2005, 05:56 AM
Not sure why there would be a problem, its pretty straight forward stuff. Can you give me an idea of what is/isnt working on ie5? I havent had any problem at this end.

t3media- I am not sure why you would have an entry in your DB but no file in the system. I guess I can put a double check in it for the existenece of the file.
Also, I am not sure what the template is for that you have attached.

Could you guys click install if you installed it please.

msimplay
02-21-2005, 04:50 PM
Theres a Bug in the hack
Basiclly when images are pending approval from photopost they still show up in the Gallery Popup

The Geek
02-21-2005, 06:37 PM
images are pending approval from photopost they still show

Thanks for that. Ill sort it out tonight, update the package and issue a fix ;)

msimplay
02-21-2005, 07:03 PM
Thanks for that. Ill sort it out tonight, update the package and issue a fix ;)

thanks a user of mine said to me why this happen i was like I have Noooo idea :p

The Geek
02-21-2005, 07:06 PM
thanks a user of mine said to me why this happen i was like I have Noooo idea :p
What version of PP are you running? I just checked 4.0 and it doesnt get non approved pics.

msimplay
02-21-2005, 07:15 PM
What version of PP are you running? I just checked 4.0 and it doesnt get non approved pics.

4.86 vB3 Enhanced

The Geek
02-21-2005, 07:42 PM
4.86 vB3 Enhanced
Can you verify or was it just your user. If the approved field is not set to 1, it wont fetch the pic.

msimplay
02-21-2005, 07:48 PM
Can you verify or was it just your user. If the approved field is not set to 1, it wont fetch the pic.

which one is the approved field
and it wasn't just my user it was another user that actually discovered it

.............................

sorry its ok i have multiple usergroups and i had to set them all to approve moderation before it worked sorry for the trouble

The Geek
02-21-2005, 07:54 PM
which one is the approved field
and it wasn't just my user it was another user that actually discovered it

.............................

sorry its ok i have multiple usergroups and i had to set them all to approve moderation before it worked sorry for the trouble
No problem!

T3MEDIA
02-21-2005, 09:47 PM
Not sure why there would be a problem, its pretty straight forward stuff. Can you give me an idea of what is/isnt working on ie5? I havent had any problem at this end.

t3media- I am not sure why you would have an entry in your DB but no file in the system. I guess I can put a double check in it for the existenece of the file.
Also, I am not sure what the template is for that you have attached.

Could you guys click install if you installed it please.
Shure! Ok some of my pictures come up as x's yet they are in photopost. Has something to do with the thumbs or something. As for the template that is part of the webpage and guest book hack that you had nothign to do with! LOL.

but the combo of the two would be awsome. they use the normal smilie box but your text doesnt show up in anyform for some reason. the legend box does but no title nothing to click on.

the error is about the graphics that do not show. I think if I delete a file and re upload it or SOMETHING to this effect that error will ocurr. I have the latest photopost.

And another thing.... I was confused.... there is a photopost 5? I dont think there is....

The Geek
02-21-2005, 10:37 PM
To get the link to show up: You need to add the Geek_Gallery_Popup phrase to your phrasegroups on whatever other page you want this to appear on. Or you can take the lazy route and replace the $vbphrase in the link to just plain text.

PP5 isnt out yet, but this is already sorted for it thanks to MPdev ;)

Like I said - ill put a filecheck as a safety net in those odd instances.

nJoy

T3MEDIA
02-21-2005, 11:07 PM
ok.. fair enough... not sure how to do exactly what your saying. Just to confirm I should have the phrase global?

is it just me or can other users click on photo's in the profile page after this hack?

The Geek
02-22-2005, 06:01 AM
ok.. fair enough... not sure how to do exactly what your saying. Just to confirm I should have the phrase global?

is it just me or can other users click on photo's in the profile page after this hack?
At the top of each page is your $phrasegroup array. It needs to be in there (just refer to the file edits in the hack... they are all essentially the same: adding the phrasegroup.

This hack doesnt touch the profile page, in fact - it doesnt touch any page aside from adding the phrasegroup. I would double check any other hacks you have installed.

nJoy

msimplay
02-22-2005, 10:49 PM
Hmm just realised i started to use the watermark on the fly php file
and now when i insert the pictures into the forums the watermark isn't there when inserting full pictures

photopost 4.86

The Geek
02-23-2005, 06:07 AM
ill look into it and see whats up.

msimplay
02-23-2005, 08:03 PM
ill look into it and see whats up.
any more news on this ?

T3MEDIA
02-23-2005, 08:10 PM
At the top of each page is your $phrasegroup array. It needs to be in there (just refer to the file edits in the hack... they are all essentially the same: adding the phrasegroup.

This hack doesnt touch the profile page, in fact - it doesnt touch any page aside from adding the phrasegroup. I would double check any other hacks you have installed.

nJoy
no. I am saying in IE only all pictures become clickable. profile page it stood out becuase your not supposed to beable to click on the avatar's ect.

Not just the profilepage. No hacks installed this month besides yours.

On my drop down menu I only see two options. is that correct?

The Geek
02-23-2005, 08:49 PM
no. I am saying in IE only all pictures become clickable. profile page it stood out becuase your not supposed to beable to click on the avatar's ect.

You only get 2 options if using non IE browser. THis is because mozilla browsers, etc... do not support inserting HTML. Therefore you can only insert images - not hyperlinks. This is a limitation to mozilla wysiwyg editors. THis problem doesnt occur if they are using standard editors.

*I think this is what you are asking ;) *

msimplay - sorry, havent gotten any further (been very busy) . Am going to PM MPdev to see if he can help as he is the PP guru.

msimplay
02-23-2005, 11:26 PM
You only get 2 options if using non IE browser. THis isbecause mozilla browsers, etc... do not support inserting HTML.Therefore you can only insert images - not hyperlinks. This is alimitation to mozilla wysiwyg editors. THis problem doesnt occur ifthey are using standard editors.

*I think this is what you are asking ;) *

msimplay - sorry, havent gotten any further (been very busy) . Am goingto PM MPdev to see if he can help as he is the PP guru.

Thank you geek

MPDev
02-24-2005, 08:44 PM
Hmm just realised i started to use the watermark on the fly php file
and now when i insert the pictures into the forums the watermark isn't there when inserting full pictures

photopost 4.86

Well, the issue is that the img tags being inserted are the ones to the actual images. If you wanted to use the watermark.php script as you do in PhotoPost, you would have to modify the IMG tags being inserted to use the watermark.php link similiar to PP.

However, I believe vB has an option to prevent URLs from being used to insert scripts as dynamic images. You'd also have to probably turn this off to make this work (if I recall the option correctly).

msimplay
02-24-2005, 09:26 PM
Well, the issue is that the img tags being inserted aretheones to the actual images. If you wanted to use the watermark.phpscriptas you do in PhotoPost, you would have to modify the IMG tagsbeinginserted to use the watermark.php link similiar to PP.

However, I believe vB has an option to prevent URLs from being usedtoinsert scripts as dynamic images. You'd also have to probably turnthisoff to make this work (if I recall the option correctly).

I don't mind doing anything to get it working but what exactly wouldthe steps be and also what are the implications in allowing what yououtlined above

MPDev
02-25-2005, 07:10 PM
I don't have the exact code you'd need to place in the file, like I said, you'd have to modify the script to use the watermark.php sciprt in place of the URL to the actual image.

As for allowing dynamic images, I'd say that you should research the issue. I'm not sure that its really a bad thing, but others may disagree and I wouldn't want to tell you to undo something that may be a risk to your site without knowing more about it myself. (Even dynamic scripts can be used when its disbaled, such as my signature listed below).

mikexxx
02-28-2005, 05:36 AM
Hi, a question. If I open the simile popup window and click on a smilie the smilie will be set in the message an then sets the focus back on the popup.

onclick="opener.insert_smilie(this, 630); self.focus(); return false;

Is this possible whit the photo popup?

On the moment the popup windows disappears behind the main windows I you click a image.

T3MEDIA
03-01-2005, 06:24 PM
You only get 2 options if using non IE browser. THis is because mozilla browsers, etc... do not support inserting HTML. Therefore you can only insert images - not hyperlinks. This is a limitation to mozilla wysiwyg editors. THis problem doesnt occur if they are using standard editors.

*I think this is what you are asking ;) *

msimplay - sorry, havent gotten any further (been very busy) . Am going to PM MPdev to see if he can help as he is the PP guru.
Yeah you got it.
Listen I set u up but you never logged back in.
since WE ALL have photopost anyone here think they cam mix up a cron job that checks if a user exists. if they DONT and they have a photopost picture delte it.

and send us a email of what was done.

I know nothing to do with this hack but that would be cool. you remove a user but the photos still sits in photopost. Kinda annoying.

The Geek
03-02-2005, 10:57 PM
Hi, a question. If I open the simile popup window and click on a smilie the smilie will be set in the message an then sets the focus back on the popup.

onclick="opener.insert_smilie(this, 630); self.focus(); return false;

Is this possible whit the photo popup?

On the moment the popup windows disappears behind the main windows I you click a image.
Ill look into sorting that out.

I am currently traveling on business and so I havent had any time to work on anything. Ill try to get to it when I get back into town.

nJoy ;)

trulylowcarb
03-02-2005, 11:18 PM
Geek, when you get back, I am wondering if you might guide me in removing the option to paste the full size picture in - it is causing problems with larger images, and I would just as soon limit the options to thumbnails only, if that's possible.
Thanks again for the great mod! We love it.

The Geek
03-02-2005, 11:26 PM
Geek, when you get back, I am wondering if you might guide me in removing the option to paste the full size picture in - it is causing problems with larger images, and I would just as soon limit the options to thumbnails only, if that's possible.
Thanks again for the great mod! We love it.
Thanks!

The easiest way would be to edit the gee-gallery-popup template and remove the option from the code.

HTH's ;)

T3MEDIA
03-04-2005, 03:56 AM
Thanks!

The easiest way would be to edit the gee-gallery-popup template and remove the option from the code.

HTH's ;)geekster ya missed my post.
are ya gona pass by about that minor issue I was having?

trulylowcarb
03-04-2005, 05:26 AM
The easiest way would be to edit the gee-gallery-popup template and remove the option from the code.


Will give that a shot...

... ok, after much trial and error snipping away, I got the last option for pasting in full sized off of there with the others still working. Phew. If I knew how or hard more time to experiment, I would try to just remove the whole menu and make the pics all default to 'insert thumbnail that opens to gallery page.' But I'll settle for this, for now... unless someone with more knowledge wants to take pity and help me out with this?? pretty please?

Lizard King
03-04-2005, 03:11 PM
worked perfect :)

The Geek
03-04-2005, 09:43 PM
geekster ya missed my post.
are ya gona pass by about that minor issue I was having?
hey t3media. I must have missed it. Sorry about that. I am not sure what I should be addressing - I think my head is going too many directions right now! PM me and Ill try to sort what I can but be forewarned I am traveling on business right now so I my time is a bit spastic right now ;)

msimplay
03-06-2005, 08:22 AM
hmm mozilla doesn't allow for html insert but why not just make it insert the bbcode the same way the standard editor does ?

The Geek
03-06-2005, 08:26 AM
hmm mozilla doesn't allow for html insert but why not just make it insert the bbcode the same way the standard editor does ?
Good thinking. Ill look into sorting that out ;)

tormodg
03-06-2005, 10:44 AM
Good thinking. Ill look into sorting that out ;)
This works already in Firefox with the Geek gallery popup...as long as the editor is in standard and not enhanced mode.

msimplay
03-06-2005, 03:22 PM
Good thinking. Ill look into sorting that out ;)

Thanks :D

tormodg
03-06-2005, 08:17 PM
Thanks :D
And sorry for not reading posts properly...

MikaK
03-07-2005, 06:52 AM
Installed for vBa Gallery and vB 303 without any major probs.

Only had to add the phrases in the translation box to appear.

Really cool one.

=M=

Symbian.info
03-07-2005, 04:36 PM
I install without a problem, I use VB gallery RC3.
But get this when I make a trhead:
Warning: getimagesize(http://www.mywebsite.com/gallery/files/1/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /geek-gallery-popup.php on line 198

The Geek
03-07-2005, 05:38 PM
I install without a problem, I use VB gallery RC3.
But get this when I make a trhead:
Warning: getimagesize(http://www.mywebsite.com/gallery/files/1/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /geek-gallery-popup.php on line 198
You need to edit the settings in geek-gallery-popup.php
That is where the settings are (as per readme ;) )

HTH's!

Symbian.info
03-07-2005, 07:07 PM
You need to edit the settings in geek-gallery-popup.php
That is where the settings are (as per readme ;) )

HTH's!

I deed!

And get error:
Warning: getimagesize(http://www.pdatotaal.info/gallery/files/1/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /geek-gallery-popup.php on line 198

And no pictures

But found it! When there is no tumbnail but use a standard tumbnail you get this..

btw something wrong in maunal:

Upload admincp/geekgallerypopup__install.php to your admin folder (i.e. http://www.bobsfluffyfriends.com/forum/admincp/)
Done that? Good. Now run it (ie point your browser to http://www.franksfunkygyros.com/forum/admincp/geekarticles_install.php)


geekarticles_install.php must be geekgallerypopup__install.php :devious:

The Geek
03-08-2005, 04:50 AM
try this one - I added a check to see if the file exists. If it works for you Ill update the package, if not I will set fire to it.


I have updated the readme to address the typo you pointed out - it will be in the next package update - I hope no one was too confused by it ;)

PS - please toggle the ol install button if you installed :)

Thanks

T3MEDIA
03-12-2005, 03:14 PM
ERROR
Warning: getimagesize(http://www.mysite.com/forums/photopost/data/504/15347goodbad-thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/virtual/site1/fst/var/www/html/forums/geek-gallery-popup.php on line 198BUT...
BUT the picture is there.
besides how to supress these error notices?

tormodg
03-12-2005, 04:24 PM
ERROR
BUT...
BUT the picture is there.
besides how to supress these error notices?
Your image is not there - just click on the link for a 404 message.

T3MEDIA
03-13-2005, 10:57 AM
Your image is not there - just click on the link for a 404 message.
Picture is there.
But for argument sake....
Say it isnt, how do I turn off the error message?

The Geek
03-13-2005, 11:01 AM
Picture is there.
But for argument sake....
Say it isnt, how do I turn off the error message?
Have you tried the new file I attached a couple of posts previously?

tormodg
03-13-2005, 11:07 AM
Geek, I have noticed that sometimes the LAST image posted does not want to be inserted into a post with Firefox. It has happened a few times for me now. Any other picture will work just fine. Just FYI.

I have a question: The current method of insertion points to the file directly, right? So if a file is moved, the image breaks. Maybe it would be wise to think up some sort of solution to this - it can be a real hassle when for example a gallery is reorganized.

tormodg
03-13-2005, 11:08 AM
Picture is there.
But for argument sake....
Say it isnt, how do I turn off the error message?
Again...my bad for not reading the post correctly. Apologies. Blame the nasty flu I'm struggling with. :(

The Geek
03-13-2005, 11:16 AM
Geek, I have noticed that sometimes the LAST image posted does not want to be inserted into a post with Firefox. It has happened a few times for me now. Any other picture will work just fine. Just FYI.

I have a question: The current method of insertion points to the file directly, right? So if a file is moved, the image breaks. Maybe it would be wise to think up some sort of solution to this - it can be a real hassle when for example a gallery is reorganized.
Huh - not sure why FF wouldnt display the last image. Thats all pretty much done behind the scenes. Ill look into it.

As for moving the pics - no matter which gallery you use, when you move or delete an image, it wil update their tables. That is where the info comes from so I dont think there should be a problem?!?

T3MEDIA
03-13-2005, 11:25 AM
Have you tried the new file I attached a couple of posts previously?
on it now!

tormodg
03-13-2005, 11:48 AM
Huh - not sure why FF wouldnt display the last image. Thats all pretty much done behind the scenes. Ill look into it.

As for moving the pics - no matter which gallery you use, when you move or delete an image, it wil update their tables. That is where the info comes from so I dont think there should be a problem?!?
But, Geek...the LINK to the full size image will work since it goes to showimage.php, but the thumbnail is inserted as a hardcoded path, ie:

http://www.hypography.com/gallery/files/9/9/8/M33_thumb.gif

If I move the image this path will change...I don't know how to solve this. I am just saying it might become a problem when reorganizing.

Or maybe I am wrong?

The Geek
03-13-2005, 11:57 AM
But, Geek...the LINK to the full size image will work since it goes to showimage.php, but the thumbnail is inserted as a hardcoded path, ie:

http://www.hypography.com/gallery/files/9/9/8/M33_thumb.gif

If I move the image this path will change...I don't know how to solve this. I am just saying it might become a problem when reorganizing.

Or maybe I am wrong?
If you use the front end program (either PP or vBadvanced) to move or reorganise the images, then it doesnt really matter as the images will always stay in the same physical location.
If you were to manually move them, you would break the front end programs depiction of the image as well as this popup.

HTH's :)

mindbuster
03-13-2005, 03:41 PM
Thanks for a VERY nice modification, saves alot of copy/pasting links, and very n00b friendly.

*clicks install*

Installed with no errors on patched vB 3.0.5.

zooounds
03-13-2005, 03:42 PM
Just installed the software and have some feedback:

The back and forward links will totaly destroy the size of the window if there is to few images on page.

When I have inserted the patches in the php-s cript to enable the strings all other strings on the page ++++s up. Had to remove the patches to make the other things work.

Why is mots of the functionality removed in Mozilla?

The Geek
03-13-2005, 04:01 PM
Just installed the software and have some feedback:

The back and forward links will totaly destroy the size of the window if there is to few images on page.

When I have inserted the patches in the php-s cript to enable the strings all other strings on the page ++++s up. Had to remove the patches to make the other things work.

Why is mots of the functionality removed in Mozilla?
Hey zooounds - Im not sure what you mean.

The functionality in Mozilla is reduced because the mozilla wysiwyg editor doesnt support pasting html. THe functionality is fine in standard editors.

T3MEDIA
03-13-2005, 07:04 PM
Errors for days!

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT
images.imageid, filename, thumbname, extension, images.title, categories.title AS cattitle,images.width, images.height
FROM myvb3_adv_gallery_images AS images
INNER JOIN myvb3_adv_gallery_categories AS categories USING (catid)
WHERE images.userid=22610 and extension in ('jpg','gif','png') ORDER BY dateline DESC LIMIT 0 ,13
mysql error: Table mysite_com_-_sqlname.myvb3_adv_gallery_images' doesn't exist

mysql error number: 1146

Date: Sunday 13th of March 2005 03:54:56 PM
Script: http://www.mysite.com/forums/geek-gallery-popup.php?
Referer: http://www.mysite.com/forums/index.php?http://www.mysite.com/forums/geek-gallery-popup.php
Username: MixedMam
IP Address: 24.229.168.188

tormodg
03-13-2005, 07:07 PM
If you use the front end program (either PP or vBadvanced) to move or reorganise the images, then it doesnt really matter as the images will always stay in the same physical location.
If you were to manually move them, you would break the front end programs depiction of the image as well as this popup.

HTH's :)
Ah, Geek...a warm, beardy, virtual kiss from me.

The Geek
03-13-2005, 07:10 PM
Does this table exists?

myvb3_adv_gallery_images

T3MEDIA
03-13-2005, 08:30 PM
Does this table exists?

myvb3_adv_gallery_images
your updated php file isnt any good for me.
reverting back to the other one. oh well.

The Geek
03-13-2005, 08:34 PM
your updated php file isnt any good for me.
reverting back to the other one. oh well.
The only difference is that it does a check for the thumbnail before displaying it. Nothing else should have changed. My guess is that you missed a setting in the new file - hence the reason I asked you if the table exists.

T3MEDIA
03-13-2005, 08:56 PM
The only difference is that it does a check for the thumbnail before displaying it. Nothing else should have changed. My guess is that you missed a setting in the new file - hence the reason I asked you if the table exists.new setting? I reverted to the old file she works fine.

didnt realize I had to do mods inside the php file.

T3MEDIA
03-13-2005, 09:02 PM
welp realized there was some code in the top that needed to be added. I totally forgot. now the window opens really small and all this text is in the box. dubble checked.
did it again. the same.

reverted back. all is well. Well the users that have that issue still are there but it still works.

I'll wait for a final update I guess. Thanks.

T3MEDIA
03-15-2005, 05:21 PM
I found what the issue is. in the PHP you uploaded it asks this.

//$gallery_server_path is the server path to the gallery
//something like:
//$gallery_server_path="/var/www/gallery";
photopost does not have such a directory. So I dont know what to put here and should I have a trailing slash or not.

GamerzWorld
03-15-2005, 07:44 PM
Same error here

Invalid SQL: 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 .photos AS images
INNER JOIN .categories AS c on images.cat=c.id
WHERE images.userid=171 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: Table 'merlin_unity.photos' doesn't exist

All my file is correct yet its directing at unity.photos. The table is infact pp_photos

The Geek
03-16-2005, 08:04 AM
Thanks for the rating.

Try this. I reposistioned the settings as it seems that some people are having difficulty setting them all (yes - even pp has a server path). Let me know if this works for you. If so Ill update the package.

nJoy

GamerzWorld
03-16-2005, 08:49 AM
Now im getting

Database error in vBulletin 3.0.7:

Invalid SQL:
mysql error: Query was empty

mysql error number: 1065

Date: Wednesday 16th of March 2005 05:48:57 AM
Script: http://www.mirzone.net/forum/geek-gallery-popup.php
Referer: http://www.mirzone.net/forum/newreply.php?do=newreply&noquote=1&p=53445
Username: Merlin

The Geek
03-16-2005, 11:27 AM
Now im getting

Database error in vBulletin 3.0.7:

Invalid SQL:
mysql error: Query was empty

mysql error number: 1065

Date: Wednesday 16th of March 2005 05:48:57 AM
Script: http://www.mirzone.net/forum/geek-gallery-popup.php
Referer: http://www.mirzone.net/forum/newreply.php?do=newreply&noquote=1&p=53445
Username: Merlin
Thanks - I just recieved your file. It looks like the problem is that all of the settings are commented out.

Uncomment the settings that are applicible to you (in this case the photopost settings) and let me know if that sorts it.

Thanks

GamerzWorld
03-16-2005, 11:43 AM
Thanks - I just recieved your file. It looks like the problem is that all of the settings are commented out.

Uncomment the settings that are applicible to you (in this case the photopost settings) and let me know if that sorts it.

Thanks

Database error in vBulletin 3.0.7:

Invalid SQL: 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 photo.pp_photos AS images
INNER JOIN photo.pp_categories AS c on images.cat=c.id
WHERE images.userid=171 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: select command denied to user: 'merlin@localhost' for table 'pp_photos'

mysql error number: 1142

The Geek
03-16-2005, 11:52 AM
Database error in vBulletin 3.0.7:

Invalid SQL: 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 photo.pp_photos AS images
INNER JOIN photo.pp_categories AS c on images.cat=c.id
WHERE images.userid=171 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: select command denied to user: 'merlin@localhost' for table 'pp_photos'

mysql error number: 1142
Huh. That error is saying that you do not have select permissions on that table? This hack uses the vB DB permissions. It may be that you installed the PP DB under a different user.

Can you check your permissions?

GamerzWorld
03-16-2005, 12:07 PM
Huh. That error is saying that you do not have select permissions on that table? This hack uses the vB DB permissions. It may be that you installed the PP DB under a different user.

Can you check your permissions?

How?

The Geek
03-16-2005, 12:26 PM
How?
Do you have phpMyAdmin? There you can click on the Privlidges link on the home page.

msimplay
03-16-2005, 02:35 PM
hmm mozilla doesn't allow for html insert but why notjust make it insert the bbcode the same way the standard editor does?

any news on this ?

The Geek
03-16-2005, 02:40 PM
So far - none. In all fairness I havent been able to spend too much time on it - but my initial investigation (when you brought it up) didnt pan out.

Im just polishing off a new version of GAS and will look into it then.

GamerzWorld
03-20-2005, 09:30 PM
Im having a problem with the button on new thread. When making a new thread i get no text and link only

[]

I have done the phrase thing you mentioned (finding and saving) so im thinking its a file/template error on my part. To narrow it down can you tell me which step its likly to be?

The Geek
03-21-2005, 10:19 PM
Im having a problem with the button on new thread. When making a new thread i get no text and link only

[]

I have done the phrase thing you mentioned (finding and saving) so im thinking its a file/template error on my part. To narrow it down can you tell me which step its likly to be?
Hey there - sorry I missed you (went off on business). Are you sure you added to the phrasegroups correctly? If not - you can always just edit the smilie template in the instructions and switch to a hard coded phrase.

trulylowcarb
03-22-2005, 12:22 AM
Geek, my popup window shows the thumbnails with a border but then inserts them without a border, making it tough for my users to figure out on their own that they are clickable images. Can you guide me toward the part of the code that is responsible? The only instance of border I found in my (modified) geek-gallery_popup is this:

if (images[i].getAttribute("imageid") < 1)
{
images[i].setAttribute("imageid", i);
images[i].setAttribute("border", "0");


Changing that to 0 to 2 didn't appear to change anything for me.... your input appreciated.

The Geek
03-22-2005, 07:44 AM
Ill look into this today and get an answer for you (I need to look at the code to refresh my memory ;) )

Jason McConnell
03-22-2005, 07:49 AM
1337h4x!!! Thanks :D

GamerzWorld
03-22-2005, 09:32 AM
Quickly to point out i dont know if this is a type but

* Upload admincp/geekgallerypopup__install.php to your admin folder (i.e. http://www.bobsfluffyfriends.com/forum/admincp/)
* Done that? Good. Now run it (ie point your browser to http://www.franksfunkygyros.com/forum/admincp/geekarticles_install.php)
* Follow the elaborate installation proceedure (I think there are a whopping 2 links to actually click and sorry... no 'configuration settings' are required!)
* That script will install the 2 templates, and the 'Geek Gallery' phrases.
* Make sure you remove the install script from your folder. It appears to be the way these things should be done around here and I for one do not like a rocking boat!
* Now you are ready to move onward! Well done lil Jimmy!

One points to articles when this isnt article hack (durrr :P)

GamerzWorld
03-22-2005, 09:37 AM
Hey there - sorry I missed you (went off on business). Are you sure you added to the phrasegroups correctly? If not - you can always just edit the smilie template in the instructions and switch to a hard coded phrase.

Ive reinstalled it again (the phrases) and edited one and saved it but still get the error. Dont get really what you mean by the above

p.s. this is just on new threads..not new replies

The Geek
03-22-2005, 11:08 AM
If its only on newthreads then double check that you correctly added the phrasegroup to newthread.php
HTH's

trulylowcarb
03-22-2005, 01:36 PM
All of a sudden, some of my users who had no problem with this feature are having trouble using it. I don't *think* I changed anything to cause it? I did change the option array so that the only available action is to insert a clickable thumbnail. What happening is that it still works perfectly for some, but others are displaying a link that shows the closing img] tag, but is missing the opening one. Editing the post to add the opening tag shows the tag, but changes nothing. The link to the thumbnail that is displayed, does work.....
I know I changed things up, sorry, but this method is the perfect one for my forum, if you could help me try to diagnose without having to revert to all the options, it wouldbe truly appreciated.
BTW Geek, I was going to donate to you last week due to my gratitutde to you for providing this great hack, (same as I did for Cinq) but unlike most of the other hackers posting here, I found no easy 'appreciate this hack? donate here' link anywhere in the hacks or on your home page. If you're independently wealthy, I'll forget all about it, of course, but if not, may I respectfully suggest that you follow the lead of others and add that kind of link so you may reap some benefit from the help you are providing to others here .... I truly feel you are deserving.

The Geek
03-22-2005, 02:00 PM
Thats kind of you carb - Ill put up a dontate link to my hacks when I get a minute. If you PM me ftp/admincp details ill go in and see if I can sort it out for you.

trulylowcarb
03-23-2005, 05:14 PM
Thats kind of you carb - Ill put up a dontate link to my hacks when I get a minute. If you PM me ftp/admincp details ill go in and see if I can sort it out for you.

Thanks, Geek!! I installed your soon-to-be HACK O THE MONTH articles system last night, and I wanted to wait until after that, just in case I needed your help there too. I did want to say that none of the thumbnails on my forum show with a border, so maybe that's just something I did in the css?

I will get you set up with admin permissions and so on and PM you later or tomorrow with them as I would really like to sort out the missing front img tag thing, but my "real" job is calling (screaming) my name right now.. thanks again, SO MUCH.

I would say 'You da Man' now, but I read the thread about HOTM and now know better. LOL! No wonder you give such great support. ;)

vcross
03-25-2005, 01:20 PM
I am having the same problem as lowcarb... I've narrowed it down:

If you have your editor set where the "Guided Mode" and "Enhanced Mode" radio buttons are visible, insert from the gallery leaves the hanging img] tag.

If you go into your UserCP options and change to the WYSIWYG (radio buttons don't appear anymore, but you still get rich text) you can insert images just fine.

I love the mod! I hope the prob can be fixed. I will look at the code and see if I inadvertantly changed anything.

vcross
03-25-2005, 02:45 PM
I had to go into the geek-photo-popup template and add a closing bracket after mydestination:

Before:
}catch(errorObject){
BodyVal = opener.document.vbform.message.value;
if (ispopup=="1") {
opener.document.vbform.message.value = BodyVal + '' + mysource + '/img] (' + mydestination + 'https://vborg.vbsupport.ru/';
}
}

After:
}catch(errorObject){
BodyVal = opener.document.vbform.message.value;
if (ispopup=="1") {
opener.document.vbform.message.value = BodyVal + 'https://vborg.vbsupport.ru/ (' + mydestination + ')';
}else{
opener.document.vbform.message.value = BodyVal + 'https://vborg.vbsupport.ru/';
}
}

KW802
03-25-2005, 07:42 PM
Nail Geek, just installed this on a site in progress.... as always, nice work! :cool:

A non-computer person I had testing it out asked about a "Close" button being added to the menu instead of closing the browser window (in this case, by the "X" button).

Thanks,
Kevin

The Geek
03-26-2005, 08:13 AM
thanks guys - ill look at updating the package today or tomorrow

T3MEDIA
03-26-2005, 03:59 PM
Hey MR GEEK! PLEASE can you make it so it keeps to a standard pop up window? sometimes the window gets really tiny or really long for some reason.

lasto
03-29-2005, 06:27 PM
just installed this on vb3.0.7 and using latest version of photopost.

No luck whatsoever and ive gone over the config a few times.
Under the smilie box all that shows is a little box with nothing in it

The Geek
03-29-2005, 06:30 PM
just installed this on vb3.0.7 and using latest version of photopost.

No luck whatsoever and ive gone over the config a few times.
Under the smilie box all that shows is a little box with nothing in it
check your phrases installed. Do a search for geek-gallery, edit it and save.

HTH's!

The Geek
03-29-2005, 06:31 PM
BTW. Am working on the next version now. Should be out later this week.

lasto
03-29-2005, 06:54 PM
doing search for geek only brings up the geek article ones

doing search for geek_gallery_my_pictures shows nothing so i run the installed again and it says phrases installed but they not showing when i go to search for them.

Sticking phrase geek_gallery_my_pictures into phrasetypeid 152
Sticking phrase geek_gallery_thumb into phrasetypeid 152

EDIT

worked

it never found any of the geek_gallery phrases so i just edited one of the geek articles phrases and it worked :)

still weird how i cant see the other phrases though but it works and thats all that matters.

2 hacks of yours ive now got installed :)

* lasto click install

Well smart will do fine for the geek article system - cheers m8 for another good hack.

Jason McConnell
04-11-2005, 08:28 AM
Hey Geek, love this hack, but with the release of vBa Gallery RC4, have you checked if there's any conflict in this hack and the new version?

Thanks in advance :D

The Geek
04-11-2005, 08:37 AM
wow. Actually havent. Didnt know RC4 was out yet.
I really couldnt image that it would cause a problem - but if you can give me a day or two - ill double check. If it isnt ill post a fix - or get my butt in gear with the next version that I have been working on (GAL system has kept me busy)

tormodg
04-11-2005, 09:47 AM
We're using it with RC4 and so far no issues have popped up.

The Geek
04-11-2005, 10:18 AM
Thanks for that!

Jason McConnell
04-11-2005, 07:17 PM
Thanks for that!
Sweet, was just wondering as that was the only thing holding me back from installing RC4. Thanks!

gldtn
04-12-2005, 04:19 AM
Geek,

When ever there is no thumbnail it does not get the default image for "no thumbnaills" in vBAdvance Gallery and it gives the following error;

Warning: getimagesize(http://www.mydomain.org/fotografia/files/8/): could not make seekable - http://www.mydomain.org/fotografia/files/8/ in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.mydomain.org/fotografia/files/8/): could not make seekable - http://www.mydomain.org/fotografia/files/8/ in /geek-gallery-popup.php on line 198

Note; I replaced my domain name with mydomain

The Geek
04-12-2005, 05:49 AM
huh. I havent had this problem with vBa yet. I thought vBa always produced a tumbnail. Ill put a check in. have you tried the geek-gallery-popup.php found here-> https://vborg.vbsupport.ru/showpost.php?p=626236&postcount=180

If I remember right - there is a file check in there.

Omega Prime
04-12-2005, 01:13 PM
Thanks for yet another awesome hack! Everything went almost flawlessly, except I have 2 minor issues (I figured out one):

-The phrases didn't show up until I edited a random phrase and saved it (wonder why I sometimes have that issue with using your hacks... hehe)
-It seems that 2 options are missing from the dropdown menu, as I only see these 2 when opening up the pop-up. It's nothing major, but just something to note :)

The Geek
04-12-2005, 01:35 PM
Thanks for yet another awesome hack! Everything went almost flawlessly, except I have 2 minor issues (I figured out one):

-The phrases didn't show up until I edited a random phrase and saved it (wonder why I sometimes have that issue with using your hacks... hehe)
-It seems that 2 options are missing from the dropdown menu, as I only see these 2 when opening up the pop-up. It's nothing major, but just something to note :)
Hey Prime.

Glad you dig. I would LOVE to find out what is screwy in my approach to adding a phrasegroup. At least its a quick and easy workaround where you wont have to ever worry about doing again.

Your other problem is a known limitation with mozilla in wysiwyg mode. It doesnt support pastehtml and therefore, I cant send a linked image over.
Therefore the only option was to disable those 2 options in mozilla wysiwyg situations.
If using a standard editor or IE you get all options.

Allan
04-19-2005, 11:58 AM
I put the question, one it is never :p, a compatible version 4images is envisaged ?

The Geek
04-19-2005, 05:42 PM
not likely. I am still in middle of doing the next version of this one. (got sidetracked doing GAB).

I am sure that it wouldnt take much to modify it to use any system out there. Its pretty straight forward stuff - its just that I dont use it and am not familiar with it so I cant code for it :)

tormodg
04-19-2005, 06:41 PM
Geek - is there any hope that a version with the ability to add image captions will surface? Or at least a custom BB tag for captions? :)

It would make my editorial staff very happy.

The Geek
04-19-2005, 07:02 PM
Geek - is there any hope that a version with the ability to add image captions will surface? Or at least a custom BB tag for captions? :)

It would make my editorial staff very happy.
what - for the popup hack? Im not sure I get you. Cant you just type them in after inserting the image?

tormodg
04-19-2005, 07:23 PM
No, I mean captions aligned to the image - like on this page:

http://www.hypography.com/article.cfm?id=34288

It would require a table with two rows.

ricker
04-20-2005, 02:55 PM
Using VBA RC4, I had to use the alternate php file and do the search thing for the phrases to show up. Working great after that!! Excellent hack!
Sarah

TwinsForMe
04-22-2005, 06:59 AM
* TwinsForMe clicks install

Thanks. :)

ETA: I've also installed the pop-up link in the Signature area and the quick reply.

For the signature, in /profile.php find:
$phrasegroups = array('user', 'timezone', 'posting')
Change to:
$phrasegroups = array('user', 'timezone', 'posting', 'Geek_Gallery_Popup')

For the quick reply, edit template showthread_quickreply:

Find:
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
</div>
</fieldset>
Then after add:
<fieldset id="photobox" title="My Photos">
<legend>$vbphrase[geek_gallery_my_pictures]</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="window.open('geek-gallery-popup.php','geekgallery','scrollbars=yes,resizable =yes,width=550,height=500'); return false" title="Pick">$vbphrase[geek_gallery_select]</a>]</td>
</tr>
</table>
</fieldset>

AND open file, /showthread.php and find:
$phrasegroups = array('posting', 'postbit', 'showthread')
Change to:
$phrasegroups = array('posting', 'postbit', 'showthread', 'Geek_Gallery_Popup');

aberg
04-29-2005, 07:47 PM
Several times to try making the script working.
But when the popup venster show up, it have this error:

Database error in vBulletin 3.0.7:

Invalid SQL: 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,images.storecat storecat
FROM bouv_nl_-_fotopost.pp_photos AS images
INNER JOIN bouv_nl_-_fotopost.pp_categories AS c on images.cat=c.id
WHERE images.userid=1 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: You have an error in your SQL syntax near '-_fotopost.pp_photos AS images
INNER JOIN bouv_nl_-_fotopost.pp_' at line 4

mysql error number: 1064

I have for vbulletin and photopost a seperate database.
Any idea what is wrong ??

The Geek
04-29-2005, 07:59 PM
Several times to try making the script working.
But when the popup venster show up, it have this error:

Database error in vBulletin 3.0.7:

Invalid SQL: 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,images.storecat storecat
FROM bouv_nl_-_fotopost.pp_photos AS images
INNER JOIN bouv_nl_-_fotopost.pp_categories AS c on images.cat=c.id
WHERE images.userid=1 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: You have an error in your SQL syntax near '-_fotopost.pp_photos AS images
INNER JOIN bouv_nl_-_fotopost.pp_' at line 4

mysql error number: 1064

I have for vbulletin and photopost a seperate database.
Any idea what is wrong ??
whats the other db name and what is your prefix?

Lizard King
04-29-2005, 09:10 PM
Geek I just want my members to post thumbnails as some images are really large. So I have to edit geek-gallery-popup.php but what do i have to remove :)

The Geek
04-29-2005, 09:17 PM
Geek I just want my members to post thumbnails as some images are really large. So I have to edit geek-gallery-popup.php but what do i have to remove :)
Just set the default method in the php file and remove the other options from the template. ;)

HTHs

larryd
04-30-2005, 12:28 AM
I just installed this and it does not work for me. Under the smilies box all i have is []. Can I get some help?

KTBleeding
04-30-2005, 01:34 AM
larryd, you need to make sure you edited the files that needed phrase inserts. What files are you browsing when you see " [ ] "??

larryd
04-30-2005, 01:40 AM
It's the same on newthread, newreply, editpost, and private. I just went back over the install and I did everything it said.. First I ran the install, then I did the 4 file modifications, then I did the template modification.

The only thing I was unsure of but I'm pretty sure I got right was when I had to configure the geek-gallery-popup.php file.

KTBleeding
04-30-2005, 02:14 AM
Did the phrases install correctly? Sometimes vBulletin requires you to edit a phrase and save it again for it to refresh the phrases to work or something.

larryd
04-30-2005, 02:24 AM
I looked in the phrase manager and the phrases for Geek Gallery Popup were all listed but none of them were checked for English US so I resaved each of them. Now I've got text inbetween the brackets for instance OPEN on the newthread one but it opens a window and nothing comes up?

larryd
04-30-2005, 02:27 AM
If you hit the OPEN link again while the window is still open I get a bunch of errors.

Warning: getimagesize(http://www.newcelica.org/photopost/data/502/594113-thumb.jpg): failed to open stream: no suitable wrapper could be found in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(): URL file-access is disabled in the server configuration in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.newcelica.org/photopost/data/502/594112-thumb.jpg): failed to open stream: no suitable wrapper could be found in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(): URL file-access is disabled in the server configuration in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.newcelica.org/photopost/data/502/594110-thumb.jpg): failed to open stream: no suitable wrapper could be found in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(): URL file-access is disabled in the server configuration in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.newcelica.org/photopost/data/502/594111-thumb.jpg): failed to open stream: no suitable wrapper could be found in /data/www/newcelica.org/html/forums/geek-gallery-popup.php on line 198

and then a bunch of garble beneath this.

The Geek
04-30-2005, 07:37 AM
Sounds like you have either an old version of PHP or its locked down in safe mode? Are you sure your settings are correct?

greenhybrid
04-30-2005, 02:38 PM
Installing now. Thanks for the funny remarks in the install. Brightened my day a bit.

larryd
04-30-2005, 02:48 PM
Sounds like you have either an old version of PHP or its locked down in safe mode? Are you sure your settings are correct?

How do i go about checking?

greenhybrid
04-30-2005, 02:55 PM
Looks and works great, thanks! The one thing I don't understand, however, is why I can't get my thumbnails to link to the gallery. I did read your Mozilla note (I have Firefox) but don't quite understand its relevance. I tried "gallery," "thumb" and "clickthumb" settings so far, but it's made no difference.

greenhybrid
04-30-2005, 03:14 PM
I see what you mean about disabling the click function, now, but I can't understand why Firefox would cause a problem. Could you please go into further detail?

Spelling mistake: separate, not seperate

The Geek
05-01-2005, 12:11 AM
I see what you mean about disabling the click function, now, but I can't understand why Firefox would cause a problem. Could you please go into further detail?

Spelling mistake: separate, not seperate
hey green. The problem is with the mozilla wysiwyg editor. It does not have a pasteHTML function so I cant pass it a preformed link. The issue is only with the wysiwyg, the standard editor works ;)

greenhybrid
05-01-2005, 12:43 AM
Oh, yes. I found out about the paste thing when working on a CMS. How are you able to insert the image, then?

The Geek
05-01-2005, 07:38 AM
Oh, yes. I found out about the paste thing when working on a CMS. How are you able to insert the image, then?
there is a insertImage function that does that. THere is also an insert link function - however you cant mix the two :(

aberg
05-01-2005, 10:33 AM
whats the other db name and what is your prefix?

vbulletin: bouv_nl_-_vbull
Photopost:bouv_nl_-_fotopost

prefix: pp_

The Geek
05-01-2005, 11:23 AM
vbulletin: bouv_nl_-_vbull
Photopost:bouv_nl_-_fotopost

prefix: pp_
it looks like mysql doesnt like your DB naming convention. I think it thinks you are trying to do a computation with an opperand '-'.

you could always remove the prefix,
then before the query do something like:
$DB_site->select_db('bouv_nl_-_fotopost');

Then after the query, change it back:
$DB_site->select_db('bouv_nl_-_vbull');

greenhybrid
05-01-2005, 03:19 PM
there is a insertImage function that does that. THere is also an insert link function - however you cant mix the two :(

Can you make your own?

The Geek
05-02-2005, 07:00 AM
Can you make your own?
not to my knowledge.

Alan2525
05-09-2005, 05:45 PM
I get the exact same problems as LarryD

Any ideas as to how to get around this?

Error message as below when clicking on [Open] in a new thread

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/chimera_9_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/marine_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/rhinoattack_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/1-image_14_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/1-BanebladeWIPv22_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/1-PredatorAnnihilator_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/1-DestroyedMk1Rhino_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198

Warning: getimagesize(http://www.battlefield40k.com/photo/files/1/1-HeavyStubber_834548_thumb.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /geek-gallery-popup.php on line 198
My Pictures

Allan
05-10-2005, 07:39 PM
Thanks Geek, very good Hack ;)

~~~~~~~~~~~~~~~~~~~~~~~~
Click install
~~~~~~~~~~~~~~~~~~~~~~~~

Allan
05-11-2005, 06:16 AM
Hey Geek :)

It would be possible to add the button in them "Quick reply" ?

greenhybrid
05-14-2005, 12:09 AM
To keep the popup from showing up under Who's Online, add this under DEFINE IMPORTANT CONSTANTS in geek-gallery-popup.php:define('LOCATION_BYPASS', 1); // Don't show popup as location in Who's Online