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

موضوع: کد استثنایی ستونی کردن زیر انجمنها

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1

    تاریخ عضویت
    Aug 2008
    نوشته ها
    62
    تشکر
    0
    تشکر شده 0 بار در 0 ارسال

    کد استثنایی ستونی کردن زیر انجمنها

    منبع این کد فقط: [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]

    [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
    میباشد




    ابتدا این کدو پیدا کنید:
    کد:
    				// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
    				if (!empty($board['children']))
    				{
    					// Sort the links into an array with new boards bold so it can be imploded.
    					$children = array();
    					/* Each child in each board's children has:
    							id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
    					foreach ($board['children'] as $child)
    					{
    	 						$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
    	                        $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link'];				}
    
    					echo '
    					<table dir="rtl" style="10px;"width="100%" cellspacing="0" cellpadding="0"border="0">
    						<tr>
    							<br><font style="font-size: 8pt;"><i><b>', $txt['parent_boards'], ':</b></i></font><td class="middletext" valign="middle"align="center">';		
    		            $child_counter = 0;
    					
    			
    					
    					echo '
    							</td>
    							<td class="smalltext" valign="middle">';	
    								for(; $child_counter < count($children); $child_counter++)
    										echo $children[$child_counter], '   ';
    					echo '
    							</td>
    						</tr>
    					</table>';
    				}
    حذفش کنید و این کدو بجاش قرار بدین:
    کد:
    							 // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
    				if (!empty($board['children']))
    				{
    					// Sort the links into an array with new boards bold so it can be imploded.
    					$children = array();
    					/* Each child in each board's children has:
    							id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
    					foreach ($board['children'] as $child)
    					{
    							 $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
    																	$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link'];				}
    
    					echo '
    
    					<table dir="rtl" style="15px;"width="100%" cellspacing="0" cellpadding="0"border="0">
    						<tr>
    							<br><i><p align="right">', $txt['parent_boards'], ':</p></i><td class="middletext" valign="middle"align="center">';		
    										$child_counter = 0;
    					
    					if(empty($settings['child_boards_rows']))
    					{
    						echo '	
    							</td><br>
    
    							<td class="middletext" valign="top">';
    								
    								for(; $child_counter < ceil(count($children)/2); $child_counter++)
    										echo $children[$child_counter], '<br/>';
    					}
    					
    					echo '
    							</td>
    							<td class="middletext" valign="top">';	
    								for(; $child_counter < count($children); $child_counter++)
    										echo $children[$child_counter], '<br/>';
    					echo '
    							</td>
    						</tr>
    					</table><br>';
    				}

    به عنوان مثال شما میتونید این کدو روی قالب ویبولتین امتحان کنید

    کد هیچ مشکلی نداره

    موفق باشید

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


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

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

  1. عدم توانایی دربرقراری ارتباط با دیتا بیس
    توسط tadbir در انجمن نصب ، ارتقا و تبدیل SMF
    پاسخ ها: 4
    آخرين نوشته: 02-03-2010, 07:12 AM
  2. راهنمایی در نصب smf
    توسط masi61 در انجمن نصب ، ارتقا و تبدیل SMF
    پاسخ ها: 2
    آخرين نوشته: 01-30-2010, 06:07 AM
  3. درخواست راهنمایی
    توسط persepolisfan در انجمن مدیریت مامبو فارسی
    پاسخ ها: 4
    آخرين نوشته: 12-09-2009, 11:02 PM

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

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

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

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