The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with conditional
I am customizing the multi quote button. When I load the page, there is not a multi quote button showing but when I click that same area to select the option, the correct button shows up. After a few attempts, I am to the point that I need to ask what I am doing wrong?
This is coding I am using.... Code:
<vb:if condition="$show['multiquote_post']"> <a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"> <img id="mq_image_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/multiquote-back<vb:if condition="$show['multiquote-selected']">on<vb:else />off</vb:if>_40b.png" alt="{vb:rawphrase multi_quote_this_message}"></a> </vb:if> Thanks Bill |
#2
|
||||
|
||||
I don't understand exactly what you mean. You realize the images are put there by css? So, perhaps you haven't touched the css for the button.
|
#3
|
|||
|
|||
Lynne,
Yes, I removed the CSS backgrounds and added the <img src=.... right after link code. What I am trying to accomplish is basically the same coding that is in VB 3.8 but with out the tables. This is the current 3.8.4 code... Code:
<if condition="$show['multiquote_post']"> <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a> </if> |
#4
|
||||
|
||||
I am pretty sure the stuff dealing with the buttons is all javascript. Try a search in the javascript files to find where the image comes from and then modify the javascript files. (Sorry, I don't help on javascript issues as I'm NOT very good with it.)
|
#5
|
|||
|
|||
I agree with lynne.. I suggest you download the uncompressed version (can be selected when downloading vbulletin). Then you can get a look at what the javascript does.
But be aware that using background images in css is much better.. because they get cached in a much better way and more search engine friendly because not there for them. F. |
#6
|
|||
|
|||
Thanks for the replies... I did revert them back to using the CSS.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|