New messages Members Forum rules Search
  • Page 1 of 1
  • 1
Forum moderator: kostova  
uCoz Support Forum by uCozers » uCoz » Forum » Need A Littel Help with Sub-Forums (sml[answered])
Need A Littel Help with Sub-Forums
PistolDate: Wednesday, 2010 April 28, 8:28 PM | Message # 1
Font size: A | A |
Lieutenant
Group: uCozer
Message: 60
[ ]
Offline
I got this code from Here : http://arnis.ucoz.lv/forum/6-321-1

this code needs to be after body

$BODY$

Code
<script type="Text/javascript ">       
link=document. GetElementsByTagName('A');       
hideForums=new Array('1. Subforums title ','2. Subforums title ','3. Subforums title '); / / Write here the names of hidden forum
for(k=0K<hideForums.length k++){       
for(i=0I<link. Length; i++){       
IF(link[i]. ClassName=='Forum' && link[i]. InnerHTML==hideForums[k]){       
link[i]. ParentNode.parentNode.style.display='None';      
}}}       
</script>

i need some help here , after that i put a link into my forum description but it didn't work

Added (2010 April 28, 8:28 PM)
---------------------------------------------
?

 
jackassDate: Friday, 2010 May 14, 0:44 AM | Message # 2
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
I'm sorry for so late answer, I had a big problems in my room, so I wasn't able to access my internet for about 30 days
Now I'm back smile
Later I will tell you what was wrong :)

Quote (Pistol)
this code needs to be after body

yes, but this code will hide some forums from your forum list in site

If you want I can make a tutorial


 
PistolDate: Sunday, 2010 June 20, 8:04 PM | Message # 3
Font size: A | A |
Lieutenant
Group: uCozer
Message: 60
[ ]
Offline
Hello , Soryy also for the late awnser

I'm Glad if u could make a tutorial

Best Regards Pistol

Added (2010 June 20, 8:04 PM)
---------------------------------------------
thanks for the help wink ;) wink

but i already found the thing i did wrong

Edited ByPistol - Sunday, 2010 June 20, 8:04 PM
 
SDMTEAMDate: Tuesday, 2011 January 11, 7:47 AM | Message # 4
Font size: A | A |
Private
Group: User
Message: 14
[ ]
Offline
I want also this code
 
KnessDate: Thursday, 2011 February 24, 4:07 PM | Message # 5
Font size: A | A |
Private
Group: User
Message: 1
[ ]
Offline
Quote (SDMTEAM)
I want also this code

http://arnis.ucoz.lv/forum/6-321-1


New fags can't suck dis.
 
jackassDate: Thursday, 2011 February 24, 7:59 PM | Message # 6
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
Code
<script type="text/javascript">      
  link=document.getElementsByTagName('a');      
  hideForums=new Array('1.sub-forum','2.sub-forum','3.sub-forum'); // hidden forums      
  for(k=0;k<hideForums.length;k++){      
  for(i=0;i<link.length;i++){      
  if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){      
  link[i].parentNode.parentNode.style.display='none';     
  }}}      
  </script>

This code go's after $BODY$ in General appearance of forum pages

Where are 1.sub-forum, 2.sub-forum, and so on is a hidden forums in your forum list, so the name of forums must be the same

For example if you have a forum called Games and Music then your code will be

Code
<script type="text/javascript">      
  link=document.getElementsByTagName('a');      
  hideForums=new Array('Games','Music'); // hidden forums      
  for(k=0;k<hideForums.length;k++){      
  for(i=0;i<link.length;i++){      
  if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){      
  link[i].parentNode.parentNode.style.display='none';     
  }}}      
  </script>

Now Game and Music will be hidden and now you make a new forum called Whatever biggrin

And you make a description for this forum Whatever like this

Code
Sub-forums:<br><a href="http://LINK-TO_GAMES_FORUM.com">Games</a> -<a href="http://LINK-TO_MUSIC_FORUM.com">Music</a><br>

So now this 2 forums will be like a sub-forums! smile


 
SDMTEAMDate: Saturday, 2011 June 04, 12:58 PM | Message # 7
Font size: A | A |
Private
Group: User
Message: 14
[ ]
Offline
Quote (jackass)
Code: [Select all]
<script type="text/javascript">
link=document.getElementsByTagName('a');
hideForums=new Array('1.sub-forum','2.sub-forum','3.sub-forum'); // hidden forums
for(k=0;k<hideForums.length;k++){
for(i=0;i<link.length;i++){
if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){
link[i].parentNode.parentNode.style.display='none';
}}}
</script>

This code go's after $BODY$ in General appearance of forum pages

Where are 1.sub-forum, 2.sub-forum, and so on is a hidden forums in your forum list, so the name of forums must be the same

For example if you have a forum called Games and Music then your code will be

Code: [Select all]
<script type="text/javascript">
link=document.getElementsByTagName('a');
hideForums=new Array('Games','Music'); // hidden forums
for(k=0;k<hideForums.length;k++){
for(i=0;i<link.length;i++){
if(link[i].className=='forum' && link[i].innerHTML==hideForums[k]){
link[i].parentNode.parentNode.style.display='none';
}}}
</script>

Now Game and Music will be hidden and now you make a new forum called Whatever

And you make a description for this forum Whatever like this

Code: [Select all]
Sub-forums:<br><a href="http://LINK-TO_GAMES_FORUM.com">Games</a> -<a href="http://LINK-TO_MUSIC_FORUM.com">Music</a><br>

So now this 2 forums will be like a sub-forums!


I am Not understand for all of whats the Sub-Forums please the show the Sub forums Image
thanks its
 
uCoz Support Forum by uCozers » uCoz » Forum » Need A Littel Help with Sub-Forums (sml[answered])
  • Page 1 of 1
  • 1
Search:


Copyrights uCozers 2009 - 2024 To TOP
Refresh Smileys Manager