Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Adversaries ignore the "Display profile information in" setting
Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 9:57 am

I have set the simple-press option "Display profile information in" to "WordPress author page" instead of Forum profile page.

This is working everywhere on the forum except the adversaries tab page and having the PM plugin installed. When you click on the view profile button behind a contact name, a lightbox with the forum profile is loaded instead of taking the user to the WordPress profile page. Can this be fixed?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2013 - 11:38 am

Wow - really...
I have open a bug ticket for it so that it can be looked at and, if needed, fixed up.
Thanks for the information.

andy-signature.png
YELLOW
SWORDFISH
Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 2:34 pm

Thanks, I hope it can be fixed soon. It's something that affects all my forum users.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 10:21 pm

have made the fix tonight... but cannot release a plugin update since we have other private messaging updates awaiting the next version of sp...

but you can make the changes yourself if you like...  within the pm plugin, in the forms subdirectory, find the files:

sp-pm-adversaries-form.php
sp-m-buddies-form.php

you will need to edit both...  In the adversaries one, change

        $site = SFHOMEURL."index.php?sp_ahah=profile&sfnonce=".wp_create_nonce('forum-ahah')."&action=popup&user=$adversary";
        $title = esc_attr(__("View profile of this adversary", 'sp-pm'));
        $out.= "<a rel='nofollow' href='javascript:void(null)' class='spButton vtip' title='$title' onclick='spjDialogAjax(this, \"$site\", \"$title\", 750, 0, \"center\");'>";
        $out.= '<img src="'.sp_find_icon(PMIMAGES, 'sp_PmUser.png').'" alt="" />';
        $out.= __('View Profile', 'sp-pm');
        $out.= '</a>';

to

        $tmp = sp_attach_user_profile_link($spThisUser->ID, __('View Profile', 'sp-pm'));
        $tmp = str_replace("class='spLink", "class='spButton", $tmp);
        $out.= preg_replace("/>/", "><img class='spIcon' src='".sp_find_icon(PMIMAGES, 'sp_PmUser.png')."' alt='' />", $tmp, 1);

and in the buddies one, change

        $site = SFHOMEURL."index.php?sp_ahah=profile&sfnonce=".wp_create_nonce('forum-ahah')."&action=popup&user=$buddy";
        $title = esc_attr(__("View profile of this buddy", 'sp-pm'));
        $out.= "<a rel='nofollow' href='javascript:void(null)' class='spButton vtip' title='$title' onclick='spjDialogAjax(this, \"$site\", \"$title\", 750, 0, \"center\");'>";
        $out.= '<img src="'.sp_find_icon(PMIMAGES, 'sp_PmUser.png').'" alt="" />';
        $out.= __('View Profile', 'sp-pm');
        $out.= '</a>';

to

        $tmp = sp_attach_user_profile_link($spThisUser->ID, __('View Profile', 'sp-pm'));
        $tmp = str_replace("class='spLink", "class='spButton", $tmp);
        $out.= preg_replace("/>/", "><img class='spIcon' src='".sp_find_icon(PMIMAGES, 'sp_PmUser.png')."' alt='' />", $tmp, 1);
Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Jan 15, 2013 - 4:20 am

Thanks for the fix! :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 15, 2013 - 7:15 am

its not quite correct, but should work for now...  the $spThisUser should be $spProfileUser I think for when you edit a users profile... but need to test that in the formal fix...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625