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)

PakFuse 01-30-2009 07:23 PM

Those who have Quick Editor Improver Ver 2.5.0 by Hamed Haddadian (www.gtpland.com) ... Here are the template edits for Quick Reply (for both threads and PMs) and Quick Edit .... It works for me after I spent sometime in figuring things out :)

For all Three scenarios:

Template: imp_postbit_quickedit [Quick Edit in Threads]

Template: imp_showthread_quickreply [Quick Reply in Threads]

Template: imp_pm_quickreply [Quick Reply in PMs]


Find this:

Code:

<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>

Add below:

Code:

<!-- Pop-up Image Window -->


<td><div class="imagebutton">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

                <td> <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]/photo_popup.png" border="0" /></a></td>                                        </tr>
                                        </table>
                                </div></td>
<!-- Pop-up Image Window -->


cellarius 01-30-2009 08:14 PM

The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!

The implementing of new galleries was made easier by reorganisation of the code and outsourcing of the relevant settings and database queries into seperate config files.
This means that, if you have installed this mod for Photopost, your old configuration file will be obsolete. Please read the installation/upgrade-instructions carefully. There are now configuration files for each supported product, thogh in the Photopost file the settings area has remained pretty much the same. Also the setting of products used in AdminCP has changed.

Thank you for using my mod!

Please note concerning upgrade to 3.0:
  • the configuration process has changed. Old config files will be obsolete.
  • the setting of products used in AdminCP has changed. Please review!

Subah 01-30-2009 08:27 PM

Yesssss , thanks alot :)
i`ll install it right now ;)
=======================
Edit: Congratulations vBGallery finally it is work :D

wottech 01-30-2009 10:22 PM

Very nice! I will upgrade this weekend.

How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!

cellarius 01-31-2009 05:24 AM

Quote:

Originally Posted by wottech (Post 1729504)
How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!

Not too hard, as long as that add-on installs into the vB-database and stores it's settings there. The new modulized code is quite straightforward.

What I need to know (I hope I don't forget too much ;)):
  • Does the installation go into vB database only or can the user choose? If this was the case, that would complicate matters.
  • What database prefix does the mod use, and can it be changed by the user?
  • Can the URL path to the add-ons main index page be changed by the user or is it always the same (meaning the directory name as well as its relative position to the forums root directory)?
  • Can the URL path to the add-ons data directory (where images are stored) be changed by the user or is it always the same (meaning the directory name as well as its position)
  • If the installation goes into vB database and any of the above three is yes: is there a settings table where the corresponding values ara stored? What's it's name and how can the values be identified? (vB for example stores the setting information in settings table, identifieable by varname and the information in value.
  • Next would be to identify the table where the uploaded images are stored. There I need imageid, userid, imagename and, if there are any categories, the category id.
  • This leads to the question whether there are any categories or albums that could populate the albums choice dropdown and where they are stored. Are they global categories or created and owned by individual users? The mod can handle only one at a time.
  • Last block: The structure inside the datadir. How does the mod save the uploaded images? Are there medium sized images? What are naming conventions, in what folders do they go?
Now, if one has some clue about php and mysql, the stuff in the config files is quite straightforward. It would not be too hard to write plugins for other products on the basis of the supplied config files. If anyone wants to try: go ahead. I'll happily include third party plugins into the distribution.

cellarius 01-31-2009 06:41 AM

Quote:

Originally Posted by Subah (Post 1729451)
Yesssss , thanks alot :)
i`ll install it right now ;)
=======================
Edit: Congratulations vBGallery finally it is work :D

That's good to hear! :up:

pipin 01-31-2009 08:14 AM

Quote:

Originally Posted by cellarius (Post 1729438)
The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!


Great. Will test it asap.

Thanks.

troppodel 01-31-2009 08:27 AM

hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks

Subah 01-31-2009 08:52 AM

cellarius,
What about add the Popup icon in the quike reply for the PM ?

Dr. Bantham 01-31-2009 10:32 AM

Quote:

Originally Posted by troppodel (Post 1729783)
hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks

I am getting the same error when switching albums. I also integrated Photoplog and it would display the albums in the drop down list, but when you selected one it would always state that I had no images available to insert therein. Even if I had uploaded the images, it would not display or allow any to be inserted. I cannot recall the exact verbiage, since the database error is displayed now when I initiate the insert. I had no problems in the previous version. I also had Photoplog's custom insert code working well alongside this mod. I disabled it to be sure there was no conflict, but it did not resolve the issues.


All times are GMT. The time now is 09:32 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.01625 seconds
  • Memory Usage 1,767KB
  • 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
  • (4)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