Thread: Add-On Releases - Simple Image Upload
View Single Post
  #7  
Old 05-25-2013, 11:23 AM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attachment 155170
Quote:
Originally Posted by Bob_R View Post
Haven't tried it yet. But, check out the screenshot I provided.

Why is it there twice?

Where exactly do you put the one line in the headiclude template? That's probably why.

Thanks!!
Quote:
Originally Posted by elfenny View Post
can operate in 4.2?

edit ... If it works, thanks
Working for me in 4.2.3

in headinclude placed just below
Code:
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>



On my board the headiclude edit placed the script in some inappropriate places, for example our Dragonbyte chatbox and in vbGallery/Albums. My solution was to block the unwanted locations with CSS in /style/additional css

Example: vbGallery Create new album and edit photo/album
Code:
/* Postimage Link Forms Disable*/
#edit_form > div.blockbody.formcontrols > div > div:nth-child(2) > div > a,  #usercss > form > div.blockbody.albumedit > ul > li > div.maineditor > label > div > a{
visibility: hidden;
pointer-events: none;
cursor: default;
}
Example: Dragonbyte chatbox (I have two instances, adjust accordingly)
Code:
/* Postimage Link Chatbox Disable*/
#dbtech_shoutbox2 > div.blockrow.dbtech_vbshout_wrapper > div > div > div:nth-child(1) > ul.dbtech_shoutarea_left > li > div > a, #dbtech_shoutbox1 > div.blockrow.dbtech_vbshout_wrapper > div > div > div > ul.dbtech_shoutarea_left > li > div > a{
visibility: hidden;
pointer-events: none;
cursor: default;
}
And lastly, should you want to style a button instead of showing the bland link. Obviously change colour, padding etc to suit your style
Code:
/* Postimage Link Button*/
#vB_Editor_QR > div > div > div > div > a, #vB_Editor_001 > div > div.editor_textbox_container.smilie > div > div > a {
	color: rgb(0, 0, 0);
font-size: 9px;
padding: 5px;
text-shadow: 0px -1px 0px rgba(30, 30, 30, 1);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: rgb(219, 219, 219);
background: -moz-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -webkit-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -o-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -ms-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: linear-gradient(0deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
-webkit-box-shadow: 0px 2px 1px rgba(50, 50, 50, 0.75);
-moz-box-shadow:    0px 2px 1px rgba(50, 50, 50, 0.75);
box-shadow:         0px 2px 1px rgba(50, 50, 50, 0.75);
}
Attached Images
File Type: jpg qr_postimage_button.JPG (42.5 KB, 0 views)
Reply With Quote
Благодарность от:
Krusty1231
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02434 seconds
  • Memory Usage 1,803KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete