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 02-04-2009 11:36 AM

Quote:

Originally Posted by aircool52 (Post 1734089)
That's right , I want to place the script on the main editor , what is the name of that template?

editor_toolbar_on, insert the same code as for quickreply and quickedit before
Code:

<if condition="$vBeditTemplate['extrabuttons'] != '' ">
Not tested, but should work.

aircool52 02-04-2009 11:56 AM

Hey thanks Cellarius , that is exactly what I want.

aircool52 02-04-2009 12:55 PM

Let see if you can help , I want to add the same code in the same place but to a exterior link , with a different .gif image , can you do that ?

aircool52 02-04-2009 01:32 PM

It is possible to do the same mod por the Video gallery?

cellarius 02-04-2009 02:16 PM

Quote:

Originally Posted by aircool52 (Post 1734190)
Let see if you can help , I want to add the same code in the same place but to a exterior link , with a different .gif image , can you do that ?

So why don't you just change the link and the image? That's straight html.
But anyway: I'll support may mod here, but please understand that I will not answer any unrelated question here.

cellarius 02-04-2009 02:18 PM

Quote:

Originally Posted by aircool52 (Post 1734221)
It is possible to do the same mod por the Video gallery?

Probably - would be a different mod, tho. But since I do not know that gallery, I wouldn't know.

benFF 02-04-2009 02:36 PM

If you want to have an icon on the main toolbar (New Reply, Full edit) then you don't need a template edit.

Create a plug in at location "editor_toolbar_end" and insert the following code:
PHP Code:

$vBeditTemplate[extrabuttons] .= "<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>"

The button will now appear at the end of the list.

Unfortunately there is no template hook for quick reply, otherwise we could just use the same technique :(

mikeB 02-04-2009 05:19 PM

1 Attachment(s)
any idea why my users get this (see attached) but we as admins can use it fine?

cellarius 02-04-2009 07:14 PM

What version of vBG do you use?

mikeB 02-04-2009 07:44 PM

Quote:

Originally Posted by cellarius (Post 1734543)
What version of vBG do you use?

v2.4.3 http://www.bakerradio.com/gallery/ - it works for me as admin just not my users?


All times are GMT. The time now is 04:58 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.01478 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_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