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 05-21-2006 06:34 AM

See this post for instructions on adding it to other templates.

Conspiracy 05-21-2006 08:47 AM

Quote:

Originally Posted by Cap'n Steve
See this post for instructions on adding it to other templates.

Thanks alot, got it working now :D!

username12 05-23-2006 02:24 AM

The quote part of it works. It's getting it to show up that's causing me problems. My settings don't seem to be saving. Don't know whether that's as desired or if it's the problem.

Cap'n Steve 05-23-2006 06:34 AM

You mean the random quote isn't showing up? Try enabling it through vBulletin Options->Forum Home Page Options.

username12 05-23-2006 09:19 PM

Don't have an option there. Perhaps I missed something?

Cap'n Steve 05-24-2006 04:16 AM

Try reinstalling. It sounds like the settings never got created somehow.

username12 05-24-2006 09:16 PM

No luck. The settings to me just don't seem to be saving (when I go to the page again, they're back to the way they were at first). How would I go about manually editing the settings?

Cap'n Steve 05-25-2006 05:13 AM

Run these queries to enable it manually, replace the $TP with your table prefix:

[sql]UPDATE $TPsetting SET value = 1 WHERE varname = "showquote"[/sql]

[sql]UPDATE $TPdatastore SET data = "" WHERE title = "options"[/sql]

nitro 05-25-2006 08:47 AM

Quote:

Originally Posted by Cap'n Steve
Attached are instructions for adding a random quote block to vBadvanced CMPS. vBportal seems to have become a commercial product, if anyone knows how to create addons for that, please let me know.

UPDATE: Added instructions for adding quotes to the quick moderation block.

Should be fairly simple to make the vba portal module work in vbPortal:

Not tested, Do try this @ Home first
You can never have enough db backups
Dont blame me if you havent followed the above

Code box used for vb licenced users veiwing only.

Code:

Copy the content of this vbA modules php (quote.php) code to your fav text editor dropping the <?php and the ?> (first and last line).

Add this global line probably before any other.

global $vbpoptions, $vbplingual, $vboptions, $vbphrase, $db;

Find:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('quote_randomquote') . '";');

and change to:
eval('$showrandquote = "' . fetch_template('quote_randomquote') . '";');

and add below it:
return $showrandquote;


Now hop into your vbPortal CP and add a new block

Type: php
Title: Random quote
Weight: any number above 0
Link: (optional add link to the quote page if you want)
Uses templates: No (*for now)

save and then add your new php code to the text area and save again.

Preview block in the vbPortal CP

All good go toggle it on where you like in your module manager.

*Dont like the display ( portal block output )?

Copy the quote_randomquote template to P_quote_randomquote

Edit your block and change this line from:
eval('$showrandquote = "' . fetch_template('quote_randomquote') . '";');

to:
eval('$showrandquote = "' . fetch_template('P_quote_randomquote') . '";');

Now you can edit the portal output without affecting the forum home output. You may wish to try setting the block to use templates now. :)

Note this is not tested and is only show random quote with rating, but I think I may know someone who wants to try it out. ;)

Final note: ensure your quoteit threshold setting is such that you will get a random quote or you might not get displayed what was expected.

Thanks to Sandman53 for being the guineapig. ;)

sandman53 05-25-2006 12:57 PM

I can confirm that nitro's solution for vbportal works perfectly.


All times are GMT. The time now is 01:12 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.02072 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)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