The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
little style fix needed
What I have done so far
Field: Single-Selection Menu
AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):
STEP 3; Postbit_Legacy Template Find: Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> Code:
<!-- My Team in postbit_legacy Start --> <vb:if condition="$post['field5']"><dt>{vb:rawphrase my_team}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.field5}.gif" alt="{vb:raw post.field5}" /></dd></vb:if> <!-- My Team in postbit_legacy End --> |
#2
|
|||
|
|||
I believe you mean the custom field there is missing the style. if this is what you are after, then make sure what postbit_legacy class is used for the common fields.
if you provide a link to your site, I may help you with that. if not, then use Chrome inspection element to see what class you need to add to your custom field and add a div to that class i.e: PHP Code:
|
#3
|
|||
|
|||
here is a link to a post that has it but its not showing the image in IE so need to remove that but when i do from the code it still shows
http://www.anygivensaturday.com/show...=1#post2005099 I need to remove the image part of this code but when I do it messes up or does not remove it any help from anyone |
#4
|
|||
|
|||
Quote:
it is very simple, all you need is to find the template where you can edit this, and usually that is postbit_legacy Then you need to remove the image between <dd></dd> after that, add this to your custom field: Code:
<div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.fieldX}</dd></div> and that's it. if there is something else, post it here. Good luck |
Благодарность от: | ||
CAG CheechDogg |
#5
|
|||
|
|||
I tried these
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
Quote:
so it is for template result because the title is fixed, not variable like this: <div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.fieldX}</dd></div> so basically what you will need to change only X which is field number i.e {vb:raw post.field8} is it clear now? if not, I will try to add screenshot to clarify it deeper --------------- Added [DATE]1380110482[/DATE] at [TIME]1380110482[/TIME] --------------- ok, when you go to postbit_legacy, you will find few divs with the same name, i.e: <div class="bppostbit"> These ones where you need to look at and how they are arranged. The custom field you have there is only <dt>My Team</dt><dd><img src="xxxxxxxxxxx/Test 1.gif" alt="Test 1" title="Test 1"></dd> The above code will surly make a mess because it is not wrapped with a div so that's why it is correct to make it like this: <div class="bppostbit"><dt>My Team:</dt><dd>{vb:raw post.field5}</dd></div> I don't think it is a good idea to use profile manager to write such code. there you create only a custom field and use that custom field to place it with the code in postbit_legacy template. if you are still confused, send me your postbit_legacy code template as PM and I will make the modification and send it back to you ASAP. |
#7
|
|||
|
|||
PHP Code:
http://www.anygivensaturday.com/show...=1#post2005099 |
#8
|
|||
|
|||
Quote:
PHP Code:
|
Благодарность от: | ||
ForceHSS |
#9
|
|||
|
|||
that helped in firefox but for some reason in IE it still shows its missing a image and I dont want any image
|
#10
|
|||
|
|||
ok, if you need an image, make sure about the image path url because this is what most of the times the issue.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|