Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,551 through 31,575 (of 32,432 total)
  • Author
    Search Results
  • #51833

    In reply to: Plugin – Member List

    ardentfrost
    Member

    yeah, so, this is what’s in functions.php (core file)

    function bb_get_option( $option ) {

    global $bb;

    switch ( $option ) :

    case 'uri' :

    return $bb->domain . $bb->path;

    break;

    ...

    So, all it does it return those exact two things you posted concatenated together. It makes no sense for the developed link to have a /forums/ in it.

    #51832

    In reply to: Plugin – Member List

    yogaboat
    Member

    arden, here’s what’s in the config file:

    $bb->domain = 'http://navfm.org';

    $bb->path = '/bbpress/'

    Is that what you mean?

    #51830

    In reply to: Plugin – Member List

    ardentfrost
    Member

    since I use the function bb_get_option('uri') to build the link, I have no clue why it would be showing up as /forums instead of /bbpress for you. I assume it’s correct in your config.php file?

    #51829

    In reply to: Plugin – Member List

    yogaboat
    Member

    This was like one of those light bulb times for me – like years ago when I realized you could have an image link inside an href tag. Now I know you can have a php snippet inside one as well. It’s the little things. :D Thanks again –

    #51827

    In reply to: Plugin – Member List

    Trent Adams
    Member

    Make it simple for now until Ardenfrost can answer! Change that line to:

    <li class="view"><a href="http://navfm.org/bbpress/mlist.php">Member List</a></li>

    Just add in your actual URL (hardcode it!)

    Trent

    #51826

    In reply to: Plugin – Member List

    yogaboat
    Member

    Sorry, that was supposed to read, “adding this line:

    <li class="view"><a href="<?php bb_memberlist_link(); ?>">Member List</a></li>

    #51825

    In reply to: Plugin – Member List

    yogaboat
    Member

    The only bit of code I changed in front_page.php was adding this line:

    <li class=”view”>“>Member List

    ?php if ( $bb_current_user->ID ) : ?>

    <div id="viewdiv">

    <h2><?php _e('Views'); ?></h2>

    <ul id="views">

    <?php foreach ( get_views() as $view => $title ) : ?>

    <li class="view"><a href="<?php view_link(); ?>"><?php view_name(); ?></a></li>

    <?php endforeach; ?>

    <li class="view"><a href="<?php bb_memberlist_link(); ?>">Member List</a></li>

    </ul>

    </div>

    <?php endif; else : // $forums ?>

    I’m sure it’s something simple but i don’t know php. :(

    #51824

    In reply to: Plugin – Member List

    Trent Adams
    Member

    I would go to front-page.php and check that the code you entered for the link is /bbpress/mlist.php and not /forum/mlist.php because you would of had to enter the link yourself.

    Trent

    #52991
    d3x7r0
    Member

    I tried the beta but it doesn’t seem to be working for me :( I have the onlinelist plugin and me and a friend of mine tried it like this:

    one made a post while the other wasn’t on the website (even the browsers where closed) and 5 minutes latter the other went to the site and tried to use the function.

    The result? a blank page :(

    http://www.ngagept.net/forum

    #53062

    In reply to: Plugin Help

    so1o
    Participant

    here you go bbolman

    <php

    add_action('bb_head' , 'my_plugin_function_name');

    function my_plugin_function_name() {

    ?>

    stuff that you want to put

    <?php

    }

    ?>

    #52714
    d3x7r0
    Member

    Hum… never did thought of using css for it… still people would still load the entire image thus making my bandwidth issue valid :?

    #52990
    ardentfrost
    Member

    You should be able to do request 1 similarly to how I do it with the private message plugin. You fill the string separately, then just call it to be displayed. I haven’t looked at your code yet, but you should be able to have a function that does the if/else for you, then just call it from where you want the link placed.

    #52989

    Thanks for this super great feedback Trent!

    1) This is something my plugin can’t do. You have to change the views-template, because this message is also missing in any other view without contents. Maybe something for a trac-ticket?

    Just add

    <?php else: ?>

    <p>Sorry, no matching posts found!</p>

    in front of the last <?php endif; ?> in the views template.

    2) I’ll implement a function for this :)

    3) Maybe like the latest discussions on the front-page? … Yeah, it’s a good idea instead of leaving it blank!

    4) Donno exactly. When I look at the views-code there seems to be paging functionality already?!

    5) I thought of this issue, too. It adds a few queries on every page refresh, but I have no idea how to optimize this.

    Thanks again man!

    #51822

    In reply to: Plugin – Member List

    yogaboat
    Member

    Thanks guys! Y’all are a huge help to way unpolished hacks like myself. :)

    #52986

    It will definitly be an additional plugin. But it won’t work without the onlinelist plugin installed. :)

    It uses the Onlinelist db to retrieve the users last visit to the forum, this was the easyest method for me to handle it. This version of the plugin will be a super-simple version of this feature.

    If you want to take a look at it:

    http://la-school.com/2006/downloads/BETA_since-last-visit.zip

    By doing it I thought about doing a second plugin which uses cookies and wont need the onlinelist plugin?! If you haven’t started working on this, I’ll do it?

    #52975
    ardentfrost
    Member

    S010 – i think the _wpnonce is a security mechanism that checks for the posting source.

    That’s what I was thinking the other day when looking for an answer to this question, but it wasn’t fully clear to me, so I didn’t bother responding :D

    #52984

    This is just something a lot easyer to do. It requires just a small plugin, I’ll make one for this, ok? :)

    The posts since last visit plugin is getting a bit more complicated then I thought. I’m doing it as plugin for my onlinelist plugin, cause I think doing this database driven is better … so you can view the posts since your last visit anywhere.

    If you want to see how it looks like at the moment, go to

    http://la-school.com/bbpress/ (Test / test) … not sure if you can really try it :D

    #52974
    so1o
    Participant

    _wpnonce doesnt have anything to do with the functionality.

    you dont need to set the value of the variable. just call bb_nonce_field($x);

    and when you are processing the $_POST call

    bb_check_admin_referer( $x);

    you can put $x as ‘create-topic’ or ‘create-no-forum-specific-topic’ or anything else you want.. it will take care of itself

    i think the _wpnonce is a security mechanism that checks for the posting source.

    #53038

    In reply to: Strange views

    Bah … I’m sure it was to late… i forgot to add global $topic; to my function -.-“

    #1182

    Topic: Strange views

    in forum Troubleshooting

    Hey,

    Maybe it’s just getting too late now (02:12 am here in germany) or I am doing something wrong.

    I’ve added a new view-section called Posts since last visit.

    And when I’m on the specified view page it’s calling the right function added via plugin, if I put in a echo it is displayed on the very top of my page (yeah … it’s an echo in the plugin-file, this seems correct).

    But everything I add to the variable $topics wont be displayed, the variable is always empty?! I need to add the topics array to this variable because the whole views template uses it … but I can add anything, Nothing happens.

    Any ideas? Some small thing I’m missing?

    #51725

    In reply to: onvertigo.com forums

    chrishajer
    Participant

    Waiting for the gallery pics ….

    :)

    #52813
    mriannnnnn
    Member

    ok you have to edit these pages:

    front-page.php

    forum.php

    tag-single.php

    just three files not much.

    #53017
    spencerp
    Member

    I’d also like to see #4 implemented into bbPress, but I think we’ll have to at least get the “Forum Categories” plugin out first, then it might be a little easier for the subforums deal..

    For #5, I thought I seen a post about this some where, where “they” were using the WP editor, with bbPress.. I could be wrong though.. =/ All the other numbered requests sound good to me as well.. ;) :) We’ll just have to see what comes out next lol..

    [Mentally visualizes Josh, and the other plugin author’s rubbing their hands together.. and getting busy.. hahaha.. ]

    spencerp

    #52961

    Very nice idea! Keep it up as good as it is so far! I’ve added it to my bookmarks.

    btw: My Post Notification Plugin? :D

    #52941
    ardentfrost
    Member

    Hopefully I’ll have more time soon to knock out a few more plugins. I plan on updating Private Messaging first so that it works out of the box for integrated people. I started working on a User Search feature, but I don’t know if I’ll be able to finish it (maybe if I stopped trying to be cool by using AJAX). After that there’s a few things I want to start working on including Spencer’s forum category thing ;)

    I do have my personal forums setup to add feature requests for my plugins. And although I can’t promise results from requesting an entire new plugin, feel free to post them there. (at http://www.rayd.org/forums )

Viewing 25 results - 31,551 through 31,575 (of 32,432 total)
Skip to toolbar