The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Showing data from the database
So, I've spent the last 5 hours rewriting an old modification, making something new out of it, and I am now stuck at a point where I don't know what to do next lol
Basically, I made a random quote database (and it works too (I think)), I just need to find out how to show the quote and the author on the forum side now. This is actually my first time making something this extensive in the AdminCP Anyway, upon installation, I've made it so it'll add predefined quotes to the database, which looks something like: Code:
$db->hide_errors(); $db->query_write("CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "usml_quotesdb` ( `quoteid` int(10) NOT NULL auto_increment, `author` varchar(50) NOT NULL, `quote` varchar(350) NOT NULL, PRIMARY KEY (`quoteid`) )"); $db->query_write("INSERT INTO `" . TABLE_PREFIX . "usml_quotesdb` (`quoteid`, `author`, `quote`) VALUES (1, 'Author1', 'Quote1'), (2, 'Author2', 'Quote2'), (3, 'Author3', 'Quote3') "); $db->show_errors(); Thanks in advance |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|