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.

MyBB message structure for phpBB3

View previous topic View next topic Go down

Solved MyBB message structure for phpBB3

Post by Cesar on July 18th 2013, 4:13 pm

Hello ,
 Hello everyone! I want to improve MyBB message structure on my forum (bb3).I don't know if you understand what i want to say so , here is a screenshot : 
 

 

// bump


// I think i'm gonna bump again 15 times ...

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by SLGray on July 18th 2013, 6:55 pm

How did you get your post body to look like that?


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


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 18th 2013, 7:00 pm

@SLGray wrote:How did you get your post body to look like that?

Sorry for hitting "Thanks" , i just want to click "quote"..

On topic : Well , on romanian support forum is a tutorial , for phpBB2 and punBB . If you want , i can post codes here , but i need them for bb3mwii

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by SLGray on July 18th 2013, 7:05 pm

If the tutorial is only for phpBB 2 and punBB, it means that you need to edit the templates. You can not edit the templates in phpBB 3. I do not know if there are any codes for phpBB 3.


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


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 18th 2013, 7:12 pm

I had a topic , for a sliding bar , only for version that have templates , but with help from FM , made it , also for BB3..
It works for bb3 , candy_fear maked me one , but it was "full" of bugs

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 18th 2013, 7:13 pm

Yes , for phpBB3 have very more bugs , it is very hard to does , I maked on a old theme but is fixed only for that theme , I used a javascript and styled with CSS , I gave you the codes but have some problems. Crying or Very sad

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 18th 2013, 7:45 pm

Candy , please post here the codes.. Maybe someone else can help me))

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 18th 2013, 7:54 pm

Hello , you need to create a new javascript , mark only in Topics and add this code :

Code:
$(function(){
$('.post').each(function() {
var what = $(this).find('.postprofile'),where = $(this).find('.postbody');
  what.insertBefore($(where));
});
});

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 18th 2013, 8:01 pm

Candy , doesn't workConfused..

In romana , pt Candy:
Nici nu apare cum ar trebui , nici macar cum lai facut tu ieri Rolling Eyes

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by SLGray on July 18th 2013, 11:07 pm

PixX wrote:Candy , doesn't workConfused..

In romana , pt Candy:
Nici nu apare cum ar trebui , nici macar cum lai facut tu ieri Rolling Eyes
Please speak English as this is a English Support Forum. If you need support in another language please look at the widget to the right that says Official Support Forums.


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


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 18th 2013, 11:20 pm

Create a new javascript , and fill with this code ,mark in Topics

Code:
$(function(){
$('.post').each(function() {
var what = $(this).find('.postprofile'),where = $(this).find('.postbody');
  what.insertBefore($(where));
});
});

Now , go in Administration Panel -> Display -> Colors -> CSS Stylesheet

Code:
.postprofile {
border-color: #fff;
border-right-style: solid;
border-right-width: 1px;
color: #536482;
display: inline;
float: left;
margin: 5px 0 0;
min-height: 80px;
position: relative;
width: 100%;
word-wrap: break-word;
}

.postbody {
clear: both;
color: #536482;
float: right;
line-height: 1.48em;
padding: 0;
width: 100%;
}

.postprofile dd {
line-height: 1.2em;
margin-left: 45px;
display: inline;
}

.postprofile dl dt a img {
height: 30px;
width: 30px;
position: relative;
top: 30px;
margin-top: -30px;
}

.postprofile dl dt strong a span {
margin-left: 35px;
position: relative;
}

I've tryed only in 75% wrap size , like yours.

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by kirk on July 19th 2013, 8:03 am

my only question is. if this is all posted on the Romanian forum with tutorials on how to do it for punbb and phpbb2 versions. why are you not asking there if there is a way to do it with phpbb3.

we really like to keep things in English here. but if you must ask questions about tutorials that are posted on other official forumotion support forums, please include the link to it so we can try to understand what it is all about.

Thanx

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 19th 2013, 12:48 pm

kirk , the romanian support forum , is , uhm , .. "dead" , if i can use this word..We don't have a technician , the main moderator is on holiday , graphic designers are busy with school and so on.. On Graphic Design section , only the moderator and I (Hauven on romanian support forum) are trying to help the users. I'm just agraphic contributor...
I'm sorry SLGray for posting in my language , my mistake..

Candy , need to be fixed , because "Profiles" are ... Look at the picture:

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 19th 2013, 1:11 pm

Delete this javascript :

Code:
jQuery(document).ready(function(){jQuery(".pun .post .user, .post .postprofile dl").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<dd><div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<br/g,'</div><br'))});jQuery(".field").css({"background-color":"white","margin-bottom":"3px","margin-right":"11px","padding":"5px 5px 5px 5px","text-align":"center","border":"1px solid #ccc"});jQuery("td.row2 span").css({"max-width":"300px"})});

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 19th 2013, 1:40 pm

I don't understand.. Delete the first JS and add this one you gave me?

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 19th 2013, 1:45 pm

No , delete my last javascript , this one :

Code:
jQuery(document).ready(function(){jQuery(".pun .post .user, .post .postprofile dl").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<dd><div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<br/g,'</div><br'))});jQuery(".field").css({"background-color":"white","margin-bottom":"3px","margin-right":"11px","padding":"5px 5px 5px 5px","text-align":"center","border":"1px solid #ccc"});jQuery("td.row2 span").css({"max-width":"300px"})});

First you need to keep , this will remove your last problem.

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 19th 2013, 1:55 pm

i'm confused. So , i add the first JS , this:
Code:
$(function(){[color=#2e8b57][font=Courier, CourierNew, sans-serif][/font][/color]
$('.post').each(function() {[color=#2e8b57][font=Courier, CourierNew, sans-serif][/font][/color]
var what = $(this).find('.postprofile'),where = $(this).find('.postbody');[color=#2e8b57][font=Courier, CourierNew, sans-serif][/font][/color]
what.insertBefore($(where));[color=#2e8b57][font=Courier, CourierNew, sans-serif][/font][/color]
});[color=#2e8b57][font=Courier, CourierNew, sans-serif][/font][/color]
});

And then , add this one too?
Code:
jQuery(document).ready(function(){jQuery(".pun .post .user, .post .postprofile dl").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<dd><div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<span class="label/g,'<div class="field"><span class="label'))});jQuery("td.row2 span,td.row1 span").each(function(){jQuery(this).html(jQuery(this).html().replace(/<br/g,'</div><br'))});jQuery(".field").css({"background-color":"white","margin-bottom":"3px","margin-right":"11px","padding":"5px 5px 5px 5px","text-align":"center","border":"1px solid #ccc"});jQuery("td.row2 span").css({"max-width":"300px"})});

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 19th 2013, 1:57 pm

No , you need to remove the second , you have this javascript on you forum , remove him.

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 19th 2013, 2:06 pm

Oh , I understand now. But look , isn't like..how it's need to be.

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by levy on July 19th 2013, 2:17 pm

The main problem for that is because you have too much profile labels , remove some of the ( My Suggestion is to keep only the messages and location )

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

http://help.forumotion.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by Cesar on July 19th 2013, 2:43 pm

Oh , ok!
Thanks Candy!

Topic solved Smile

For SLGray:
Now you see? With help from you (FM) i maked this work!

Cesar
Forumember

Posts : 207
Reputation : 3
Language : Romanian

http://www.wolffighterz.com/

Back to top Go down

Solved Re: MyBB message structure for phpBB3

Post by SLGray on July 19th 2013, 6:56 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 : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.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