The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
In my forum each member can post photos with a customized page. I save in a Database table photo infos (member who upload photo, title, kb of photo, etc).
I want to display under avatar a link to personal member photo page. I am able to do this with this plugin created for postbit_display_complete: Code:
// Utente di riferimento del post $obj_userid = $post[userid]; $obj_username = $post[musername]; $testo_libri .= "<div><a title=\"Libreria personale utente $obj_username\" href=\"http://www.forumlibri.com/libri/my-$obj_userid/index.html\">Libreria personale $obj_username</a></div>"; I try to use this query in the same plug-in: Code:
// calcolo il numero di libri nella libreria personale $numerolibri = $db->query_first_slave(" SELECT * FROM tab_mylib WHERE myl_userid = '1' "); Quote:
|
#2
|
|||
|
|||
![]()
Instead of $db try $this->dbobject
|
#3
|
|||
|
|||
![]()
This query works:
$this->registry->db->query_read(" SELECT COUNT(*) AS numerolibri FROM tab_mylib WHERE myl_userid = '1' "); but don't work this line: $testo_libri .= "$this[numerolibri]"; WHY? Many thanks |
#4
|
|||
|
|||
![]()
You need it like this:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|