The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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 ![]() ![]() 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 ![]() |
#2
|
||||
|
||||
![]()
Here's the screenshot of what I have so far
![]() |
#3
|
||||
|
||||
![]()
Are you asking for help displaying these on the forums and are wondering how to put them there?
|
#4
|
||||
|
||||
![]() Quote:
If the id = 1, then it shows "Quote 1 - Author 1", if the id = 2, then it shows "Quote 2 - Author 2", etc, etc. |
#5
|
||||
|
||||
![]()
So you do the query for the quote..
PHP Code:
PHP Code:
HTML Code:
{vb:raw myquote.quote} {vb:raw myquote.author} Is that what you were asking? |
Благодарность от: | ||
HMBeaty |
#6
|
||||
|
||||
![]()
I think so. I've attached the file to show the contents of what I currently have. Now my question is, if I use:
PHP Code:
(I'm not too experienced with queries at all ![]() ![]() EDIT: oops, forgot to attach the file lol. Anyway, this is going to be located at /admincp/quotesdb.php PHP Code:
|
#7
|
||||
|
||||
![]()
I think I found something that would work how I need.....
PHP Code:
PHP Code:
--------------- Added [DATE]1324604070[/DATE] at [TIME]1324604070[/TIME] --------------- Woohoo! I've got it working (I think)! Now to tidy everything up ![]() One more question....the columns in the admincp (ID, Author, Quote, Action), is it possible to make those a fixed width? |
#8
|
||||
|
||||
![]()
The text areas are the size that you define for the <input> area.
Glad you got it working. ![]() |
#9
|
||||
|
||||
![]()
I mean the column width for the columns in the top table. Like, for example, maybe make the ID column 10px wide and the other Action column around 200px wide and I guess the others would expand with what room is left
![]() --------------- Added [DATE]1324623736[/DATE] at [TIME]1324623736[/TIME] --------------- Figured that out as well. Got the code from admincp/block.php ![]() What I did was, above: PHP Code:
PHP Code:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|