vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - QuoteIt! - Quote Database (https://vborg.vbsupport.ru/showthread.php?t=135297)

Cap'n Steve 04-20-2007 01:56 AM

Any errors? If you're talking about the site in your signature, it's not currently installed.

karlm 04-24-2007 12:42 AM

A new error for you to look at, cap'n Steve.

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/forum/htdocs/forum/includes/adminfunctions.php:3319) in /includes/functions.php on l
I noticed my 'submit' button & post counts (in postbit) were suddenly missing for no apparent reason. I uninstalled quoteit (v3.16) and then reinstalled.
As it the plugin was uploaded, it gave the above error.

I'm at a complete loss as to what it even means LoL

Cap'n Steve 04-25-2007 03:38 AM

Could you tell me what's on line 3319 in includes/adminfunctions.php? It looks like there was an error installing.

karlm 04-25-2007 11:18 AM

Quote:

Originally Posted by Cap'n Steve (Post 1235097)
Could you tell me what's on line 3319 in includes/adminfunctions.php? It looks like there was an error installing.



Code:

$output_handler = @ini_get('output_handler');
The surrounding code:-

Code:

// ############################## Start vbflush ####################################
/**
* Force the output buffers to the browser
*/
function vbflush()
{
    static $output_handler = null;
    if ($output_handler === null)
    {
        $output_handler = @ini_get('output_handler');
    }

    if ($output_handler == 'ob_gzhandler')
    {
        // forcing a flush with this is very bad
        return;
    }


Cap'n Steve 04-26-2007 12:30 AM

Hmm. I'm really not sure what's causing the output. Try installing it again, and make sure you get the whole error message. It looks like the previous one was referencing something in includes/functions.php.

karlm 04-26-2007 03:33 PM

Right this moment, i'm in the process of swapping hosts - but, when installing, the error messages & vanishes so quickly - i had to do it gawd knows how many times just to get that much copied LoL.
as soon as all is done here with the swapping hosts, i'll get onto checking the re-installation.

Cap'n Steve 04-27-2007 02:57 AM

You could try just taking a screenshot.

iBaker 04-27-2007 04:39 AM

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&amp;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']}&amp;page={$quotedisplay['page']}&amp;do=report&amp;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&amp;quoteid={$quote['quoteid']}">#{$quotedisplayid}</a>
  </if>
 </if>
</td>
<td>
<img src="{$stylevar['imgdir_misc']}/quotation-open.png" alt="“" width="60px" height="51px">&nbsp;
</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">&nbsp;
</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']}&amp;page={$quotedisplay['page']}&amp;do=editquote&amp;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']}&amp;page={$quotedisplay['page']}&amp;do=delquote&amp;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>&nbsp;&nbsp;
  <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?

Chadi 04-27-2007 05:16 PM

Just like the last time I upgraded your mod, the mod no longer shows quotes and the 3 quoteit sheduled tasks became disabled. I re-enabled those 3, ran them and still does not show up. Any reason?

Cap'n Steve 04-27-2007 08:31 PM

Try saving the QuoteIt! Options and a set of Usergroup Permissions. Like I said, you don't need to worry about the scheduled tasks.


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01683 seconds
  • Memory Usage 1,771KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete