Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2010, 03:03 AM
JohnnyNorCal JohnnyNorCal is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Chatbox in the header?

Hi There,

Every year I purchase the rights to a chatbox (shoutmix.com).

I would like to be able to insert this "chatbox" at the top of my website on every page (Homepage, Forums, etc)

My Question is this, Shoutmix gives me a code to insert into the html source code but I am not sure where to place the code to get it to show up where I want it. Where would I place this code?

I want my chatbox to appear just below the Main Logo in the heading area. Right now I have the vBulletin Logo but will be replacing this with a banner soon). Basically I want my chatbox to appear just below the vBulletin Logo, which would be just sitting above the Navigation Bar.

Most likely this code would be placed in the header area or headinline area in the "styles manager" of the admin cp. But there is a lot of code there and i'm not sure where exactly to place my code.

If anyone has some advanced coding experience I could use your help.
Reply With Quote
  #2  
Old 06-06-2010, 10:44 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnnyNorCal View Post
Hi There,

Every year I purchase the rights to a chatbox (shoutmix.com).

I would like to be able to insert this "chatbox" at the top of my website on every page (Homepage, Forums, etc)

My Question is this, Shoutmix gives me a code to insert into the html source code but I am not sure where to place the code to get it to show up where I want it. Where would I place this code?

I want my chatbox to appear just below the Main Logo in the heading area. Right now I have the vBulletin Logo but will be replacing this with a banner soon). Basically I want my chatbox to appear just below the vBulletin Logo, which would be just sitting above the Navigation Bar.

Most likely this code would be placed in the header area or headinline area in the "styles manager" of the admin cp. But there is a lot of code there and i'm not sure where exactly to place my code.

If anyone has some advanced coding experience I could use your help.
It would help if you posted the code that they gave you and a screnshot of the area where you want to add it.
Reply With Quote
  #3  
Old 06-06-2010, 11:29 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
It would help if you posted the code that they gave you and a screnshot of the area where you want to add it.
Agreed

Just saying you want to add it Here etc.. not very helpful
Reply With Quote
  #4  
Old 06-10-2010, 04:43 AM
JohnnyNorCal JohnnyNorCal is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could see how that could help, sorry about that!

Here is the iframe code...

Code:
<!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="hotspotcafe" src="http://www6.shoutmix.com/?hotspotcafe" width="160" height="400" frameborder="0" scrolling="auto">
<a href="http://www6.shoutmix.com/?hotspotcafe">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix -->
And attached is the area I want it to be located on all pages. Just below the logo and above the navbar in the header area. Obviously it will stretch my headers height.

I just need to know where to place the code?
Attached Images
File Type: jpg vbulletinSnap.JPG (40.1 KB, 0 views)
Reply With Quote
  #5  
Old 06-10-2010, 01:26 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnnyNorCal View Post
I could see how that could help, sorry about that!

Here is the iframe code...

Code:
<!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="hotspotcafe" src="http://www6.shoutmix.com/?hotspotcafe" width="160" height="400" frameborder="0" scrolling="auto">
<a href="http://www6.shoutmix.com/?hotspotcafe">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix -->
And attached is the area I want it to be located on all pages. Just below the logo and above the navbar in the header area. Obviously it will stretch my headers height.

I just need to know where to place the code?

At the header template find the following code:

HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>

And right after it, add this code:

HTML Code:
<br /><br /><br /><br /><div><!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="hotspotcafe" src="http://www6.shoutmix.com/?hotspotcafe" width="160" height="100" frameborder="0" scrolling="auto">
<a href="http://www6.shoutmix.com/?hotspotcafe">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix --></div>

I changed the height because the way you had it, it would have blown the header way out of propotion. Here can be seen the end result witht he shoutbox right under the logo as you wanted it. Hope it helps.
Attached Images
File Type: png Forums_1276179903578.png (21.9 KB, 0 views)
Reply With Quote
  #6  
Old 06-10-2010, 05:53 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
At the header template find the following code:

HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div

And right after it, add this code:

HTML Code:
<br /><br /><br /><br /><div><!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="hotspotcafe" src="http://www6.shoutmix.com/?hotspotcafe" width="160" height="100" frameborder="0" scrolling="auto">
<a href="http://www6.shoutmix.com/?hotspotcafe">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix --></div>

I changed the height because the way you had it, it would have blown the header way out of propotion. Here can be seen the end result witht he shoutbox right under the logo as you wanted it. Hope it helps.
left off the closeing >

HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
Reply With Quote
  #7  
Old 06-10-2010, 07:00 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for correcting my typo Updated the post with the closing angel bracket.
Reply With Quote
  #8  
Old 06-10-2010, 10:02 PM
JohnnyNorCal JohnnyNorCal is offline
 
Join Date: Jun 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much for your help, I really appreciate it.

Most likely I'll be changing the dimensions a bit, the dimensions I posted originally were just the default set.

Now what if I wanted to center it?

I'm not sure if I want the chat box to be centered with absolute dimensions or if I want it to be liquid and stretch with the users browser size. But if I did want absolute dimensions, is there a way to center it?

Thanks again guys, your a real help!
Reply With Quote
  #9  
Old 06-18-2010, 02:30 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnnyNorCal View Post
Thanks so much for your help, I really appreciate it.

Most likely I'll be changing the dimensions a bit, the dimensions I posted originally were just the default set.

Now what if I wanted to center it?

I'm not sure if I want the chat box to be centered with absolute dimensions or if I want it to be liquid and stretch with the users browser size. But if I did want absolute dimensions, is there a way to center it?

Thanks again guys, your a real help!
Yes, of course you can center it. Use this code to do it:

HTML Code:
<br /><br /><br /><br /><div style="text-align:center"><!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="hotspotcafe" src="http://www6.shoutmix.com/?hotspotcafe" width="160" height="100" frameborder="0" scrolling="auto">
<a href="http://www6.shoutmix.com/?hotspotcafe">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix --></div>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04244 seconds
  • Memory Usage 2,290KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (6)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete