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.

path "::"

View previous topic View next topic Go down

Solved path "::"

Post by skouliki on May 1st 2017, 11:54 am

hello

i see here and on my forum and other forums that there are 2"::" to the "Who is online" section



can i change it or is itgeneral?

isearch for the below code but i could not find anything
Code:
 :: 

Code:
 <!-- BEGIN switch_viewonline_nolink -->
  {L_WHO_IS_ONLINE}<br/>
  <!-- END switch_viewonline_nolink -->
  {TOTAL_USERS_ONLINE}<br />
{LOGGED_IN_USER_LIST}
  {L_ONLINE_USERS}
  {L_CONNECTED_MEMBERS}<br>
  {L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}</p>
  <div class="clear"></div>
  <p>{GROUP_LEGEND}</p>
  </div>
  </div>
  <!-- END disable_viewonline -->


i do not want to replace the symbol ::i want only to be 1 :

thanks

https://iconskouliki.forumgreek.com/ (punbb)
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2691
Reputation : 402
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: path "::"

Post by Wolfuryo on May 1st 2017, 2:46 pm

Hello,

Add this javascript code with placement on the index:
Code:
$(function(){
if($("#onlinelist").length!=0){
$("#onlinelist").html($("#onlinelist").html().replace("::", ":"));
}
})
avatar
Wolfuryo
Forumember

Posts : 356
Reputation : 93
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: path "::"

Post by skouliki on May 1st 2017, 4:40 pm

thanks for ur answer @Wolfuryo

i would like also to know before i closed the thread if this issue will be fixed automatically by forumotion or its necessary each forum to have this java ( cause ihave plenty of them do not want to over do it)
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2691
Reputation : 402
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: path "::"

Post by Wolfuryo on May 1st 2017, 5:51 pm

I don't think that is an issue, there are a lot of people that think the original :: is better than :. This code does the same thing, but is a little faster:
Code:
(function(){
var a=document.getElementById("fa_online_users");
if(a!=null){
var b=a.innerHTML.replace(/::/g, ":")
a.innerHTML=b;
}
})()

EDIT:If you want to use the first code, replace "::" in it with /::/g,otherwise it might just replace the first ::


Last edited by Wolfuryo on May 1st 2017, 5:54 pm; edited 1 time in total
avatar
Wolfuryo
Forumember

Posts : 356
Reputation : 93
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: path "::"

Post by skouliki on May 1st 2017, 5:53 pm

thanks a lot Smile
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 2691
Reputation : 402
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: path "::"

Post by Wolfuryo on May 1st 2017, 5:55 pm

You're very welcomed. salut
avatar
Wolfuryo
Forumember

Posts : 356
Reputation : 93
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: path "::"

Post by SLGray on May 1st 2017, 6:50 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39219
Reputation : 2629
Language : English
Location : United States

https://fmthemes.forumotion.com/

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