![]() |
Plugin for Postbil_legacy - show number of custom photo records for each member
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 I try to use this query in the same plug-in: Code:
// calcolo il numero di libri nella libreria personale Quote:
|
Instead of $db try $this->dbobject
|
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 |
You need it like this:
PHP Code:
|
All times are GMT. The time now is 03:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|