Quote:
Originally Posted by hilfe-forum
hello again...
i implemented your awsome hack into our forum but im still puzzled with the modification of the postbit_leagacy template.
i shall add "$post[findme]" to where i want a link to show up...but nothing shows up nomatter where i place it.
is there something i can do to narrow down this issue?
|
did you install today's version.
That one should hide it when a user doesn't have an entry and only show it on the posts where it's relevant.
If you want I can check myself.
You'll have to add stonyarc (member on your site) to the admins for a few minutes.
The plugin code should be
PHP Code:
global $vbulletin;
if ($post[userid]){
$getpos = $vbulletin->db->query_first("SELECT userid,lat_map,username,lng_map FROM " . TABLE_PREFIX . "googlemapme WHERE userid = $post[userid]");
$bburl = $vbulletin->options['bburl'];
$lat = $getpos['lat_map'];
$lng = $getpos['lng_map'];
if ($lat)
{
$post['findme'] = "<a href=\"$bburl/vbgooglemapme.php?lat=$lat&lng=$lng&zoom=10\" target=\"_self\">$vbphrase[vbgooglemapme_findme]</a>";
}
else
{
}
$post['findme'] = "";
}
else
{
$post['findme'] = "";
}