View Single Post
  #219  
Old 09-28-2005, 05:31 AM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To redirect them to the quotes page, in quotes.php, find
PHP Code:
    header('Location: ' $vboptions['forumhome'] . '.php?' $session['sessionurl']); 
and replace that with (be sure to replace it twice)
PHP Code:
    header('Location: quotes.php?' $session['sessionurl']); 
Here's the quote_randomquote template:
HTML Code:
<style type="text/css">
.vote {
	color:$stylevar[smallfont_fgcolor];
	font-family:'trebuchet ms',helvetica,sans-serif;
	font-size:110%;
	font-weight:bold;
	background-color:$stylevar[button_bgcolor];
<if condition="$vboptions[ratequote]==1">
	width:25px;
	height:25px;
</if>
	border-top-color:$stylevar[alt2_bgcolor];
	border-left-color:$stylevar[alt2_bgcolor];
	border-right-color:$stylevar[alt1_bgcolor];
	border-bottom-color:$stylevar[alt1_bgcolor];
	filter:progid:DXImageTransform.Microsoft.Gradient
	(GradientType=0,StartColorStr='#aa$gradient1',EndColorStr='#aa$gradient2');}
}
</style>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<thead>
	<tr>
		<td class="tcat">
			$vbphrase[random_quote]
		</td><td class="tcat" align="right">
			<div align="right">

			(<a href="$vboptions[bburl]/quotes.php?do=addquote">$vbphrase[add_a_quote]</a>

			<if condition="$bbuserinfo['permissions']['adminpermissions']">
				 | <a href="$vboptions[bburl]/quotes.php?do=delquote&quoteid=$randomquote[quoteid]">$vbphrase[delete_this_quote]</a> | <a href="$vboptions[bburl]/quotes.php?do=editquote&quoteid=$randomquote[quoteid]">$vbphrase[edit_this_quote]</a>
			</if>

			 | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)
		</div>
	 	 	 </td><td class="tcat" style="width:15px;">
	 	 	<div style="float:right;" align="right">
			<a href="#top" onclick="return toggle_collapse('forumhome_randomquote')"><img id="collapseimg_forumhome_randomquote" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomquote].gif" alt="" border="0" /></a></div>

		</td>
	</tr>
</thead>
<tbody id="collapseobj_forumhome_randomquote" style="$vbcollapse[collapseobj_forumhome_randomquote]">
	<tr><td class="alt1" width="30%"></td>
		<td class="alt1"><div style="font-style:italic;margin-right:10%;">
		<p>&quot;$randomquote[quote]&quot;</p>
		<p style="font-weight:bold;margin-left:25%;">- $randomquote[author]<if condition="$randomquote[context]"> ($randomquote[context])</if></p>
		</div>
		</td><td class="alt1" valign="top">
			<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
		</td>

	</tr>
<if condition="$vboptions[ratequote]==3">
	<tr><td class="alt1" align="left" colspan="3">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
</if>

<if condition="$vboptions[ratequote]==1">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]: 
	<form name="rateplus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="plus" />
	<input type="submit" value="+" class="vote" />
	</form>
	&nbsp;
	<form name="rateminus" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<input type="hidden" name="vote" id="vote" value="minus" />
	<input type="submit" value="-" class="vote" /></form>
	</td>
</if>
<if condition="$vboptions[ratequote]==2">
	<tr><td class="alt1" align="left">
	$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
	</td>
	<td class="alt1" align="right" colspan="2">$vbphrase[rate_this_quote]:
	<form name="voting" id="voting" action="$vboptions[bburl]/quotes.php">
	<input type="hidden" name="do" id="do" value="rate" />
	<input type="hidden" name="quoteid" id="quoteid" value="$randomquote[quoteid]" />
	<select name="vote" id="vote" onchange="document.voting.submit();">
	<option value=""></option>
	<option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
	<option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
	<option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
	<option value="4">&nbsp;&nbsp;4&nbsp;&nbsp;</option>
	<option value="5">&nbsp;&nbsp;5&nbsp;&nbsp;</option>
	</select>
	</form>
	</td>
</if>

</tr>
</tbody>
</table><br />
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01118 seconds
  • Memory Usage 1,833KB
  • 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
  • (1)bbcode_html
  • (2)bbcode_php
  • (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