The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to remove comma between subforums?

View previous topic View next topic Go down

Solved How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 6:29 pm

Is there a way to remove comma between subforums? I cannot find it.

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Ultron's Vision on June 2nd 2013, 6:45 pm

Could you provide your forum's URL and a screenshot of what exactly you mean?

Thanks! Smile

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 7:00 pm



Here is a screenshot. There is a forum Moj Blog and two subforums: Moji radovi and Radovi. There is a comma after subforum Moji radovi, I don't need it. How to remove it?

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Ultron's Vision on June 2nd 2013, 7:28 pm

You could try using this jQuery script.

Code:
$(document).ready(function(){

for(var i = 0, var len = document.getElementsByTagName("span").getElementsByClassName("gensmall").getElementsByTagName("a").getElementsByClassName("gensmall").length; i < len; i++) {

$($('span.gensmall a.gensmall')[i].nextSibling).wrap('<span style="display:none"></style>');

}

});

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 7:35 pm

Where do I paste the code? In JavaScript?

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Ultron's Vision on June 2nd 2013, 7:59 pm

Yes, sorry for being unclear about that Sad

Add it in the JavaScript pages management!

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 8:03 pm

Not working

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Ultron's Vision on June 2nd 2013, 8:22 pm

Mmmm, let me rewrite the code a bit.

Code:
$(document).ready(function(){

$('span.gensmall a.gensmall').each(function(){

$(this).nextSibling.wrap('<span style="display:none"></span>');

});

});

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 8:35 pm

Nothing again

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by SLGray on June 2nd 2013, 11:12 pm

Please post your forum's address.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36692
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 2nd 2013, 11:19 pm


Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 3rd 2013, 8:27 pm

BUMP

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by SLGray on June 3rd 2013, 9:17 pm

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!

Second Reminder


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36692
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by kirk on June 3rd 2013, 11:41 pm

How is this a problem? lol

I am going to move it over to forum designs and appearance section. Think it would be better over there.
My guess is a simple css should work as well but will have to try once i am on my computer. i am on my ipod right now.

Will send Johnny Doc and Ultron's Vision a
PM to the new thread location
Smile

Thread now moved here from other problems section

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 5th 2013, 5:25 am

Is there any solution?

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Festina Lente on June 6th 2013, 5:28 pm

In Templates > General > index_box I found this code:

Code:
    {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}

and replaced it with this one:

Code:
    <span id="comma">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
                                  <script type="text/javascript">
      document.getElementById('comma').outerHTML=document.getElementById('comma').innerHTML.replace(/, /g,"");
      </script></span></div>

This works fine on my phpBB2 forum. You can lock this topic.

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Solved Re: How to remove comma between subforums?

Post by Sir Chivas™ on June 6th 2013, 6:08 pm

Topic Solved & Locked



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum