vForums Support :: Programming & Coding :: Code Requests & Support :: [F] VBulletin Board Mod Edit - View Topic (Page 1 of 2)
 |  |
| This topic was locked 25th Mar 08 at 1:51am by Michael | dog199200 Guest | [F] VBulletin Board Mod Edit (5th Mar 08 at 5:57pm UTC) | | http://deluxeanimeforum.vforums.co.uk/
Ok i am always logged in so i never noticed this before. With the board mod you made me, if your not logged in then the boards i all pushed together and has no categories ex... can you please fix it
 Code: - <style>
- .boardtotals{
- display: none;
- }
- </style>
- <script>
- /*Board Mod
- Created By Wrighty*/
-
- for(i=0; i<get('td','tag').length; i++){
- if(get('td','tag')[i].innerHTML.match(/New Posts/) && get('td','tag')[i].className== "window1"){
- get('td','tag')[i+1].width = '55%';
- var a = get('td','tag')[i].parentNode.insertCell(3);
- with(a){
- className = 'window1';
- width= '50px';
- align= 'center';
- innerHTML = (get('td','tag')[i+1].innerHTML.match(/\s(\d+)\sPosts/))? RegExp.$1 : '0';
- innerHTML += '<br />Posts'
- }
- var b = get('td','tag')[i].parentNode.insertCell(3);
- with(b){
- className = 'window1';
- width= '50px';
- align= 'center';
- innerHTML = (get('td','tag')[i+1].innerHTML.match(/(\d+)\sTopics\s/))? RegExp.$1 : '0';
- innerHTML += '<br />Topics'
- }
- }
- if(get('td','tag')[i].colSpan == '3'){
- if(get('td','tag')[i].width == '100%' && get('td','tag')[i].className == 'title1'){
- get('td','tag')[i].colSpan = '5';
- }
- if(get('td','tag')[i].innerHTML.match(/\/category\//) ){
- get('td','tag')[i].colSpan = '5';
- }
- }
- }
- </script>
also can you add this to it?
http://i25.photobucket.com/albums/c51/dog199200/Untitled-7.jpg
the top bar is where i'd like the category title to go and well the second bar is to show what is whats for the stats. and that means can you remove the topic and post text in the code and if you can do this would you mind doing another mod to it, but only if you want to, and if you need me to split the images thats fine, i can seperate out the images manually but that would be 5 images i think. | |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: (Wrighty) VBulletin Board Mod Edit (6th Mar 08 at 6:33pm UTC) | | Right the error of it not showing as a guest is not related to this code, you have an error with cr0w's 'No Subject Code', which you shouldn't need anymore anyway as the 'no subject' bug has been sorted.
Try removing that code, should work then.
Failing that, I have another thought as to why it might be happening.
But as can be seen on: http://wrighty.vforums.co.uk there is no guest viewing bug. | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (6th Mar 08 at 6:51pm UTC) | | ok well i removed it and it still does it so should i repost it to ross?
also can you possibly do my second part of the request? | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (7th Mar 08 at 9:00pm UTC) | | bump | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (10th Mar 08 at 10:04pm UTC) | | bump | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (14th Mar 08 at 9:07pm UTC) | | bump | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (17th Mar 08 at 10:52pm UTC) | | bump, please someone take care of this... | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (20th Mar 08 at 11:14pm UTC) | | plz.... | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 2:25am UTC) | | bump | |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 2:12pm UTC) | | Should be able to do this. So you want the category name first, and then in a row beneath, you want those things?
Shouldn't be overly hard! ^_^ I'll see if I have some time for this tonight! | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 10:06pm UTC) | | yep thats how i want it and ok i'll be waiting
Edit: also i noticed that the code aint working right anymore. http://deluxeanimeforum.vforums.co.uk/ | |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 10:33pm UTC) | | What's wrong with it? | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 11:28pm UTC) | | its not formated in Board, Last Post, Threads, Posts anymore, just Board and Last Post | |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: (Wrighty) VBulletin Board Mod Edit (24th Mar 08 at 11:43pm UTC) | | Ross changed some classes. I hate him!
Try this
<style> .boardtotals{ display: none; } </style> <script> /*Board Mod Created By Wrighty*/
for(i=0; i<get('td','tag').length; i++){ if(get('td','tag')[i].innerHTML.match(/New Posts/) && get('td','tag')[i].className== "window1 boardstatus"){ get('td','tag')[i+1].width = '55%'; var a = get('td','tag')[i].parentNode.insertCell(3); with(a){ className = 'window1'; width= '50px'; align= 'center'; innerHTML = (get('td','tag')[i+1].innerHTML.match(/\s(\d+)\sPosts/))? RegExp.$1 : '0'; } var b = get('td','tag')[i].parentNode.insertCell(3); with(b){ className = 'window1'; width= '50px'; align= 'center'; innerHTML = (get('td','tag')[i+1].innerHTML.match(/(\d+)\sTopics\s/))? RegExp.$1 : '0'; } } if(get('td','tag')[i].colSpan == '3'){ if(get('td','tag')[i].width == '100%' && get('td','tag')[i].className.match(/title1/)){ get('td','tag')[i].colSpan = '5'; } if(get('td','tag')[i].className.match(/categorytitle/)){ get('td','tag')[i].colSpan = '5'; var r = document.createElement('tr'); var a = document.createElement('td'); var b = document.createElement('td'); var c = document.createElement('td'); var d = document.createElement('td'); var e = document.createElement('td'); a.className = b.className = c.className = d.className = e.className = 'title1' a.appendChild(document.createTextNode(' ')); b.appendChild(document.createTextNode('Forum')); c.appendChild(document.createTextNode('Last Post')); d.appendChild(document.createTextNode('Topics')); e.appendChild(document.createTextNode('Posts')); r.appendChild(a); r.appendChild(b); r.appendChild(c); r.appendChild(d); r.appendChild(e); get('td','tag')[i].parentNode.parentNode.insertBefore(r,get('td','tag')[i].parentNode.nextSibling); } } } </script> | |
| dog199200 Guest | Re: (Wrighty) VBulletin Board Mod Edit (25th Mar 08 at 12:10am UTC) | | umm if possible can you remove where it says Topics and Posts under the numbers? | |
| |
 |  |
|