inherit
167925
0
Jun 9, 2014 17:15:50 GMT -8
swissunite
156
June 2011
testb1
|
Post by swissunite on Mar 5, 2013 10:39:09 GMT -8
Under the old version, I was able to add the Board (forum) name in a column for the New Topics (most recent). That way, you could tell which forum the topic was in. Sometimes, the subject lines are not very helpful and some folks didn't want to even bother opening those threads up if it was in a forum they had no interest in.
I would like to add that column in the /threads/recent one
is that a template issue or a plug in issue?
thanks for any help and I would have used search to see if this had been answered, but search is not working for me right now
|
|
inherit
167925
0
Jun 9, 2014 17:15:50 GMT -8
swissunite
156
June 2011
testb1
|
Post by swissunite on Mar 5, 2013 13:04:31 GMT -8
this was the code I had in my old boards
<script type="text/javascript"> <!-- // show board on newest topics list // by Wormopolis - [url]www.wormocodes.com[/url] // keep header intact
displayStyle='column'; //column or cell. cell style puts board name under each thread title
if (location.href.match(/newestthreads/)) { fj=document.getElementById('forumjump'); for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width.match(/4(3|8)%/) && tds[t].className.match(/catbg/) && displayStyle=='column') { clntitle=tds[t].cloneNode(true); clntitle.firstChild.firstChild.firstChild.innerHTML='Board'; clntitle.width='1%'; clntitle.align='center'; tds[t].width=(parseInt(tds[t].width)-1)+"%"; tds[t].parentNode.insertBefore(clntitle,tds[t--].nextSibling); if (document.ammForm) { vtabl=document.ammForm.parentNode.parentNode; vtabl.rows[0].cells[0].colSpan++; vtabl.rows[vtabl.rows.length-1].cells[0].colSpan++; } else { vtabl=tds[t].parentNode.previousSibling.firstChild.colSpan++; } } if (tds[t].width.match(/4(3|8)%/) && tds[t].className.match(/windowbg/) && tds[t].getElementsByTagName('font')[0]) { thr=tds[t].getElementsByTagName('font')[0].getElementsByTagName('a')[0]; thrb=(thr.href.match(/board=(.*?)($|&)/) ? RegExp.$1 : ''); for (fjopts=fj.options, o=0; o<fjopts.length; o++) { if (fjopts[o].value.match(new RegExp('board='+thrb+'$',''))) { fjtitle=fjopts[o].innerHTML.replace(/\-+/,''); break; } } if (displayStyle=='column') { nfnt=document.createElement('font'); nfnt.size=2; nfnt.innerHTML=fjtitle; nwcl=document.createElement('td'); nwcl.className='windowbg'; nwcl.align='center'; nwcl.width='1%'; blnk=document.createElement('a'); blnk.href="/index.cgi?board="+thrb; blnk.appendChild(nfnt); nwcl.appendChild(blnk); tds[t].width=(parseInt(tds[t].width)-1)+"%"; tds[t].parentNode.insertBefore(nwcl,tds[t--].nextSibling); } else if (displayStyle=='cell') { nfnt=document.createElement('font'); nfnt.size=1; nfnt.appendChild(document.createTextNode('in board: '+fjtitle)); tds[t].appendChild(document.createElement('br')); tds[t].appendChild(nfnt); } } } }
// --> </script>
|
|
inherit
167925
0
Jun 9, 2014 17:15:50 GMT -8
swissunite
156
June 2011
testb1
|
Post by swissunite on Mar 5, 2013 21:18:00 GMT -8
I've been looking in the stylesheets and I think the problem is that the thread list doesn't have the object for the board name. Is that correct? How can I get the board name into the THREAD LIST area?
board_id does me no good, as it is just a number. This was an important feature in our forums, as it made it possible to have forums that could talk about politics and have it clearly marked in Board column - and therefore, those who wanted nothing to do with politics knew that thread was not for them.
and obviously, I would want to skip displaying the board name outside of being in new topics (/threads/recent url)
I hope this all made some sense...
|
|
inherit
167925
0
Jun 9, 2014 17:15:50 GMT -8
swissunite
156
June 2011
testb1
|
Post by swissunite on Mar 9, 2013 17:04:05 GMT -8
Can we get the board name added to the thread listings template variables?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 9, 2013 18:15:54 GMT -8
I'd probably say that this is better as a Feature Request, as I think it makes sense to have the board shown for each thread. Perhaps try there, see if the devs think it's worth adding in. =]
|
|