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)

nikki712 03-30-2009 03:07 PM

I installed this and it works great. The only thing is that in the reply window, I have a text link to "insert photos", and not the camera icon. How do I change that?

nikki712 03-30-2009 04:03 PM

If you want to have an icon link to your photos instead of the "insert" text link, you can do the following:

The original coding for the editor_smilebox template is as follows:

Code:

<fieldset id="photobox" title="$vbphrase[photo_popup_my_photos]">
    <legend>$vbphrase[photo_popup_my_photos]</legend>
    <table cellpadding="4" cellspacing="0" border="0" align="center">
        <tr>
            <td class="smallfont" colspan="$vboptions[smcolumns]">
                      [<a href="#" onclick="window.open('$vboptions[bburl]/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>]</td>
            </td>
</td>
        </tr>
    </table>
</fieldset>

Instead, try this:

Code:

<fieldset id="photobox" title="$vbphrase[photo_popup_my_photos]">
    <legend>$vbphrase[photo_popup_my_photos]</legend>
    <table cellpadding="4" cellspacing="0" border="0" align="center">
        <tr>
            <td class="smallfont" colspan="$vboptions[smcolumns]">
                      <a href="#" onclick="window.open('$vboptions[bburl]/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]"><img src="$stylevar[imgdir_editor]/CameraIcon.png" border="0" /></a></td>
            </td>
</td>
        </tr>
    </table>
</fieldset>

Just change the title of the image and the image directory, and you should be all set.

ZiG 03-30-2009 11:56 PM

Quote:

Originally Posted by Cleenee (Post 1776513)
Hello
Been trying to get this to work with my VBgallery/Photopost type setup...as you can see have had 95% luck, changed the text to icons etc and the pop up comes up fine, the drop down for the various galleries selection even works, just does not seem to find the actual photos though, any ideas or advice...so close!

this used to work for me, now its not for some reason...
it is finding album pictures perfectly fine, but it is not finding any of the pictures in the photoplog categories. it finds the categories perfectly fine though, but says the user has no pictures that belong to it...when that is false. whats the problem?

please help

Cleenee 03-31-2009 12:45 AM

Quote:

Originally Posted by ZGeek (Post 1780169)
If anyone is having troubles with vbgallery try this. It works for me.
PHP Code:

/*
###### Construct image bits ######
*/

function remove_filename_extension($stripper)
{



I'm very much a noob at php so if it doesn't work for you, I have no idea.

Pfft way to be a legend zGeek, works like a charm now!, much karma your way!

ZGeek 03-31-2009 01:18 AM

W00t! Glad to help :)

abroad 03-31-2009 02:42 PM

vb Albums: Did anybody figure out how to fix it? Can't insert pictures from the popup window.

Cleenee 04-01-2009 03:02 AM

Quick question this works perfectly for every account accept my admin, is there some permissions setting that I might be missing?

Stanthrax 04-08-2009 07:56 PM

I just wanted to say that this add-on is great! I've been looking for something like this for a long time. Now my members can add pics to there posts quickly and easily. Thanks!

yahoooh 04-08-2009 09:24 PM

is there ability to add imagehost addon ?

0ptima 04-09-2009 06:54 PM

Has the hack been updated to incorporate all the fixes found in the thread?


All times are GMT. The time now is 08:06 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.01649 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (2)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