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)

Bubble #5 12-07-2005 02:43 AM

We tried that. Still doesn't show up :(

Here is what is at the top of our header template:

HTML Code:

$showrandomquote
<table border="0" width="90%" cellpadding="0" cellspacing="0" align="center">
<tr>
<img src="$stylevar[imgdir_misc]/header_xmas.gif" width="890" height="50" border="0">
</tr>
<br />
<tr>
        <td align="left"><a href="index.php?"><img src="$stylevar[imgdir_misc]/headerlogo.png" width="269" height="227" border="0"></a></td>

Here is what we see from view source:

HTML Code:



<table border="0" width="90%" cellpadding="0" cellspacing="0" align="center">
<tr>
<img src="images/soness/misc/header_xmas.gif" width="890" height="50" border="0">
</tr>
<br />
<tr>
        <td align="left"><a href="index.php?"><img src="images/soness/misc/headerlogo.png" width="269" height="227" border="0"></a></td>
        <td align="center" valign="middle">

As you can see $showrandomquote is nowhere to be found :(

In listquote you have $header and $navbar listed above the code. Could that have anything to do with it? We tried moving them both to under the code but it didn't seem to help. The quotation marks for the quote DO show up, just not the actual quote itself :ermm:

Bubble #5 12-07-2005 02:56 AM

OK nevermind, we've got it Steve. Thanks ! :nervous:

Bubble #5 12-07-2005 07:19 AM

...would be GREAT if you could make an approve all button... :ermm:

Cap'n Steve 12-08-2005 04:46 AM

You can just set the number of quotes to moderate at once to some high number, then use the approve buttonto set them all to approve.

Bubble #5 12-08-2005 04:59 AM

Where do we set the number of quotes at?

And don't you have to click on each quote before you can approve it?

Cap'n Steve 12-08-2005 07:58 PM

It's under vBulletin Options -> QuoteIt! Options. Then you click the approve button at the top to set all the "action" radio buttons to "approve", then click the button at the bottom to save it. It works just like thread and post moderation.

Bubble #5 12-08-2005 08:52 PM

Thanks Steve :)

I just noticed that it has a feature there to turn moderation off. That would work out even better yet, since the Admin is the only one entering in quotes :nervous:

I think the only feature that this hack is missing is the ability to enter a page of quotes at once.

dieselpowered 12-16-2005 06:27 PM

Hi there, I just wanted to let you know that when adding a quote, editing a quote, or viewing all quotes, the title bar in the brower shows:

Array[bbtitle] - Add a Quote

I assume this is not correct...how do we fix?

Thanks!!

Cap'n Steve 12-16-2005 11:38 PM

Just find $vbulletin->options[bbtitle] and replace it with $vboptions[bbtitle] in your templates to fix the title problem.

Warrior 12-17-2005 05:34 AM

If you want to add an image to the left of the quote, edit quote_listbit and quote_randomquote and put the image between <td class="alt1" width="30%"> and </td>.[/QUOTE]
Sweet - I put some big transparent quotes using this...
Code:

<tr><td class="alt1" width="30%">
After this, put a left side transparent quote gif...

Code:

<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
And after this put a right side transparent quote gif...

Screenshot attached...

dieselpowered 12-17-2005 07:12 AM

Quote:

Originally Posted by sengerdw
If you want to add an image to the left of the quote, edit quote_listbit and quote_randomquote and put the image between <td class="alt1" width="30%"> and </td>.

Sweet - I put some big transparent quotes using this...
Code:

<tr><td class="alt1" width="30%">
After this, put a left side transparent quote gif...

Code:

<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
And after this put a right side transparent quote gif...

Screenshot attached...[/QUOTE]

Looks great...would you mind sharing those images??

Warrior 12-17-2005 07:32 AM

Quote:

Originally Posted by xtremeoff-road
Looks great...would you mind sharing those images??

No problem - see attached... BTW - they have some extra transparrent padding built into the gifs to position them correctly...

Warrior 12-17-2005 09:26 AM

What was changed in 2.1??

I have 2.0, do I need to replace some files or rewrite everything?

dieselpowered 12-17-2005 03:28 PM

I must be going something wrong...what is the code to add the quotes??

I am not sure that the code you have listed above exist in the new version. I do not know, any chance I can get you to give me some more defined instruction...sorry for the ignorance :)

Warrior 12-17-2005 05:08 PM

Quote:

Originally Posted by xtremeoff-road
I must be going something wrong...what is the code to add the quotes??

I am not sure that the code you have listed above exist in the new version. I do not know, any chance I can get you to give me some more defined instruction...sorry for the ignorance :)

Sure... open your template editor and get the template called "quote_randomquote" - this is using the quote gifs in my last post:

Find...
Code:

<tr><td class="alt1" width="30%">
After this, add...
Code:

<img src="http://www.yoursite.com/images/quoteleft.gif" alt="" width="150" height="97" border="0">
Then...
Code:

<a style="float:$stylevar[right];" href="$vboptions[bburl]/quotes.php?do=view&quoteid=$randomquote[quoteid]">#$randomquote[quoteid]</a>
And after this, add...
Code:

<br /><br /> <img src="http://www.yoursite.com/images/quoteright.gif" alt="" width="69" height="59" border="0">
Thats what I did... be sure to put the right dir for those images... if you want it in the View All Quotes list you will have to edit "quote_listquote"

dieselpowered 12-17-2005 07:08 PM

Ok that worked...not sure what I was doing wrong.

How did you make those quotes? I really am trying to change the color, but it won't change it :( I was thinking more of a grey to match our site better.

Thanks for the help!!!

vonedaddy 12-18-2005 02:28 AM

I checked the instructions 10 times and I did everything exact-to the T. I am getting DB errors, anyone's help is appreciated.

Database error in vBulletin 3.5.2:

Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT COUNT(*) AS quotes FROM vbquotes
WHERE approved = 1;

MySQL Error : Table 'vonaone.vbquotes' doesn't exist
Error Number : 1146
Date : Saturday, December 17th 2005 @ 08:21:35 PM
Script : http://hereyah.com/forum/quotes.php
Referrer :
IP Address : **.**.**.**
Username : savone
Classname : vb_databasedatabase


BTW, I dont see anything. Looks like nothing happened... No admin options, no quotes box, nothing. And when I go right to quotes.php I get that error!

Cap'n Steve 12-18-2005 03:29 AM

vonedaddy - try reimporting the product, be sure to check "allow overwrite". Let me know if that causes any errors.

sengerdw - the only thing changed was to allow 3.5 compatibility.

Nice work on those quotation mark images, by the way.

vonedaddy 12-18-2005 03:32 AM

I assume to reimport you would need to uninstall... When I try to reinstall I get the following error:

Database error in vBulletin 3.5.2:

Invalid SQL:

DROP TABLE vbquotes;

MySQL Error : Unknown table 'vbquotes'
Error Number : 1051
Date : Saturday, December 17th 2005 @ 09:32:02 PM
Script : http://hereyah.com/forum/admincp/plugin.php
Referrer : http://hereyah.com/forum/admincp/plu...tid=quoteit&s=
IP Address : 68.46.5.248
Username : savone
Classname : vb_database


By the way I just re-imported and nothing still. Checked the database and no tables. But I do see the options in the control panel now, but if I enable it my forums dont work.

Warrior 12-18-2005 02:51 PM

Quote:

Originally Posted by Cap'n Steve
vonedaddy - try reimporting the product, be sure to check "allow overwrite". Let me know if that causes any errors.

sengerdw - the only thing changed was to allow 3.5 compatibility.

Nice work on those quotation mark images, by the way.

2.0 has been working great on vB 3.5.2 as far as I can tell. Can I just copy over the PHP files from 2.1 or should I reimport the product too? I didn't see any upgrade documentation... :nervous:

docvader 12-18-2005 05:13 PM

I've been using Quoteit in vb 3.07 for quite some time, without problems. I successfully upgraded to vb 3.52, and followed your instructions to install this new version. I had the same problem that Snort had, used the upgrade xml file recently suggested, and I still get database errors. Now my index page is gone
Quote:

Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT COUNT(*) AS count FROM quotes AS quotes
WHERE approved = 1;

MySQL Error : Table 'vbtest.quotes' doesn't exist
Error Number : 1146
Date : Sunday, December 18th 2005 @ 11:16:06 AM
Script : http://x.russbo.com/vbtest/index.php
any suggestions? This certainly did not "upgrade" smoothly at all.

docvader 12-18-2005 05:20 PM

I successfully uninstalled it and got my board back. But, it won't upgrade without database errors
Quote:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'showquote',
'forumhome',
'1',
'0',
'boolean',
'yesno',
90,
0,
1,
'quoteit'
),
(
'ratequote',
'forumhome',
'2',
'0',
'number',
'<select name=\\\"setting[ratequote]\\\" tabindex=\\\"1\\\" class=\\\"bginput\\\">\r\n<option value=\\\"0\\\" \" . iif($setting[\'value\']==0, \'selected=\"selected\"\') . \">\" . $vbphrase[\'disabled\'] . \"</option>\r\n<option value=\\\"1\\\" \" . iif($setting[\'value\']==1, \'selected=\"selected\"\') . \">\" . $vbphrase[\'plus_or_minus\'] . \"</option>\r\n<option value=\\\"2\\\" \" . iif($setting[\'value\']==2, \'selected=\"selected\"\') . \">\" . $vbphrase[\'1_to_5\'] . \"</option>\r\n</select>',
100,
0,
1,
'quoteit'
),
(
'averagethreshold',
'forumhome',
'',
'',
'number',
'',
110,
0,
1,
'quoteit'
),
(
'totalthreshold',
'forumhome',
'',
'',
'number',
'',
120,
0,
1,
'quoteit'
);

MySQL Error : Duplicate entry 'showquote' for key 1
Error Number : 1062
Date : Sunday, December 18th 2005 @ 11:29:41 AM
Script : http://x.russbo.com/vbtest/admincp/plugin.php
Referrer : http://x.russbo.com/vbtest/admincp/p...?do=productadd
IP Address : 67.77.47.30
Username : doc
Suggestions? Should I wipe out all of my Quoteit tables (I have backups), install this fresh, and then import the tables again??? I'm not sure how to do that, by the way :)

thanks
rich

Warrior 12-18-2005 05:33 PM

Quote:

Originally Posted by Cap'n Steve
vonedaddy - try reimporting the product, be sure to check "allow overwrite". Let me know if that causes any errors.

sengerdw - the only thing changed was to allow 3.5 compatibility.

Nice work on those quotation mark images, by the way.

Nevermind my last post - I just checked my plugin manager and it shows I have 2.1... the folder says 2.0 so I got confused... :ermm:

vonedaddy 12-18-2005 05:35 PM

Quote:

Originally Posted by vonedaddy
I assume to reimport you would need to uninstall... When I try to reinstall I get the following error:

Database error in vBulletin 3.5.2:

Invalid SQL:

DROP TABLE vbquotes;

MySQL Error : Unknown table 'vbquotes'
Error Number : 1051
Date : Saturday, December 17th 2005 @ 09:32:02 PM
Script : http://hereyah.com/forum/admincp/plugin.php
Referrer : http://hereyah.com/forum/admincp/plu...tid=quoteit&s=
IP Address : 68.46.5.248
Username : savone
Classname : vb_database


By the way I just re-imported and nothing still. Checked the database and no tables. But I do see the options in the control panel now, but if I enable it my forums dont work.

Capt, some help please :)

Anyone have any ideas for me?

samu2 12-18-2005 06:09 PM

OK Installed,it is up and running,I have it set ti show on forum home,however there are no options for it in Admin CP,I cant moderat quotes or anything as their are no options for it at all.

Ive uploaded the admin cp folder and re built my bitfields,nothing. thank you in advance

Cap'n Steve 12-18-2005 09:30 PM

samu2 - try editing a plugin in the Plugin Manager and then saving it without changing anything.

vonedaddy - do NOT uninstall. Just reimport the the product and check the "allow overwrite" box. If there are any errors during installation, post them.

docvader - run these queries to make sure the quote settings get reset:

Code:

DELETE FROM $TPsetting WHERE varname IN ("showquote", "ratequote", "averagethreshold", "totalthreshold")
Code:

DELETE FROM $TPdatastore WHERE title = "quote_settings"
Just replace the $TP with your table prefix first.

samu2 12-18-2005 09:41 PM

Quote:

try editing a plugin in the Plugin Manager and then saving it without changing anything.
Did that,it saved fine,nothing happened :)

Cap'n Steve 12-18-2005 10:17 PM

That's really strange, are you sure cpnav_quoteit.xml is in your includes/xml folder? Try going to admincp/quoteadmin.php.

docvader 12-18-2005 11:02 PM

Cap'n
Running those queries "cleaned" out the database and allowed me to freshly install the system without problems, on my test board.

Now, before I do this on my real board, how would you suggest I protect the few hunded quotes we've accumulated? How do I get them out of the database and then, after instaling quoteit, get those quotes back into the database??

Thanks for you help man. As usual, you're incredible prompt and effective

rich
x.russbo.com

Cap'n Steve 12-18-2005 11:23 PM

Those queries will cause you to lose your old settings but not the quotes. It never hurts to make a backup, though.

vonedaddy 12-19-2005 12:35 AM

Quote:

Originally Posted by Cap'n Steve
vonedaddy - do NOT uninstall. Just reimport the the product and check the "allow overwrite" box. If there are any errors during installation, post them.


Did what you asked. Everything seemed fine, no errors during re-import. But it still gives me the same error when calling the quotes.php file.

Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT COUNT(*) AS quotes FROM vbquotes
WHERE approved = 1;

MySQL Error : Table 'vonaone.vbquotes' doesn't exist
Error Number : 1146
Date : Sunday, December 18th 2005 @ 06:34:20 PM
Script : http://hereyah.com/forum/quotes.php
Referrer :
IP Address : 68.46.5.248
Username : savone
Classname : vb_database

Cap'n Steve 12-19-2005 01:39 AM

That's really weird. Somehow it thinks you already have the quotes table when apparently you don't. Run these two queries to add the tables:

Code:

CREATE TABLE $TPquotes (
        quoteid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
        quote MEDIUMTEXT NOT NULL,
        author VARCHAR(75) NOT NULL,
        userid INT(10) UNSIGNED NOT NULL DEFAULT 0,
        approved TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
        votes SMALLINT(10) UNSIGNED NOT NULL DEFAULT 0,
        rating MEDIUMINT(10) NOT NULL DEFAULT 0,
        average FLOAT(3, 2) NOT NULL DEFAULT 0.00,
        context VARCHAR(250),
        PRIMARY KEY (quoteid),
        INDEX (rating),
        INDEX (average),
        KEY approved (approved))

Code:

CREATE TABLE $TPquoteratings (
        quoteid INT(10) UNSIGNED NOT NULL,
        userid INT(10) UNSIGNED NOT NULL,
        rating TINYINT(1) NOT NULL,
        PRIMARY KEY (quoteid, userid))

As always, replace $TP with your table prefix.

vonedaddy 12-19-2005 02:05 AM

Got it, it didnt work at first but I noticed it created two tables.. One called $TBquotes and another called $TBquoteratings. So I ran the queries again and changed the names accordingly. It works now, thanks a million.

Also this is an awesome hack. Right now I am having some display problems but if I cant figure them out you will hear from me again. Thanks for this hack, and the support, two thumbs up.

vonedaddy 12-19-2005 02:06 AM

Quote:

Originally Posted by Cap'n Steve

As always, replace $TP with your table prefix.

DUH, Sorry. I just noticed that as I hit submit. I'm a moron, again thanks.

dieselpowered 12-19-2005 02:40 AM

Well I am not sure what happened, however, it refuses to save quotes now??? It was working, however, now when I attempt to add a quote it does not save it??

Any help would be appreciated!

Cap'n Steve 12-19-2005 02:46 AM

Does it give you an error? You may have to moderate the quotes before they show up if that option is on.

dieselpowered 12-19-2005 03:12 AM

Darnit, that is right, I turned on moderation. Sorry, I will have another drink... :)

dieselpowered 12-19-2005 03:25 AM

I would like to add the code to moderate the quotes within the moderation module in CMPS. I know the url to the moderation page, however, was curious if there was a way to place the number of quotes awaiting moderation next to the link.

Any thoughts? Thanks :)

Also, I had to delete a bunch of posts, now I have quotes 1-4 and then the next is quote #8. Is there any way to get the those numbers in sequence?

Cap'n Steve 12-19-2005 04:05 AM

Quote:

Originally Posted by xtremeoff-road
I would like to add the code to moderate the quotes within the moderation module in CMPS. I know the url to the moderation page, however, was curious if there was a way to place the number of quotes awaiting moderation next to the link.

Check out this post.

Quote:

Originally Posted by xtremeoff-road
Also, I had to delete a bunch of posts, now I have quotes 1-4 and then the next is quote #8. Is there any way to get the those numbers in sequence?

Not right now. It's already been requested for the next version, though.

dieselpowered 12-19-2005 05:29 AM

Quote:

Originally Posted by Cap'n Steve
Check out this post.

No my friend, I am looking for the code to add to my CMPS moderation module so that I do not have to go into the admincp every time to check if new quotes have ben submitted.

Quote:

Originally Posted by Cap'n Steve
Not right now. It's already been requested for the next version, though.

I went into the db and manually changed it, thanks :)


All times are GMT. The time now is 02:25 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.01632 seconds
  • Memory Usage 1,862KB
  • 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
  • (12)bbcode_code_printable
  • (2)bbcode_html_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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