ardentfrost (@ardentfrost)

Forum Replies Created

Viewing 25 replies - 151 through 175 (of 225 total)

  • ardentfrost
    Member

    @ardentfrost

    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! :)


    ardentfrost
    Member

    @ardentfrost

    have 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.


    ardentfrost
    Member

    @ardentfrost

    Sorry 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.


    ardentfrost
    Member

    @ardentfrost

    try 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.


    ardentfrost
    Member

    @ardentfrost

    Glad it’s working so far!


    ardentfrost
    Member

    @ardentfrost

    nice 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!


    ardentfrost
    Member

    @ardentfrost

    Not 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)


    ardentfrost
    Member

    @ardentfrost

    get_user_profile_link( $userid )

    In reply to: Private Forums Plugin

    ardentfrost
    Member

    @ardentfrost

    You need to update to the newest version of bbpress I think.


    ardentfrost
    Member

    @ardentfrost

    lol, nice ;)


    ardentfrost
    Member

    @ardentfrost

    Yeah, that’s what I do in my memberlist plugin to delete users.

    In reply to: get_row

    ardentfrost
    Member

    @ardentfrost

    n/m, I r t3h stoopid

    In reply to: get_row

    ardentfrost
    Member

    @ardentfrost

    Hmm, 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_row

    ardentfrost
    Member

    @ardentfrost

    I 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.


    ardentfrost
    Member

    @ardentfrost

    Just go to front-page.php in your templates folder and change where it says “Main Theme” to “Main Forum”


    ardentfrost
    Member

    @ardentfrost

    it tests on use of front-page.php in either bb-templates or my-templates.


    ardentfrost
    Member

    @ardentfrost

    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).


    ardentfrost
    Member

    @ardentfrost

    then add this in front of your plugin.

    if ( is_front() ) {

    *plugin I mentioned here*

    }


    ardentfrost
    Member

    @ardentfrost

    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.


    ardentfrost
    Member

    @ardentfrost

    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.


    ardentfrost
    Member

    @ardentfrost

    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


    ardentfrost
    Member

    @ardentfrost

    just find where it is and add this:

    <a href="<?php topic_link(); ?>">First Post</a>


    ardentfrost
    Member

    @ardentfrost

    did you try putting it in it’s own div and absolutely placing it?

    In reply to: Private Forums Plugin

    ardentfrost
    Member

    @ardentfrost

    Way to keep the bar raised for developing plugins s101 ;)

    Thanks for the plugin, one less thing I gotta make


    ardentfrost
    Member

    @ardentfrost

    Until 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 :D 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

Viewing 25 replies - 151 through 175 (of 225 total)