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)

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?


All times are GMT. The time now is 07:46 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.01552 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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