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.

Buttons into normal text

View previous topic View next topic Go down

Buttons into normal text

Post by sun1994 on October 20th 2011, 2:07 pm

I want the buttons such as: quote, new topic etc., changed into normal text. How do I do that?
I can work with CSS if necessary.

sun1994
Forumember

Posts : 81
Reputation : 1
Language : dutch

Back to top Go down

Re: Buttons into normal text

Post by LGforum on October 20th 2011, 4:00 pm

Easy Wink
Put this in a javascript file, and click 'In the Topics'

Code:

$(function() {
var x=$('.buttons').find('img');
for (i=0;i<x.length;i++) {
var y=x[i].attributes;
var title=y[0].nodeValue;
$(x[i]).replaceWith(title);
}});
This swap the images for text. But will still be correctly linked.
Let me know if you need anymore help styling the text, and making them look better.

EDIT: That was phpbb3. I noticed you use PunBB, but punBB DOES have text instead of images?


Last edited by LGforum on October 20th 2011, 5:14 pm; edited 1 time in total

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Buttons into normal text

Post by mmoore on October 20th 2011, 4:12 pm

cheers

mmoore
New Member

Posts : 1
Reputation : 1
Language : english

Back to top Go down

Re: Buttons into normal text

Post by sun1994 on October 20th 2011, 7:11 pm

Thanks for your help. (:
Ehm.. well, mine had images instead of text, and it is a punBB forum. I already deleted the images, but then the field remains empty, no text whatsoever. Sad

sun1994
Forumember

Posts : 81
Reputation : 1
Language : dutch

Back to top Go down

Re: Buttons into normal text

Post by sun1994 on November 9th 2011, 1:32 pm

Anyone?

sun1994
Forumember

Posts : 81
Reputation : 1
Language : dutch

Back to top Go down

Re: Buttons into normal text

Post by LGforum on November 9th 2011, 3:58 pm

here you go, this will do the New Topic, and Post Reply buttons, what else are you wanting?
Code:

$(function() {
var x=$('.posting').find('img');
for (i=0;i<x.length;i++) {
var y=$(x[i]).attr('alt');
$(x[i]).replaceWith(y);
}});

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Buttons into normal text

Post by sun1994 on November 11th 2011, 5:13 pm

Thanks a lot! Very Happy
Is it also possible to do the same to the quote, edit, delete post, pm etc. buttons?

sun1994
Forumember

Posts : 81
Reputation : 1
Language : dutch

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