vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog (https://vborg.vbsupport.ru/showthread.php?t=202385)

cellarius 01-24-2009 07:07 AM

Quote:

Originally Posted by wottech (Post 1722856)
I determined that to make it work to Advanced Quick Reply, just make the template edits to the Advanced Quick Reply templates of the same name.

That's a good possibility. I add that to my note.

Quote:

The only issue I see is that on the quick reply, both the button and the fieldset box are displayed.
Then just don't do the template changes for the button. Apparently, that mod inserts the template edited for the main editor into quickreply. So the link is there, no need for an additional button.

To everybody who has the same problems:

Quote:

A note on "conflicts" with other editor/quickreply/quickedit mods
Normally, there should be no fundamental conflict. The template edits for this mod do nothing but to add an additional button to the toolbar in quickreply and quickedit and a link to the main editor.
However, if other mods you have installed already induced template changes there, you might have to adapt the template changes accordingly. A good solution might be to melt the template changes for this mod into the template changes for the other. I'm afraid I'll not be able to help you there, since I do not have those mods installed. But ask away here or, perhaps even more promising, in the thread for the other mod, perhaps anyone else has. Please take note of this post here, too.
On principle, you should be able to add the link that opens the popup anywhere within the various editor-tamplates in any form you like - whether you put up text or the button in front of the link, doesn't really matter. What you essentially need is a link like this one somewhere within the editor:
HTML Code:

<a href="#" onclick="window.open('photo_popup.php?e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">$vbphrase[photo_popup_insert]</a>]
If you don't want text, remove "$vbphrase[photo_popup_insert]" and replace it with the editor image "$vbphrase[photo_popup_insert]" - or anything else.

cellarius 01-24-2009 09:37 AM

Quote:

Originally Posted by mfowler70 (Post 1722802)
Working great. Nominated.

The popup doesn't close for me on picture insert, but it closes on post so I'm content.

Ahm, it never was designed to close on insert. Users very often want to insert more than one image at the same time (at least, my users do). It would be quite annoying to always have to open the popup again. It's designed to auto-close when he post is saved, not before.

Quote:

Now if you could just make "link to original" open in lightbox instead of a new window, this would be golden. :)
I do not use lightbox in my forum. As I said earlier, I have highslide custom hacked into my bbcodes, since I use that for several kinds of popups (highslide does html, iframe, ajax etc as well). I anyone has use for this I'll share that - it's quite simple, really. But highslide is not free, although well worth the 29$ charged.

Bottom line: Sorry, but I don't have an idea how to implement vBs lightbox here.


Quote:

Originally Posted by Rene Kriest (Post 1722825)
Suggestion: Could you put in an option to paste the code to the clipboard without pasting it to the board?

Your addon is so handy and that would make it even more valueable to designers.

Yeah? Never thought of that. I'll have a look.

Subah 01-24-2009 11:18 AM

i have this error message ?

Code:

Database error in vBulletin 3.8.0:

Invalid SQL:

            SELECT id, catname
            FROM pp_categories
            WHERE cattype = 'a' AND parent = 1
            ORDER BY catname;

MySQL Error  : Table '****_+++++++.pp_categories' doesn't exist
Error Number  : 1146
Request Date  : Saturday, January 24th 2009 @ 06:12:31 AM
Error Date    : Saturday, January 24th 2009 @ 06:12:31 AM
Script        : http://www.+++++.***/vb/photo_popup.php?e=vB_Editor_QR
Referrer      :
IP Address    : ***.**.**.***
Username      : *****
Classname    : vB_Database
MySQL Version : 5.0.67-community-log

i`am using only vBGallery ??

wottech 01-24-2009 12:06 PM

This doesn't work with vbGallery. Only the albums built into vBulletin and PhotoPost.

wottech 01-24-2009 12:13 PM

1 Attachment(s)
Quote:

Originally Posted by cellarius (Post 1723054)
If you have problems with table building, please upload the attached file for extended debugging and provide the information for Photo Popup Settings and Table building.

If you're using an old version, please upgrade. This is the 2.0 file version, so use this download only if you are sure that your product is up to date.

Perhaps a deinstall/reinstall might help. I'll update the product zip in a minute.

Here you go. And it definitely shows I want 3x3, but is displaying 4 rows. The pagination shows page 2, but it is the same as page 1 (all 10 images).

cellarius 01-24-2009 12:43 PM

Thanks for your patience and cooperation.

Bug confirmed (and finally understood - I was down a different road :))

New small feature and bugfix release down the line...

wottech 01-24-2009 12:47 PM

Glad I could help. :)

wottech 01-24-2009 01:07 PM

Quote:

Originally Posted by cellarius (Post 1723065)
Then just don't do the template changes for the button. Apparently, that mod inserts the template edited for the main editor into quickreply. So the link is there, no need for an additional button.

Actually, I just removed the edits to the smiliebox code, and added the edits to the showthread_quickreply to the editor_toolbar_on template. This did away with the field set, but added the button the to normal editor.

cellarius 01-24-2009 03:23 PM

Version 2.1:

New feature: Code mode. Lets you see the corresponding bb- or html-code instead of sending the image to the editor. If your browser allows that, the code is also copied to clipboard
Bugfix: Fixed a problem where pagination misbehaved when working with vB albums.

Also new: Photopost settings are outsourced to a seperate configuration file. This will save you from having to enter them all over again when updating the main script file.

Subah 01-24-2009 06:17 PM

After upgrading to 2.1 and change the database perfix from PP_ to ppgal_ i have this error ?

Code:

Database error in vBulletin 3.8.0:

Invalid SQL:

            SELECT id, catname
            FROM ppgal_categories
            WHERE cattype = 'a' AND parent = 1
            ORDER BY catname;

MySQL Error  : Unknown column 'id' in 'field list'
Error Number  : 1054
Request Date  : Saturday, January 24th 2009 @ 01:13:58 PM
Error Date    : Saturday, January 24th 2009 @ 01:13:59 PM
Script        : http://www.******.***/++/photo_popup.php?e=vB_Editor_QR
Referrer      :
IP Address    : ***********
Username      : ******
Classname    : vB_Database
MySQL Version : 5.0.67-community-log

by the way thank you for the update :D


All times are GMT. The time now is 01:42 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.01513 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (8)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