vForums Support > Programming & Coding :: Code Requests & Support :: > [F] VBulletin Board Mod Edit

[F] VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 5th Mar 08 at 5:57pm
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 {Smile}

Code:
 
  1. <style>
  2. .boardtotals{
  3.     display: none;
  4. }
  5. </style>
  6. <script>
  7. /*Board Mod
  8. Created By Wrighty*/
  9.  
  10. for(i=0; i<get('td','tag').length; i++){
  11.     if(get('td','tag')[i].innerHTML.match(/New Posts/) && get('td','tag')[i].className== "window1"){
  12.         get('td','tag')[i+1].width = '55%';
  13.         var a = get('td','tag')[i].parentNode.insertCell(3);
  14.         with(a){
  15.             className = 'window1';
  16.             width= '50px';
  17.             align= 'center';
  18.             innerHTML = (get('td','tag')[i+1].innerHTML.match(/\s(\d+)\sPosts/))? RegExp.$1 : '0';
  19.             innerHTML += '<br />Posts'
  20.         }
  21.         var b = get('td','tag')[i].parentNode.insertCell(3);
  22.         with(b){
  23.             className = 'window1';
  24.             width= '50px';
  25.             align= 'center';
  26.             innerHTML = (get('td','tag')[i+1].innerHTML.match(/(\d+)\sTopics\s/))? RegExp.$1 : '0';
  27.             innerHTML += '<br />Topics'
  28.         }
  29.     }
  30.     if(get('td','tag')[i].colSpan == '3'){
  31.         if(get('td','tag')[i].width == '100%' && get('td','tag')[i].className == 'title1'){
  32.             get('td','tag')[i].colSpan = '5';
  33.        }
  34.         if(get('td','tag')[i].innerHTML.match(/\/category\//) ){
  35.             get('td','tag')[i].colSpan = '5';
  36.        }
  37.     }
  38. }
  39. </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.

Re: (Wrighty) VBulletin Board Mod Edit - Posted By Michael (wrighty) on 6th Mar 08 at 6:33pm
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.

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 6th Mar 08 at 6:51pm
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?

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 7th Mar 08 at 9:00pm
bump

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 10th Mar 08 at 10:04pm
bump

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 14th Mar 08 at 9:07pm
bump

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 17th Mar 08 at 10:52pm
bump, please someone take care of this... {Sad}

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 20th Mar 08 at 11:14pm
plz....

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 24th Mar 08 at 2:25am
bump

Re: (Wrighty) VBulletin Board Mod Edit - Posted By Michael (wrighty) on 24th Mar 08 at 2:12pm
Should be able to do this. So you want the category name first, and then in a row beneath, you want those things? {Smile}

Shouldn't be overly hard! ^_^ I'll see if I have some time for this tonight! {Smile}

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 24th Mar 08 at 10:06pm
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/

Re: (Wrighty) VBulletin Board Mod Edit - Posted By Michael (wrighty) on 24th Mar 08 at 10:33pm
What's wrong with it?

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 24th Mar 08 at 11:28pm
its not formated in Board, Last Post, Threads, Posts anymore, just Board and Last Post

Re: (Wrighty) VBulletin Board Mod Edit - Posted By Michael (wrighty) on 24th Mar 08 at 11:43pm
Ross changed some classes. I hate him! {Tongue Out}

Try this {Smile}

<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>

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 25th Mar 08 at 12:10am
umm if possible can you remove where it says Topics and Posts under the numbers?

Re: (Wrighty) VBulletin Board Mod Edit - Posted By Michael (wrighty) on 25th Mar 08 at 12:15am
woops, meant to do that. Recopy! {Smile}

Re: (Wrighty) VBulletin Board Mod Edit - Posted By dog199200 (dog199200) on 25th Mar 08 at 12:16am
{Smile} ty