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)

NuclioN 03-14-2004 07:34 PM

Ok, that worked. :) there are two quotes now but when i click on 'View All' no quote is visable.

magnus 03-14-2004 07:40 PM

Quote:

Originally Posted by NuclioN
Ok, that worked. :) there are two quotes now but when i click on 'View All' no quote is visable.

You've got the link screwed up.

It should be
Code:

$vboptions[bburl]/quotes.php?do=list
You have:
Code:

$vboptions[bburl]/quotes.php?do=view
I checked the .ZIP file, to see if it was a mistake on my part.. but it appears you modified the templates, and mistakenly confused the link. ;)

NuclioN 03-14-2004 07:42 PM

Ok tnx. :)

--edit-- works ok now

Leah 03-14-2004 07:49 PM

Quote:

Originally Posted by magnus
Looks like a cut & paste gone wrong? I'm assuming line 19 is the QuoteIt! code. It looks like you left off a few trailing characters, open up the readme file and cut/paste again.

That didn't work.

magnus 03-14-2004 07:51 PM

Quote:

Originally Posted by kie
That didn't work.

Ok, remove the QuoteIt! code from index.php all together. Then, see if you still get the error.

Leah 03-14-2004 07:55 PM

Quote:

Originally Posted by magnus
Ok, remove the QuoteIt! code from index.php all together. Then, see if you still get the error.

I didn't get the error when I removed the code.

I also don't get the error when I have the code, but turn off the random quotes from the admincp.

magnus 03-14-2004 07:59 PM

Just for the hell of it..

In INDEX.PHP:

Find:
PHP Code:

// ### WELCOME MESSAGE ################################################# 

Add ABOVE:
PHP Code:

    // ### QUOTEIT #########################################################
if ($vboptions['showquote'])
{
    
$result_quote $DB_site->query("
        SELECT * FROM " 
TABLE_PREFIX "quotes ORDER BY rand() LIMIT 1
    "
);

    while (
$quote $DB_site->fetch_Array($result_quote)) {
        
$randomquote[quoteid] = $quote[quoteid];
        
$randomquote[quote] = $quote[quote];
        
$randomquote[author] = $quote[author];
        
$randomquote[userid] = $quote[userid];
        
$randomquote[approved] = $quote[approved];
    }
    
$DB_site->free_result($result_quote);

    eval(
'$showrandomquote .= "' fetch_template('randomquote') . '";');



Leah 03-14-2004 08:04 PM

Didn't fix it.
The problem appeared after I tried to upgrade, so I'm guessing that it's something with the new templates og something.

magnus 03-14-2004 08:07 PM

Quote:

Originally Posted by kie
Didn't fix it.
The problem appeared after I tried to upgrade, so I'm guessing that it's something with the new templates og something.

Ahh! I know what it is. I've gone ahead an edited the upgrade instructions. I had cut and paste them from the installer, and I forgot that I left them escaped. So, just edit the template and look for any instance of \' and replace it with just '.

You'll need to edit the randomquote, quote_listquote and quotelistbit templates.

That's why it's crapping out. ;)

Giveit2u43 03-14-2004 08:09 PM

Magnus, you need to strip the \'s out of the html above.. they`re okay when you're using an installer but cause problems when you're manually adding the templates..

also you`ve changed the name of the function for view to list, but not changed the link in the html in the upgrade instructions.


All times are GMT. The time now is 01:13 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.01276 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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