vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Lightbox/ThickBox works with Inline Editing (https://vborg.vbsupport.ru/showthread.php?t=126501)

voter 02-01-2008 03:12 PM

There is a problem with inline attachments.
When user inserts attachment as
Code:

[ATTACH] ID [/ATTACH]
rel="gallery-thumbs" class="thickbox" do not appear in <a href=""> and I have no glue where and how one need to put that.
Anybody knows where (I guess in a php file) have the standard BBCODES/TAGS like ATTACH FONT IMG being transfered into html code?

voter 02-01-2008 07:23 PM

Could one say why this hack work for me with IE, Opera and not with firefox?
Here for test http://viparmenia.com/vb/showthread....56&postcount=2

voter 02-01-2008 07:44 PM

Quote:

Originally Posted by voter (Post 1434002)
There is a problem with inline attachments.
When user inserts attachment as
Code:

[ATTACH] ID [/ATTACH]
rel="gallery-thumbs" class="thickbox" do not appear in <a href=""> and I have no glue where and how one need to put that.
Anybody knows where (I guess in a php file) have the standard BBCODES/TAGS like ATTACH FONT IMG being transfered into html code?

I found it, it is in includes/class_bbcode.php
Code:

$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;d=$attachment[dateline]\" $addtarget><img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""
Must be replaced (rel=\"gallery-thumbs\" class=\"thickbox\" must be added) with

Code:

$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;d=$attachment[dateline]\" $addtarget rel=\"gallery-thumbs\" class=\"thickbox\">
<img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""


dtdesign 03-02-2008 04:28 PM

Installed and working .. Thanks !

maf1973 05-13-2008 10:28 PM

Will this work on 3.7 Gold ?


All times are GMT. The time now is 06:18 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.01083 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_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
  • (5)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