View Single Post
  #21  
Old 10-19-2005, 06:37 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I found the fix, thanks to Rabbit_Warren for giving me access to his board.

Problem source: Old version of the adv_editform template... (I'm still getting used to the product system).
Solution: Either download a new version of the XML, or replace the contents of adv_editform with the following:

HTML Code:
<if condition="$bbuserinfo['editlevel'] > EDITLEVEL_AUTHOR">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('editpost_advanced')"><img id="collapseimg_editpost_advanced" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_editpost_advanced].gif" alt="" border="0" /></a>
		$vbphrase[advedit_boxtitle]
	</td>
</tr>
<tbody id="collapseobj_editpost_advanced" style="$vbcollapse[collapseobj_editpost_advanced]">
	<tr>
		<td class="panelsurround" align="center">
		
		<div class="panel">
			<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
			
				<div class="fieldset">
					<div>$vbphrase[advedit_boxdescription]</div>
				</div>
				
				<fieldset class="fieldset">
					<legend>$vbphrase[advedit_fieldset_title]</legend>
					<div style="padding:$stylevar[formspacer]px">
					
						<div>
							<label for="sb_editlevel">
								<select name="editlevel" id="sb_editlevel">
									<option value="0" <if condition="$adv_data['editlevel'] == EDITLEVEL_AUTHOR">selected="selected"</if>>
										$vbphrase[advedit_editlevel_author]
									</option>
									<option value="1" <if condition="$adv_data['editlevel'] == EDITLEVEL_MOD">selected="selected"</if>>
										$vbphrase[advedit_editlevel_mod]
									</option>
									<if condition="$bbuserinfo['editlevel'] >= EDITLEVEL_SMOD">
									<option value="2" <if condition="$adv_data['editlevel'] == EDITLEVEL_SMOD">selected="selected"</if>>
										$vbphrase[advedit_editlevel_smod]
									</option>
									</if>
									<if condition="$bbuserinfo['editlevel'] == EDITLEVEL_ADMIN">
									<option value="3" <if condition="$adv_data['editlevel'] == EDITLEVEL_ADMIN">selected="selected"</if>>
										$vbphrase[advedit_editlevel_admin]
									</option>
									</if>
								</select>
								$vbphrase[advedit_editlevel_andabove]
							</label>
						</div>
						
						<if condition="$bbuserinfo['editlevel'] == EDITLEVEL_ADMIN">
						<div>
							<label for="tb_dateline">
								<input type="text" name="newday" value="$adv_data[mday]" size="1" maxlength="2" id="tb_dateline_day" />.
								<input type="text" name="newmonth" value="$adv_data[mon]" size="1" maxlength="2" id="tb_dateline_month" />.
								<input type="text" name="newyear" value="$adv_data[year]" size="3" maxlength="4" id="tb_dateline_year" />  -
								<input type="text" name="newhour" value="$adv_data[hours]" size="1" maxlength="2" id="tb_dateline_day" />:
								<input type="text" name="newminute" value="$adv_data[minutes]" size="1" maxlength="2"  id="tb_dateline_day" />
								$vbphrase[advedit_dateposted]
							</label>
						</div>
						<div>
							<label for="tb_username">
								<input type="text" name="newusername" value="$adv_data[username]" id="tb_username" /> $vbphrase[advedit_postauthor]
							</label>
						</div>
						<div>
							<label for="tb_ipaddress">
								<input type="text" name="newipaddress" value="$adv_data[ipaddress]" id="tb_ipaddress" /> $vbphrase[advedit_ipaddress]
							</label>
						</div>
						</if>
						
					</div>
				</fieldset>
				
			</div>
		</div>
		
		</td>
	</tr>
</tbody>
</table>
<br />
</if>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01275 seconds
  • Memory Usage 1,804KB
  • 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)bbcode_html
  • (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