Thread: Chat Modifications - Dion Dev Shoutbox v2.1 (AJAX)
View Single Post
  #85  
Old 07-04-2009, 01:07 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FeatheredFriend View Post
I have installed this. Just curious as to if there is a way to make it show up on every page? Thanks!
yes. I have it at the top of every page. Just open your Navbar Template and add the following code above it or below it.

Code:
<!-- Dion Dev Shoutbox v2.1 -->
<if condition="!$show[guest] || $vboptions[ddsb_guest_show]">
<script type="text/javascript" src="shoutbox/shoutinsert.js"></script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
  <td class="tcat">
  
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_sb')">
    <img id="collapseimg_forumbit_sb" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_sb}.gif" alt="" border="0" />
    </a>
    
    $vboptions[ddsb_title]
    
  </td>
</tr>
<tr id="collapseobj_forumbit_sb" style="{$collapseobj_sb}">
  <td style="padding: 0px;">
  
    <form method="post" onsubmit="insertshout(); return false;">

    <div class="panel" style="padding: 0px; margin-bottom: $stylevar[cellspacing]px;">

    <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
    <tr>
    <td width="100%" style="padding-right: 0px;">

      <input type="text" id="body" class="bginput" size="$vboptions[ddsb_size]" maxlength="$vboptions[ddsb_length]"
      <if condition="$show[guest]"> value="$vboptions[ddsb_no]" disabled="true"</if>>

      <input type="submit" class="button" value="$vboptions[ddsb_button]"
      <if condition="$show[guest]"> disabled="true"</if>>

      &nbsp;

      <input type="button" class="button" value=" B " style="font-weight: bold;" onclick="shoutstyle('bodyb', 0);"
      <if condition="$show[guest]"> disabled="true"</if>>

      <input type="button" class="button" value=" I " style="font-style: italic;" onclick="shoutstyle('bodyi', 0);"
      <if condition="$show[guest]"> disabled="true"</if>>

      <input type="button" class="button" value=" U " style="text-decoration: underline;" onclick="shoutstyle('bodyu', 0);"
      <if condition="$show[guest]"> disabled="true"</if>>

      <select id="bodycolorsel" <if condition="$show[guest]"> disabled="true"</if> onchange="shoutstyle('bodycolor', this.value);">
      <option value="0" style="background: #ffffff; color: #000000;">$vboptions[ddsb_txtcolor]</option>
      <option value="#000000" style="background: #000000;">&nbsp;</option>
      <option value="#8b0000" style="background: #8b0000;">&nbsp;</option>
      <option value="#ff0000" style="background: #ff0000;">&nbsp;</option>
      <option value="#ff00ff" style="background: #ff00ff;">&nbsp;</option>
      <option value="#ffc0cb" style="background: #ffc0cb;">&nbsp;</option>
      <option value="#a0522d" style="background: #a0522d;">&nbsp;</option>
      <option value="#ff8c00" style="background: #ff8c00;">&nbsp;</option>
      <option value="#f4a460" style="background: #f4a460;">&nbsp;</option>
      <option value="#ffa500" style="background: #ffa500;">&nbsp;</option>
      <option value="#f5deb3" style="background: #f5deb3;">&nbsp;</option>
      <option value="#556b2f" style="background: #556b2f;">&nbsp;</option>
      <option value="#808000" style="background: #808000;">&nbsp;</option>
      <option value="#9acd32" style="background: #9acd32;">&nbsp;</option>
      <option value="#fffacd" style="background: #fffacd;">&nbsp;</option>
      <option value="#006400" style="background: #006400;">&nbsp;</option>
      <option value="#008000" style="background: #008000;">&nbsp;</option>
      <option value="#2e8b57" style="background: #2e8b57;">&nbsp;</option>
      <option value="#00ff00" style="background: #00ff00;">&nbsp;</option>
      <option value="#98fb98" style="background: #98fb98;">&nbsp;</option>
      <option value="#483d8b" style="background: #483d8b;">&nbsp;</option>
      <option value="#008080" style="background: #008080;">&nbsp;</option>
      <option value="#48d1cc" style="background: #48d1cc;">&nbsp;</option>
      <option value="#00ffff" style="background: #00ffff;">&nbsp;</option>
      <option value="#afeeee" style="background: #afeeee;">&nbsp;</option>
      <option value="#000080" style="background: #000080;">&nbsp;</option>
      <option value="#0000ff" style="background: #0000ff;">&nbsp;</option>
      <option value="#4169e1" style="background: #4169e1;">&nbsp;</option>
      <option value="#00bfff" style="background: #00bfff;">&nbsp;</option>
      <option value="#add8e6" style="background: #add8e6;">&nbsp;</option>
      <option value="#4b0082" style="background: #4b0082;">&nbsp;</option>
      <option value="#708090" style="background: #708090;">&nbsp;</option>
      <option value="#800080" style="background: #800080;">&nbsp;</option>
      <option value="#9932cc" style="background: #9932cc;">&nbsp;</option>
      <option value="#dda0dd" style="background: #dda0dd;">&nbsp;</option>
      <option value="#2f4f4f" style="background: #2f4f4f;">&nbsp;</option>
      <option value="#696969" style="background: #696969;">&nbsp;</option>
      <option value="#808080" style="background: #808080;">&nbsp;</option>
      <option value="#c0c0c0" style="background: #c0c0c0;">&nbsp;</option>
      <option value="#ffffff" style="background: #ffffff;">&nbsp;</option>
      </select>

    </td>
    <td nowrap="nowrap" class="smallfont">

      <a href="shoutbox/shoutarchive.php" target="_blank">$vboptions[ddsb_archive]</a>

    </td>
    </tr>
    </table>

    </div>

    <input type="hidden" id="bodyb" value="0">
    <input type="hidden" id="bodyi" value="0">
    <input type="hidden" id="bodyu" value="0">
    <input type="hidden" id="bodycolor" value="0">
    <input type="hidden" id="bodystyle" value="0">

    </form>

    <iframe src="shoutbox/shoutdiv.php" width="$vboptions[ddsb_iwidth]" height="$vboptions[ddsb_iheight]" scrolling="auto" frameborder="0">
    Browser does not support iframes
    </iframe>
    
  </td>
</tr>
</table>
<br />
</if>
<!-- end Dion Dev Shoutbox v2.1 -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,816KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete