سلام ، آیا این بازدید اول شماست ؟ یا
نمایش نتایج: از شماره 1 تا 7 , از مجموع 7

موضوع: گذاشتن کد جاوا در vbulletin

  1. #1

    تاریخ عضویت
    Mar 2007
    نوشته ها
    395
    تشکر
    0
    تشکر شده 1 بار در 1 ارسال

    گذاشتن کد جاوا در vbulletin

    این کد رو چطوری تو قالب وی بولتین بزارم به شکلی که داخل یه باکس زیر منوی اصلی انجمن باشه.
    کد:
    <script language="JavaScript" src="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] type="text/javascript"></script>

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  2. # ADS
    تبلیغات در جوملا فارسی
    تاریخ عضویت
    Always
    نوشته ها
    Many
     

  3. #2
    Team
    تاریخ عضویت
    Jan 2006
    نوشته ها
    9,560
    تشکر
    176
    تشکر شده 1,087 بار در 724 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    در فایل index.template.php بعد از عبارت

    meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

    کد را بگذارید

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  4. #3

    تاریخ عضویت
    Mar 2007
    نوشته ها
    395
    تشکر
    0
    تشکر شده 1 بار در 1 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    با نصب بسته ها قالب من عوض شده. این کد نیست!!
    کد:
    <?php
    // Version: 1.1; index
    
    /*	This template is, perhaps, the most important template in the theme. It
    	contains the main template layer that displays the header and footer of
    	the forum, namely with main_above and main_below. It also contains the
    	menu sub template, which appropriately displays the menu; the init sub
    	template, which is there to set the theme up; (init can be missing.) and
    	the linktree sub template, which sorts out the link tree.
    
    	The init sub template should load any data and set any hardcoded options.
    
    	The main_above sub template is what is shown above the main content, and
    	should contain anything that should be shown up there.
    
    	The main_below sub template, conversely, is shown after the main content.
    	It should probably contain the copyright statement and some other things.
    
    	The linktree sub template should display the link tree, using the data
    	in the $context['linktree'] variable.
    
    	The menu sub template should display all the relevant buttons the user
    	wants and or needs.
    
    	For more information on the templating system, please see the site at:
    	[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    */
    
    // Initialize the template... mainly little settings.
    function template_init()
    {
    	global $context, $settings, $options, $txt;
    
    	/* Use images from default theme when using templates from the default theme?
    		if this is 'always', images from the default theme will be used.
    		if this is 'defaults', images from the default theme will only be used with default templates.
    		if this is 'never' or isn't set at all, images from the default theme will not be used. */
    	$settings['use_default_images'] = 'never';
    
    	/* What document type definition is being used? (for font size and other issues.)
    		'xhtml' for an XHTML 1.0 document type definition.
    		'html' for an HTML 4.01 document type definition. */
    	$settings['doctype'] = 'xhtml';
    
    	/* The version this template/theme is for.
    		This should probably be the version of SMF it was created for. */
    	$settings['theme_version'] = '1.1';
    
    	/* Set a setting that tells the theme that it can render the tabs. */
    	$settings['use_tabs'] = true;
    
    	/* Use plain buttons - as oppossed to text buttons? */
    	$settings['use_buttons'] = true;
    
    	/* Show sticky and lock status seperate from topic icons? */
    	$settings['seperate_sticky_lock'] = true;
    }
    
    // The main sub template above the content.
    function template_main_above()
    {
    	global $context, $settings, $options, $scripturl, $txt, $modSettings;
    
    	// Show right to left and the character set for ease of translating.
    	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    <html xmlns="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید], $context['right_to_left'] ? ' dir="rtl"' : '', '>
    <head>
    <style>
    a { text-decoration: none }
    </style>
    	<meta content="index , follow" name="robots" />
    	<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />';
    echo (!empty($modSettings['meta_description'])) ? '	<meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />', empty($context['robot_no_index']) ? '' : '
    	<meta name="robots" content="noindex" />';
    echo (!empty($modSettings['meta_keywords'])) ? '
    	<meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
    echo (!empty($modSettings['meta_copyright'])) ? '
    	<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
    echo (!empty($modSettings['meta_author'])) ? '
    	<meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
    echo '
    	<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
    	<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    		var smf_theme_url = "', $settings['theme_url'], '";
    		var smf_images_url = "', $settings['images_url'], '";
    		var smf_scripturl = "', $scripturl, '";
    		var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
    		var smf_charset = "', $context['character_set'], '";
    	// ]]></script>
    	<title>', $context['page_title'], '</title>';
    
    
    // IF WE HAVE AN ICON, SHOW IT
    if ((!empty($settings['header_icon_url'])) && (!empty($settings['header_icon_type']))) {
    	
    	if ($settings['header_icon_type'] == 0) {
    		// ICO SO USE THE OLD FASHIONED CODE
    	 echo '
    	 <link rel="shortcut icon" type="image/x-icon" href="' , $settings['header_icon_url'] , '"/>';
    	} else {
    		// ELSE ITS A NEWER ICON FOR MODERN BROWSERS (GIF/PNG)
    		echo '
    		<link rel="icon" type="image/' , ($settings['header_icon_type'] == 1) ? 'gif' : 'png' , '" href="' , $settings['header_icon_url'] , '"/>';
    	}	
    }
    
    		// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
    	echo '
    	<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
    		<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
    
    	/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
    		Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
    		Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
    		Standards compliance mode happens when you use xhtml... */
    	if ($context['browser']['needs_size_fix'])
    		echo '
    	<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
    
    	// Show all the relative links, such as help, search, contents, and the like.
    	echo '
    	<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
    	<link rel="search" href="' . $scripturl . '?action=search" />
    	<link rel="contents" href="', $scripturl, '" />';
    
    	// If RSS feeds are enabled, advertise the presence of one.
    	if (!empty($modSettings['xmlnews_enable']))
    		echo '
    	<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
    
    	// If we're viewing a topic, these should be the previous and next topics, respectively.
    	if (!empty($context['current_topic']))
    		echo '
    	<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
    	<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
    
    	// If we're in a board, or a topic for that matter, the index will be the board's index.
    	if (!empty($context['current_board']))
    		echo '
    	<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
    
    	// We'll have to use the cookie to remember the header...
    	if ($context['user']['is_guest'])
    		$options['collapse_header'] = !empty($_COOKIE['upshrink']);
    
    	// Output any remaining HTML headers. (from mods, maybe?)
    	echo $context['html_headers'], '
    
    	<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    		var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
    
    		function shrinkHeader(mode)
    		{';
    
    	// Guests don't have theme options!!
    	if ($context['user']['is_guest'])
    		echo '
    			document.cookie = "upshrink=" + (mode ? 1 : 0);';
    	else
    		echo '
    			smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
    
    	echo '
    			document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
    
    			document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
    			document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
    
    			current_header = mode;
    		}
    	// ]]></script>';
    
    	// the routine for the info center upshrink
    	echo '
    		<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    			var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
    
    			function shrinkHeaderIC(mode)
    			{';
    
    	if ($context['user']['is_guest'])
    		echo '
    				document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
    	else
    		echo '
    				smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
    
    	echo '
    				document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
    
    				document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
    
    				current_header_ic = mode;
    			}
    		// ]]></script>
    
    ';
    
    echo '
    
    
    <script type="text/javascript" src="', $settings['theme_url'], '/menu.js"></script>
    <script type="text/javascript" src="', $settings['theme_url'], '/global.js"></script>
    </STYLE>';
    echo'
    
    <SCRIPT type=text/javascript>
    
    var IMGDIR_MISC = "', $settings['images_url'], '";
    
    </SCRIPT>';
    
    echo'
    <SCRIPT type=text/javascript>
    
    <!--
    function log_out()
    {
    	ht = document.getElementsByTagName("html");
    	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
    	if (confirm(' , $txt[108] , '))
    	{
    		return true;
    	}
    	else
    	{
    		ht[0].style.filter = "";
    		return false;
    	}
    }
    //-->
    </SCRIPT>
    </head>
    <body>
    
    ';
    
    //Yararl‎ linkler menüsü by Turklord
    echo'
    	<div class="tborder"	id="usercptools_menu" style="display:none">
    		<table dir="rtl" cellpadding="4" cellspacing="1" border="0">
    		
    		<tr><td class="yararli_link">لينك هاي روزانه</td></tr>		
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="', $scripturl, '?action=unread">پيغام هاي جديد</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="', $scripturl, '?action=unreadreplies">موضوعات به روز شده </a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">موضوعات جديد ارسال شده </a></td></tr>
    		
    		<tr><td class="yararli_link"><a href="', $scripturl, '?action=profile">بخش كاربري</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . ';sa=account">تنظيمات کاربري</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . ';sa=forumProfile">مشخصات شخصي</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff; border-bottom:1px solid #ffffff;"	class="vbmenu_option"><a href="' . $scripturl . '?action=profile;u=' . $context['member']['id'] . ';sa=theme">تنظيمات عمومي انجمن ها</a></td></tr>
    		
    		<tr><td class="yararli_link">نويسنده</td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="', $scripturl, '?action=pm">پيغام ها</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;" class="vbmenu_option"><a href="', $scripturl, '?action=stats">آمار انجمن</a></td></tr>
    		<tr><td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"	 class="vbmenu_option"><a href="' . $scripturl . '?action=who">چه کسي در سايت است؟</a></td></tr>
    		
    		
    		</table>
    	</div>	';
    //H‎zl‎ arama by Turklord
    echo'
    	<div class="tborder" id="navbar_search_menu" style="display:none">
    	
    		<table dir="rtl" cellpadding="4" cellspacing="1" border="0">
    		<tr>
    			<td class="yararli_link">جستجو</td>
    		</tr>
    		<tr>
    			<td class="windowbg" title="">
    <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
    
    				<div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" />
    
    				
    			<input type="submit" class="button" value="بياب" tabindex="1004" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" /></div>
    			<input type="hidden" name="advenced" value="0" size="25" tabindex="1001">
    			</td>
    		</tr>
    		
    			<tr>			<td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"	 class="vbmenu_option"><a href="', $scripturl, '?action=search;advanced" accesskey="4" rel="nofollow">جستجوي پيشرفته</a></td>
    		</tr>
    		</table>
    		</form>
    	</div>';
    
    echo'
    <table dir="rtl" border="0" width="100%" cellpadding="0" cellspacing="0" >
    <tr>
    	<td align="right"><img src="', $settings['images_url'], '/logo.gif" ></td></tr></table>
    ';
    
    	// The main content should go here.
    	echo '
    
    	<div class="xborder" id="bodyarea" style="padding: 3ex 25px 2ex 25px; background: #ffffff;">';
    
    	// display user name
    	echo '
    <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
    		<table dir="rtl" width="100%" align="center" cellspacing="0" cellpadding="4" style="BORDER-BOTTOM: #0B198C 1px solid;" border="0" >
    			<tr>';
    			
    	echo '
    							<td class="windowbg2" width="100%" valign="middle" align="right">
    							', theme_linktree(), '
    							</td>';
    
    	echo '
    						<td	valign="middle" class="windowbg"><span class="middletext" style="display:block;width:280px;">';
    // display user name
    	
    	if($context['user']['is_logged'])
    		echo '
    				<font style="font-size: 8pt">
    					<span style="font-size: 100%;"> ', $txt['hello_member_ndt'], ' <font style="font-size: 8pt" color="#000000"><b>', $context['user']['name'] , '</b></font></span><br>
    			';
    
    			
    // Only tell them about their messages if they can read their messages!
    if ($context['allow_pm'])
    echo '', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
    echo'<br />
    		
    ';
    		
    	// Now, onto our second set of info, are they logged in again?
    	if ($context['user']['is_logged'])
    	{
    		// Is the forum in maintenance mode?
    		if ($context['in_maintenance'] && $context['user']['is_admin'])
    			echo '
    								<b>', $txt[616], '</b><br />';
    
    		// Are there any members waiting for approval?
    		if (!empty($context['unapproved_members']))
    			echo '
    								', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
    
    		// Show the total time logged in?
    		if (!empty($context['user']['total_time_logged_in']))
    		{
    			echo '
    								', $txt['totalTimeLogged1']; echo' <br> ';
    
    			// If days is just zero, don't bother to show it.
    			if ($context['user']['total_time_logged_in']['days'] > 0)
    				echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
    
    			// Same with hours - only show it if it's above zero.
    			if ($context['user']['total_time_logged_in']['hours'] > 0)
    				echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
    
    			// But, let's always show minutes - Time wasted here: 0 minutes ;).
    			echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
    		}
    		echo '				</span>';
    
    
    	}
    
    
    	// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
    	else
    	{
    		echo '
    								 <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
    								 <form action="', $scripturl, '?action=login2" method="post" class="smalltext" style="margin: 0px 0ex 0px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
    																					 <table dir="rtl" border="0" cellpadding="0" cellspacing="0" >
    																					 <tr><td valign="middle" style="font-size: 8pt;" align="right">',$txt[35],':</td>
    																					 <td><input type="text" name="user" size="11" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" /></td>
    																	 <td align="right" style="font-size: 8pt;"><input type="checkbox" name="cookieneverexp"', $context['never_expire'] ? ' checked="checked"' : '', ' class="check" onclick="this.form.cookielength.disabled = this.checked;" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" />ذخيره؟</td><tr>
    																					 <tr> <td align="right" style="font-size: 8pt;">',$txt[36],':</td>
    																					 <td><input type="password" name="passwrd" size="11"onKeyDown="FKeyDown();" onkeypress="FKeyPress();"	/></td>
    																					 <td align="right" style="font-size: 8pt;"><input type="submit" value="', $txt[34], '" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" /></td></tr>
    																 </form></tr></table>';								
    	}
    
    echo'
    </TR></table>';
    
    	echo '
    		<table dir="rtl" id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
    			<tr>';
    
    
    	echo '
    				<td height="10" width="100%" class="navwrap">
    					', template_menu(), '
    				</td>';
    
    	echo '
    			</tr>
    		</table>
    	</div>';
    		
    	// The main content should go here.
    	echo '
    	<div id="bodyarea" style="padding: 3ex 0px 2ex 0px;">';
    
    
    
    
    
    }
    
    function template_main_below()
    {
    	global $context, $settings, $options, $scripturl, $txt;
    
    	echo '
    	</div>';
    echo '
    	</div>';
    echo'
    <table dir="rtl" cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
    <td height="30" width="100%" class=titlebg>';
    
    
    	// Is the user allowed to administrate at all? ([admin])
    	if ($context['allow_admin'])
    		echo '
    				<td	align="left" class="titlebg"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
    echo'
    
    
    				
    </td>
    </table>';
    	// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
    	echo '
    
    	<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
    		<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    			function smfFooterHighlight(element, value)
    			{
    				element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
    			}
    		// ]]></script>
    		<table dir="rtl" cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
    			<tr>
    				<td valign="middle" align="center" style="white-space: nowrap;">
    					', theme_copyright(), '
    					<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
    				<br></br><div style="text-align: center; font-size: smaller;"><a href="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] از مطالب این سایت فقط با ذکر منبع Ùˆ لینک مربوطه مجاز Ù…ÛŒ باشد Copyright 2007©age21.ir Inc All rights reserved</a></div>
    <br>
    <!-- Begin WebGozar.com Counter code -->
    <script language="javascript" src="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    <!-- End WebGozar.com Counter code -->
    				</td>
    			</tr>
    		</table>';
    
    		// Show the load time?
    	if ($context['show_load_time'])
    		echo '
    		<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
    
    	// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
    	if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
    	{
    		// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
    		echo '
    		<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
    
    		// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
    		if ($context['browser']['is_safari'])
    			echo '
    			window.addEventListener("load", smf_codeFix, false);
    
    			function smf_codeFix()
    			{
    				var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
    
    				for (var i = 0; i < codeFix.length; i++)
    				{
    					if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
    						codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
    				}
    			}';
    		elseif ($context['browser']['is_firefox'])
    			echo '
    			window.addEventListener("load", smf_codeFix, false);
    			function smf_codeFix()
    			{
    				var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
    
    				for (var i = 0; i < codeFix.length; i++)
    				{
    					if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
    						codeFix[i].style.overflow = "scroll";
    				}
    			}';			
    		else
    			echo '
    			var window_oldOnload = window.onload;
    			window.onload = smf_codeFix;
    
    			function smf_codeFix()
    			{
    				var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
    
    				for (var i = codeFix.length - 1; i > 0; i--)
    				{
    					if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
    						codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
    				}
    
    				if (window_oldOnload)
    				{
    					window_oldOnload();
    					window_oldOnload = null;
    				}
    			}';
    
    		echo '
    		// ]]></script>';
    	}
    
    	echo '
    	</div>';
    
    
    	// The following will be used to let the user know that some AJAX process is running
    	echo '<SCRIPT type=text/javascript>vBulletin_init();</SCRIPT>
    	<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
    </body></html>';
    }
    
    // Show a linktree (vB Clone). This is that thing that shows "My Community | General Category | General Discussion"..
    function theme_linktree()
    {
    		 global $context, $settings, $options;
    
    		 // Folder style or inline? Inline has a smaller font.
    		 echo '<span class="nav-tree">';
    		
    		echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
    
    		 // Each tree item has a URL and name. Some may have extra_before and extra_after.
    		 foreach ($context['linktree'] as $link_num => $tree)
    		 {
    					 // Show something before the link?
    					 if (isset($tree['extra_before']))
    								echo $tree['extra_before'];
    
    					 if (($link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
    								echo '<br />
    						<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="" border="0" /> ';
    
    					 // Show the link, including a URL if it should have one.
    					 echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav-tree">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
    
    					 // Show something after the link...?
    					 if (isset($tree['extra_after']))
    								echo $tree['extra_after'];
    
    					 // Don't show a separator for the last one.
    					 if ($link_num < count($context['linktree']) - 2)
    								echo ' » ';
    
    		 }
    
    		 echo '</span>';
    }
    
    // Show the menu up top. Something like [home] [help] [profile] [logout]...
    function template_menu()
    {
    	
    global $context, $settings, $options, $scripturl, $txt;
    
    	// Work out where we currently are.
    	$current_action = 'home';
    	if (in_array($context['current_action'], array('admin', 'managegames', 'arcadesettings', 'arcadecategory', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
    		$current_action = 'admin';
    	if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
    		$current_action = $context['current_action'];
    	if ($context['current_action'] == 'search2')
    		$current_action = 'search';
    	if ($context['current_action'] == 'theme')
    		$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
    
    
    	// Show the start of the tab section.
    	echo '
    			<table dir="rtl" width="95%" cellpadding="0" cellspacing="0" border="0">
    				<tr>';
    				
    	// Show the site link.
    	echo '<li '.(isset($site) ? $site : '').'><a href="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] به سایت' , '</a></li>';
    
    	// Show the [home] button.
    	echo '
    			<td align="center"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';
    
    	// Show the [help] button.
    	echo '
    			<td align="center"><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></td>';
    
    
    
    		
    				
    
    	// Edit Profile... [profile]
    	if ($context['allow_edit_profile'])
    		echo '
    				<td align="center"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></td>';
    				
    
    	// Go to PM center... [pm]
    	if ($context['user']['is_logged'] && $context['allow_pm'])
    			echo '
    				<td align="center"><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></td>';
    				
    
    	// The [calendar]!
    	if ($context['allow_calendar'])
    		echo '
    				<td align="center" ><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></td>';
    
    	// the [member] list button
    	if ($context['allow_memberlist'])
    		echo '
    				<td valign="top" align="center"><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>     </td>';
    		 echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
    			<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
    				<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
    			</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '"> </td>' : '';// How about the [search] button?
    	if ($context['allow_search'])
    		echo '
    				<td align="center" id="navbar_search" >
    					<a href="' . $scripturl . '#Turklord" rel="nofollow">جستجو</a><script type="text/javascript"> vbmenu_register("navbar_search"); </script>     </td>';
    
    if ($context['user']['is_logged'])
    		echo'	 
    
    	 <TD id=usercptools><A href="' . $scripturl . '#Turklord">لينكهاي سريع</A>
    		<SCRIPT type=text/javascript> vbmenu_register("usercptools"); </SCRIPT></td>';
    		 
    
    
    	// If the user is a guest, show [login] button.
    	if ($context['user']['is_guest'])
    		echo '
    				<td align="center"><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></td>';
    
    
    	// If the user is a guest, also show [register] button.
    	if ($context['user']['is_guest'])
    		echo '
    				<td align="center"><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></td>';
    
    
    	// Otherwise, they might want to [logout]...
    	if ($context['user']['is_logged'])
    		echo '
    				<td align="center"><a onclick="return log_out()" href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></td>';
    
    	// The end of tab section.
    	echo '
    			</tr>
    		</table>';
    
    
    
    }
    
    // Generate a strip of buttons.
    function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
    {
    	global $settings, $buttons, $context, $txt, $scripturl;
    
    	// Create the buttons...
    	foreach ($button_strip as $key => $value)
    	{
    		if (isset($value['test']) && empty($context[$value['test']]))
    		{
    			unset($button_strip[$key]);
    			continue;
    		}
    		elseif (!isset($buttons[$key]) || $force_reset)
    			$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
    
    		$button_strip[$key] = $buttons[$key];
    	}
    
    	if (empty($button_strip))
    		return '<td> </td>';
    
    	echo '
    		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
    		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode('  |  ', $button_strip) , '</td>
    		<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
    }
    
    ?>
    <div id="info"><div id="infobar"><a href="index.php?action=register">       برای استفاده از تمامی امکانات <font color="#FF0000"> انجمن بانک مقالات و کتاب های فارسی Age21 </font>می بایست عضو سایت شوید. برای عضویت <font color="#FF0000">اینجا </font> کلیک کنید.</a></div></div>

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  5. #4
    Team
    تاریخ عضویت
    Jan 2006
    نوشته ها
    9,560
    تشکر
    176
    تشکر شده 1,087 بار در 724 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    زیر این خط بزارید:
    کد:
    	<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    		var smf_theme_url = "', $settings['theme_url'], '";
    		var smf_images_url = "', $settings['images_url'], '";
    		var smf_scripturl = "', $scripturl, '";
    		var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
    		var smf_charset = "', $context['character_set'], '";
    	// ]]></script>

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  6. #5

    تاریخ عضویت
    Mar 2007
    نوشته ها
    395
    تشکر
    0
    تشکر شده 1 بار در 1 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    [quote author=nabegheyegharne link=topic=9693.msg52878#msg52878 date=1193705050]
    ن کد رو چطوری تو قالب وی بولتین بزارم به شکلی که داخل یه باکس زیر منوی اصلی انجمن باشه.
    [/quote]

    نشد خودتون ببینید چه شکلی شده!!!!

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  7. #6
    Team
    تاریخ عضویت
    Jan 2006
    نوشته ها
    9,560
    تشکر
    176
    تشکر شده 1,087 بار در 724 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    [quote author=nabegheyegharne link=topic=9693.msg53125#msg53125 date=1193974030]
    [quote author=nabegheyegharne link=topic=9693.msg52878#msg52878 date=1193705050]
    ن کد رو چطوری تو قالب وی بولتین بزارم به شکلی که داخل یه باکس زیر منوی اصلی انجمن باشه.
    [/quote]

    نشد خودتون ببینید چه شکلی شده!!!!
    [/quote]
    برای زیر منو ایجاد کردن گذاشتن کد کافی نیست و باید کد نویسی نمایید

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  8. #7

    تاریخ عضویت
    Mar 2007
    نوشته ها
    395
    تشکر
    0
    تشکر شده 1 بار در 1 ارسال

    پاسخ : گذاشتن کد جاوا در vbulletin

    متوجه منظورم نشدید.زیر منو نمی خوام. فقط می خوام کد در پایین منوی اصلی یا هر جایی که شکل قالب خوب به نظر برسه محتویات نمایش داده بشه مثلا داخل یه باکس.

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


موضوعات مشابه

  1. کوچ از vbulletin به smf
    توسط mehrdad_menay در انجمن نصب ، ارتقا و تبدیل SMF
    پاسخ ها: 4
    آخرين نوشته: 02-28-2009, 09:24 AM
  2. تفاوت های Vbulletin و smf چیست؟
    توسط zomorod در انجمن هماهنگ سازی و مجتمع کردن SMF با پرتالها
    پاسخ ها: 9
    آخرين نوشته: 02-26-2009, 03:55 AM
  3. يه ماژول براي آخرين ارسال هاي vBulletin تو مامبو مي خوام
    توسط bootable در انجمن ماژول های مامبو فارسی
    پاسخ ها: 4
    آخرين نوشته: 10-08-2007, 06:18 PM

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •