Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Rekomendowane odpowiedzi

Opublikowano (edytowane)

pre_1297814333__link.jpg

Owy link prowadzi do podstrony: /statuses/all/page__status_id__573 , a ta wywala erorra:

[#20314] Nie posiadasz uprawnień do korzystania z tej funkcji. Jeśli nie jesteś zalogowany, możesz użyć poniższego formularza.

Nie wiem czy mam cos wylaczone, czy to jakis masowy blad ;p Jakies rady ?

Enable the friends feature?

Mam na Yes.

Link sie pokazuje gdy patrzycie na wlasne konto.

Edytowane przez Xawier
  • Manager
Opublikowano

		if ( $this->request['do'] != 'list' AND ( $this->request['k'] != $this->member->form_hash ) )
	{
		$this->registry->getClass('output')->showError( 'no_permission', 20314, null, null, 403 );
	}

To pewnie masz jakiś stary skin, bez definicji hashy..

Wklej mi Twój bit skina:

Profil użytkownika :a:statusUpdates

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Opublikowano
<script type="text/javascript">
ipb.status.maxReplies = {parse expression="intval($this->settings['su_max_replies'])"};
ipb.status.smallSpace = {parse expression="intval($smallSpace)"};
</script>
<foreach loop="outerLoop:$updates as $id => $status">
<if test="$this->memberData['member_id'] AND $latestOnly AND $status['member_id'] == $this->memberData['member_id']">
<script type="text/javascript">
	ipb.status.myLatest = {$status['status_id']};
</script>
</if>
<div class='status_main_wrap' id='statusWrap-{$status['status_id']}'>
	<div class="status_main_photo">
		<if test="$smallSpace">
			<a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$status['pp_mini_photo']}' width='{$status['pp_mini_width']}' height='{$status['pp_mini_height']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
		<else />
			<a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$status['pp_thumb_photo']}' width='{$status['pp_thumb_width']}' height='{$status['pp_thumb_height']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
		</if>
	</div>
	<div class="status_main_content">
		<div id="statusContent-{$status['status_id']}">
			<h4><a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'>{$status['members_display_name']}</a>{parse template="user_popup" group="global" params="$status['member_id'],$status['members_seo_name']"} {$status['status_content']}</h4>
			<p class='desc'>
				<img src="{$this->settings['img_url']}/<if test="isLockedImgAdmin:|:$status['_isLocked'] == 2">lock_small_orange.png"<else />lock_small_gold.gif"</if> id='statusLockImg-{$status['status_id']}'<if test="isLockedImg:|:!$status['_isLocked']"> style='display:none'</if> alt="{$this->lang->words['status__locked']}" />
				<if test="cImg:|:! $smallSpace AND $status['_creatorImg']"><img src="{$status['_creatorImg']}" alt='' /></if>
				{$status['status_date_formatted_short']}<if test="creatorText:|:$smallSpace AND $status['_creatorText'] AND $status['status_creator'] AND $status['status_creator'] != 'ipb'"> {$this->lang->words['su_via']} {$status['_creatorText']}</if>
				<if test="canDelete:|:$status['_canDelete']"> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=deleteStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusDelete-{$status['status_id']}" class="__sD __d{$status['status_id']}">{$this->lang->words['status_delete_link']}</a></if>
				<span id='statusUnlock-{$status['status_id']}' <if test="isLocked:|:$status['_isLocked'] AND $status['_canUnlock']">style='display:inline'<else />style='display:none'</if>> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=unlockStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusUnlockLink-{$status['status_id']}" class="__sU __u{$status['status_id']}">{$this->lang->words['status_unlock_link']}</a></span>
				<span id='statusLock-{$status['status_id']}' <if test="canLock:|:$status['_canLock'] AND ! $status['_isLocked']">style='display:inline'<else />style='display:none'</if>> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=lockStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusLockLink-{$status['status_id']}" class="__sL __l{$status['status_id']}">{$this->lang->words['status_lock_link']}</a></span>
			</p>
			<if test="$smallSpace">
				<p class='desc' id='statusToggle-{$status['status_id']}'>
					<if test="$status['_userCanReply']">
						<if test="$status['status_replies']">
							<a href="#" class="__sT __t{$status['status_id']}">{parse expression="sprintf( $this->lang->words['view_comments_and_add'], $status['status_replies'])"}</a>
						<else />
							<a href="#" class="__sT __t{$status['status_id']}">{$this->lang->words['add_comments_only']}</a>
						</if>
					<else />
						<if test="$status['status_replies']">
							<a href="#" class="__sT __t{$status['status_id']}">{parse expression="sprintf( $this->lang->words['view_comments_only'], $status['status_replies'])"}</a>
						</if>
					</if>
				</p>
				<p class='desc' id='statusToggleOff-{$status['status_id']}' style='display:none'>
					<a href="#" class="__sTO __to{$status['status_id']}">{$this->lang->words['view_comments_collapse']}</a>
				</p>
			</if>
		</div>
		<div id="statusFeedback-{$status['status_id']}" class='status_feedback' style='display:<if test="$smallSpace">none<else />inline</if>'>
			<if test="$status['status_replies'] AND count( $status['replies'] )">
				<if test="hasMore:|:$status['status_replies'] > 3">
					<div class='status_mini_wrap row2 altrow' id='statusMoreWrap-{$status['status_id']}'>
						<img src="{$this->settings['img_url']}/comments.png" alt="" />  <a href="#" id="statusMore-{$status['status_id']}" class='__showAll __x{$status['status_id']}'>{parse expression="sprintf( $this->lang->words['status_show_all_x'], $status['status_replies'] )"}</a>
					</div>
				</if>
				<div id='statusReplies-{$status['status_id']}'>
					{parse template="statusReplies" group="profile" params="$status['replies']"}
				</div>
			</if>
			<div id='statusReplyBlank-{$status['status_id']}'></div>
			<div id='statusReply-{$status['status_id']}'>
			<if test="$status['_userCanReply']">
				<div class='status_mini_wrap reply row2'>
					<form id='statusReplyForm-{$status['status_id']}' action='{$this->settings['base_url']}app=members&module=profile&section=status&do=reply&status_id={$status['status_id']}&k={$this->member->form_hash}&id={$this->memberData['member_id']}' method='post'>
						<div class="status_mini_photo">
							<a href='{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$this->memberData['pp_mini_photo']}' width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
						</div>
						<div class="status_mini_content">
							<textarea class='status_textarea' rows='3' cols='50' name='comment-{$status['status_id']}' id='statusText-{$status['status_id']}'></textarea>
							<div class="status_submit"><input type='submit' class='__submit input_submit' id='statusSubmit-{$status['status_id']}' value='{$this->lang->words['status__dfcomment']}' /></div>
						</div>
					</form>
					<a href='#' class='__showform' id='statusReplyFormShow-{$status['status_id']}' style='display: none'>{$this->lang->words['status__addcomment']}</a>
				</div>
				<script type='text/javascript'>
					if( $('statusReplyForm-{$status['status_id']}') )
					{
						$('statusReplyForm-{$status['status_id']}').hide();
					}

					if( $('statusReplyFormShow-{$status['status_id']}') )
					{
						$('statusReplyFormShow-{$status['status_id']}').show();
					}
				</script>
			</if>
			</div>
			<div class='status_mini_wrap row2 altrow' id='statusMaxWrap-{$status['status_id']}' <if test="maxReplies:|:$status['status_replies'] < $this->settings['su_max_replies']">style='display:none'</if>>
				<img src="{$this->settings['img_url']}/locked_replies.png" title="{$this->lang->words['status_too_many_replies']}" alt='x' /> {$this->lang->words['status_too_many_replies']}
			</div>
		</div>
	</div>
</div>
</foreach>

  • Manager
Opublikowano

Zamień na taki:

<script type="text/javascript">
ipb.status.maxReplies = {parse expression="intval($this->settings['su_max_replies'])"};
ipb.status.smallSpace = {parse expression="intval($smallSpace)"};
</script>
<foreach loop="outerLoop:$updates as $id => $status">
<if test="$this->memberData['member_id'] AND $latestOnly AND $status['member_id'] == $this->memberData['member_id']">
<script type="text/javascript">
	ipb.status.myLatest = {$status['status_id']};
</script>
</if>
<div class='status_main_wrap' id='statusWrap-{$status['status_id']}'>
	<div class="status_main_photo">
		<if test="$smallSpace">
			<a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$status['pp_mini_photo']}' width='{$status['pp_mini_width']}' height='{$status['pp_mini_height']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
		<else />
			<a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$status['pp_thumb_photo']}' width='{$status['pp_thumb_width']}' height='{$status['pp_thumb_height']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
		</if>
	</div>
	<div class="status_main_content">
		<div id="statusContent-{$status['status_id']}">
			<h4><a href='{parse url="showuser={$status['member_id']}" seotitle="{$status['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'>{$status['members_display_name']}</a>{parse template="user_popup" group="global" params="$status['member_id'],$status['members_seo_name']"} {$status['status_content']}</h4>
			<p class='desc'>
				<img src="{$this->settings['img_url']}/<if test="isLockedImgAdmin:|:$status['_isLocked'] == 2">lock_small_orange.png"<else />lock_small_gold.gif"</if> id='statusLockImg-{$status['status_id']}'<if test="isLockedImg:|:!$status['_isLocked']"> style='display:none'</if> alt="{$this->lang->words['status__locked']}" />
				<if test="cImg:|:! $smallSpace AND $status['_creatorImg']"><img src="{$status['_creatorImg']}" alt='' /></if>
				{$status['status_date_formatted_short']}<if test="creatorText:|:$smallSpace AND $status['_creatorText'] AND $status['status_creator'] AND $status['status_creator'] != 'ipb'"> {$this->lang->words['su_via']} {$status['_creatorText']}</if>
				<if test="canDelete:|:$status['_canDelete']"> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=deleteStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusDelete-{$status['status_id']}" class="__sD __d{$status['status_id']}">{$this->lang->words['status_delete_link']}</a></if>
				<span id='statusUnlock-{$status['status_id']}' <if test="isLocked:|:$status['_isLocked'] AND $status['_canUnlock']">style='display:inline'<else />style='display:none'</if>> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=unlockStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusUnlockLink-{$status['status_id']}" class="__sU __u{$status['status_id']}">{$this->lang->words['status_unlock_link']}</a></span>
				<span id='statusLock-{$status['status_id']}' <if test="canLock:|:$status['_canLock'] AND ! $status['_isLocked']">style='display:inline'<else />style='display:none'</if>> · <a href="{$this->settings['base_url']}app=members&module=profile&section=status&do=lockStatus&status_id={$status['status_id']}&k={$this->member->form_hash}" id="statusLockLink-{$status['status_id']}" class="__sL __l{$status['status_id']}">{$this->lang->words['status_lock_link']}</a></span>
			</p>
			<if test="$smallSpace">
				<p class='desc' id='statusToggle-{$status['status_id']}'>
					<if test="$status['_userCanReply']">
						<if test="$status['status_replies']">
							<a href="#" class="__sT __t{$status['status_id']}">{parse expression="sprintf( $this->lang->words['view_comments_and_add'], $status['status_replies'])"}</a>
						<else />
							<a href="#" class="__sT __t{$status['status_id']}">{$this->lang->words['add_comments_only']}</a>
						</if>
					<else />
						<if test="$status['status_replies']">
							<a href="#" class="__sT __t{$status['status_id']}">{parse expression="sprintf( $this->lang->words['view_comments_only'], $status['status_replies'])"}</a>
						</if>
					</if>
				</p>
				<p class='desc' id='statusToggleOff-{$status['status_id']}' style='display:none'>
					<a href="#" class="__sTO __to{$status['status_id']}">{$this->lang->words['view_comments_collapse']}</a>
				</p>
			</if>
		</div>
		<div id="statusFeedback-{$status['status_id']}" class='status_feedback' style='display:<if test="$smallSpace">none<else />inline</if>'>
			<if test="$status['status_replies'] AND count( $status['replies'] )">
				<if test="hasMore:|:$status['status_replies'] > 3">
					<div class='status_mini_wrap row2 altrow' id='statusMoreWrap-{$status['status_id']}'>
						<img src="{$this->settings['img_url']}/comments.png" alt="" />  <a href="#" id="statusMore-{$status['status_id']}" class='__showAll __x{$status['status_id']}'>{parse expression="sprintf( $this->lang->words['status_show_all_x'], $status['status_replies'] )"}</a>
					</div>
				</if>
				<div id='statusReplies-{$status['status_id']}'>
					{parse template="statusReplies" group="profile" params="$status['replies']"}
				</div>
			</if>
			<div id='statusReplyBlank-{$status['status_id']}'></div>
			<div id='statusReply-{$status['status_id']}'>
			<if test="$status['_userCanReply']">
				<div class='status_mini_wrap reply row2'>
					<form id='statusReplyForm-{$status['status_id']}' action='{$this->settings['base_url']}app=members&module=profile&section=status&do=reply&status_id={$status['status_id']}&k={$this->member->form_hash}&id={$this->memberData['member_id']}' method='post'>
						<div class="status_mini_photo">
							<a href='{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$this->memberData['pp_mini_photo']}' width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a>	
						</div>
						<div class="status_mini_content">
							<textarea class='status_textarea' rows='3' cols='50' name='comment-{$status['status_id']}' id='statusText-{$status['status_id']}'></textarea>
							<div class="status_submit"><input type='submit' class='__submit input_submit' id='statusSubmit-{$status['status_id']}' value='{$this->lang->words['status__dfcomment']}' /></div>
						</div>
					</form>
					<a href='#' class='__showform' id='statusReplyFormShow-{$status['status_id']}' style='display: none'>{$this->lang->words['status__addcomment']}</a>
				</div>
				<script type='text/javascript'>
					if( $('statusReplyForm-{$status['status_id']}') )
					{
						$('statusReplyForm-{$status['status_id']}').hide();
					}

					if( $('statusReplyFormShow-{$status['status_id']}') )
					{
						$('statusReplyFormShow-{$status['status_id']}').show();
					}
				</script>
			</if>
			</div>
			<div class='status_mini_wrap row2 altrow' id='statusMaxWrap-{$status['status_id']}' <if test="maxReplies:|:$status['status_replies'] < $this->settings['su_max_replies']">style='display:none'</if>>
				<img src="{$this->settings['img_url']}/locked_replies.png" title="{$this->lang->words['status_too_many_replies']}" alt='x' /> {$this->lang->words['status_too_many_replies']}
			</div>
		</div>
	</div>
</div>
</foreach>

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

  • Manager
Opublikowano

Nie sądzę. Tak czy inaczej. Zdebugujmy to.

Otwórz plik: admin/applications/members/modules_public/profile/status.php

Znajdź:

	public function doExecute( ipsRegistry $registry ) 
{

Dodaj poniżej:

		echo 'Do: ' . $this->request['do'] . '<br /> Hash form Bit: ' . $this->request['k'] . ' <br /> Hash from variable: ' . $this->member->form_hash;

Zapisz i wyślij.

Potem uruchom znów tę listę i podaj wynik.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Opublikowano

Dziwne. A więc tak, po dodaniu kodu:

1. W domyslnym skinie nadal ten sam error, bez infa od debugera:

[#20314] Nie posiadasz uprawnień do korzystania z tej funkcji. Jeśli nie jesteś zalogowany, możesz użyć poniższego formularza.

2. Po przelaczeniu na Mobil Skin (/index.php?app=members&section=status&module=profile&status_id=573):

Do: 
Hash form Bit: a1d0afd30731cf567542b00c4f5a91bf 
Hash from variable: a1d0afd30731cf567542b00c4f5a91bf
Warning: Cannot modify header information - headers already sent by (output started at /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/applications/members/modules_public/profile/status.php:39) in /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/sources/classes/output/formats/html/htmlOutput.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/applications/members/modules_public/profile/status.php:39) in /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/sources/classes/output/formats/html/htmlOutput.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/applications/members/modules_public/profile/status.php:39) in /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/sources/classes/output/formats/html/htmlOutput.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/applications/members/modules_public/profile/status.php:39) in /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/sources/classes/output/formats/html/htmlOutput.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/applications/members/modules_public/profile/status.php:39) in /home/lockerz/domains/lockerz.com.pl/public_html/forum/core/sources/classes/output/formats/html/htmlOutput.php on line 134

3. I niby hula ta podstrona na mobil skinie, ale gdy już bym chciał kliknąć na zakładki: "Wszyscy znajomi" (statuses/all/) i "Moi znajomi" (statuses/friends/) nadal ten sam błąd:

[#20314] Nie posiadasz uprawnień do korzystania z tej funkcji. Jeśli nie jesteś zalogowany, możesz użyć poniższego formularza.

  • Manager
Opublikowano

Uhh.. Trudno dalej tak na odległość debugować.. Weź napisz do supportu - niech to sprawdź od środka.

I wg tego: http://community.invisionpower.com/resources/documentation/ips_error_codes.html/_/invision-power-board-3xx/20314-r1217 gdzieś w skinie nie masz podanego kodu:

k={$this->member->form_hash}

Tylko bądź tu mądry i go znajdź.. ;)

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.