vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Cel Photo Popup - Insert pictures from vB Albums, Attachs, Photopost, vBGallery (https://vborg.vbsupport.ru/showthread.php?t=243865)

macroforum 03-24-2011 08:30 AM

Quote:

Originally Posted by Jesh (Post 2120590)
Works now, was a template issue. Thanks.

Jesh, i have the same problem.
How have you solved please?
Antonio

cad2go 04-30-2011 11:43 AM

One thing I've noticed is that people viewing a thread with images posted using this mod they are shown as "Viewing attachment" in wol instead of "viewing thread" - is this just me?

raisun 05-02-2011 02:05 AM

I'd love some thoughts on this issue:

I've installed in a test environment of VB 4.1.2. In the popup window, all of the users photos are loaded on one page (in one case over 14K images). The configuration is set for 4 columns and 4 rows. The window shows the pagination links, but all of the images are in the same window. Any thoughts on why that might be?

cellarius 05-02-2011 05:14 AM

@raisun: Tested on 4.1.3 and I can't reproduce your issue.

cellarius 05-02-2011 06:04 AM

@cad2go: That would happen if the user looks at an inserted image enlarged, i.e. when that user is using the lightbox.

cellarius 05-02-2011 08:19 AM

Just to let everyone know: I have a (still very basic) first version ready for the new editor. Main issue atm is a bug present in the current alpha of 4.1.4, but hopefully this will be fixed before release. So, bottom line is, yes, there will be a version that works with the new editor.

Edit: There is another issue: Atm, there is not a single hook present in the new editor. W/o hooks, I won't be able to insert a button into the toolbar.

raisun 05-02-2011 02:19 PM

Quote:

Originally Posted by cellarius (Post 2190931)
@raisun: Tested on 4.1.3 and I can't reproduce your issue.

Hmmm...I reinstalled the addon and I still have the issue. For kicks I set Rows = 1 and columns = 1. I tried on an acct with only 5 images, and it still shows all 5 images on the first page. Here is the debug info:

Code:

Debug information

Version: 4.0.008

Photo Popup Settings (from AdminCP)
num_of_cols: 1 [1]
num_of_rows: 1 [1]
num_total: 1
widht: 600
heigth: 680
products: vbgallery
insert_options_allowed: link_thumb_2_orig link_thumb_2_gallery link_med_2_orig link_med_2_gallery thumb med orig thumb_2_gallery_link_below med_2_gallery_link_below orig_2_gallery_link_below
allow_albums: 1
code_usergroups: 6

Code (this is what is inside the table cells)
<a href="#" onclick="thumbpaste('<a href=\'http://www.mouseinfo.com/gallery/files/1/3/8/cbrmap_original.jpg\'><img src=\'http://www.mouseinfo.com/gallery/files/1/3/8/cbrmap_thumb.jpg\' style=\'border: 0\' /></a> ','https://vborg.vbsupport.ru/external/2011/05/73.jpg ');event.returnValue=false;return false;"><img src="http://www.mouseinfo.com/gallery/files/1/3/8/cbrmap_thumb.jpg" style="border: 0" title=""/></a>

Images query:
SELECT imageid, userid, filename, extension, thumbname, originalname, catid FROM ppgal_images WHERE (userid = 138 ) AND valid = 1 ORDER BY dateline DESC

Albums query (only if not coming from cache):
SELECT catid, title FROM ppgal_categories WHERE parent = 973 ORDER BY displayorder

Pagination query:
SELECT COUNT('imageid') AS fotos FROM ppgal_images WHERE (userid = 138 ) AND valid = 1

Link to Original
http://www.mouseinfo.com/gallery/fil...p_original.jpg

Link to Thumb
http://www.mouseinfo.com/gallery/fil...rmap_thumb.jpg

Used product: vbgallery

Albums possible: 1

Cookie
Read Cookie: vbgallery,,link_thumb_2_orig,0
Set Cookie: vbgallery,,link_thumb_2_orig,0
Cache Cookie: from database

Table building (rows and columns)

[td ][td][tr][td][tr][td][tr][td][tr][td]

cellarius 05-02-2011 03:15 PM

Ah, you're using vBGallery. I don't have that installed and can't test. Try the following:

In includes/cel/cel_pp_class_vbgallery.php find around line 201:
PHP Code:

                ORDER BY dateline DESC 

Below add:
PHP Code:

                LIMIT $limitlower$perpage 

Does that solve the problem?

raisun 05-02-2011 04:05 PM

*bows* That fixed it, thank you.

One more question, much less critical. When using my account, everything seems to work great: I click on an image, it populates in the edit box...no issues. I click on another image, it adds it right below. One of my other admins has a different experience: When he clicks on an image, and then tries to click on another image, it overwrites the first image instead of adding the second one. Any thoughts on why that might be?

cellarius 05-03-2011 03:56 AM

It overwrites the image, as in: the second image replaces the first? No, I never heard of that one. What browser does he use? But, on the other hand, perhaps it will fix itself with the new editor :)

raisun 05-03-2011 04:32 AM

We've tested on IE and FF...its a bizarre issue...the way it performs, I almost think its a VB issue and not this product... I look forward to the new editor.

cad2go 05-04-2011 02:34 PM

Quote:

Originally Posted by cellarius (Post 2190939)
@cad2go: That would happen if the user looks at an inserted image enlarged, i.e. when that user is using the lightbox.

I've tested this and that's not the case. if I post a thumbnail linking to the main image and then open that thread it will say i'm looking at the attachment before I even click on the thumbnail. Same for full size inserted images - it'll say viewing attachment

here's the bit from img alt in wol
Code:

/attachment.php?attachmentid=13539&amp;thumb=1
when viewing a thread with the thumb of attach 13539 (not clicking on thumb)

and here the source of the thread
Code:

<a href="http://www-----.com/attachment.php?attachmentid=13539" target="_blank"><img src="http://www.----.com/attachment.php?attachmentid=13539&amp;thumb=1" border="0" alt="" /></a>
I don't get it. Maybe it's some other mod conflicting as no-one else seems to be affected.

Not a big deal anyway. Just wondered was it a known issue or just me. Cheers

MarkusB 05-04-2011 07:48 PM

Quote:

Originally Posted by cellarius (Post 2190956)
Just to let everyone know: I have a (still very basic) first version ready for the new editor. Main issue atm is a bug present in the current alpha of 4.1.4, but hopefully this will be fixed before release. So, bottom line is, yes, there will be a version that works with the new editor.

Edit: There is another issue: Atm, there is not a single hook present in the new editor. W/o hooks, I won't be able to insert a button into the toolbar.

many thanks for that mod Cellarius,
was just looking for something similar and found exactly what i`m looking for :up: (in your Sig :D )

Will try it as soon my upgrade is done from 3.x to 4.1.x, really appreciate to see you are working on the new Editor as well :up: ...and i believe "they" are working on a bug fix and new hooks(JIRA)
will test than the donate function as well ;-)

Cheers, Markus

cellarius 05-05-2011 04:25 AM

Hooks are already in place, thanks to everyone who voted and to Freddie for implementing them (I have an alpha version that has them already :)). The other bug I mentioned is also being worked on, so :D

8thos 05-10-2011 10:22 PM

I see no cel popup link or image button on my site. I'm running vb4.1.3

cellarius 05-11-2011 04:47 AM

Then you did not do the template edits or you did them wrong. Also, please click "installed" to get further support.

8thos 05-13-2011 02:15 AM

Quote:

Originally Posted by cellarius (Post 2194308)
Then you did not do the template edits or you did them wrong. Also, please click "installed" to get further support.

Marked as installed. Didn't see the templates edit file until you mentioned them. My bad.

cellarius 05-13-2011 05:17 PM

Glad you got it running.


For everyone interested: I have a nearly complete version for the new editor running on a test installation of mine :D
Only limit: The insertion of a space between the images does not work in the new editor - it gets automatically cropped when the code is transferred. For the moment, there seems to be no way around that :(

adc 05-21-2011 10:09 AM

Looking forward to the new version. A great mod for a forum, thanks much for your efforts.

porschegruven 05-27-2011 01:37 PM

Thanks and great work!

8thos 05-27-2011 07:40 PM

What's different about the new version? Old version does Albums and Photopost perfectly.

BTW I also love your groups on forum home mod. Good job.

cellarius 05-28-2011 04:55 AM

Quote:

Originally Posted by Octavius. (Post 2200673)
What's different about the new version? Old version does Albums and Photopost perfectly.

It will work with the new editor currently in beta testing (will be in vB4.1.4, already in use at vb.com).

Quote:

BTW I also love your groups on forum home mod. Good job.
Thanks :)

TundraSoul 06-04-2011 02:00 AM

Awesome work, this should be a default vB function.

Cosmetic question: How may I change the name 'Photopost' from the pop-up window, drop down list of photo sources? I'd like to rename it to the name of my gallery.

Thanks!

cellarius 06-04-2011 07:28 AM

The addon is fully phrased, so just edit the according phrase in AdminCP (cel_pp_photopost).

cellarius 06-10-2011 07:52 AM

Whats new?
  • adapted to the new vB Editor introduced in vB 4.1.4
  • now works in post, CMS (bug in vB pending), blog, group and visitor messages editor automatically, no more template edits needed
  • Workaround for image spacing limitation (new AdminCP option for seperator)
Important!
Old editor (vB 4.1.3 and below): use 4.0.008!
New editor (vB 4.1.4 and above): 4.1.001!

Additional notes:

Regarding the bug in CMS editor: At the moment, CMS editor does not show images in CMS WYSIWYG mode. Vote for this bug to get it fixed fast!

There is a limitation in the vB CKEditor implementation that keeps this mod (and any external script that drops content into the editor) to add a trailing space to this content. This makes it impossible to simply add a space between inserted images. For a (temporal?) workaround, I have added a new AdminCP option that allows for defining a custom seperator that will be inserted after every image inserted. You can use BBCode in this seperator. For convenience, there's a method provided to insert a . (point) in the color of the editor background that you have defined in stylevar textedit_background. This is off and needs to be activated, if desired.

Let me know if there are any problems or you have a better solution for the seperator problem, since my somewhat hackish fix does lead to somewhat messy code in the post...

TundraSoul 06-11-2011 04:14 AM

No template edits anymore correct?

I'm using vB 4.1.4 and 4.1.001 and it's not showing up in the editor. No icon or anything.

cellarius 06-11-2011 06:13 AM

Correct, no more template edits. Please check the following:
  • make sure you have uploaded the icon file images/buttons/cel/cel_photo_popup.png
  • then check whether it works in unmodified default style
  • if you are using a custom style, it may be that this style uses its own images directory; if this is the case, make sure to upload cel/cel_photo_popup.png into the buttons directory of your custom style. Example: images/mystyle/buttons/cel/cel_photo_popup.png
  • If you don't know where to look for this directory, check stylevar imgdir_button to find out.
So, why do I use the buttons and not the editor directory? Because, funny enough, the stylevar for images/editor is not available in the editor plugin javascript environment, while the one for images/buttons is.

kilgor 06-11-2011 08:46 AM

vb 4.1.4
  • installed as per manual
  • [checked] icon uploaded to images/buttons
  • [checked] not showing up with default or any other style
  • [checked] stylevar imgdir_button = images/buttons

TundraSoul 06-11-2011 05:19 PM

Quote:

Originally Posted by cellarius (Post 2206124)
Correct, no more template edits. Please check the following:
  • make sure you have uploaded the icon file images/buttons/cel/cel_photo_popup.png
  • then check whether it works in unmodified default style
  • if you are using a custom style, it may be that this style uses its own images directory; if this is the case, make sure to upload cel/cel_photo_popup.png into the buttons directory of your custom style. Example: images/mystyle/buttons/cel/cel_photo_popup.png
  • If you don't know where to look for this directory, check stylevar imgdir_button to find out.
So, why do I use the buttons and not the editor directory? Because, funny enough, the stylevar for images/editor is not available in the editor plugin javascript environment, while the one for images/buttons is.

The image resides where it's supposed to be. Verified.

I verified the image does not display in an unaltered default vB 4.1.4 style. For that matter, there's no broken image spot in the editor, where I would almost expect to find the plug-in working.

cellarius 06-11-2011 07:25 PM

You won't see a broken image spot, since the image is displayed not via <img>, but by css. If you want me to troubleshoot this on your forum, send me login details that allow me access to an editor on your forum (if you allow guest posting, a link will suffice).

cellarius 06-12-2011 08:26 AM

Bugfix release 4.1.002!

Thanks to kilgor who gave me access to his forum the issue with the editor buttons not showing up for some users has been resolved. Please install the new version and let me know if it indeed fixes the problem for you.

Additionally, you can delete the deprecated file clientscripts/ckeditor_config_cel_pp.js

kilgor 06-12-2011 09:03 AM

now it works! Thanks a lot for your support!

TundraSoul 06-21-2011 03:28 AM

Working very well, thanks!

Here's a suggestion. While the popup window is open, allow us to drag the image from one source (say attachments) into albums and so on. Could you imagine the flexibility that would bring to all these media storage systems.

BioTek 06-21-2011 08:21 AM

I'm using 4.1.4 is there a reason why the button works for admins but is grayed out for Moderators and Registered Users.

DaveS 06-21-2011 05:14 PM

I have a possible problem.
I use Photopost.

When inserting pictures it seems to be using the wrong URL.
Code:

http://myurl/forums/photopost/data/520/IMG_6814.JPG
When in fact it should be..

Code:

http://myurl/photopost/data/520/IMG_6814.JPG
So it's inserting the forums bit which is obviously vB path.
However in the cel_pp_config.php the settings are correct. It seems to be ignoring these.

Code:

// Full URL path to Gallery: http://www.yoursite.com/path/to/gallery/
//
$url_path = "http://myurl/photopost/";
//
// Full URL path to Data Dir: http://www.yoursite.com/path/to/gallery/data/
// Look for this in PP-Administration->Global Options->URL to PhotoPost data directory
//
$data_dir = "http://myurl/photopost/data/";
//
// Table prefix. pp_ is the default setting.
// You may have changed this on installation of Photopost Pro.
// Look for this in PP-Administration->Edit Config->PhotoPost Database Prefix
//
$db_prefix = "pp_";


BioTek 06-21-2011 05:56 PM

Quote:

Originally Posted by BioTek (Post 2210771)
I'm using 4.1.4 is there a reason why the button works for admins but is grayed out for Moderators and Registered Users.

Don't know why but it's now working.

akke 07-02-2011 06:43 AM

Any idea what's wrong with this plugin in IE7? When installed, the editor is completely gone in IE7. Doesn't happen in newer versions of IE or other browsers...

akke 07-02-2011 06:47 AM

Problem resolved already. It was related to a JS error in clientscript/ckeplugins/cel_pp/plugin.js

Search for
Code:

icon: BBURL + '/' + IMGDIR_BUTTON + '/cel/cel_photo_popup.png',
And remove the comma at the end to resolve the IE7 issue

myco 07-14-2011 08:51 PM

One little Problem after Update.
I have no link "My Photos" and the Button for PopUp has no description text.
Otherwise as always very good work- Thank you

cellarius 07-15-2011 03:25 AM

The my photos link is gone in the new editor. There's only the button, sorry. I'll think about adding it back for future versions if it is wanted.


All times are GMT. The time now is 10:30 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.03479 seconds
  • Memory Usage 1,844KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)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