Topic RSS
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
12:15 pm
SP Master
Nov 9, 2008
OfflineI 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.
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!
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 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*
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…
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*
Most Users Ever Online: 444
Currently Online: Conrad_Farlow, steve.engelking, jawaulk, joelrob
75 Guest(s)
Currently Browsing this Page:
1 Guest(s)
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
Newest Members: Rick Thomas, joelrob, ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22240), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic

Quote



Visit 
Privacy Policy



