HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Removing the mousover popup over a users name in topic view

On my site, I prefer certain items just show up by the user name beside each post, I don't care for the popup.  Thus I decided to remove them.  It's really quite easy to just modify the templates so they don't show.   

Modify OCF_POSTER_MEMBER.tpl, it should look like this:


<a href="{PROFILE_URL*}" onblur="this.onmouseout(event);" onfocus="this.onmouseover(event);" class="fancy_user_link">{+START,IF_PASSED,HIGHLIGHT_NAME}{+START,IF,{HIGHLIGHT_NAME}}<em>{+END}{+END}{POSTER_USERNAME*}{+START,IF_PASSED,HIGHLIGHT_NAME}{+START,IF,{HIGHLIGHT_NAME}}</em>{+END}{+END}</a>

Next is OCF_POSTER_GUEST.tpl, the modified form is:


   <a class="ocf_guest_poster non_link" href="#" onclick="return false;" onblur="this.onmouseout(event);" onfocus="this.onmouseover(event);" >{POSTER_USERNAME*}</a>
   <a class="ocf_guest_poster" href="{LOOKUP_IP_URL*}" onblur="this.onmouseout(event);" onfocus="this.onmouseover(event);" >{POSTER_USERNAME*}</a>

That alone will get rid of the popup.     However, if you'd like to modify the code so that it no longer does the unneeded work of making the popup, since you no longer display it, we start with forum/pages/modules/topicview.php.

Find the following snip of code, and as below, remove the part that sends $posterdetails to the do_template function, as below:

Code (php)

                        if (!is_guest($_postdetails['poster']))
                                } else
                                        $ip_link=((array_key_exists('ip_address',$_postdetails)) && (has_actual_page_access(get_member(),'admin_lookup')))?build_url(array('page'=>'admin_lookup','param'=>$_postdetails['ip_address']),get_module_zone('admin_lookup')):new ocp_tempcode();

Then back up above that code, search for the text below…

Code (php)

   // Poster details
            if (!$is_spacer_post)

Remove the whole section for the if - else statement.

Note: If you have done the mod to show CPF's under the users avatar, do not remove the whole if - else statement, just remove the code inside the if and the else, as the show CPF's modification uses this logic loop.  
Down below that in the do_template function, you can remove:

Code (php)


Actually, you can remove it anyway as OCF_POST_TOPIC.tpl doesn't use it. This must have been a 'left over' from when it was handled differently.

There are no pages beneath this page

There are no posts yet

CEDI change-log Post