View Single Post
  #2  
Old 09-24-2009, 05:28 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having trouble with this guide... these are my templates:

FORM:
Code:
<form action="videoajax.php" method="post" id="videoComments">

<a name="comments" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead" width="100%">
		$vbphrase[comments]
	</td>
<if condition="$show['popups']">
	<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"> vbmenu_register('imod'); </script></td>
<else />
	<td class="tcat" align="center">
		<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
	</td>
</if>
</tr>
<tr valign="top">
	<td class="alt1" colspan="2"><div id="vidCommentsAll">
		<ol class="list_no_decoration alt1 block_row" id="message_list">$commentbits</ol>
	</div></td>
</tr>
</table>

<div id="vidPageselAll">$pagenav</div>

<div align="right">
	<strong>$vbphrase[moderation]</strong>
	<select name="do">
	<optgroup label="$vbphrase[option]">
		<option value="deletecomments">Delete Comments</option>
	</optgroup>
	</select>
	<input type="submit" class="button" id="inlinego" value="$vbphrase[go]" />
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
	<script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script>
	<script type="text/javascript">
	<!--
	inlineMod = new vB_Inline_Mod('inlineMod', 'post', 'videoComments', '$vbphrase[go_x]', 'videocomments_inline');
	//-->
	</script>
</div>

<if condition="$show['popups']">
	<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
	<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[moderation]</td></tr>
		<tr><td class="vbmenu_option" onclick="inlineMod.check_all(true)">$vbphrase[select_all]</td></tr>
		<tr><td class="vbmenu_option" onclick="inlineMod.check_all(false)" id="arse">$vbphrase[deselect_all]</td></tr>
		<tr><td class="vbmenu_option" onclick="inlineMod.check_all('invert')">$vbphrase[invert_selection]</td></tr>
	</table>
	</div>
</if>

<script type="text/javascript" src="clientscript/vbulletin_ajax_videocomment.js"></script>

</form>
BIT:
Code:
<li id="vcomment$comment[videocommentid]" class="floatcontainer">
<if condition="$comment['avatarurl']">
	<div class="fixed_width_avatar">
		<if condition="$comment['postuserid']"><a href="member.php?$session[sessionurl]u=$comment[postuserid]"></if><img src="$comment[avatarurl]" class="alt2 avatar"<if condition="$comment['avatarwidth']"> width="$comment[avatarwidth]"</if><if condition="$comment['avatarheight']"> height="$comment[avatarheight]"</if> border="0" alt="$comment[username]" /><if condition="$comment['postuserid']"></a></if>
	</div>
	<div class="visitor_message_avatar_margin">
</if>
	<div class="tborder info_bar">
		<div class="alt2 smallfont">
<if condition="$show['deletionlink']"><input type="checkbox" class="inlinemod_checkbox" name="clist[$comment[videocommentid]]" id="clist_$comment[videocommentid]" /></if>
			<div class="visitor_message_date"><a href="$video[url]">$video[title]</a> @ $comment[date], <span class="time">$comment[time]</span></div>
			<if condition="$comment['postuserid']">
				<a href="member.php?$session[sessionurl]u=$comment[postuserid]">$comment[musername]</a>
			<else />
				<phrase 1="$comment[musername]">$vbphrase[guest_x]</phrase>
			</if>
		</div>
	</div>

	<div id="vcomment_text_$comment[videocommentid]" class="visitor_message_body">
		$comment[message]
	</div>

	<ul class="list_no_decoration controls">
		<if condition="$show['deletionlink']">
			<li class="smallfont"><a href="video.php?$session[sessionurl]do=deletecomment&amp;commentid=$comment[videocommentid]">$vbphrase[delete_video_comment]</a></li>
		</if>
	</ul>
<if condition="$comment['avatarurl']">
	</div>
</if>
</li>
Two problems...

1 - class="floatcontainer" should change to class="floatcontainer inlinemod" when a bit is checked... it doesn't here...

2 - selections are not saved on page-switch; or added to the "Go (0)" count on the submit form.

Please take a look at my code and tell me what I am missing.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01879 seconds
  • Memory Usage 1,792KB
  • 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_code
  • (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