The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
showthread // postbit : SQL Query
Hi, im trying to creat a mod but i need some help in SQL Query.
at SHOWTHREAD & POSTBIT templete i saw these codes: $post[avatarurl] = for user's avatar url $post[musername] = shows poster name $post[message] = shows posted message now i need to add this codes in my new created PHP file (mod) but what they r referring ? referring to which SQL code ? well, i searched in showthread.php file but found nothing like those code now, can u provide me those SQL code, maybe like $post[message] = $db->query_read(" ...... which will work for the thread i want to read (myMod.php?t=threadid) tnx in advance |
#2
|
||||
|
||||
Did you look at the big huge query around line 989 in showthread.php?
|
#3
|
|||
|
|||
u mean the codes under ###### SHOW THREAD IN LINEAR MODE ##### or $posts=
i tried them....i also added functions_bigthree.php & class_postbit.php in require_once but it shows MySQL error when i tried to open the PHP file |
#4
|
||||
|
||||
And what is the mysql error? Just adding that code around where I mentioned is probably not enough. There is probably more code at the top of the page that also needs to get added.
|
#5
|
|||
|
|||
here's the error:
Quote:
well Lynne. can u plz provide me simple PHP code, which will work like showthread.php i mean works those code $post[avatarurl], $post[musername], $post[message] & works for any thread, like the code: t=$thread[threadid] no need template code (html) just the PHP file's code. tnx in advance |
#6
|
||||
|
||||
In order to see the database error, you need to View Page Source and then it will be at the bottom of the page source page.
I can't provide the code because I don't know it. I have no clue what you are doing and can only guide you to pieces of code that may help you out. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|