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)

Hent 11-29-2014 12:07 AM

when members upload new photos they're not showing up in the popup... anything to do to fix this?

asabet 02-09-2015 12:13 AM

This was working great for me before. Now not working. I don't know if it's because I upgraded to vB 4.2.2 or possibly because of installing Opcache and memcached. But when members click the link to go to their photos, it shows blank pages instead of their Photopost photos.

Like this:

https://vborg.vbsupport.ru/external/2015/02/25.png

AusPhotography 02-09-2015 07:56 PM

Works for us on 4.2.2pl4 / PHP 5.4 / Xcache

asabet 02-09-2015 11:42 PM

Good to know. Are you using Photopost?

AusPhotography 02-10-2015 12:46 AM

No we dropped Photopost and now use DBtech Gallery

asabet 02-11-2015 12:22 AM

I don't know if it's something I'm doing wrong, but I can't get this addon to work with 4.2.2PL4 and Photopost Pro.

tommythejoat 02-21-2015 11:38 PM

The tool is working with our 4.2.2 but there is no tool tip for the button in the toolbox for the editor.

The instructions for fixing the tool tip appears to be for a non-CKEditor implementation.

Help!

Previous fix does work and text is controlled by the phrase.

smirkley 11-14-2015 08:35 PM

Trying a few things to get the ckeditor to display the button.

smirkley 11-16-2015 07:46 PM

For anyone else having issues on this cool add-on;


First, if using TMS, the error shows up in the updated template.
The fix is posted here, as the Search for Text box needs to have the code in it instead of what the product installer put in it. Refer to the following link:
https://vborg.vbsupport.ru/showpost....&postcount=279

Now, I didnt really like the output formatting located right under the smilies area, so I modified the replacement code. Be sure to change the TMS to Replace the text instead of the original Insert Text Below. Insert the following code into the bottom code box in the TMS editor for that template:
Code:

<vb:if condition="$show['moresmilieslink']">
    <div class="moresmilies">[<a href="javascript://" onclick="vB_Editor['{vb:raw editorid}'].open_smilie_window(); return false" title="{vb:rawphrase showing_x_smilies_of_y_total, {vb:raw vboptions.smtotal}, {vb:raw totalsmilies}}">More Smilies</a>]</div>
</vb:if>
<br /><br />
<div class="moresmilies">[<a href="#" onclick="window.open(getBaseUrl() + 'photo_popup.php?{vb:raw session.sessionurl}e={vb:raw editorid}','fotos','scrollbars=yes,resizable=yes,width={vb:raw vboptions.cel_pp_width},height={vb:raw vboptions.cel_pp_heigth}'); return false" title="{vb:rawphrase cel_pp_insertlink}">{vb:rawphrase cel_pp_my_photos}</a>]</div>

Yes, I know I replaced a phrased text for one unphrased statement, but it works without having to change anything else. You can phrase it if you want to.


Second, The tooltip on the button doesnt show. The fix for this is clearly posted here:
https://vborg.vbsupport.ru/showpost....&postcount=265


Third, the tool icon doesnt show. This is a bit more difficult and my fix may not necessarily be your fix, and for me required some hardcoding of the image url into the js file. I am using vb4.2.0pl3 at this moment, and this should fix this issue for those using a reasonable close version as I.

Now, on some of my image source stylevars, I am using subdomains that help to increase page rendering speed in browsers. But this is not the only issue for me.

Open up and view in your favorite editor the following file:
\cel_pp_4-1-004\_UPLOAD\clientscript\ckeplugins\cel_pp\plugin. js

Look for this code:
Code:

icon: BBURL + '/' + IMGDIR_BUTTON + '/cel/cel_photo_popup.png',
The first thing I noticed is that the editor icons are fetched from the images/editor/ directory, not the images/buttons/ directory. At least in my setup and vb version.

So I moved the /cel/cel_photo_popup.png from the images/buttons/ directory and put in into the images/editor/ directory.

But that isn't everything, at least for me.

Since, as I stated, use a subdomain to serve these images, I had to remove the BBURL and hardcode the actual url into the js file. I tried using some other ways, but since it didnt work, this is how I resolved it. I changed the above code shown, to the code below. It works. Just be sure to put your proper domain or subdomain into the xxx's.
Code:

icon: 'http://xxx.xxxxxxxx.com/cel/cel_photo_popup.png',
Now, if you are not using a subdomain for image fetching it may look more like this:
Code:

icon: 'http://www.xxxxxxxxx.com/images/editor/cel/cel_photo_popup.png',
If I could find the proper replacement for the IMGDIR_BUTTON as in IMAGE_EDITOR (which wouldnt work for me), then that may provide a better universal solution for everyone, but if you are using a subdomain as I said, then you will have to get rid of the BBURL + '/' + anyways to make it work, otherwise it will append your root domain into the image source.


Hope this helps some of you.

Awsome mod Sven !!!

markoroots 02-25-2016 02:12 PM

Hi @Cellarius, really useful plugin. Thanks. But please is it possible to use all the VB users albums, instead of those personal?
It is also important to add a search box.
And also is it possible to use also this Gallery plugin: https://vborg.vbsupport.ru/showthread.php?t=319444 ??


Thanks in advance.

scribble 05-02-2016 08:11 PM

After we've moved our board to a more modern server than before, we've encountered a similar problem to what asabet mentioned above: The total image count and the pagination seemed correct, but there were not images to click on in the popup.

I poke around a bit in the code, and seems that the result set for the main database query did not get processed correctly. The SQL query itself delivered the correct results. But when photo_popup.php tried to construct the imagebits, it went wrong.

PHP Code:

$resultcount $cel_pp_prod->db->num_rows($cel_pp_prod->mysql_result_main); 

returned 0, even though the db result set had 9 rows.

Similarly, some lines further down,

PHP Code:

while ($array $db->fetch_array($cel_pp_prod->mysql_result_main))
... 

seemed to exit without any passes of the loop, because $db->fetch_array() didn't find any records in the result set either.

After I switched both functions to the "normal" PHP 5.x versions, mysql_num_rows() and mysql_fetch_array() respectively, the images appeared in the popup as they should.

I'm not really sure why this hotfix worked (and your mileage may vary, so use it on your own risk :p). We modernized our hosting stack quite a bit, Nginx replacing Apache, newer MySQL and PHP versions etc., so I can only guess what's exactly the cause. But maybe my observations can help others or the author of the mod to further enhance it :)

Yours,

scribble


All times are GMT. The time now is 09:00 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.01410 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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