PDA

View Full Version : Convert Plugin from 3.8 to 4.x


ChristianAlfred
08-09-2010, 11:00 AM
I have a homemade plugin in my members profile. I can't find the right hook-location? It's now in memberlist_complete.

There is no error and no output...

require '../akvarium/include/connection.php';

$query = mysql_query("SELECT * FROM ca_akvarium WHERE MEMBER_ID = $userinfo[userid]") or exit(mysql_error());

$akvarium = "";

while($visa = mysql_fetch_array($query)) {
$akvariumrubrik = $visa["RUBRIK"];
$akvariumnr = $visa["NR"];
$akvariumbild = $visa["BILD1"];

$akvarium .= "<table><tr><td valign='top'>";
$akvarium .= "<a href='/akvarium/akvarium.php?NR=" . $akvariumnr . "'><img src='/akvarium/akvariebilder/liten/" . $akvariumbild . "'></a>";
$akvarium .= "</td><td valign='top'>";
if ( $akvariumrubrik != "" ) {
$akvarium .= "<a href='/akvarium/akvarium.php?NR=" . $akvariumnr . "'><strong>" . $akvariumrubrik . "</strong></a><br>";
};


if ( $visa["BESKRIVNING"] != "" ) {
$akvarium .= $visa["BESKRIVNING"];
};

$akvarium .= "</td></tr></table>";

};