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.

Quote formatting

View previous topic View next topic Go down

Solved Quote formatting

Post by bob77707 on June 21st 2013, 10:32 pm

Hi there. Hopefully this will be an easy one!

Currently my quote looks like this:




I would like there to be a space between the "Bob wrote" and the actual quote, like this:




Any help would be greatly appreciated!

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote formatting

Post by Ultron's Vision on June 21st 2013, 10:42 pm

What's your forum's version?

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Quote formatting

Post by bob77707 on June 21st 2013, 11:02 pm

phpbb2

I'm currently using this javascript to get the "Bob wrote" inside the gray box.

Code:
$(function(){
  $("td.quote").removeClass("quote").parent().parent().parent().addClass("quote");
});

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote formatting

Post by Ultron's Vision on June 21st 2013, 11:07 pm

Mhm, use this JavaScript for it.

Code:
var q = document.getElementsByClassName("quote");
for(var i = 0; i < q.length; i++) {
var qT = q[i].innerHTML;
q[i].innerHTML = "";
q[i].innerHTML += "<br>";
q[i].innerHTML += qT;
}

That should work just fine.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Quote formatting

Post by bob77707 on June 21st 2013, 11:13 pm

That worked perfectly. Thank you so much!

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote formatting

Post by SLGray on June 21st 2013, 11:15 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

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