The forum of the forums
Welcome on the Forumotion Support Forum.

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're 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, 1: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
Forumotion Member

Posts: 159
Language: Croatian
Points: 256
Join date: 2008-03-10

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 22nd 2012, 3: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
Forumotion Member

Male
Posts: 1686
Language: Plenty of them.
Location: UK
Points: 2069
Join date: 2011-03-05

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by paor on February 22nd 2012, 10:18 am

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
Forumotion Member

Posts: 159
Language: Croatian
Points: 256
Join date: 2008-03-10

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 22nd 2012, 4:14 pm

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

LGforum
Forumotion Member

Male
Posts: 1686
Language: Plenty of them.
Location: UK
Points: 2069
Join date: 2011-03-05

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

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

can we set permission for Forum description?

paor
Forumotion Member

Posts: 159
Language: Croatian
Points: 256
Join date: 2008-03-10

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 23rd 2012, 7:01 am

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
Forumotion Member

Male
Posts: 1686
Language: Plenty of them.
Location: UK
Points: 2069
Join date: 2011-03-05

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by Sir Chivas™ on February 23rd 2012, 7:15 am

You can always try adding a Profiles

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

Sir Chivas™
Forumotion Member

Male
Posts: 1183
Language: English, Spanish.
Location: In my GF's heart <3
Points: 1093
Join date: 2011-08-04

http://forumotionservice.forumotion.com/

Back to top Go down

Solved Re: Some questions

Post by paor on February 26th 2012, 12: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
Forumotion Member

Posts: 159
Language: Croatian
Points: 256
Join date: 2008-03-10

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Nera. on February 26th 2012, 2: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.
Manager
Manager

Female
Posts: 6419
Age: 28
Language: Croatian, Italian, German, English
Location: Split, Croatia
Points: 9366
Join date: 2010-09-01

http://www.webartzforum.com/

Back to top Go down

Solved Re: Some questions

Post by LGforum on February 26th 2012, 2: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
Forumotion Member

Male
Posts: 1686
Language: Plenty of them.
Location: UK
Points: 2069
Join date: 2011-03-05

http://www.avacweb.com/

Back to top Go down

Solved Re: Some questions

Post by paor on March 4th 2012, 2: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
Forumotion Member

Posts: 159
Language: Croatian
Points: 256
Join date: 2008-03-10

http://poljoprivredni-forum.biz

Back to top Go down

Solved Re: Some questions

Post by Jophy on March 4th 2012, 4:57 am

Topic Solved & Moved

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


Jophy
Manager
Manager

Male
Posts: 10659
Age: 16
Language: English, Tagalog
Location: Manila, Philippines
Points: 27702
Join date: 2009-08-02

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