vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   new style of quote (https://vborg.vbsupport.ru/showthread.php?t=110922)

EasyTarget 03-20-2006 10:27 PM

new style of quote
 
quote: name
_________________________
| text
|________________________|

instead of
quote:
________________________
|name
|text
|_______________________|

Tralala 03-20-2006 11:46 PM

You could just edit the bbcode_quote template...

This hack paved the way for me to do just that:
https://vborg.vbsupport.ru/showthread.php?t=106878

I edited accordingly, now it's a lot cleaner and collapsable to boot. I got rid of the thick quote line, and made it so the "quote from: name" is on top and not redundant.

EasyTarget 03-20-2006 11:52 PM

thanks trala.. do you have a screenshot of what yours looks like now?

Tralala 03-21-2006 05:21 AM

Quote:

Originally Posted by EasyTarget
thanks trala.. do you have a screenshot of what yours looks like now?


I don't... it looks pretty close to quotes here, except with the edit you posted above... it says "Quote from: Name" outside the box, and inside the box is the quoted text only.

...and clicking the "Quote from: Name" line collapses the quote.

EasyTarget 03-21-2006 03:12 PM

do you think I could bother you to post the edit you have made?

Tralala 03-21-2006 04:02 PM

try this and let me know how it works for you.

Edit your bbcode_quote template:

If you just want the regular quoting style, but cleaned up the way you originally asked, this should do the trick. I just whipped this up real quick from the original template, so test it and see if it works for you.

Code:

<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
        <div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]<if condition="$show['username']"> from <span style="font-weight: bold">$username:</if></span></div>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
        <tr>
                <td class="alt2" style="border:1px inset">
                <div style="font-style:italic">$message</div>
                </td>
        </tr>
        </table>
</div>


If you want the ability to "collapse" quotes, try this one instead. All credit goes to Hellcat for this code, BTW, I just removed the thick border and edited the attribution text the quotes included.


Code:

<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">

<if condition="$show[quoteid]=$show[quoteid] + 1 + $vbulletin->userinfo[lastactivity]"></if>

  <tr>
      <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quote_$show[quoteid]')"><img

id="collapseimg_quote_$show[quoteid]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
      <div class="smallfont" style="margin-bottom:2px">
        <a href="#top" style="text-decoration:none" onclick="return toggle_collapse('quote_$show[quoteid]')">$vbphrase[quote]
        <if condition="$show['username']">from <span style="font-weight: bold">$username:</if></span></a>
      </div>
    </td>
  </tr>

<tbody id="collapseobj_quote_$show[quoteid]" style="{$collapseobj_forumid}">
  <tr>
    <td class="alt2" style="border:1px inset">
      <if condition="$show['username']">
        <div style="font-style:italic">$message</div>
      <else />
        $message
      </if>
    </td>
  </tr>
</tbody>


</table>
</div>


EasyTarget 03-21-2006 04:45 PM

thanks a lot.. I've clicked install on hellcat's hack (though I'm using more your style of it)

Tralala 03-21-2006 04:54 PM

You're welcome, enjoy.


All times are GMT. The time now is 10:33 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.01023 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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