The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I was wondering how I can make this code into a plugin: PHP Code:
Quote:
Quote:
Code:
<!-- TrafficSurfer Stats --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_trafficsurfer')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a> TrafficSurfer Stats: </td> </tr> </tbody> <tbody id="collapseobj_forumhome_trafficsurfer" style="$vbcollapse[collapseobj_forumhome_todayusers]"> <tr> <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td> <td class="alt1" width="100%"><div class="smallfont"> Number of users Preregisterred: $ts_number_of_users_reg, Total Credits Given Out: $credits, Newest User: $new_userrr[0] </div></td> </tr> </tbody> <!-- / TrafficSurfer Stats --> Thanks, Derek |
#2
|
|||
|
|||
![]()
I suggest you start by looking into vB or other hack sources and learn to approach the database the vB way.
You are now disconnecting the connection made by vB from the database, and replacing it by your own connection, making all vB queries that follow fail. |
#3
|
|||
|
|||
![]()
Oh ok. Thanks.
Ok, Any idea of some urls t hat can tell me how to connect to another database in vB? |
#4
|
||||
|
||||
![]()
You can use the current connection and prefix the tablenames with your database name. E.g.
[sql] SELECT * FROM dbname.tablename WHERE fieldname='lala' [/sql] |
#5
|
|||
|
|||
![]()
Ok, but how would it know my database username and password?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|