vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   QuoteIt! - Quote Database (https://vborg.vbsupport.ru/showthread.php?t=97585)

Cap'n Steve 11-15-2005 04:07 AM

Quote:

Originally Posted by OneShot
One Question tho, is it possible to make the number of Quotes to moderate appear in the AdminCP Control Panel Home below Threats, Events and so on to moderate?

Not yet. I'll put that on the list to be included in the next version.

Quote:

Originally Posted by TygerTyger
And would it be possible for number of ratings (Total Ratings to count the number of times a quote has been rated, as opposed to adding up the scores it has been given?

$randomquote[votes] holds the number of votes. I'll take a look at getting the ids in order, and I already know about the phrase. It's not missing, I just can't seem to find the right phrasegroup for it.

Quote:

Originally Posted by Greebo
I've got the quotes showing up in my portal homepage, but whenever anyone, myself included, attempts to add a quote, edit a quote, or view all quotes (in short any access to quotes.php) all we get is a blank page with just html and body tags in it.

I really have no idea. Could you put the quotes.php file back up so I can take a look at it?

GrendelKhan{TSU 11-15-2005 06:17 AM

please tell me this is a fully phrased hack!! :)



I'm all over it if it is...looks great!! :D :D

TygerTyger 11-15-2005 10:53 AM

Certainly is phrased :)

I'm allllllmost done setting this to use much less tables, but I'm stuck. On the FORUMHOME I have it set so that if the rating dropdown is available, the average vote scores etc don't show. Once you've voted, it is reversed. This works fine on FORUMHOME using the basic <if><else /></if> that's already in place in the mod, but it doesn't work on the View All Quotes page? The <else /> part just doesn't display.

And secondly the last things I need to customise are $sortby and $votebutton, I can't find where to do so for this mod? Are they standard vBulletin variables and not specific to the mod?

Edit: Hm, the title of my View All Quotes page is Array[bbtitle]?

Cap'n Steve 11-15-2005 11:19 PM

Quote:

Originally Posted by TygerTyger
And secondly the last things I need to customise are $sortby and $votebutton, I can't find where to do so for this mod? Are they standard vBulletin variables and not specific to the mod?

Edit: Hm, the title of my View All Quotes page is Array[bbtitle]?

$sortby and $votebutton are both generated in the quotes.php file. To fix the title, find all instances of "$vbulletin->options" in your templates and replace them with "$vboptions". To know what's wrong with your <if> statement, I'd have to see the template.

Borgs8472 11-17-2005 02:30 AM

Thanks for a great port of your hack steve.

Only one problem left, even with context on, the context field is not filled in with a thread reference, it is blank.

Any ideas why this could be or how to fix? Thanks :)

Borgs8472 11-17-2005 02:51 AM

Quote:

Originally Posted by Cap'n Steve
Just edit the Random Quote plugin so it uses the global_start hook and add this code at the end:
PHP Code:

$threshold ''

Then add the $showrandomquote to whatever templates you want to.

btw, 'woo!'

Cap'n Steve 11-18-2005 05:54 AM

Quote:

Originally Posted by Borgs8472
Only one problem left, even with context on, the context field is not filled in with a thread reference, it is blank.

Any ideas why this could be or how to fix? Thanks :)

It should be added to the context after the quote is submitted. It doesn't show up in the box right now.

nexus851 11-18-2005 11:44 AM

Seems after i installed the quoteit, i have 2 title bars.. (top one is the CMPS title, and the bottom is the Quoteit title) I want to get rid of one of the bar so it doesnt look funny... Can anyone help me with this? Do i remove or replace a code? Here's my quoteit_random template:


PHP Code:

.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="$vbulletin->options[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="$vbulletin->userinfo['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%">

<
img src="$vboptions[bburl]/plasma/misc/pickup_final.gif" width="80" height="80">

</
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="$vbulletin->options[ratequote]==3">
    <
tr><td class="alt1" align="left" colspan="3">
    
$vbphrase[total_rating]: $randomquote[rating] - $vbphrase[average]: $randomquote[average]
    </
td>
</if>

<if 
condition="$vbulletin->options[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="$vbulletin->options[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


Cap'n Steve 11-18-2005 08:32 PM

I can't see your site right now, do you mean you have a second navbar? The quote shouldn't have anything to do with that. Is that your entire quote_randomquote template? I can see already that you're missing a couple lines if it is.

nexus851 11-18-2005 09:20 PM

yeah, 2 navbars. 1 navbar is from the CMPS module, and the other is from the template module i guess..

yeah, that is my entire _quote_randomquote template. If im missing lines, please post
them or revise so that one of the title bar dissapears.

P.S- I had to remove the "/table" line from the bottom of the template because it was messing up the tables of any modules i put after this quoteit module. By removing it, it fixed the problem...


All times are GMT. The time now is 03:41 PM.

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.01706 seconds
  • Memory Usage 1,842KB
  • 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
  • (2)bbcode_php_printable
  • (6)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