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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

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


how to remove the popup (mouseover) in topicview mode...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#91748 (In Topic #18436)
Avatar

Community saint

First, change OCF_POSTER_MEMBER.tpl to this:

Code

<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 change OCF_POSTER_GUEST.tpl to this:

Code

{+START,IF,{$EQ,{POSTER_USERNAME},{!SYSTEM}}}
   <em>{$SITE_NAME*}</em>
{+END}
{+START,IF,{$NEQ,{POSTER_USERNAME},{!SYSTEM}}}
   {+START,IF_EMPTY,{LOOKUP_IP_URL}}
   <a class="ocf_guest_poster non_link" href="#" onclick="return false;" onblur="this.onmouseout(event);" onfocus="this.onmouseover(event);" >{POSTER_USERNAME*}</a>
   {+END}
   {+START,IF_NON_EMPTY,{LOOKUP_IP_URL}}
   <a class="ocf_guest_poster" href="{LOOKUP_IP_URL*}" onblur="this.onmouseout(event);" onfocus="this.onmouseover(event);" >{POSTER_USERNAME*}</a>
   {+END}
{+END}

That will simply no longer show that pop_up..

Paul
Back to the top
 
Posted
Rating:
#91749
Avatar

Community saint

Now if you want to get rid of some of the 'code' related to it, in forum/pages/modules_custom/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']))
                                {
                                        $poster=do_template('OCF_POSTER_MEMBER',array('_GUID'=>'dbbed1850b6c01a6c9601d85c6aee43f','ONLINE'=>member_is_online($_postdetails['poster']),'ID'=>strval($_postdetails['poster']),'PROFILE_URL'=>$GLOBALS['FORUM_DRIVER']->member_profile_url($_postdetails['poster'],false,true),'POSTER_USERNAME'=>$_postdetails['poster_username'],'HIGHLIGHT_NAME'=>array_key_exists('poster_highlighted_name',$_postdetails)?strval($_postdetails['poster_highlighted_name']):NULL));
                                } 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();
                                        $poster=do_template('OCF_POSTER_GUEST',array('_GUID'=>'36a8e550222cdac5165ef8f722be3def','LOOKUP_IP_URL'=>$ip_link,'POSTER_USERNAME'=>$_postdetails['poster_username']));
                                }
 

down below that in the do_template function, you can remove

Code

'POSTER_DETAILS'=>$poster_details,

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.

Then back up above the code show above, look for

Code

   // Poster details
            if (!$is_spacer_post)

and get rid of that whole section  …  unless you have done the mod to show CPF's under the users avatar, in that case, leave that bit of code inside that //poster details block, but remove the rest.   No need to waste time getting and formatting that info for each post if it's not going to be displayed anyway.


That's all.



Paul
Back to the top
 
Posted
Item has a rating of 5 (Liked by kenno)  
Rating:
#91765
Avatar

Community saint

Arbo you're quite the busy beaver in modding ocPortal and I think it is AWESOME! You're really starting to rack up lots of cool tweaks users might be interested in (I know some of em I am). However, one thing concerns me is trying to find many of these cool tweaks later. I was starting to think we might need a new forum called Arbo's corner or something just to keep track of everything so we can find it later but then I thought hmm I suppose the community Docs might work even better and was wondering if you've been posting any of these tweaks in there?

 If you haven't I think maybe you should. It would be nice to know I can find some of these tweaks later when i want to implement them or even to browse the list at once and see what there are.

You could always post the Tut's in there then link to em here in the forums if you want the anouncements to be more public. But at least then we'd have em all organized in a place they don't get burried. Anyway, just thought I'd offer the suggestion. Here's a link to community Docs
ocPortal.com - CEDI page: CEDI home

Keep up the excellent work!
Back to the top
 
Posted
Rating:
#91770
Avatar

Community saint

I had never gone in there and done that.  But I should, because I have to keep searching through the posts to reference other stuff I have done.

I just put this one in there.  Though it wasn't easy to figure out how to add it all to start with.

Paul
Back to the top
 
Posted
Rating:
#91773
Avatar

Community saint

Yeah I find that section not the most intuitive either but i suppose once you start forming the habit it'll become easier. Glad you're going to start using it. I look forward to trying out some of your mods eventually.
Back to the top
 
Posted
Rating:
#91774
Avatar

Community saint

And I look forward to being able to find them a lot easier.  ;)

Paul
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#91784
Avatar

Community saint

I got a few of them up there:

Progmattic customisation - ocPortal.com

I think another is the members list modification, i think that might be it.

Paul
Back to the top
 
Posted
Rating:
#91793
Avatar

Community saint

Awesome looking good! Lovin it.
Back to the top
 
Posted
Rating:
#91966
Avatar

Community saint

This one has been updated to include adding in (via configurable options) displaying some of the 'stock' user data under the users name by each post.

Adding CPF's (and other data) below users avatar in posts - ocPortal.com

An example (that has both CPF's and the stock fields in it)…




Paul
Back to the top
 
Posted
Rating:
#91972
Avatar

Community saint

Had to update the db call in the above, as I was unsure if different 'types' could have the same id #, ie, a post # 300 a poll # 300…  to get rid of that chance if even possible modified the sql..

Paul
Back to the top
 
Posted
Rating:
#92022
Avatar

Community saint

BTW I meant to ask did removing the preview from topics improve forum speed for you at all?
I am sure template changes would only make minor improvements but if you removed the backend stuff to I was wondering if that gave it a performance boost?
Back to the top
 
Posted
Rating:
#92044
Avatar

Community saint

I'm not sure to be honest.  At first I thought so, but it might have been my imagination.  It's also hard to tell because apparently my servers (or my connection to them) is often kinda slow.   

And since then I added back in the display of information below the users name, which would have brought me back up to full slow so to speak.

It would be an interesting test…

Paul
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: