I need to add a style class to this code {vb:raw tags}, where can I find it?
vb:raw tags, where do I find it?
Collapse
X
-
You misunderstand the purpose of this code. tags is a variable and vb:raw simply means don't process it to remove HTML. There is no way to assign a style to it directly. You would have to either put div, span tags around it and assign a class that way or look at the generated code by looking on the output of the page to see which elements you can assign CSS to.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API -
I have already assigned a class in template above raw tags variable, but the effect that I've obtained is not acceptable. I need the same effect of category that doesn't generates code directly
Code:<div> <vb:if condition="!empty($categories)"> <ol class="commalist"> <!--<li>{vb:phrase in_category}</li>--> <vb:each from="categories" key="categoryid" value="category"> <li><a class="btn" href="{vb:raw category.category_url}"><span>{vb:raw category.category}</span></a></li> </vb:each> </ol> </vb:if> <vb:if condition="$showtags AND $tag_count"> <ol class="commalist"> <!--<li>{vb:rawphrase tags}:</li>--> <li class="btn"><span>{vb:raw tags}</span></li> </ol> </vb:if> </div>
HTML Code:<ol class="commalist"> <!--<li>Tag:</li>--> <li class="btn"><span> <ul class="commalist"> <li><a href="http://www.****">tag</a>, </li> <li><a href="http://www.*****">tag1</a>, </li> <li><a href="http://www.*****">tag2</a>, </li> <li><a href="http://www.*****">tag3</a>, </li> <li><a href="http://www.*****">tag14</a></li> </ul> <img src="11x11progress.gif" id="tag_form_progress" class="inlineimg hidden" alt=""></span> </li> </ol>
HTML Code:<ol class="commalist"> <!--<li>Categorie:</li>--> <li><a class="btn" href="http://****"><span>category1</span></a></li> <li><a class="btn" href="http://****"><span>category2</span></a></li> <li><a class="btn" href="http://****"><span>category3</span></a></li> </ol>
Comment
-
Comment
-
should be:
HTML Code:<ol class="commalist"> <!--<li>Tag:</li>--> <li class="btn"><a href="http://www.****"><span>tag</span></a>, </li> <li class="btn"><a href="http://www.*****"><span>tag1</span></a>, </li> <li class="btn"><a href="http://www.*****"><span>tag2</span></a>, </li> <li class="btn"><a href="http://www.*****"><span>tag3</span></a>, </li> <li class="btn"><a href="http://www.*****"><span>tag14</span></a></li> <img src="11x11progress.gif" id="tag_form_progress" class="inlineimg hidden" alt=""> </ol>
Comment
-
-
please see that page: http://www.rally.it/matteo-gamba-vin...carnevale-5794
category displayed correctly
but tags not because style class is not applied on single tag
Comment
-
You would need to change the scope of your CSS. Assign it to something like '.commalist ul li' or add in another class to the span like .tags so it would be '.commalist .tags ul li'. Then it would only apply to that section. However the system is working as it was designed, just not how you want it to work.
Otherwise it appears to make the changes you're looking for requires PHP code changes to the output of those tags. This isn't in the scope of the default style. If you need help with this, you should visit www.vbulletin.org.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
Related Topics
Collapse
-
by ahmadHello,
ver: 5.6.1
bbcode-html is big height, look at:
...-
Channel: Support Issues & Questions
Thu 11 Jun '20, 12:27am -
-
by USCafter using glenn's code
Code:Code: {vb:rawphrase by_x, {vb:var profileUrl}, {vb:raw forum.lastcontent.authorname}} with: Code: {vb:data lastUserInfo, user, fetchProfileInfo,
-
Channel: Support Issues & Questions
Thu 3 Dec '20, 6:49pm -
Comment