what is the problem in this JS code
4 posters
Page 1 of 1
what is the problem in this JS code
i wrote JS code to remove some Id in my Forum when user is online
but it didn't work i don't know why ?!!
The Code
but it didn't work i don't know why ?!!
The Code
- Code:
$(function() {
if (_userdata.session_logged_in) {
document.getElementById("visitor-msg").innerHTML = '<style>.contact-item {display: none;}</style>'
});
}
//by omarpop23;
});
Re: what is the problem in this JS code
Are you trying you remove the visitor message tab?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: what is the problem in this JS code
Pic when i logged out
pic when i logged in
i want to remove that when i logged in
pic when i logged in
i want to remove that when i logged in
Re: what is the problem in this JS code
So you want to remove all contact fields from the profiles in messages? If yes, all you have to do is uncheck the message box for those fields: AP > Users & Groups > Users > Profiles > Contact Tab
Did that sentence appear before you added the code?
Did that sentence appear before you added the code?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: what is the problem in this JS code
|
Re: what is the problem in this JS code
SLGray wrote:So you want to remove all contact fields from the profiles in messages? If yes, all you have to do is uncheck the message box for those fields: AP > Users & Groups > Users > Profiles > Contact Tab
Did that sentence appear before you added the code?
Invision version of forums dosen't had this part of contact user in profile details you have to add it by template
i add it but lable of Contact info appears to guests so i add that sentence "You have to login to view content"
i want to remove this sentence when user being logged in
sorry for my language hhhhhhhhhh
Re: what is the problem in this JS code
SLGray wrote:So you want to remove all contact fields from the profiles in messages? If yes, all you have to do is uncheck the message box for those fields: AP > Users & Groups > Users > Profiles > Contact Tab
Did that sentence appear before you added the code?
Invision version of forums dosen't had this part of contact user in profile details you have to add it by template
i add it but lable of Contact info appears to guests so i add that sentence "You have to login to view content"
i want to remove this sentence when user being logged in
sorry for my language hhhhhhhhhh
Re: what is the problem in this JS code
Yes, it does. AP > Users & Groups > Users > Profilesomarpop23 wrote:SLGray wrote:So you want to remove all contact fields from the profiles in messages? If yes, all you have to do is uncheck the message box for those fields: AP > Users & Groups > Users > Profiles > Contact Tab
Did that sentence appear before you added the code?
Invision version of forums dosen't had this part of contact user in profile details you have to add it by template
i add it but lable of Contact info appears to guests so i add that sentence "You have to login to view content"
i want to remove this sentence when user being logged in
sorry for my language hhhhhhhhhh
Contact Tab
Modify the fields you want to remove from messages. Uncheck the box called messages (display option).
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: what is the problem in this JS code
Problem solved & topic archived.
|
Similar topics
» Problem with JS code
» CSS code problem
» Welcome code problem
» Problem in this code
» I have a problem in this code ..
» CSS code problem
» Welcome code problem
» Problem in this code
» I have a problem in this code ..
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum