The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Write This To Run.. MySQL
alright i have this mysql:
Code:
setting_add('v3 Articles Introduction', 'This introduction text will appear at the top of the main v3 Articles page. Use it to describe the purpose of the Articles section.', 'articleintroduction', '', '', 'textarea', '1'); setting_add('Comments Per Page', 'The number of comments to display on each page.', 'commentsperpage', '10', '10', '', '20'); setting_add('Comment Character Limit', 'The maximum character length of a user\'s comment.', 'commentlimit', '500', '500', '', '30'); setting_add('Articles Per Page', 'The number of articles to display on each page.', 'articlesperpage', '10', '10', '', '40'); setting_add('Article Attachment Limit', 'The maximum number of files which can be attached to an article.', 'maxarticleattachments', '10', '10', '', '50'); setting_add('Thumbnails Per Row', 'The number of "thumbnails", or media items to display per row.', 'artthumbsperrow', '4', '4', '', '60'); setting_add('Featured Article Preview Length', 'The number of characters to display before the preview text is truncated.', 'featuredlength', '550', '550', '', '70'); Quote:
|
#2
|
||||
|
||||
setting_add(); is a function, its not raw sql, you need to just run the script it came with.
|
#3
|
|||
|
|||
the script it came with doesn't seem to have ran it.. so i wanted to just run the query myself..
|
#4
|
||||
|
||||
I've closed your other thread, please do not double-post. Thanks
|
#5
|
|||
|
|||
Sorry bout that..
Is there anyone who can help me with this problem though. |
#6
|
|||
|
|||
Can anyone tell me how to ether run a queery to set this up, or how to add it through vbulletin if that makes sense
|
#7
|
|||
|
|||
can someone please help me
|
#8
|
|||
|
|||
What you posted is not SQL, it is a collection of functions that will build SQL and excute it. Without knowing what these functions are doing no one will be able to help you.
Where did you get this code from (the vB articles hack?). |
#9
|
|||
|
|||
Quote:
help please |
#10
|
|||
|
|||
Here is the full install part
Code:
// Add v3 Article settings if ($_REQUEST['caction'] == 2) { $DB_site->query("INSERT INTO " . TABLE_PREFIX . "settinggroup (grouptitle, displayorder, volatile) VALUES ('v3_articles', '2000', '0')"); $DB_site->query("INSERT INTO " . TABLE_PREFIX . "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'settinggroup_v3_articles', 'v3 Articles', '5000')"); setting_add('v3 Articles Introduction', 'This introduction text will appear at the top of the main v3 Articles page. Use it to describe the purpose of the Articles section.', 'articleintroduction', '', '', 'textarea', '1'); setting_add('Comments Per Page', 'The number of comments to display on each page.', 'commentsperpage', '10', '10', '', '20'); setting_add('Comment Character Limit', 'The maximum character length of a user\'s comment.', 'commentlimit', '500', '500', '', '30'); setting_add('Articles Per Page', 'The number of articles to display on each page.', 'articlesperpage', '10', '10', '', '40'); setting_add('Article Attachment Limit', 'The maximum number of files which can be attached to an article.', 'maxarticleattachments', '10', '10', '', '50'); setting_add('Thumbnails Per Row', 'The number of "thumbnails", or media items to display per row.', 'artthumbsperrow', '4', '4', '', '60'); setting_add('Featured Article Preview Length', 'The number of characters to display before the preview text is truncated.', 'featuredlength', '550', '550', '', '70'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|