Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
io Theme Error: header_welcomeblock_member
#1
Bug 
Something in the below code is causing an Error 403 when I try to save it. Its the default code.

I don't know what it is, but I'm unable to save the template, so its really annoying because I wanted to make a couple of adjustments.

Any assistance would be SO helpful!


<div id="hosgeldin">Welcome {$mybb->user['username']}</div>
<!-- Continuation of div(class="upper") as opened in the header template -->
<ul id="dropdown2"><div id="cmon"></div></ul>
<script type="text/javascript">
if ({$mybb->user['pms_unread']} > 0) {
var page_title = $(document).find("title").text();
$("#yenipm").html("<div id='yenipmnum1'>{$mybb->user['pms_unread']}</div>");

document.title = "({$mybb->user['pms_unread']}) " + page_title;
}
else {document.getElementById("cmon").innerHTML = "<span style='font-size:11px;white-space: nowrap;'>You have no new messages.</span><hr style='background-color: #DDDDDD;'><a href='private.php?fid=1'><li>Inbox</li></a><a href='private.php?fid=2'><li>Sent Items</li></a><a href='private.php?action=send'><li>Send A New Message</li></a>";
    
}
$("#yenipm").css({'display' : 'block'});
</script>
<!--Friend List Start-->
<script>
$(document).ready(function cek() {
$(".dropdown-toggle4").mouseover(function cek(){
        $("#responsecontainer").load("misc.php?action=buddypopup");
    });
  
});
if (typeof functionName === 'cek') {
$("#yukleniyor").css({'display' : 'none'});
}
</script>
<a class="dropdown-toggle4" href="#" title="Arkadaşlarım"><div id="arkadaslarim"></div></a>
<ul class="dropdown4"><div id="responsecontainer"><div id="yukleniyor"><br><br>Loading..</div></div></ul>
<!--Friend List End-->
<!--ayarlar başlangıç-->
<a class="dropdown-toggle" href="#" title="Ayarlar"><div id="ayarlar"></div></a>
<ul class="dropdown">
<a href="{$mybb->settings['bburl']}/usercp.php" class="usercp"><li>{$lang->welcome_usercp}</li></a>
{$admincplink}
{$modcplink}
<a href="{$mybb->settings['bburl']}/usercp.php?action=avatar" class="usercp"><li>Change Avatar</li></a>
<hr style="background-color: #DDDDDD;">
<a href="usercp.php?action=editlists"><li>{$lang->welcome_open_buddy_list}</li></a>
<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><li>{$lang->welcome_newposts}</li></a>
<a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><li>{$lang->welcome_todaysposts}</li></a>
<hr style="background-color: #DDDDDD;">
<a href="usercp.php?action=options"><li>Preferences</li></a>
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" onclick="return confirm('Are you sure?')" class="logout"><li>{$lang->welcome_logout}</li></a>
</ul>
<!--ayarlar bitiş-->

<br />



</div><!-- header şablonundaki mini-panel-sol-blok div'i burada kapanıyor -->



<a href="member.php?action=profile&uid={$mybb->user['uid']}" title="Profilin"><img align="right" src="{$mybb->user['avatar']}" onerror="this.src='{$theme['imgdir']}/standart-avatar.png';" id="kullanici-avatari" width="50" height="50" border="0" /></a>

:/ is anyone able to help? Sad

Thanks for taking the time to look!

EDIT TO ADD:

the [header] template, and [header_welcomeblock_guest] are also funky, and go to a 403 upon saving. Their codes are below.

[header]
<div id="click_blocker"></div>
{$as_sidebar}<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			
				<div class="wrapper">
					<div id="logo"><a href="{$mybb->settings['bburl']}"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
			</div>
				
		<div id="panel">
		<div class="upper">
			<div id="yapis_yapis">
					<div class="wrapper">
						<div id="mobil_menu"></div>
	
						<ul class="menu top_links float_left" style="margin:0px;">
						<li><a href="{$mybb->settings['bburl']}" class="portal">Home</a></li>
						<li><a href="{$mybb->settings['bburl']}/portal.php" class="portal">{$lang->toplinks_portal}</a></li>
						
							<li><a href="#" class="dropdown-toggle3">{$lang->toplinks_search}</a><ul class="dropdown3">
							<div align="center"><form action="{$mybb->settings['bburl']}/search.php" method="post">
						<fieldset id="search">
							<input name="keywords" type="text" class="textbox arama-kutusu" placeholder="Search form" autofocus />
							<input value="{$lang->search_button}" type="submit" class="button" />
							<input type="hidden" name="action" value="do_search" />
							<input type="hidden" name="postthread" value="1" />
							<input type="button" class="button" value="Advanced Search?"  onclick="location.href='search.php';" />
						</fieldset>
								</form>
								
							</div>
							</ul>
								
							</li>
							
						<li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
						<li><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a></li>
						<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
						</ul>
						<!-- welcomeblock baslangic-->
						<div style="float: right;margin-right: 8px;height: 35px;font-family: sans-serif;position:relative;">

						<div id="mini-panel-sol-blok">
							<a class="dropdown-toggle2" href="#" title="Private Messages"><div id="yenipm"></div></a>
							{$pm_notice}{$pm_switch_notice}
							
							{$welcomeblock} <!-- mini-panel-sol-blok div'i "header_welcomeblock_member" şablonunun içerisinde kapanıyor -->
							
						</div>
								</div>
							<!-- welcomeblock bitis-->
					</div>
		
						<div class="lower clear">
							<div class="wrapper">
								<navigation>
							</div>
						</div>
		</div>
		</div>

</div>
			
		<div id="content">
			<div class="wrapper">
				
				{$bannedwarning}
				{$bbclosedwarning}
				{$unreadreports}
				{$pending_joinrequests}
				{$awaitingusers}{$twitterfeed}
				<br />


[header_welcomeblock_guest]
						<!-- Continuation of div(class="upper") as opened in the header template -->
						<span class="welcome"><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;">{$lang->welcome_login}</a><a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a></span>
						
				<div class="modal" id="quick_login" style="background: #E4E4E4;width: 690px;display: none;">
					<form method="post" action="{$mybb->settings['bburl']}/member.php">
						<input name="action" type="hidden" value="do_login" />
						<input name="url" type="hidden" value="" />
						<input name="quick_login" type="hidden" value="1" />
						<table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="giris-yap-kismi">
							<tr>
								<td class="thead2" colspan="2"><strong>{$lang->login}</strong></td>
							</tr>
							<tr>
								<td class="trow4" width="7%"><img src="{$theme['imgdir']}/username-icon.png" alt="username" /></td>
								<td class="trow4"><input name="quick_username" id="quick_login_username" type="text" placeholder="Username" value="" class="textbox kutucuk initial_focus" /></td>
							</tr>
							<tr>
								<td class="trow4" width="7%"><img src="{$theme['imgdir']}/password-icon.png" alt="username" /></td>
								<td class="trow4">
									<input name="quick_password" id="quick_login_password" type="password" placeholder="Password" value="" class="textbox kutucuk" />
								</td>
							</tr>
					<tr><td class="trow4" width="7%"></td><td><a href="{$mybb->settings['bburl']}/member.php?action=lostpw"><font size="1">{$lang->lost_password}</font></a></td></tr>
							<tr>
								<td class="trow4">&nbsp;</td>
								<td class="trow4 remember_me">
									<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
									<label for="quick_login_remember">{$lang->remember_me}</label>
								</td>
							</tr>
							<tr>
								<td class="trow4" colspan="2">
									<div align="center"><input name="submit" type="submit" class="button" value="{$lang->login}" /></div>
								</td>
							</tr>
						</table>
						<!--SIGN UP BOX-->
<table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="istersen-kaydol">
							<tr>
								<td class="thead2" colspan="2"><strong>Sign Up For Free</strong></td>
							</tr>
	
						<tr><td class="trow4" colspan="2">If you sign up:</td></tr>
						<tr><td class="trow4" colspan="2" style="height: 125px;">
							<div id="avantajlarin">
							<li>You can post new threads.</li>
							<li>You can reply to threads.</li>
							<li>You can contact with other members.</li>
							</div>
						</td></tr>
						<tr><td class="trow4" colspan="2">
							<div align="center"><input type="button" class="button" value="Register"  onclick="location.href='member.php?action=register';" /></div></td></tr>
						</table>

					</form>
				</div>
				<script type="text/javascript">
					$("#quick_login input[name='url']").val($(location).attr('href'));
				</script>
</div> <!-- The div of mini-panel-sol-blok is closing in here -->
[Image: Zcz1gZM.png]
Reply
#2
My guess is that your hosting provider uses some kind of firewall like mod_security and they are blocking the requests (maybe because of script tags). Contact them and ask them to check web server logs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)