Thread: Major Additions - [AJAX] vB Pager 3.0.4
View Single Post
  #844  
Old 06-02-2006, 11:48 AM
DaPro DaPro is offline
 
Join Date: Jan 2003
Location: CT, USA
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Want to fix those "no reply button" issues when you get a pager pop-up?

I was confused for a while why I could not reply but only close a pop-up well here is a quick fix.

Step 1. In Styles & Templates > Style Manager > Edit Templates > vBPager Templates > pager_newpager

Find This Code:
HTML Code:
<if condition="!$pagerinfo[canreply]">
	<form method="GET">
			<center>
	<input type="button" class="button" onclick="Close_Pager('action=pager&amp;do=pagerreply&amp;rid=$pagerinfo[receiptid]&amp;touid=$pagerinfo[fromuserid]');closepager('PLAYER');" value="$vbphrase[pager_close]">
			</center>
	</form>
</if>
<if condition="$pagerinfo[canreply]">
	<form method="GET" action="$vboptions[vbpager_forum_dir_name]pager.php" name="frmpager" onsubmit="return SubmitForm(this, this.rid.value);">
	<input type="hidden" name="rid" value="$pagerinfo[receiptid]">
	<input type="hidden" name="touid" value="$pagerinfo[fromuserid]">
			<fieldset class="fieldset">
		<legend>$vbphrase[pager_reply_message]</legend>
	<if condition="$pagererror">
		<div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:50px; overflow:auto</if>">
			<if condition="$pagererror[pagercanuse]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
			<if condition="$pagererror[banuser]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
			<if condition="$pagererror[pagermaxperday]"><font class="highlight">$vbphrase[pager_error] </font><phrase 1="$pagerinfo[pagermaxperday]" 2="0">$vbphrase[pager_sent_x_left_y]</phrase><br /></if>
			<if condition="$pagererror[pagerquota]"><font class="highlight">$vbphrase[pager_error] </font>
<phrase 1="$vboptions[bburl]">$vbphrase[pager_message_qouta_reached]</phrase><br /></if>
Replace With:

HTML Code:
<if condition="$pagerinfo[canreply]">
	<form method="GET">
			<center>
	<input type="button" class="button" onclick="Close_Pager('action=pager&amp;do=pagerreply&amp;rid=$pagerinfo[receiptid]&amp;touid=$pagerinfo[fromuserid]');closepager('PLAYER');" value="$vbphrase[pager_close]">
			</center>
	</form>
</if>
<if condition="!$pagerinfo[canreply]">
	<form method="GET" action="$vboptions[vbpager_forum_dir_name]pager.php" name="frmpager" onsubmit="return SubmitForm(this, this.rid.value);">
	<input type="hidden" name="rid" value="$pagerinfo[receiptid]">
	<input type="hidden" name="touid" value="$pagerinfo[fromuserid]">
			<fieldset class="fieldset">
		<legend>$vbphrase[pager_reply_message]</legend>
	<if condition="$pagererror">
		<div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:50px; overflow:auto</if>">
			<if condition="$pagererror[pagercanuse]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
			<if condition="$pagererror[banuser]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
			<if condition="$pagererror[pagermaxperday]"><font class="highlight">$vbphrase[pager_error] </font><phrase 1="$pagerinfo[pagermaxperday]" 2="0">$vbphrase[pager_sent_x_left_y]</phrase><br /></if>
			<if condition="$pagererror[pagerquota]"><font class="highlight">$vbphrase[pager_error] </font>
<phrase 1="$vboptions[bburl]">$vbphrase[pager_message_qouta_reached]</phrase><br /></if>
That fixed my issues, if it doesn't fix yours let me know and maybe I can help but remember I am no PHP coder, just another newbie like the rest. :banana:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01340 seconds
  • Memory Usage 1,799KB
  • 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
  • (2)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