The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Username HTML Markup
Username HTML Markup
(Specify an opening and closing HTML tag with which to display the names of users in this group. This applies to names that appear on Logged-in Users, Who's Online, Users Browsing Forum, Users Browsing Thread, Posts, Member List etc.) -------------------------------------------------------------------------------- Hello there, I am trying to add following as my Username HTML Markup: Code:
<img src="fr/admin.gif" style="border: 0pt none;"> <span style="color: #FF0000; background-image: url('bg/admin.gif')"><b> Code:
<img src="fr/admin.gif" style="border: 0pt none;"> <span style="color: #FF0000; background-image: ur Regards. |
#2
|
|||
|
|||
Yes, it looks like the database fields used to store the open and close tags each have a limit of 100 chars. You could try altering the table to increase that field. I'm not sure if there is any other PHP you'd have to change to get it to work - I looked around a little and it looks like changing the database might do it.
A similar question was posted recently, and someone suggested defining a class then using the class in span tag and maybe that would allow you to shorten the tag to under 100 chars. |
#3
|
|||
|
|||
Quote:
I am unable to find it. Please give me link if defining a class is explained in that thread. |
#4
|
|||
|
|||
Quote:
Next you need to know your table prefix, if any. You can look in includes/config.php if you don't know it. For this example, let's say it's "vb_" and you want to increase it to 130 chars. The SQL would be: Code:
ALTER TABLE vb_usergroup MODIFY opentag CHAR(130) NOT NULL DEFAULT '' ETA: I tried this on a test site and it seems to work. Quote:
|
#5
|
|||
|
|||
I tried to execute this query but following error occurred:
Quote:
And one more thing. kh99 Many many thanks for your help. Thanks a looooooooooooooooooooooooooooooot! |
#6
|
|||
|
|||
I think the column could be any text type and it would work, but I don't really know a lot about the different data types. If you're interested in trying it you could read about them here: http://dev.mysql.com/doc/refman/5.0/...ing-types.html
Just so you know, if you change the length to something shorter than the longest data it will truncate the fields (for example if you accidentally entered CHAR(1) you'd lose all your markups). |
#7
|
|||
|
|||
The "correct" way to do this is to edit a CSS style sheet and then reference the CSS class.
That is the reason why they don't allow us much space to type HTML markup. referencing it would look like: <span class="admin"> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|