Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Disable User Private Message - Redirect to Another Wordpress Page/URL?
Avatar
Ben Chandler
Member
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2014 - 12:55 am

Hello, just wondering if it is possible to Disable the SimplePress User Private Message system, and instead Redirect to Another Wordpress Page/URL?

 

Thanks

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2014 - 6:12 am

Well disabling the private message system is pretty straight forward.. Simply go to your WordPress Admin, and click Forum > Plugins and find in the list 'Private Message System'. You can then 'Deactivate' and later of course 'Activate' when you want, the same as any plugin.

As for re-directing to another WordPress page, some button functions have a link argument you can use to directly take you to another webpage, but as far as I can see sp_PmInboxButton doesn't. I will have a look in to this one for you...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 19, 2014 - 7:08 am

Well with the display being template driven, adding in any HTML - i.e., a new button, is a simple matter - and that can be added anywhere you want it. An example of what you are looking for would help us advise on this.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ben Chandler
Member
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2014 - 7:24 am

Ah awesome thanks I totally missed that.

Oh right only if it's not too much trouble :)

 

Thanks again

Avatar
Ben Chandler
Member
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2014 - 7:45 am

Yellow Swordfish said
Well with the display being template driven, adding in any HTML - i.e., a new button, is a simple matter - and that can be added anywhere you want it. An example of what you are looking for would help us advise on this.

Yeah this is what I was thinking also. I can just find any reference to PM and redirect it to another page.

 

Thanks so much! Great plugin :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 19, 2014 - 9:14 am

Andy was suggesting just outputting your own button and link... ie, in the spHead.php template file replace

            if (function_exists('sp_PmInboxButton')) sp_PmInboxButton('tagClass=spButton spRight', __sp('Inbox:'), __sp('Go to PM inbox'));

with something like

?>
<a rel='nofollow' class='spButton spRight vtip' title='Go to Inbox' href=http://yoursite.com/pminbox'>
<img class='spIcon' src='http://yoursite.com/yourimage.png' alt='' />
Inbox
</a>
<?php

if you dont want an image, just remove that line...  update text and urls to your needs...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626