vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   BB Code Enhancements - Alternate Quote Layouts (https://vborg.vbsupport.ru/showthread.php?t=241733)

TheInsaneManiac 05-01-2010 10:00 PM

Alternate Quote Layouts
 
1 Attachment(s)
If you don't like the current VBulletin Quote BBCode here are some other layouts. Simply replace the contents of bbcode_quote with one of these codes. The PM codes will only show the Quote layout in PMs only.

Email Look
Code:

_________________________________________________________
<p><p>
<strong>$vbphrase[quote]:</strong>
<p><p>
<if condition="$show['username']">
                <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>:
<p><i>$message</i>
<p><p>
               
            <else />
                <p><p><i>$message</i>
            </if><p><p>
_________________________________________________________
<br />

Sleek Look
Code:

<fieldset>
<legend>
Quote:
        <if condition="$username != ''">
        Originally posted by: <b>$username</b>  <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
        </span>
        </if>
        </legend>
$message
</fieldset>


Show in PM only Email Look
Code:

<if condition="THIS_SCRIPT=='private'">
_________________________________________________________
<p><p>
<strong>$vbphrase[quote]:</strong>
<p><p>
<if condition="$show['username']">
                <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>:
<p><i>$message</i>
<p><p>
               
            <else />
                <p><p><i>$message</i>
            </if><p><p>
_________________________________________________________
<br />
<else />
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
        <div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
        <tr>
                <td class="alt2" style="border:1px inset">
                        <if condition="$show['username']">
                                <div>
                                        <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
                                        <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
                                </div>
                                <div style="font-style:italic">$message</div>
                        <else />
                                $message
                        </if>
                </td>
        </tr>
        </table>
</div>
</if>

Show in PM only Sleek Look
Code:

<fieldset>
<legend>
Quote:
        <if condition="$username != ''">
        Originally posted by: <b>$username</b>  <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
        </span>
        </if>
        </legend>
$message
</fieldset>
<else />
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
        <div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
        <tr>
                <td class="alt2" style="border:1px inset">
                        <if condition="$show['username']">
                                <div>
                                        <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
                                        <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
                                </div>
                                <div style="font-style:italic">$message</div>
                        <else />
                                $message
                        </if>
                </td>
        </tr>
        </table>
</div>
</if>


vividbreeze 05-02-2010 09:02 PM

pics?

elwachiman 05-02-2010 09:25 PM

same question,,,pics please...

TheInsaneManiac 05-02-2010 09:41 PM

Screenshot added. The one with lines is email view and the one in the box is sleek view. I made multiple quotes using one with just a quote, one with just quote and username, and one with just quote, username, and post id.

sKippah 05-03-2010 11:25 AM

Much nicer then the default. there are quit a lot of things that are not looking so good...
thanks for your changes ;)

borbole 05-03-2010 01:51 PM

One small correction, hope you won''t mind it.

In vb 4 the template conditionals have changed.

So instead of for ex

HTML Code:

<if condition="$show['username']">
You should use:

HTML Code:

<vb:if condition="$show['username']">
Or, <else /> should be: <vb:else /> and the closing </if> instead should be: </vb:if>

sKippah 05-04-2010 10:52 AM

Thanks
Would be nice if the Threadstarter would correct his code

Juggernaut 07-18-2010 04:25 AM

Would like to use, but I he hasn't made the corrections yet.

rootrider 07-24-2010 12:14 PM

for his 'sleek look' I took the template code and added in the content producing bit from the original template. In other words.. it's really just stripped the design part of the template. I like it..

Code:

<fieldset>
<legend>
Quote:
        <vb:if condition="$show['username']">
        {vb:rawphrase originally_posted_by_x, {vb:raw username}}
                                        <vb:if condition="$postid"><a href="showthread.php?{vb:raw session.sessionurl}p={vb:raw postid}#post{vb:raw postid}" rel="nofollow"><img class="inlineimg" src="{vb:stylevar imgdir_button}/viewpost-{vb:stylevar right}.png" alt="{vb:rawphrase view_post}" /></a></vb:if>
        </vb:if>
        </legend>
{vb:raw message}
</fieldset>


pportuese 07-27-2010 05:51 PM

Can you add the little " icon to this code too?


All times are GMT. The time now is 09:02 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.01245 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete