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
Can sf_pm_tag be available sitewide somehow?
Jul 17, 2010
11:46 am

SP Moderator
Forum Posts: 606
Member Since:
Jul 17, 2010
Offline

Hi.

I have your fine forum installed on blog_id 1. Without intending to allow the other blogs to be able to install thier own forums.

 

I'm currently using the sf_pm_tag to display the users number of private messages in a toolbar that is available to users who are browsing my main CMS style site (blog_id 1).

My intentions all along was to have this toolbar appear as members are browsing random blogs. I'm finding now that Simple:Press is only intended to be used on the blog it was installed on.  Can this be loosend up somehow? My website is community driven and only being able "keep in touch" while visiting the main blog only isn't what I was hoping for my users.

 

Any thoughts?  TIA Lee

Jul 17, 2010
12:15 pm

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

I guess the main obstacle would be the database. Once you're in a blog with a different set of Db tables to the forum you have lost that link to the user and their data.
I don't believe it can be done – not, at least, with the current coding of the WP database class.

Yellow Swordfish
Jul 17, 2010
1:03 pm

SP Moderator
Forum Posts: 606
Member Since:
Jul 17, 2010
Offline

Well…  not the answer I was hoping for, but at least now I know.  I appreciate you taking a moment to put me out of my misery :)

 

I suppose I could make use of another messaging plugin, but was hoping to keep things as seamless as possible while shying away from buddypress.

 

On another note… This is where I should be complimenting you guys on all your efforts. Simple:Press is a well polished application.  Heck even your Wiki is well polished. Good developers and good documentation usually can't be used in the same sentence. Hat's off to you!

Jul 17, 2010
1:48 pm

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

Why… thank you. Kind words indeed.

You now I might be wrong anyway. I have always steered clear (personally) of MU and have not really looked into the multisite options of 3.0.
D you know how the database is organised? Is it different sets of tables for each site? If not then there may be a way although whatever happened it would have to bypass the WP db class.

Yellow Swordfish
Jul 17, 2010
2:22 pm

SP Moderator
Forum Posts: 606
Member Since:
Jul 17, 2010
Offline

Yellow Swordfish said:

Do you know how the database is organised? Is it different sets of tables for each site?


 

I couldn't tell you exactly as I've a ton to learn about WordPress in general. A quick glance in the database and it does appear each site get's it's own set of tables. For example blog1 gets wp_posts, and blog4 gets wp_4_posts and so on.

At least I think that's what you're asking. *shrug*

Jul 17, 2010
2:28 pm

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

It was. Not so good. But I will ask around..

Yellow Swordfish
Jul 18, 2010
8:57 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

its rather complex to achieve what you are asking for…  that said, we have it on our to do list to look at cross blog template tags and interaction…  one problem is that multisite in of itself doesnt really support installing a plugin for the main site but not network sites… so its more custom code to work around wp multisite… but plan to look at in future…

Jul 18, 2010
12:10 pm

SP Moderator
Forum Posts: 606
Member Since:
Jul 17, 2010
Offline

Thanks for the reply Mr. Papa…   my face may be new to you, but I've been a lurker for awhile and know full well your time is limited.

I've been tinkering around and thought to query the wp_sfmessages table directly instead of using the sf_pm_tag to do it for me.  I'm thinking it should work while viewing other blogs….  any thoughts?

 

$sf_pm_count = $wpdb->get_var("SELECT COUNT(message_id) AS cnt FROM wp_sfmessages WHERE (to_id = ".$user_ID." AND message_status = 0 AND inbox = 1)");

echo $sf_pm_count;

 

Yeah I know it's a simple example and will definately need honing. It seems to work on the main blog and the other blogs. *happy dance*

Jul 18, 2010
12:34 pm

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

That simple eh? Nice going….

Yellow Swordfish
Jul 18, 2010
1:17 pm

SP Moderator
Forum Posts: 606
Member Since:
Jul 17, 2010
Offline

Well aside from a tweak, you guys wrote the code.  I was just staring at it, considering re-inventing the wheel when the lightbulb finaly turned on.

Thanks so much for your help though, much appreciated :)

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, steve.engelking, jawaulk, joelrob
75 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: 10897

Posts: 79582

Moderators: Brandon C (162)

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