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

raugusto 01-24-2009 06:21 PM

I ened so help here.
I had this mod working fine on 3.7.3 once updated to 3.8.0 still working, but the popup doenst show my pictures on the photopost galelry, only red x's

Any one knows whats going on?

wottech 01-24-2009 06:48 PM

Everything works great with mine now, including the pagination with vb albums. I don't have photopost, so I can't comment on that working or not. Thanks!

wottech 01-24-2009 07:02 PM

Quote:

Originally Posted by Mukashi (Post 1722823)
The addons seems to conflict with the Quick Editor Improver by Sunrise2006. Having said that, I've uninstalled that mod for now in favor of this one. Much more useful functionality.

I got it to work with that hack. You just have to edit the templates for that hack instead of the standard editor templates as listed in the instructions. Insert the code in the same place though.

cellarius 01-24-2009 07:25 PM

Quote:

Originally Posted by raugusto (Post 1723537)
I ened so help here.
I had this mod working fine on 3.7.3 once updated to 3.8.0 still working, but the popup doenst show my pictures on the photopost galelry, only red x's

Any one knows whats going on?

This is quite a sure sign that you put the datadir to Photopost wrongly or not at all. Did you activate debug modus and tried the example links there?

raugusto 01-24-2009 07:45 PM

cellerius
where do I put that data dir path?
DEBUG: Datadir: /

raugusto 01-24-2009 07:47 PM

Never mind, got it.
Sorry for the buging

raugusto 01-24-2009 07:55 PM

Ok working on starting a new thread.
As for quick reply, Im gettint the following error:
No Thread specified. If you followed a valid link, please notify the administrator

Any ideas?

cellarius 01-24-2009 08:15 PM

Quote:

Originally Posted by raugusto (Post 1723636)
Ok working on starting a new thread.
As for quick reply, Im gettint the following error:
No Thread specified. If you followed a valid link, please notify the administrator

Any ideas?

This has nothing to do with this mod.

Subah 01-25-2009 06:54 AM

what about my error ? :)

cellarius 01-25-2009 07:28 AM

Quote:

Originally Posted by Subah (Post 1723534)
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

Quote:

Originally Posted by Subah (Post 1724008)
what about my error ? :)

Sorry for overlooking this previously. The error states that there is a table named "ppgal_categories" alright, but there is no id column in there. In Photopost's categories table there definitely is one. Are you sure you are using Photopost, not vBGallery?

*****Addendum*****
I had a look at your website (which I found hard navigating seeing it's all arabian ;)) and just tried to add a /gallery to your URL. Indeed, there it was: "Powered by PhotoPost vBGallery v2.4.3"

Quote:

Features
  • works with vB's integreted album system and/or Photpost gallery software: decide which of them you want to use, or use both. Please note: It does not work with vBGallery or other gallery software at the moment.


Ski-Whiz 01-25-2009 12:38 PM

I have a feature request.. :D

This mode would totally be awesome if it allowed a member to "quick upload" via that window as well. So that way if they wish to post a message with an image, they didn't have to go to their album, upload an image, then go find that thread again...

Is it possible to have maybe a quick upload feature added? (meaning it would be at the bottom of the pop up?)

So members can either select an image, or upload one quick.

aberg 01-25-2009 12:53 PM

Very nice add-on!
No problems with install, and works great.
Thanks

Subah 01-25-2009 01:12 PM

Quote:

Originally Posted by cellarius (Post 1724023)
Sorry for overlooking this previously. The error states that there is a table named "ppgal_categories" alright, but there is no id column in there. In Photopost's categories table there definitely is one. Are you sure you are using Photopost, not vBGallery?

*****Addendum*****
I had a look at your website (which I found hard navigating seeing it's all arabian ;)) and just tried to add a /gallery to your URL. Indeed, there it was: "Powered by PhotoPost vBGallery v2.4.3"

I`am using vBGallery 2.4.3 :rolleyes:

cellarius 01-25-2009 04:00 PM

Quote:

Originally Posted by Ski-Whiz (Post 1724204)
I have a feature request.. :D

This mode would totally be awesome if it allowed a member to "quick upload" via that window as well. So that way if they wish to post a message with an image, they didn't have to go to their album, upload an image, then go find that thread again...

Is it possible to have maybe a quick upload feature added? (meaning it would be at the bottom of the pop up?)

So members can either select an image, or upload one quick.

No, this will not be - and cannot be with reasonable time and effort - included. It is far more complicated to insert an image into the database than to read information about already existant ones. Think of it: The gallery script has to put the original image to the right place, resize it, make thumbnails, put the needed information into the right tables. The gallery does this using functionality normally deeply integrated into the script, and each script uses different methods. You'd have to get the exact settings from the database to do that right, and with every update of the gallery script the uploading process might change. That's just plain impossible to do, if you ask me.

Also, really, I do not see the big potential gain in this. Even if it would be possible to start the uploading process from within the popup, you always are redirected to some sort of confirmation and post-uploading, pre-processing screen of the gallery (where you can choose title and description of the image and such). All one could possibly do is to relocate the place, where the user starts the uploading process by choosing which image to upload. Afterwards, he'd always end up in the gallery or albums, whatever system used. Then he just might as well start his upload-process there.

What one could think about is to offer a link to the upload-pages of used gallery-systems at the bottom of the popup.

abroad 01-25-2009 08:01 PM

With the latest update I get this when I want to add a picture:

Invalid SQL:

SELECT COUNT('id') AS fotos
FROM photos
WHERE userid = 1 AND storeid = 0 AND approved = 1;

MySQL Error : Table 'usr_web1_1.photos' doesn't exist
Error Number : 1146
Request Date : Sunday, January 25th 2009 @ 09:59:07 PM
Error Date : Sunday, January 25th 2009 @ 09:59:07 PM
Script : http://www.xxx.com/photo_popup.php
Username : admin
Classname : vB_Database
MySQL Version : 5.0.67-0.dotdeb.1

cellarius 01-26-2009 05:04 AM

Quote:

Originally Posted by abroad (Post 1724567)
MySQL Error : Table 'usr_web1_1.photos' doesn't exist

This means you have your settings wrong somewhere. Check database and prefix settings for Photopost.

Subah 01-26-2009 06:48 AM

Quote:

Originally Posted by cellarius (Post 1724023)
*****Addendum*****
I had a look at your website (which I found hard navigating seeing it's all arabian ;)) and just tried to add a /gallery to your URL. Indeed, there it was: "Powered by PhotoPost vBGallery v2.4.3"

Quote:

Features
works with vB's integreted album system and/or Photpost gallery software: decide which of them you want to use, or use both. Please note: It does not work with vBGallery or other gallery software at the moment.
:( , i am waiting for the version that work with vBGallery as soon as you can please :(
Thnk you again and sorry if you have a trable with my arabian website :p

cellarius 01-26-2009 07:04 AM

New Translation:

Deutsche ?bersetzung bei vbulletin-germany.org.

Helmut71 01-26-2009 09:12 AM

Sounds very interesting :)

Any news about the integration of photoplog?

yotsume 01-26-2009 07:38 PM

1 Attachment(s)
Language Problem?

I just upgraded to v2.1 and now in the popup window I have another language besides English in the drop menu for the pages. How can this be fixed to show English rather then another language please?

cellarius 01-26-2009 07:56 PM

Version 2.2

If you are on 2.1, just import the product. No file uploads needed.

New:
2 plugins to show correct locations and activity in "Who's online".

Bugfix:
Bit of unphrased German text in template removed

yotsume 01-27-2009 12:31 AM

Thanks for a great MOD and even better support!

Suggestion... you really need to select "Supported" in your mod description! LOL

cellarius 01-27-2009 04:25 AM

Quote:

Originally Posted by yotsume (Post 1725735)
Thanks for a great MOD and even better support!

You're welcome :)

Quote:

Suggestion... you really need to select "Supported" in your mod description! LOL
Just did that. :)

pipin 01-27-2009 07:48 AM

Quote:

Originally Posted by Helmut71 (Post 1725030)
Sounds very interesting :)

Any news about the integration of photoplog?

Would be interested in that too.

Anyway, great thing for the albums. :)

BWJ 01-27-2009 12:39 PM

I would also be very happy for a vbgallery version.... :D

cellarius 01-27-2009 01:54 PM

I hear ya calling, but at the moment can make no promises. :)

Ski-Whiz 01-27-2009 06:12 PM

I have this error... Running 2.2 on vb 3.8:

PHP Code:

MySQL Error   Table 'vbulletin.photos' doesn't exist 

I have albums set to yes... PP set to no... Standard set to Vb. I've toggled this.. Still no luck.

When I tell it to display albums list, I get the missing "category" table error.

I've toggled the settings various times. Still no luck.

cellarius 01-27-2009 06:29 PM

photos and categories tables are only queried when the product is set to be Photopost. Perhaps Photopost is stored as product in the cookie. This may have happend if you started the popup first with PP set to yes and standard. Please do the settings you want in AdminCP, delete the bbphoto_popup-cookie and restart your browser. That might help.

Rastus 01-28-2009 01:05 AM

Instructions for ============ FOR BUTTON IN QUICKREPLY ============
seems to be missing what needs to be added.

also, where can I change the text color of the word "insert" below the smilies?

cellarius 01-28-2009 05:16 AM

How in the world did that go missing? ;)

It's exactly the same code as for adding the button in quickedit. zipfile updated.

And for your second question:
You can use HTML-Code in phrases. Search photo_popup_insert phrase and wrap <span style="color: XYZ">Insert</span> around the text. This way, you can change size, color, weight, style - whatever you can do to text by ways of css.


All times are GMT. The time now is 10:54 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.01957 seconds
  • Memory Usage 1,858KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (22)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
  • (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