|
Post by tunescool on Aug 4, 2011 2:52:57 GMT -8
1 Viewing, 2 Viewing, next to the board names. for 1 or 2 categories, and able to add more later
i was talking to ricky and craig in support and they said this could be done with a code. i want to get rid of the guests showing up that are just annoying in my forum related boards, but they said it couldnt just remove guests it would have to be members and guests, which is fine, unless you can think of something. i changed each board setting so only registered members can view the boards but trublu told me that they still show up even tho they get the login page
|
|
|
Post by Wormopolis on Aug 5, 2011 18:46:11 GMT -8
I swear I thought I replied to this...
That last part is true, it would show they were viewing, but all they would be able to see is the box to login. they are technically ON the page, but it has no info.
seperating guests from members isntgoing to be possible, mainly because even if you look at the info center and see there are 4 guests online, you have no idea WHICH board those guests are looking at so you wouldnt be able to subtract any number.
something to remove the "x viewing" shouldnt be too bad though..hold on...
|
|
|
Post by tunescool on Aug 5, 2011 20:06:28 GMT -8
there just are alot of people showing up everytime i open my site in those forums. theres really no reason for them to be in those forums, and i dont care what they think of my forum, theyre not my members, i hate seeing them everytime i open my site
|
|
|
Post by Wormopolis on Aug 7, 2011 12:50:06 GMT -8
<script type="text/javascript"> <!-- // remove "x viewing" from specific categories // by Wormopolis - www.wormocodes.com // do not repost - keep header intact
var catsAffected="general|cat1"; //seperate by |
// no need to edit below
var rgx=new RegExp('^('+catsAffected+')$',''); for (tds=document.getElementsByTagName('td'), tt=0; tt<tds.length; tt++) { if (tds[tt].colSpan==5 && tds[tt].className=='catbg' && tds[tt].getElementsByTagName('a')[0] && tds[tt].getElementsByTagName('a')[0].name && tds[tt].getElementsByTagName('a')[0].name.match(rgx)) { var uppers=tds[tt].parentNode.nextSibling; while (uppers && !uppers.firstChild.className.match(/(catbg|titlebg)/i)) { var bcell=uppers.cells[1].getElementsByTagName('font')[0]; if (bcell && bcell.innerHTML.match(/ - (\d+?) viewing/i)) { bcell.innerHTML=bcell.innerHTML.replace(/ - (\d+?) viewing/i,''); } uppers=uppers.nextSibling; } } }
// --> </script>
main footer
|
|
|
Post by tunescool on Aug 9, 2011 13:05:24 GMT -8
i think its working, i put the actual name of the category in the code rite? it has no ID. i opened one of the boards in that category and refreshed the main page in a different tab and i wasnt showing up. im pretty sure i would show up, it does count yourself if you are in that board rite?
|
|
|
Post by Wormopolis on Aug 9, 2011 18:17:19 GMT -8
categories have ids, open a modify category to see what you put.
|
|
|
Post by Wormopolis on Aug 9, 2011 18:29:50 GMT -8
I used 2 different browsers to test it
|
|
|
Post by tunescool on Aug 10, 2011 0:46:56 GMT -8
all there is in modify category is the category title
|
|
|
Post by Wormopolis on Aug 10, 2011 8:22:33 GMT -8
dammit...
ok another way to get the catid is to select the category from the forum jump. when it reloads the page, the URL will have #something at the end. the part after the # is the cat id.
|
|
|
Post by tunescool on Aug 10, 2011 9:19:50 GMT -8
i had to take this out Replace Forum Jump, but i got them. i wont really know if its working unless i find someone to go on one of the boards or just wait a couple days and see if noone shows up
|
|
|
Post by Wormopolis on Aug 10, 2011 18:17:50 GMT -8
you dont have a second browser on your computer?
|
|
|
Post by tunescool on Aug 10, 2011 19:01:09 GMT -8
i went in there with another browser and i didnt show up, and i havent seen anyone on so far, and theyre in in there alot, so it looks good
|
|
|
Post by Wormopolis on Aug 10, 2011 19:30:02 GMT -8
well I was testing on my clensite and it seemed to be workign there perfectly with 2 browsers. as long as the cat id is correct, and the boards table isnt too manipulated by other codes, it should be good.
|
|
|
Post by tunescool on Aug 12, 2011 10:52:54 GMT -8
i havent seen anyone, it must be working wormer
|
|
|
Post by Wormopolis on Aug 12, 2011 20:39:22 GMT -8
excellent. I think I might submit that and put you as the requester in the header
|
|