vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Board Optimization - Make your forum post live CMS portal (https://vborg.vbsupport.ru/showthread.php?t=184337)

kynangtinhoc 07-03-2008 10:00 PM

Make your forum post live CMS portal
 
Yeah, before we start I want to show you what will you get to make your post's layout look like a CMS content:
Before:
http://img113.imageshack.us/img113/2231/26322725le9.gif
And After:
http://img111.imageshack.us/img111/6978/35514506py7.gif

You can look live demo HERE

It's so easy. Now, let's start:
IN your Admincp, create a new custom BBcode to align right:
Title: hright

BB Code Tag Name: hright

Replacement:

Code:

<div style="position:relative;float:right;margin:5px;padding:5px;z-index:1">

{param}

</div>

Example:
Code:

[hright]content[/hright]
Description: leave blank

Use {option}: NO

Button Image: http://www.kynangtinhoc.com/forum/images/editor/r.gif( you should download this images)

Remove Tag If Empty: YES

Disable BB Code Within This BB Code, Disable Smilies Within This BB Code, Disable Word Wrapping Within This BB Code: NO

Ok, finish the BBcode number1, let go to make a BBcode number2 to align left:


Title: hleft

BB Code Tag Name: hleft

Replacement:

Code:

<div style="position:relative;float:left;margin:5px;padding:5px;z-index:1">

{param}

</div>

Example:
Code:

[hleft]content[/hleft]
Description: leave blank

Use {option}: NO

Button Image: http://www.kynangtinhoc.com/forum/images/editor/l.gif ( you should download this images)

Remove Tag If Empty: YES

Disable BB Code Within This BB Code, Disable Smilies Within This BB Code, Disable Word Wrapping Within This BB Code: NO
This is the end, let make it installed!!! :D

Q-v-n-s-Q 07-04-2008 04:07 AM

thank you

Alfa1 07-04-2008 11:07 AM

What's the difference with https://vborg.vbsupport.ru/showthread.php?t=173353 ?

Jari37 07-05-2008 07:27 PM

Brilliant, you have no idea how much time this will save me.

Thanks a lot.

suvari1794 07-07-2008 09:18 AM

has a bug in firefox.

kynangtinhoc 07-08-2008 12:12 AM

Quote:

Originally Posted by suvari1794 (Post 1568919)
has a bug in firefox.

oh, because the post is too short!
I think you can put
Quote:

<div style="clear: both"></div>
before the signature in postbit:
Find:
Quote:

<if condition="$post['signature']">
and add before that:
Quote:

<div style="clear: both"></div>
yes, that's finish.
you can see a live demo here: http://www.kynangtinhoc.com/forum/showthread.php?t=108

suvari1794 07-17-2008 11:30 AM

you fixed it :) thank you.

Krumbz 09-05-2008 11:49 PM

Quote:

Originally Posted by Alfa1 (Post 1566634)


Maybe not much, but this ones supported at least. Thank you kynangtinhoc

JVSP 09-06-2008 01:36 AM

installed.

Thanks

maniacop 09-07-2008 02:34 AM

Installed!

Thank U !
-----------------------
I think i spoke too soon, when i use the code my template goes out of place...
http://img89.imageshack.us/img89/9633/outoo5.jpg
How can i fix this?

Thanks in advanced@

JVSP 09-07-2008 08:38 PM

uninstalled.

Seems to not work as well in firefox. Visible in the demo if you look in IE and FF

suvari1794 09-11-2008 08:34 PM

Quote:

Originally Posted by fxlr8 (Post 1616901)
uninstalled.

Seems to not work as well in firefox. Visible in the demo if you look in IE and FF

I use and I have no problem in firefox and ie. you visit my site if you like...

http://www.amaney.com/forum/yabanci-...ll-2008-a.html

it seems good in my opinion :)

kynangtinhoc 09-13-2008 05:09 AM

Quote:

Originally Posted by fxlr8 (Post 1616901)
uninstalled.

Seems to not work as well in firefox. Visible in the demo if you look in IE and FF

I think the style you used have a problem :), if you learn about the CSS and HTML i think you can check your style and fix it.

maniacop 03-20-2009 02:59 AM

Will this work on 3.8? or is there any new update?

gungor 02-25-2010 05:09 PM

thanks...

gungor 03-25-2010 03:37 PM

The text is written in short as the problem .. longer necessary to keep the contents of the article is more .. :)


All times are GMT. The time now is 02:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01707 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete