Thread: Postbit tweak
View Single Post
  #4  
Old 02-19-2007, 05:13 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Its just a parameter the function expects. However that actually is the userinfo for WHO is reading the post - I forgot I had to write a plugin for it.

Here is is:

Title: Thing
location: postbit_display_start
code:
PHP Code:
$secondary_icons "";
if (
$post['membergroupids'])
{
$ugs explode(",",$post['membergroupids']);
if (
is_array($ugs))
{
 if (
in_array(10$ugs))
    {
  
$secondary_icons.='<img src="gars_tiny.gif" width="20" height="20" border="0" title="Geek Article and Review System License Holder" />&nbsp;';
    }
 if (
in_array(9$ugs))
    {
  
$secondary_icons.='<img src="gmart_tiny.gif" width="20" height="20" border="0" title="GeekMart License Holder" />&nbsp;';
    }
 if (
in_array(11$ugs))
    {
  
$secondary_icons.='<img src="gal_tiny.gif" width="20" height="20" border="0" title="Geek Auto-Linker Pro License Holder" />&nbsp;';
    }
 if (
in_array(14$ugs))
    {
  
$secondary_icons.='<img src="gars_tiny.gif" width="20" height="20" border="0" title="Geek Advertising Banner License Holder" />&nbsp;';
    }
}

Not the cleanest code - but it works
Reply With Quote