Thread: Chestnut Style
View Single Post
  #232  
Old 03-13-2007, 07:31 PM
2meplie 2meplie is offline
 
Join Date: Nov 2006
Location: Quebec city, Qc, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok guys I need help ASAP.

I added a new button for a link to the chatroom I want to add. Here is the code I added:

<!-- Chat -->
<td width="80">
<table width="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="background:#FFFFFF url($stylevar[imgdir_misc]/bouton_chat.gif);">
<a href="$vboptions[bburl]/" rel="nofollow"
onmouseover="JSFX.fadeIn('chat')"
onmouseout="JSFX.fadeOut('chat')"><img
src="$stylevar[imgdir_misc]/bouton_chat.gif" name="chat" width="80" height="40" border="0" class="imgFader" id="chat" alt="" /></a></td>
</tr>
</table>
</td>
<!-- /Chat -->

Now, here are the chat company's instructions. I don't understand how to do this since I am on a custom style.

Step 8.1.

Scroll (or use your browser's Find feature) to find the following code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl_q]">$vbphrase[calendar]</a></td>

Just below the above code, add the following:

<!-- START NEW PARACHAT CODE -->
<td id="chat" class="vbmenu_control">
<a href="$show[nojs_link]#usercptools">$vbphrase[parachat_link]</a> <script type="text/javascript"> vbmenu_register("chat"); </script></td>
<!-- STOP NEW PARACHAT CODE -->

Step 8.2.

Scroll (or use your browser's Find feature) to find the following code:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

Just below the above code, add the following:

<!-- START NEW PARACHAT CODE -->
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['member']">
<!-- chat menu -->
<div class="vbmenu_popup" id="chat_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="vbmenu_control"><a href="chat.php?$session[sessionurl]">$vbphrase[parachat_embed]</a></td></tr>
<tr><td class="vbmenu_control"><a href="chat.php?$session[sessionurl]&do=popup" target="parachat" onClick="window.open('chat.php?$session[sessionurl]&do=popup', 'parachat', 'width=600,height=400,status=no,scrollbars=no,menu bar=no,resizable=yes'); return false"> $vbphrase[parachat_popup]</a></td></tr>
</table>
</div>
<!-- / chat menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
<!-- STOP NEW PARACHAT CODE -->

Then, after that, I want to be able to display the number of users chatting. I need to do that:

Double-click on navbar to edit the template. Scroll (or use your browser's Find feature) to find the following code:

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

Just below the above code, add the following code.

<!-- New ParaChat Code -->
<br>$vbphrase[parachat_chatting]
<!-- Begin Counter Code -->
<applet codebase="http://host7.parachat.com/pchat/applet"
archive=counter.jar code="count.ChatCounter.class" width=20 height=10>
<param name="query.Site" value="$vbphrase[parachat_siteid]">
<param name="ui.bg" value="E1E4F2">
<param name="ui.fg" value="000000">
<param name="ui.FontSize" value="12">
<param name="ui.FontName" value="Arial">
Sorry, your browser is not Java enabled, please visit
<a href="http://www.parachat.com/faq/java.html">our java support pages
</applet>
<!-- End Counter Code -->
<!-- End New Code -->

Can someone help?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01023 seconds
  • Memory Usage 1,781KB
  • 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)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