Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2009, 09:42 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default moved Forumjump - little problem

hi,
in the SHOWTHREAD template i moved the Forumjump menu
right next to the Moderation menu:


the problem is that Forumjump does not work properly now.
i think its because the GO buttons at the forum jump and the Moderation
probably have the same ID / name or so.
When i want to use the Forumjump it reacts like
i clicked on the GO of the Moderation menu without any thread being marked before.
and it says "You did not select any posts to which the action you picked can be applied."

could you please tell me what i should change so the Forumjump works?
(im not 100% sure which and how many changes are necessary for this)



controls part from the SHOWTHREAD template:
Code:
<!-- controls below postbits -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>

<!--REPLY BUTTON-->
<if condition="$show['largereplybutton']">
<td class="tcat" style="padding-left:25px;">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow">
<if condition="$show['closethread']">
<img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else />
<img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if>
</a>
</td>
<else />
<td class="tcat" style="padding-left:25px">&nbsp;</td>
</if>

<!--PAGENAV-->
<if condition="$show['pagenav']">
<td class="tcat" align="$stylevar[right]" nowrap="nowrap" style="padding-right:25px;">
$pagenav
</td>
</if>
</tr>
</table>





<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">


<!--FORUMJUMP-->
<td align="$stylevar[right]" style="width:100%;padding-left:25px;padding-right:25px;">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]">
$forumjump
</div>
</td>


<!--MODERATION-->

<if condition="$show['inlinemod']">
<td align="$stylevar[right]" style="padding-right:25px;">
<if condition="$show['inlinemod']">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]">
<strong>$vbphrase[moderation]</strong>
<br />
<select name="do">
<if condition="$show['managethread'] OR $show['spamctrls'] OR $show['managepost'] OR $show['approvepost'] OR $show['approveattachment'] OR $template_hook['inlinemod_post_bottom']">
<optgroup label="$vbphrase[option]">
<if condition="$show['managethread']">
<option value="mergeposts">$vbphrase[merge_posts]</option>
<option value="moveposts">$vbphrase[move_posts]</option>
<option value="copyposts">$vbphrase[copy_posts]</option>
</if>
<if condition="$show['spamctrls']">
<option value="spampost">$vbphrase[delete_posts_as_spam]</option>
</if>
<if condition="$show['managepost']">
<option value="deleteposts">$vbphrase[delete_posts]</option>
<option value="undeleteposts">$vbphrase[undelete_posts]</option>
</if>
<if condition="$show['approvepost']">
<option value="approveposts">$vbphrase[approve_posts]</option>
<option value="unapproveposts">$vbphrase[unapprove_posts]</option>
</if>
<if condition="$show['approveattachment']">
<option value="approveattachments">$vbphrase[approve_attachments]</option>
<option value="unapproveattachments">$vbphrase[unapprove_attachments]</option>
</if>
$template_hook[inlinemod_post_bottom]
</optgroup>
</if>
<optgroup label="____________________">
<option value="viewpost">$vbphrase[view_selected_posts]</option>
<option value="clearpost">$vbphrase[clear_post_list]</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]" />
<input type="hidden" name="threadid" value="$threadinfo[threadid]" />
<input type="hidden" name="p" value="$postid" />
<input type="hidden" name="url" value="$url" />
</div>




<script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
inlineMod = new vB_Inline_Mod('inlineMod', 'post', 'inlinemodform', '$vbphrase[go_x]');
//-->
</script>

</if>
</td>
</if>
</tr>
</table>
<!-- / controls below postbits -->


forumjump template:

Code:
<div class="smallfont" style="text-align:$stylevar[left];white-space:nowrap;">

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="daysprune" value="$daysprune" />


	<strong>$vbphrase[forum_jump]</strong><br />
	<select name="f" onchange="this.form.submit();">

		<optgroup label="$vbphrase[site_areas]">
			<option value="cp" $frmjmpsel[usercp]>$vbphrase[user_control_panel]</option>
			<option value="pm" $frmjmpsel[pm]>$vbphrase[private_messages]</option>
			<option value="wol" $frmjmpsel[wol]>$vbphrase[whos_online]</option>
			<option value="home" $frmjmpsel[home]>$vbphrase[forums_home]</option>
		</optgroup>

		<if condition="$jumpforumbits">
		<optgroup label="$vbphrase[forums]">
		$jumpforumbits
		</optgroup>
		</if>
	</select>$gobutton
	</form>
</div>

gobutton template:
Code:
<input type="submit" class="button" value="$vbphrase[go]"  />
Reply With Quote
  #2  
Old 01-14-2009, 10:33 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure you dont have a form within a form
Reply With Quote
  #3  
Old 01-14-2009, 10:45 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah, thats it. theres a form around that part in the SHOWTHREAD template.

what could be an easy trick to make it work anyway?

should i simply copy the code from the forumjump template code
into SHOWTHREAD ...but leaving out the extra form around it?

or could i close the SHOWTHREAD form right before the forumjump variable
and open it again after it?
Reply With Quote
  #4  
Old 01-14-2009, 10:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't close it and then open it. Why not add the forumjump menu onto the right side of the moderation menu after the end of the form?
Reply With Quote
  #5  
Old 01-15-2009, 01:40 AM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok ill try.
the end of the "controls below postbits" table (in the SHOWTHREAD template)
looks like this. the form is closing a bit after that...

Code:
</td>
</if>
</tr>
</table>
<!-- / controls below postbits -->

<if condition="$show['inlinemod']">
$spacer_close
</form>



would it be ok for the form to change it like this:
(the $spacer_open is within the form)

Code:
</td>
</if>

</form>

<!--FORUMJUMP-->
<td align="$stylevar[right]" style="width:100%;padding-left:25px;padding-right:25px;">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]">
$forumjump
</div>
</td>
<!--end FORUMJUMP-->

</tr>
</table>
<!-- / controls below postbits -->


<if condition="$show['inlinemod']">
$spacer_close
or should i create a new table for the forumjump next to that table? :erm:
Reply With Quote
  #6  
Old 01-15-2009, 02:24 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem I see there is you are adding in another column to the table and so you really need to take a look at that table and make sure all the columns add up properly.
Reply With Quote
  #7  
Old 01-15-2009, 02:52 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, theres just one row in this table so its ok.

it all works fine now. thanks very much for the help!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04187 seconds
  • Memory Usage 2,233KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete