Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Simple:Press Widget Idea/Add-on
Avatar
Maximillion
Member
sp_UserOfflineSmall Offline
Aug 5, 2012 - 3:49 pm

Perhaps it's been suggested but has anyone thought of adding some functionality to the SP widget? I can see a few easy features which would drive a lot of possible traffic to a site forum from other pages.

  • Add the ability to see if you have any private messages waiting for you. (this would allow you to essentially watch the forums from other points on the site)
  • Add the ability to see if someone replied to a topic you posted to or started (same reasoning as above)
  • Add the ability to show your name, user badge and rank from the widget (people love badges and reminders of how awesome they are!)

I put this out as some ideas to help engage people more with the forums from within a site's structure. The forum aspect is really nice but I feel a few nice tweaks to the widget might drive even more traffic to the forums.

Just some thought,

-Max

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2012 - 4:18 pm

there are already template tags for displaying private messages waiting for you...

you can already subscribe to topics and get notification if some one posts to a topic you are subscribed to...

there is a dashboard template tag which will show your name and avatar in sidebar or where ever you want it... I can open a ticket to offer option to add badge and rank - like it...

If I am missing on something for the first two, please elaborate...

Avatar
Maximillion
Member
sp_UserOfflineSmall Offline
Aug 5, 2012 - 6:15 pm

Mr Papa said
there are already template tags for displaying private messages waiting for you...

you can already subscribe to topics and get notification if some one posts to a topic you are subscribed to...

there is a dashboard template tag which will show your name and avatar in sidebar or where ever you want it... I can open a ticket to offer option to add badge and rank - like it...

If I am missing on something for the first two, please elaborate...

OK - awesome. Sound good I guess my super obvious and possible ignorant question is how does one go about using those template tags to achieve something like that? Better yet - if you point me towards some docs or examples I can go about it myself. From what I am seeing in your answer it looks like I can get all I need except the badges to show up in a widget with some adjusting.

I guess are we talking about shortcode things or just opening up files and coding manually.

Thank you!

-Max

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2012 - 6:30 pm

For the display of private messages you can use a sidebar text widget for example and put this into it.

<?php sp_pm_inbox();?>

There is more info on it's usage in the Codex towards the bottom. http://codex.simple-press.com/.....messaging/

To add a Subscriptions review button you can do so similarly http://codex.simple-press.com/.....criptions/ the codex entry shows the different ones but not any examples of specific different usage. They are all explained in the Subscriptions template files though. Will try and add a few examples to make it easier.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2012 - 6:38 pm

most will be in the template tags plugins... or as template tags within other plugins... most can either be a template tag or a shortcode...

you can see all our plugins here: http://codex.simple-press.com/.....e-plugins/

and specifically, the template tag plugin here: http://codex.simple-press.com/.....gs-plugin/

not all the plugin pages are complete yet - some are still in work...

so you can add a shortcode to a page... or a template tag to a wp theme template file... or if you have exec php or other plugin that lets you put php in posts/pages/text widgets, you can use the template tag there too...

Avatar
Maximillion
Member
sp_UserOfflineSmall Offline
Aug 5, 2012 - 7:47 pm

Brandon C said
For the display of private messages you can use a sidebar text widget for example and put this into it.

<?php sp_pm_inbox();?>

There is more info on it's usage in the Codex towards the bottom. http://codex.simple-press.com/.....messaging/

To add a Subscriptions review button you can do so similarly http://codex.simple-press.com/.....criptions/ the codex entry shows the different ones but not any examples of specific different usage. They are all explained in the Subscriptions template files though. Will try and add a few examples to make it easier.

Welp, gave it a whirl with a sidebar text widget and a plugin to make shortcode. (the plugin is here http://wordpress.org/extend/pl.....-exec-php/)

Had to remove both the <?php and ?> stuff from the code (as instructed) but it worked. I think a little tweaking and I will manage just fine. So, yes, a way to bring up the badge and rank would be most welcome and I think I will have the widget I desire!

Thank you sirs!

-Max

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2012 - 11:06 pm

I have added a ticket and accepted the task to look at adding that stuff to the dashboard template tag...

I wasnt thinking separate template tags since there is already a general template function you can use for ranks, user groups sp_UserAvatar(), sp_UserForumRank(),and sp_UserSpecialRank()... but I think there is not a general one for usergruops...

Avatar
Maximillion
Member
sp_UserOfflineSmall Offline
Aug 6, 2012 - 2:59 am

Mr Papa said
I have added a ticket and accepted the task to look at adding that stuff to the dashboard template tag...

I wasnt thinking separate template tags since there is already a general template function you can use for ranks, user groups sp_UserAvatar(), sp_UserForumRank(),and sp_UserSpecialRank()... but I think there is not a general one for usergruops...

By the way is there some modification or prerequisites to using the above tags? The sp_UserAvatar() works fine - my Avatar will show up but I would like to get it centered and the other ones sp_UserForumRank() and sp_UserSpecialRank() just give me errors when I plug them in straightaway.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 6, 2012 - 3:55 am

I think - or at least I assume - that Steve posted the wrong functions. I believe he meant these two from the template tags plugin:

sp_ShowForumRankTag() and sp_ShowSpecialRanksTag()

You can get the calling details for both from this codex age: http://codex.simple-press.com/.....gs-plugin/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2012 - 8:29 pm

No, I actually did mean the functions I listed...  they work fine, just need to be set up...  BUT I had forgotten that we added them to the template tag plugin - so Andy's suggestion is MUCH better than mine...  that plugin/template tags actually call the routines I referenced but do all the set up stuff for you...

And I will add a new template tag to the plugin for the usergroup info...

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625