The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
VB Plugins - Good Coding practices
Is there any good resource for the best practices when writing plugins?
I have written a few for my personal site so far, however I would like to get into the practice of using the available VB functions when doing this. For example, here is a snip of code Code:
$content = ""; $query = "SELECT title, sid, summary, username, rid, unix_timestamp(updated) from fanfiction_stories as s,vb_user as a WHERE a.userid = s.uid AND s.validated > 0 AND s.uid = $userinfo[userid] ORDER BY updated DESC"; $results = mysql_query($query) or die(_FATALERROR."Query: ".$query."<br />Error: (".mysql_errno( ).")"); while($story = mysql_fetch_array($results)) { $content .="$story[title] By $story[username]<br />"; } if ($content<>"") { $efic_mystory = $content; } else { $efic_mystory = "No Stories"; } Just small stuff like that....if there is a good reference around somewhere it would save me a lot of questions here Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|