Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 11,376 through 11,400 (of 11,495 total)
  • Author
    Search Results
  • #52101
    Null
    Member

    This gives me the first post, not the first reply of that post (if I am not wrong) I want to jump to the first reply

    (sorry if this does this, but I cant test it right now)

    Thx

    #52092
    ardentfrost
    Member

    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

    #52100
    ardentfrost
    Member

    just find where it is and add this:

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

    #52099
    Null
    Member

    -bump-

    #52119

    In reply to: Private Forums Plugin

    I’m using the latest nightly. Instead of get_option() use bb_get_option().

    #52117

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    Thanks! The plugins work now with the latest code!

    Cheers,

    Trent

    #52114

    In reply to: Private Forums Plugin

    so1o
    Participant

    sorry about the mis communication..

    the latest code for bbpress.. :) coz the is_serialized function is in the latest code but not in blix i think…

    #52113

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    I just redownloaded both site options and private forum plugins and reinstalled them.

    Still get the error:

    Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179

    Should I just give up and get lastest code?

    Trent

    #52112

    In reply to: Private Forums Plugin

    so1o
    Participant

    The plugin currently works on the latest code.. let me check if i can fix the code to work with blix..

    Trent:

    can you check with the latest code and let know..

    #1063
    Null
    Member

    Hi,

    Another question. When watching a topic you see this first:

    Topic title

    Started 1 month ago by xxx

    Latest reply from xxx

    This topic is not a support question

    Add this topic to your favorites (?)

    Now I want to change this a bit so that the latest reply doesnt go to the latest reply, but to the first reply (so with long topics I don’t have to scroll down to the fist reply) so it’s gonna look like this:

    Topic title

    Started 1 month ago by xxx

    First reply from xxx

    Latest reply from xxx

    This topic is not a support question

    Add this topic to your favorites (?)

    Any ideas?

    Null

    #1062
    Null
    Member

    Hi,

    On the frontpage (bbpress index) you can see the latest discussions showing: topic, posts, Last Poster, refreshnesses.

    The posts section counts all posts from that topic, INCLUDING the start topic. How can I exclude this first post? So reply = posts count – 1

    Thanx

    #52089
    ardentfrost
    Member

    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

    #51814

    In reply to: Plugin – Member List

    spencerp
    Member

    Awesome!! Done!.. You’re the greatest, whee!! :D

    http://spencerp.net/forums/mlist

    spencerp

    #51809

    In reply to: Plugin – Member List

    spencerp
    Member

    Hi guys, sorry.. was offline for a bit there. I didn’t have pretty permalinks enabled, and still don’t. But, after uploading those new files of your’s. It seems to be working fine now..

    http://spencerp.net/forums/

    Would you like me to try with pretty permalinks enabled then too, or..? Please let me know ok, I’ll test it. ;) :)

    spencerp

    #51795

    In reply to: Plugin – Member List

    Trent Adams
    Member

    I don’t want the permalinks on my forum. If you need to test it with them on, then maybe Spencer will (Here is the link for directions).

    https://bbpress.org/documentation/faq/

    I would assume be the one test without permalinks on if I could!

    Thanks,

    Trent

    #51794

    In reply to: Plugin – Member List

    ardentfrost
    Member

    well, dang, now I gotta figure out how to deal with if you don’t have that enabled ;)

    Did you enable it? I want to test the plugin out on your site

    #51786

    In reply to: Plugin – Member List

    ardentfrost
    Member

    aww, sorry it doesn’t work with the integration. You can probably add a little something to it and do it though. I just don’t have mine integrated so can’t test it.

    #51166

    In reply to: Private Forum script

    so1o
    Participant

    yup.. i use the latest on the repository..

    cheers

    #1039
    ardentfrost
    Member

    This plugin is another simple one. It allows you to set an inactivity limit on threads shown on the forum main page. The default is set to 7 days, and if you like that setting, then all you have to do is put the file in your my-plugins directory. If you want to change it, it’s easy enough (desciption in the readme).

    You can download the file and read the instructions at http://faq.rayd.org/bbpress_limit_recent_activity/

    You can see it being used at http://www.rayd.org/forums/ (notice how there are no threads in the “Latest Discussion” section whose last post is older than a week).

    Enjoy!

    #51953
    ardentfrost
    Member

    I think I made a similar script yesterday. I didn’t make it as a widget because I never did much customization with wordpress itself.

    Anyone got an example of this being used? I might want to change the way mine looks if another looks better. (if you want to see what I did, you can view it at http://www.rayd.org/ … the right side forum list thing)

    #51149

    In reply to: Private Forum script

    so1o
    Participant

    here is the plugin..

    please note that the bb hook for initialization was change after the blix release (0.73). it was changed from ‘init’ to ‘bb_init’

    function my_check_private_forum($test='') {

    global $bb,$bb_current_user;

    $login_page = $bb->path . 'bb-login.php';

    if ($_SERVER['PHP_SELF'] != $login_page) {

    if ( !$bb_current_user ) {

    header('Location: ' . $bb->domain . $bb->path . 'bb-login.php');

    }

    }

    }

    add_action( 'bb_init', 'my_check_private_forum');

    #51545
    so1o
    Participant

    you can use this

    $topics = get_latest_topics( $forum_id);

    but this will give you number of topics/page that you set in your config

    to get just 10 topics from the forum

    $topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10")

    #51952
    spencerp
    Member

    Yeah true.. Trent, thanks for clarifying that for everyone, and me! ;) :) :P

    spencerp

    /Me didn’t get to bed yet, so.. my brain is now working in reverse, compared to your’s.. since you got the sleep.. lol!!

    #51951
    Trent Adams
    Member

    Needs to be an option though because with that code in there, it will exclude when most users wouldn’t really need anything excluded. As well, that is only for the sidebar part, not the widget.

    Trent

    #51950
    spencerp
    Member

    This is the block of database code that Trent had “fixed” up for me, to exclude the one forum.

    (Found near end of plugin file)

    function wp_bb_get_discuss_sidebar() {

    global $wpdb,$bbpath;

    $bbtopic = $wpdb->get_results("SELECT * FROM bb_topics WHERE topic_status = 0 AND forum_id NOT IN ('3') ORDER BY topic_time DESC LIMIT 10");

    Where => (‘3’) is the forum id to exclude.. :) ;)

    spencerp

Viewing 25 results - 11,376 through 11,400 (of 11,495 total)
Skip to toolbar