vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   BB Code Enhancements - new simple design for [php] [code] tags (https://vborg.vbsupport.ru/showthread.php?t=293957)

Mohammad Kamal 01-14-2013 11:00 PM

new simple design for [php] [code] tags
 
1 Attachment(s)
Hello,

Here is a new simple design for [php] [code] tags

Hope you like it!

Screenshot:

https://vborg.vbsupport.ru/attachmen...1&d=1358249392

*Take a backup before editing any template.

open bbcode_code template, and replace it with:

Code:

<div style="margin:20px; margin-top:5px">
<strong style="color:#8CC8FF; padding:6px; display:block; font-size:10px; border: 1px solid; background-color: #CDE7FF; width: 700px; font-size: 13px;">CODE:</strong>
        <pre class="alt2" dir="ltr" style="
                margin: 0px;
                padding: $stylevar[cellpadding]px;
                border: 1px solid #8CC8FF;
                width: 700px;
                max-height: 400px;
                text-align: left;
                font-size: 13px;
                background-color: #CDE7FF;
                overflow: auto">$code</pre>
</div>

then open bbcode_php template and replace it with:

Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="color:#34C200; padding:6px; display:block; font-size:10px; border: 1px solid; background-color: #A5EB8B; width: 700px; font-size: 13px;">$vbphrase[php_code]:</div>
        <div class="alt2" dir="ltr" style="
                margin: 0px;
                padding: $stylevar[cellpadding]px;
                border: 1px solid #34C200;
                width: 700px;
                max-height: 400px;
                text-align: left;
                font-size: 13px;
                background-color: #A5EB8B;
                overflow: auto">
                <code style="white-space:nowrap">
                        <!-- php buffer start -->$code<!-- php buffer end -->
                </code>
        </div>
</div>


matrex722 03-21-2013 09:14 AM

Awesome i will try it now

http://www.7elm3aber.com/vb/f107.html

but how can i change its names ?

usHealthy 03-22-2013 10:30 PM

Looks great thanks for sharing

Dorgham 03-31-2013 12:22 AM

Modify a wonderful bbcode_code template
Thanks Mohamed


All times are GMT. The time now is 08:01 AM.

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.01054 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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