A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Get the Simple:Press data into a WP Plugin, a theming question, and email digest
Sep 2, 2010
12:46 pm
Rookie
Forum Posts: 3
Member Since:
Aug 24, 2010
Offline

Ok, I have three questions:

On our site, we have a score that we give to our users whenever they write a post and/or comment on the site's blog posts.  I would also like to add the total number of forum posts by that user into the mix but I have had a hard time getting that data into the custom plugin that I wrote.

So my question is, what is the WPQuery that I should use to get that information and is there a action that fires in Simple:Press that I can access in my Wordpress Plugin every time a user posts to the forum, so that it can update the counter (score).

 

Secondly, is it easily possible to apply CSS styles by forum.  We have two forums, a public and a private on the site and the users have requested different colors for each so that they don't accidentally post something private in the public forums.

 

Thirdly, is there a way to setup a daily email digest for all of the active topics that day?  We migrated the forum from Google Groups and the email digest feature of GG is something that people are missing.

Sep 2, 2010
2:11 pm

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

Posts Score:

Do you mean you just want the count of how many posts a user has made on the forum? If that's the case then this function should return that

sf_get_member_item($userid, 'posts');

You need to pass in the users ID as you see.

Styling:

It really epends on where you are referring too. For example on the 'forum' view (i.e., list of topics in a sngle forum) then the whole thing is in a div with an id of 'forum-ID' where ID is the record ID of the forum. Your best bet is to interrogate the HTML being generated or even better use Firebug with Firefoc so that you can nterrogate the html and CSS being displayed.

Digest:

Sorry – no digest yet

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, joelrob
54 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7363

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10898

Posts: 79583

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23688)