Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2008, 07:59 AM
Frank Sinatra's Avatar
Frank Sinatra Frank Sinatra is offline
 
Join Date: Nov 2008
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Menu in header

Hello, I am trying to put a menu in the head of my forum, using the program s Sothink Dhtml Menu.

The indications are these:
Code:
Copy and paste this code within <HEAD> tag of your web page
<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
 st_siteroot="web/script/menu";
 st_jspath="/stmenu.js";
 if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
  document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
 else 
  document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>
Then says this:
Code:
Copy and paste this code within <BODY> tag of your web page
<script type="text/javascript" src="web/script/menu/stmenu.js"></script>

How is it the method to do this well?
I have a complete day trying it and nothing
hope you can helpme please..

Thank you for any help!
Reply With Quote
  #2  
Old 11-27-2008, 03:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are wondering how to post it into the <body> tag? You can place it in the navbar template - at the very top - and then it will be in the body tag for all pages that have a navbar.
Reply With Quote
  #3  
Old 11-28-2008, 01:11 PM
Frank Sinatra's Avatar
Frank Sinatra Frank Sinatra is offline
 
Join Date: Nov 2008
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for your response

Still im adapting a design, just working with the complete xml, my problem is that i cant make work the drop-down menu, i put the codes as it indicates, but never show the menu
only the forum background
Maybe i need to do another procedure, but dont know how

hope someone can helpme


This one is the skin, the menu is in a red box, for now it is working only as normal buttons
Attached Images
File Type: jpg style_hsf.jpg (38.0 KB, 0 views)
Reply With Quote
  #4  
Old 11-28-2008, 01:34 PM
Guest210212002
Guest
 
Posts: n/a
Default

If you view the source of any of your pages, is the .js call in there? Also, you might try using a complete URL for it, eg:

Code:
<script type="text/javascript" src="http://www.yoursite.com/web/script/menu/stmenu.js"></script>
In case the path is incorrect.
Reply With Quote
  #5  
Old 11-28-2008, 04:01 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try....
Quote:
Originally Posted by Frank Sinatra View Post
Code:
<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
 st_siteroot="web/script/menu";
 st_jspath="/stmenu.js";
 if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
  document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
 else 
  document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>
post in headinclude template

Quote:
Originally Posted by Frank Sinatra View Post
Code:
<script type="text/javascript" src="web/script/menu/stmenu.js"></script>
post in header or navbar template
Reply With Quote
  #6  
Old 11-30-2008, 05:26 PM
Frank Sinatra's Avatar
Frank Sinatra Frank Sinatra is offline
 
Join Date: Nov 2008
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to all, nothing works, i give up

thanks a lot
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 08:14 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.05954 seconds
  • Memory Usage 2,230KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (6)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_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