Forum Replies Created
-
In reply to: Plugin – Private Messages
Yeah, thanks for helping me work through those few problems Trent (esp with your legacy version of php ).
WP Integration support is a big update for .73a, as well as the double header/footer fix.
So, download away BBPress users!
In reply to: Plugin – Private Messageshave a fix for the time and the double header/footer for “PM This User.”
Trent, if you have gtalk, I need you to talk to me on there. I tried a couple of your fixes and they didn’t quite work for me. There might be some major differences for .73 and future releases.
In reply to: Plugin – Private MessagesSorry I’ve been out of town guys. I’ll start working on fixes. I know how to fix the time, I forgot to use my get time function from my function file. I also know how to fix a couple other problems you guys have had. Give me a little while.
In reply to: Plugin – Private Messagestry to split the lines. do this:
$user = bb_get_user( $pmmessage->id_sender);
$userlogin = $user->user_login;
Don’t know if that’ll work or not, but it’s worth a try. Let me know, I’ll make the change to the release if it does.
But I’m out of town til Sunday. So when I get back, I’ll see about it.
In reply to: Plugin – Private MessagesGlad it’s working so far!
In reply to: A phpBB to bbPress database converternice dude, when I first made the move, I looked at how different the db’s were and said “meh, screw it.” I got the users over easily, but very good job on dealing with topics and posts!
In reply to: adding multiple filtersNot sure what you’re asking (the plugin has nothing to do with email addresses), but feel free to go to my forums and check it out. I need more testers anyway.
I just did what the previous code was dictating a different way, so right now everything I’ve worked on is working.
If you do come over and test it out, make a quick post in some thread (I suggest the one pertaining to this plugin) so that you don’t get deleted accidentally (we go through our memberlist daily to delete spam users)
In reply to: get_topic_author() but how to get it’s profile link?get_user_profile_link( $userid )
In reply to: Private Forums PluginYou need to update to the newest version of bbpress I think.
In reply to: Hide a link for all members EXCEPT admin and modlol, nice
In reply to: Hide a link for all members EXCEPT admin and modYeah, that’s what I do in my memberlist plugin to delete users.
In reply to: get_rown/m, I r t3h stoopid
In reply to: get_rowHmm, when I logout and go to the same like with the afore mentioned output, it says this:
Object id #22
It seems to be doing this similarly to everyone else. Logged in it gives #6, logged out it gives #22. I never tell it to do anything, it must be get_row that’s doing it.
Arrgghhhh
In reply to: get_rowI know that s010. Like I said, my var acts like I want it to. But it just prints out that Object thing for no apparent reason. I took out all echos and print statements, and just sitting there at the top of my screen is the thing I mentioned. I can’t figure out why it’s printing that to my screen.
In reply to: How do I create new themes (not topics)?Just go to front-page.php in your templates folder and change where it says “Main Theme” to “Main Forum”
In reply to: Not post count but reply count on front page?it tests on use of front-page.php in either bb-templates or my-templates.
In reply to: How to make a menu like the one on this site?If you make it a div, it doesn’t matter where you put it as long as it’s in the body. Then go to the css file and place it absolutely x pixels down from the top (whatever x needs to be to make it look good).
In reply to: Not post count but reply count on front page?then add this in front of your plugin.
if ( is_front() ) {
*plugin I mentioned here*
}
In reply to: Not latest reply link, but first reply link?That’s a bit more difficult. You’ll have to figure out how to find the post id for the second post in the topic and call post_link( $post_id ) to fill out the the link.
In reply to: Not post count but reply count on front page?Why wouldn’t you want to use it as a plugin? There’s a filter applied to the reply count call specifically so you can do something like what you’re asking for.
If you want to hardcode it, you have to go to template-functions.php and find the “get_topic_posts” function and do the -1 there.
In reply to: Not post count but reply count on front page?this is untested…
make a file in your my-plugin directory and call it whatever you want. Insert the following:
global $topic;
add_filter ( 'get_topic_posts', ($topic->topic_posts)-1, $topic->topic_id );
That should work
In reply to: Not latest reply link, but first reply link?just find where it is and add this:
<a href="<?php topic_link(); ?>">First Post</a>
In reply to: How to make a menu like the one on this site?did you try putting it in it’s own div and absolutely placing it?
In reply to: Private Forums PluginWay to keep the bar raised for developing plugins s101
Thanks for the plugin, one less thing I gotta make
In reply to: Hide a section from the ddl when adding a new topicUntil a plugin is made, I think you’d have to pseudo-hardcode it. I was able to limit what admins and regular users could see in my memberlist by adding the following code:
<?php if (bb_current_user_can('edit_users')) : ?>
*some code here*
<?php endif; ?>
There are other options you can test on, that’s just the one I found to use.
For you, in the *some code here* part, you’ll need to find a way to pull out what forums you got, and put an if statement to say only to show the Announcements one to admins.
Looking at the files, I found a function called “forum_dropdown” in template functions. If you go there and within the foreach section, below the $selection part, put the following:
if ( $forum->forum_name == 'Announcements' && !bb_current_user_can('edit_users') ) { }
else
That will do nothing when it gets to listing your “Announcements” section unless the user is an admin. The else is for the echo line below where I told you to put the previous line.
Of course, this is a change to a core file, but sometimes that’s just what you gotta do until a plugin is made Furthermore, there is no filter to be added there, so writing a plugin would mean rewriting that function, dropping it in a plugin file, and calling the replacement function from post-form.php