Log in

View Full Version : How to remove underline?


Elixar
02-05-2014, 03:40 PM
https://vborg.vbsupport.ru/external/2014/02/40.png

I had seen this on a forum, and I was wondering, how would someone remove the underline before and after the A?

Max Taxable
02-05-2014, 03:43 PM
You mean, in the text editors?

If so, in style manager Use "Search In Templates" to find all templates that have the word "separator" or "separator.gif" in them. This will populate the list of all the editor templates in your style.

Go in and comment out the references to the "underline" function in the editors. Don't remove them, just comment them out because you might find you want them back someday.

Elixar
02-05-2014, 03:46 PM
Ah, so it wouldn't have to do with the usergroup markup or anything?

Max Taxable
02-05-2014, 03:49 PM
Ah, so it wouldn't have to do with the usergroup markup or anything?I'm pretty sure that's a default vB BB code that you can't pick and choose without template edits.

I know you can disallow them all by usergroup, but that's not what you asked for and as I'm sure you already knew.:D

Elixar
02-05-2014, 03:54 PM
So to comment it out, as one of the Admins who is asking hasn't messed with Style Manager. Just remove the option, or put // in front?

Max Taxable
02-05-2014, 03:54 PM
Which by the way, the template edits above won't stop anyone from manually inputting the "u" BB code in their posts... Perhaps wait before doing anything, until a wiser vB licensee comes along to answer this.

Removing it from the editors is one thing, disallowing that BB code globally is quite another.

Max Taxable
02-05-2014, 03:57 PM
So to comment it out, as one of the Admins who is asking hasn't messed with Style Manager. Just remove the option, or put // in front?In the templates for the editors after you populate them, you want to find something looking like:<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>


And comment it out like this: <!--- the code --->

Elixar
02-05-2014, 03:58 PM
I'm very sorry, I'm still also new to this side of vBulletin. So that code you provided me, how would I comment that out?

Max Taxable
02-05-2014, 03:58 PM
I'm very sorry, I'm still also new to this side of vBulletin. So that code you provided me, how would I comment that out?Wrap the offending code.

Comment it out like this: <!--- the code --->



But as I just told you, this only removes the button from the editor. IT DOES NOT STOP ANYONE FROM USING THE UNDERLINE FUNCTION ANYWAY.

Elixar
02-05-2014, 04:00 PM
<1--- <td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td> --->

Like that?

Max Taxable
02-05-2014, 04:01 PM
Yep that's it.

And you'll be doing that for at least 7 or 8 templates.

This is why I am saying WAIT... Someone more knowledgeable than I will come along and give you a much simpler and easier way.

Because this only removes the button from the editor. IT DOES NOT STOP ANYONE FROM USING THE UNDERLINE FUNCTION ANYWAY. They can still manually input it into their posts.

Elixar
02-05-2014, 04:04 PM
Oh you're talking about the Underline button in posts?

I'm referring to that image where there's a space and underline before and after the A, and how to remove that.

Max Taxable
02-05-2014, 04:04 PM
Oh you're talking about the Underline button in posts?

I'm referring to that image where there's a space and underline before and after the A, and how to remove that.Please provide screenshot.

Elixar
02-05-2014, 04:18 PM
https://vborg.vbsupport.ru/external/2014/02/39.png

Max Taxable
02-05-2014, 04:20 PM
https://vborg.vbsupport.ru/external/2014/02/39.pngOk... That looks like it is coming from a modification on your site. You should be asking the developer of that Mod about this, in the thread where you found the modification.

Elixar
02-05-2014, 04:21 PM
Ok... That looks like it is coming from a modification on your site. You should be asking the developer of that Mod about this, in the thread where you found the modification.

I don't think it's a mod, but I can't be for sure since I can't see the Admin CP.

Max Taxable
02-05-2014, 04:23 PM
I don't think it's a mod, but I can't be for sure since I can't see the Admin CP.I am sure. The image placed beside the username is not native to vBulletin.

Elixar
02-05-2014, 04:28 PM
I am sure. The image placed beside the username is not native to vBulletin.

I know, I'm sure they're user ranks.

Seven Skins
02-06-2014, 11:48 AM
That underline is because white space is hyperlinked.

e.g. <a href="examplelink">Edia <img src="image.png" alt=""></a> <img src="image.png" alt=""></a></a>

You can use the exmaple code below to remove the underline from white space:

<a href="examplelink">Edia</a> <a href="examplelink"><img src="image.png" alt=""></a> <a href="examplelink"><img src="image.png" alt=""></a>

Elixar
02-06-2014, 07:57 PM
That underline is because white space is hyperlinked.

e.g. <a href="examplelink">Edia <img src="image.png" alt=""></a> <img src="image.png" alt=""></a></a>


You can use the exmaple code below to remove the underline from white space:

<a href="examplelink">Edia</a> <a href="examplelink"><img src="image.png" alt=""></a> <a href="examplelink"><img src="image.png" alt=""></a>


And where can this be placed?

Seven Skins
02-06-2014, 09:17 PM
You can use this example code whereever you need to remove the hyperlinked whitespace. Unless we have more info it is impossible to tell where and what to edit.