Attachment 155170
Quote:
Originally Posted by Bob_R
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
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);
}