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 04-19-2005 07:02 PM

Quote:

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

[high]* TwinsForMe clicks install
[/high]

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

$phrasegroups = array('user', 'timezone', 'posting')
Change to:
Code:

$phrasegroups = array('user', 'timezone', 'posting', 'Geek_Gallery_Popup')
For the quick reply, edit template showthread_quickreply:

Find:
Code:

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

AND open file, /showthread.php and find:
Code:

$phrasegroups = array('posting', 'postbit', 'showthread')
Change to:
Code:

$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

Quote:

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

Quote:

Originally Posted by Lizard King
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 " [ ] "??


All times are GMT. The time now is 05:49 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01289 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)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
  • (2)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