This code will convert all of the default virtualForums buttons into text links.
Global Footers:Code:
- <script type="text/javascript">
- // Buttons to Text - virtualForums; Public Code 02 (c)2010 Webmaren
- window.onload=function(){var wm_pc02_i=document.getElementsByTagName('img');for(a in wm_pc02_i){if(wm_pc02_i[a].src.match(/virtualforums/)&&wm_pc02_i[a].width>35&&wm_pc02_i[a].parentNode.childNodes.length==1&&!wm_pc02_i[a].src.match(/uploads/)){var wm_pc02_s=document.createElement('span');wm_pc02_s.className='vf-btn';wm_pc02_s.appendChild(document.createTextNode(wm_pc02_i[a].alt.toUpperCase()));wm_pc02_i[a].parentNode.appendChild(wm_pc02_s);wm_pc02_i[a].parentNode.style.textDecoration='none';wm_pc02_i[a].style.display='none';}}}
- </script>
CSS:
This code may be used in any virtualForums forum free of charge. It is being made available under the terms of the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Unminified Code:Code:
- <script type="text/javascript">
- // Buttons to Text - virtualForums
- // Public Code 02 (c)2010 Webmaren
- window.onload = function() {
- var pcImg = document.getElementsByTagName('img');
- for (a in pcImg) {
- if (pcImg[a].src.match(/virtualforums/) && pcImg[a].width > 35 && pcImg[a].parentNode.childNodes.length == 1 && !pcImg[a].src.match(/uploads/)) {
- var text = pcImg[a].alt.toUpperCase();
- var span = document.createElement('span');
- span.className = 'pc-button';
- span.appendChild(document.createTextNode(text));
- pcImg[a].parentNode.appendChild(span);
- pcImg[a].parentNode.style.textDecoration = 'none';
- pcImg[a].style.display = 'none';
- }
- }
- }
- </script>
I'm sure there is an admin option to do this...![]()
So it appears there is. This brings me to a point: the admin interface for vF, while overflowing with useful features, is not very easy to manipulate.
For example, there is no way to style the text mode buttons because they have no classes.
.title1 a
Is what I'd use a selector, would probably be good enough.![]()
Arnt you a coder for vF Michael?
.title1 a
Is what I'd use a selector, would probably be good enough.![]()
And "quote", "modify", et al. in the post? I wouldn't be getting them all in one go.
EDIT: Okay, it's doable, but requires more complex CSS rules.
Arnt you a coder for vF Michael?
I think he's a member of the support team. But also helps out with coding.
I am indeed a vF coder, and a vF coding moderator. I'll drop Ross this as a suggestion to give all of the text equivalents a unique class "button", and I'm sure he can get it out for us.
![]()
Thanks Michael.
For many, Ross has suggested that you look at the template (Manage Templates), and change them in there, as ultimately it's the same.
Some are unable to be templated, and he will look at those.![]()