The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Some questions

5 posters

Go down

Solved Some questions

Post by paor 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
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Some questions

Post by paor 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)
Some questions 2012-011

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
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

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

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

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Some questions

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

can we set permission for Forum description?
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Some questions

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

You can always try adding a Profiles

Acp>>Users & Groups>> Users >>Profiles. Add
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Solved Re: Some questions

Post by paor 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?

Some questions 2012-02-2613
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Nera. 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.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: Some questions

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Some questions

Post by paor 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
avatar
paor
Forumember

Posts : 194
Reputation : -2
Language : Croatian

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Jophy 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
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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