Problems with $usergroupcache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ocean
    Senior Member
    • Mar 2004
    • 839
    • 3.0.3

    Problems with $usergroupcache

    Hi! I'm using a code mod designed to put each User's UserGroup in the Postbit.

    Originally, this was accomplished by


    PHP Code:
     $post[displaygrouptitle
    However, doing it this way accesses the "displaygroupid" field, instead of the "usergroupid" field in the "User" Table.


    As a fix, I was told to replace the above code with this:


    PHP Code:
    $usergroupcache[$post[usergroupid]][title

    However, doing that comes up with a Parse Error:

    "Parse error: parse error, unexpected '[', expecting ']' in C:\WebSite\forums\includes\adminfunctions_template.php(3037) : eval()'d code on line 74"


    Can anyone help me figure out where the problem is?

    The whole reason for this is that when I mass-moved a bunch of users to a different UserGroup - their displaygroupid values remained as the old Group. I don't know if that was supposed to happen or not - but I figure that by pulling from the "usergroupid" field, I'll always get the most accurate results.
    echo $ocean_signature;

    ;)
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...