• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Thread styling / alignment

Adam H

Young Flying Bird
Would it be possible to add unique classes to the title link, an image floated left , an image floated right.

That way if there is a unique class added to each of those it will be so much easier for us to add some custom CSS to xenforo to make the thread look better formatted .

For example the link to the post at the top looks lost, i would much prefer it to be like a h3 but a class would be good enough so it can at least be styled like a h3.

Like wise with the image floats, in wordpress its uncommon for someone to simply stick an image above or below text, its much more common for an image to be floated. Adding classes to the <img class="randomleft" would then allow the option if someone wanted it.

I know that you can add float BBcode to xenforo but i prefer not to add loads of things which may not be used else where on the forum and only really implemented on wordpress based threads.
 

Gracie

Dogs Times Writer
Can you do a screenshot? This site is slowly SLOWLY shifting over to using the xenword.css file in the XenWord plugin so that themes are not modified.
 

Adam H

Young Flying Bird
Sure so this is the forum thread which has been created via wordpress , as you can see no styling :

upload_2015-3-30_19-51-2.png


This is the same post on wordpress:

upload_2015-3-30_19-52-1.png
 

Gracie

Dogs Times Writer
This is used for the thread creation.

https://codex.wordpress.org/Function_Reference/get_post_field

PHP:
$content= get_post_field('post_content', $post->ID);

The default content is display so I'm not sure that can be changed and make a difference.

This is the other important part:

PHP:
$body.= XenForo_Helper_String::autoLinkBbCode( XenForo_Html_Renderer_BbCode::renderFromHtml( nl2br( $content ) ) );

As you can see, XenForo is doing the rendering.
 

Adam H

Young Flying Bird
Yes i would assume it would require the creation of float bbcode which is referenced to inpost images created by Xenword somehow, i can only think of doing via adding a random class to the <img class="bbCodeImage LbImage RANDOM" tag, but i have looked into it to even see if its possible to do........was hoping someone knew with out having to do any digging :D
 
Top