vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   QuoteIt! Quote Management System v1.2 (https://vborg.vbsupport.ru/showthread.php?t=62470)

58sniper 09-28-2004 01:50 AM

Quote:

Originally Posted by KW802
I should've specified "copy, paste, & replace all of the lines otherwise the logic will be backwards, anybody who has moderation privileges would be controlled through the ACP and everybody else would've been un-moderated." :p

Ah - what I mean was that was the only line that *I* changed that made it work. I did replace the code per your instructions. When THAT didn't work, I changed the one line I mentioned. Sorry I wasn't clear.

58sniper 09-29-2004 02:38 AM

Okay, I seem to have hit a snag. Seems that the quotes aren't very random for me. I get the same quote each time. If I delete that quote, I'll get a new quote, but then that same new quote each time.

Anyone seen this?

KW802 09-29-2004 05:36 PM

Quote:

Originally Posted by 58sniper
Okay, I seem to have hit a snag. Seems that the quotes aren't very random for me. I get the same quote each time. If I delete that quote, I'll get a new quote, but then that same new quote each time.

Anyone seen this?

How many quotes have you entered so far? Might be just a low base number scenario.

58sniper 09-29-2004 10:51 PM

I have about 35 entered so far.

KW802 09-29-2004 11:06 PM

Quote:

Originally Posted by 58sniper
I have about 35 entered so far.

OK, so much for my theory. :p Is there a URL to check it out?

Borgs8472 09-30-2004 11:42 PM

I've got about 300 now.

I would like this system a little better if there wasn't a "Random Quote" bar, and the whole business took up less space. It's nice, but it's pushing my forum lists downwards. :(

58sniper 10-01-2004 12:57 AM

Quote:

Originally Posted by wordforge.net
I've got about 300 now.

I would like this system a little better if there wasn't a "Random Quote" bar, and the whole business took up less space. It's nice, but it's pushing my forum lists downwards. :(

You can always edit the template to display it however you want it. The first thing I did was rip out the table in the middle of the template and move things around a little. But the fact that it's in a template make modifying its appearance easy.

kizzmet 10-06-2004 10:48 PM

Quote:

Originally Posted by KW802
To allow your administrator group to bypass being moderated (assuming that you have quotes moderation turned on in your ACP) make the following changes to quotes.php......

Find....
Code:

if (empty($author) OR empty($quote))
{
eval (print_standard_error('error_requiredfields'));
}

And below it add:
Code:

if (!$bbuserinfo['permissions']['adminpermissions'])
{ // Use the moderation option set in the ACP
        $moderate_quote = $vboptions[moderatequotes];
}
else
{ // Do not moderate administrator quotes
        $moderate_quote = 1;
}

Right below that you should see....
Code:

$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "quotes (quote, author, userid, approved) VALUES ('" . addslashes($quote) . "', '" . addslashes($author) . "', $bbuserinfo[userid], $vboptions[moderatequotes])
");

Change the word "$vboptions[moderatequotes]" to "$moderate_quote" and try it out.


This worked for me, thank you!

kizzmet 10-06-2004 10:54 PM

Quote:

Originally Posted by KW802
For anybody else in the same position as above, the steps I took/had to take on a VB 3.0.3 & vBadvanced CMPS 1.0.0 configuration were....
  • Do Step #1 from the installation instructions
  • Do Step #2 from the installation instructions
  • Do Step #3 from the installation instructions
  • Do Step #4b from the installation instructions
  • Do Step #6 from the installation instructions
  • Upload the PHP file from Nineball
  • Do the phrase manager trick by Platinumgamer
  • Modified the randomquote template to the look & feel of the rest of my generic vBa CMPS modules (essentially give it the outside border but not on the inside cells; accomplished by doing an inner table)....
    Code:

    <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
    <thead>
            <tr>
            <td class="tcat" colspan="2">
                    <a style="float:$stylevar[right]" 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>
                    $vbphrase[random_quote]
            </td>
            </tr>
    </thead>
    <tbody id="collapseobj_forumhome_randomquote" style="$vbcollapse[collapseobj_forumhome_randomquote]">
            <tr>
            <td class="alt1">
                    <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
                    <tr>
                            <td class="alt1" align="left" colspan="2">
                            <i>"$randomquote

           
    Quote:

           
           
                   
           
           

                           

                           
                                    "</i>
                            </td>
                    </tr>
                    <tr>
                            <td class="alt1 smallfont" align="left">
                            <if condition="$bbuserinfo['userid']">(<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></if> | <a href="$vboptions[bburl]/quotes.php?do=list">$vbphrase[view_all_quotes]</a>)</if>
                            </td>
                    <td class="alt1" align="right">
                            - <b>$randomquote[author]</b>
                            </td>
                    </tr>
                    </table>
            </td>
            </tr>
    </tbody>
    </table>
    <br />
                           
                           

                   


Quote:

I need to tweak the rest of the templates yet but that's minor. The above should only take about 10-15 minutes to get you up & running with vBa CMPS.


I am running CMPS and I followed this yet it still does not appear on the VB Homepage. I also added the module and designated ramdonquote for the template. Any help please?

xug 10-11-2004 02:46 AM

I'm not sure if it's already mentioned, but when you set '$perpage = 10' or whatever number you want it should show that number per page, but it doesn't, it even skips some quotes to be projected while they are there in the database!!!

any solution for this?


All times are GMT. The time now is 10:56 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.02225 seconds
  • Memory Usage 1,767KB
  • 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
  • (8)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