vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Geek Gallery Popup for vBadvanced Gallery or PhotoPost 4 or higher (https://vborg.vbsupport.ru/showthread.php?t=73040)

The Geek 02-20-2005 12:54 PM

Quote:

Originally Posted by tormodg
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

Quote:

Originally Posted by NuclioN
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

Quote:

Originally Posted by NuclioN
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:
PHP Code:

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

PHP Code:

    <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

Quote:

Originally Posted by SVTBlackLight01
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

Quote:

Originally Posted by tormodg
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

Quote:

Originally Posted by The Geek
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:
Code:

<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

Quote:

Originally Posted by The Geek
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..
Quote:

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/newrepl...wreply&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

PHP Code:

// 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:
PHP Code:

// 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

Quote:

Originally Posted by SVTBlackLight01
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.

Quote:

getimagesize(http://www.mysite.com/forums/mypics/...0006-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

Quote:

Originally Posted by msimplay
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

Quote:

Originally Posted by The Geek
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


All times are GMT. The time now is 08:13 PM.

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

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

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

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