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.

Some questions

View previous topic View next topic Go down

Solved Some questions

Post by paor on February 22nd 2012, 9:52 am

javascript

1. how to ad title tag for some links which contains specifics word

2.
Code:
<script>
jQuery(document).ready(function() {
msg = 'SOME HTML';
jQuery('#picture_legend').html(jQuery('#picture_legend').html() + msg);
});
</script>

this script is visible only for logged users, why

FORUM LINK
username: testing
password: testtest

tnx

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 22nd 2012, 11:38 am

A title attribute can be added on most HTML elements.
If your reffering to adding a title attribute on something which you can not edit, then it can be added with javascript: 'elem.title="title text";'
I'll elaborate when I know more what you mean.

The script could be only for members depending on where you put it.
Put it in a Javascript like this:
Code:

jQuery(function() {
document.getElementById('picture_legend').innerHTML+="YOUR TEXT HERE";
});
Yes, i changed it, it still does the same thing but in a better/more normal way.
[/code]

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by paor on February 22nd 2012, 6:18 pm

1.
i would like to ad title attribut or similar tooltip for signed link (it's aditional profile field)


2.
Code:
jQuery(function() {
document.getElementById('picture_legend').innerHTML+="YOUR TEXT HERE";
});
after inserting this code (site map) into forum descriptions, the problem remains the same - visible only for logged members

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 23rd 2012, 12:14 am

Are you sure your not putting the script in a forum description which is only for members?

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by paor on February 23rd 2012, 9:58 am

can we set permission for Forum description?

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 23rd 2012, 3:01 pm

Wait what do you mean forum description?
Do you mean the description of one of your forums, as in the bit underneath one of the forum sections name?

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by Sir Chivas™ on February 23rd 2012, 3:15 pm

You can always try adding a Profiles

Acp>>Users & Groups>> Users >>Profiles. Add



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 : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Some questions

Post by paor on February 26th 2012, 8:13 pm

@LGforum wrote:Wait what do you mean forum description?
Do you mean the description of one of your forums, as in the bit underneath one of the forum sections name?


paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Nera. on February 26th 2012, 10:14 pm

That's not your forum description, that's your homepage message and no you can not set permissions for that.

I think some script for guests on your forum is not functioning properly as I could not exacute any script as a guest on your forum.

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 26th 2012, 10:30 pm

Its not working for your guests because another one of your scripts is hitting an error.
The other script which is failing is this:
Code:

$(function(){document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox'});
Because the PM link does not show up for guests the script is failing to execute, causing the script in this thread to fail too.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by paor on March 4th 2012, 10:44 am

@Nera. wrote:That's not your forum description, that's your homepage message and no you can not set permissions for that.

I think some script for guests on your forum is not functioning properly as I could not exacute any script as a guest on your forum.

yes, it's homepage message...sorry my mistake

@LGforum wrote:Its not working for your guests because another one of your scripts is hitting an error.
The other script which is failing is this:
Code:

$(function(){document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox'});
Because the PM link does not show up for guests the script is failing to execute, causing the script in this thread to fail too.

problem solved thanks to you new code
tnx

paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Jophy on March 4th 2012, 12:57 pm

Topic Solved & Moved

Note: You can also help the staff member's work by EDITING your topic and marking it as solved.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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