Quote:
Originally Posted by iBaker
Thanks Cap for a great mod.
I have installed it and made a few changes to the display which I hope is ok but I am not a coder as such but the attached screen shot is what I was trying to achieve and it works in both IE and Firefox.
The Quote_ListBit has been changed to:
Code:
<tr><td class="quoterow {$quoteclass}" align="left" id="quote{$quote['quoteid']}-{$globalcounter}">
<table>
<tr>
<td width="15%" align="Top">
<if condition="$_REQUEST['do'] != 'preview' AND !$sidebar">
Quote #:<a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=view&quoteid={$quote['quoteid']}">{$quotedisplayid}</a><br>
{$vbphrase['added_by']}: <a href="member.php?{$vbulletin->session->vars['sessionurl']}userid={$quote['userid']}">{$quote['username']}</a><div class="date">{$quote['date']}</div>
<if condition="$quoteitoptions['reportquotes'] AND $quoteitpermissions['canreportquotes']">
<a id="report{$quote['quoteid']}-{$globalcounter}" rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&page={$quotedisplay['page']}&do=report&quoteid={$quote['quoteid']}" onclick="reportQuote(event, {$quote['quoteid']});return false;"><img class="inlineimg" src="{$stylevar['imgdir_button']}/report.gif" alt="{$vbphrase['report_this_quote']}" /></a>
<br>
</if>
</div>
<else />
<if condition="$sidebar">
Quote #:<a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=view&quoteid={$quote['quoteid']}">#{$quotedisplayid}</a>
</if>
</if>
</td>
<td>
<img src="{$stylevar['imgdir_misc']}/quotation-open.png" alt="“" width="60px" height="51px">
</td>
<td width="60%" align="center">
<span class="smallfont" id="quotetext{$quote['quoteid']}-{$globalcounter}">{$quote['quote']}
<div>
<b><if condition="!empty($quote['author'])">
<div class="author" id="author{$quote['quoteid']}-{$globalcounter}">- {$quote['author']}</div>
</if>
<if condition="$quoteitoptions['enablecontext'] AND !empty($quote['context'])">
<span class="context" id="context{$quote['quoteid']}-{$globalcounter}">({$quote['context']})</span>
</if></b>
</div></span>
</td>
<td>
<img src="{$stylevar['imgdir_misc']}/quotation-close.png" alt="“" width="60px" height="51px">
</td>
<td width="15%" align="right" valign="top">
<if condition="($quote['userid'] == $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditownquotes']) OR ($quote['userid'] != $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditotherquotes'])">
<a rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&page={$quotedisplay['page']}&do=editquote&quoteid={$quote['quoteid']}" onclick="editQuote(event, {$quote['quoteid']}, {$globalcounter});return false;"><img class="inlineimg" src="{$stylevar['imgdir_button']}/edit.gif" alt="{$vbphrase['edit_this_quote']}" /></a>
<br>
</if>
<if condition="($quote['userid'] == $vbulletin->userinfo['userid'] AND $quoteitpermissions['candeleteownquotes']) OR ($quote['userid'] != $vbulletin->userinfo['userid'] AND $quoteitpermissions['candeleteotherquotes'])">
<a rel="nofollow" href="quotes.php?{$vbulletin->session->vars['sessionurl']}{$quotedisplay['querystring']}{$quotedisplay['orderstring']}&page={$quotedisplay['page']}&do=delquote&quoteid={$quote['quoteid']}" onclick="deleteQuote(event, {$quote['quoteid']});return false;">{$vbphrase['delete_this_quote']}</a>
<br>
</if>
<if condition="$quoteitpermissions['canmoderatequotes'] AND THIS_SCRIPT == 'quotes'">
<input class="inlineimg" type="checkbox" name="modquotes[{$quote['quoteid']}]" id="modquotes{$quote['quoteid']}" value="y" onclick="selectQuote({$quote['quoteid']});"{$checked[$quote['quoteid']]} />
</if>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<if condition="$_REQUEST['do'] != 'preview' AND !$sidebar">
<if condition="$quoteitoptions['ratings']">
<span id="rating{$quote['quoteid']}-{$globalcounter}">{$ratethis}</span>
<span id="stats{$quote['quoteid']}-{$globalcounter}">{$vbphrase['total_rating']}: {$quote['rating']} - {$vbphrase['votes']}: {$quote['votes']} - {$vbphrase['average']}: {$quote['average']}</span>
</if>
<span class="inlineimg unapproved" id="unapproved{$quote['quoteid']}-{$globalcounter}">
<img src="{$stylevar['imgdir_misc']}/moderated.gif" alt="{$vbphrase['unapproved_quote']}" <if condition="$quote['approved']">class="approved" </if>/>
</span>
</div>
</if>
</td>
</tr>
</table>
</td>
</tr>
The quote_randomquote has been changed to:
Code:
<if condition="!defined('QUOTE_FORM_ADDED') AND ($quoteitpermissions['caneditownquotes'] OR $quoteitpermissions['caneditotherquotes'] OR $quoteitpermissions['candeleteotherquotes'] OR $quoteitpermissions['candeleteownquotes'])">
<form action="quotes.php" method="post" id="sneakyform">
<input type="hidden" name="s" value="{$vbulletin->session->vars['sessionhash']}" />
<input type="hidden" name="do" value="edit" />
<input type="hidden" name="quoteid" id="hiddenquoteid" />
<input type="hidden" name="quote" id="hiddenquote" />
<input type="hidden" name="author" id="hiddenauthor" />
<input type="hidden" name="context" id="hiddencontext" />
<input type="hidden" name="category[]" id="hiddencategory" />
<input type="hidden" name="all" id="hiddenall" value="{$sneaky['all']}" />
<input type="hidden" name="searchtext" id="hiddensearchtext" value="{$sneaky['searchtext']}" />
<input type="hidden" name="searchauthor" id="hiddensearchauthor" value="{$sneaky['searchauthor']}" />
<input type="hidden" name="searchcontext" id="hiddensearchcontext" value="{$sneaky['searchcontext']}" />
<input type="hidden" name="sortby" id="hiddensortby" value="{$sneaky['sortby']}" />
<input type="hidden" name="order" id="hiddenorder" value="{$sneaky['order']}" />
</form>
</if>
<table id="forumhome_randomquote{$quotecount}" class="randomtable tborder" cellpadding="0" cellspacing="0" width="{$stylevar['tablewidth']}" align="center">
<thead>
<tr><td class="tcat">
<div class="quoteheading">
<if condition="$sidebar">{$vbphrase['quote']}
<else />
<a href="quotes.php?{$vbulletin->session->vars['sessionurl']}do=list"><if condition="$sidebar">{$vbphrase['all']}<else />{$vbphrase['random_quote']}</if></a>
</if>
</div>
<div class="collapsebutton">
<a href="#top" onclick="return toggleMultiCollapse('forumhome_randomquote');"><img id="collapseimg_forumhome_randomquote{$quotecount}" src="{$stylevar['imgdir_button']}/collapse_tcat{$vbcollapse['collapseimg_forumhome_randomquote']}.gif" alt="{$vbphrase['collapse_this']}" class="inlineimg" /></a>
</div>
</td></tr>
<tr><td class="thead">
Random Quote
</td></tr>
</thead>
<tbody id="collapseobj_forumhome_randomquote{$quotecount}" style="{$vbcollapse['collapseobj_forumhome_randomquote']}">
{$quotelistbit}
</tbody>
</table>
<!--
Powered by QuoteIt! {$quoteitoptions['version']}
{$quoteitdebug}
-->
The only thing now is how to hide the Moderation drop down box to show only for moderators - any suggestions?
|
This works FANTASTIC - makes the Random quote box much smaller and looks much better on the forum. Thank you so much - I was trying to fix this over and over and couldn't get it to work. Now it looks great.
Thank you very much for this whole modification CapN Steve, our members LOVE it!