Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,576 through 31,600 (of 32,468 total)
  • Author
    Search Results
  • #52292
    d3x7r0
    Member

    I just found a small issue with this plugin: when no title for the message is given it still sends the message but the link to read it is invisibe (since it’s just <a></a> with nothing in between.

    #52942
    mistainu
    Member

    @ardent: i can’t access your forums, i’m cut off from certain servers due to the Taiwan 7.1 Quake. :( i’d love to try your plugins but i can’t, maybe in 3 weeks…

    #52995
    d3x7r0
    Member

    I just took a look at both codes and noticed that in the onlinelist plugin you’re using – 300 and on this one – 3600, notice the diference? :P

    #1189
    spencerp
    Member

    The suggestion for this came up on the wp-forums list a while back, but.. nothing was posted on the “How-To” for it..

    I was just wondering, what would be the tags “call” for making this possible? Here’s an example of what I’m talking about…

    <li><h2>Browse By</h2>

    <select name="archivemenu" onChange="document.location.href=this.options[this.selectedIndex].value;">

    <option value="">Tags</option>

    <?php tag_heat_map(); ?>

    </select>

    What’s the actual “call” for the tags, to have them all be listed there? Thanks in advanced.. ;):)

    spencerp

    #53064
    Trent Adams
    Member

    Why not run an absolute path?

    require_once(/var/www/html/mysite_function.php);

    Does that work?

    If it is root bbPress folder, you could use what is in config.php

    require_once( BBPATH . 'mysite_function.php' );

    Should be pretty easy……?

    Trent

    #1188
    mouse8b
    Member

    On my site, I have a file of general purpose functions in the site root called “mysite_functions.php.” I have WordPress installed in /wordpress, and bbPress installed in /wordpress/bbpress. I have altered wp_setcookie() and wp_clearcookie() in a WordPress plugin. In those two functions, I use require_once('../mysite_functions.php');, and then the function call. It works fine.

    The problem comes in the bbPress plugins. I have a plugin overriding bb_login() and bb_logout(). In each of those functions I use the exact same code to call mysite_functions.php, but I get “failed to open stream: No such file or directory in [file path] [line number]”

    In either case, the functions are unchanged with the exception of appending:

    require_once("../mysite_functions.php");

    call_my_function();

    #53046
    willdayble
    Member

    Alrighty, just to be a dumbarse, I’d love to use this plugin but I’ve NO idea how to do the “Upgrade the installation of bbPress to the latest version from the code repository” bit.

    I’ve recently migrated from phpBB over to BBpress, with all my posts and topics thankfully intact… but I’ve some forums I need to hide.

    Is there no way to hide forums based on the user level at all?

    #49797
    willdayble
    Member

    … the problem here is you can delete a forum but not the post entries in the database that are in said forum… :/

    #52051

    In reply to: users’ email address

    satellio
    Member

    Cool! But how come some users’ email addresses show as just “1”?

    </tr> <tr id='user-3'>

    <td>3</td>

    <td><a href='http://sostomates.fr/bar/profile/3'>Kronenbourg</a></td>

    <td><a href='mailto:1'>1</a></td>

    <td>2006-12-21 10:54:46</td>

    <td><a href='http://sostomates.fr/bar/profile/3/edit'>Edit</a></td>

    </tr> <tr id='user-25'>

    <td>25</td>

    <td><a href='http://sostomates.fr/bar/profile/25'>Oliv</a></td>

    <td><a href='mailto:1'>1</a></td>

    <td>2007-01-01 18:32:56</td>

    <td><a href='http://sostomates.fr/bar/profile/25/edit'>Edit</a></td>

    #52595

    I’m not sure, but it looks like a bad .mo file. The Plural-Forms line of the .po file should end with a semicolon (;).

    #52993

    If you are inactive for more than 5 minutes, you’re marked as offline. So if you go to the forum again later your last_visit is the time when you were there the time before.

    (ehm .. sry… it’s hard for me to describe in english)

    d3x7r0:

    Strange … for me it works at the moment. Maybe some time problems … try removing the -3600 from line 53.

    Just remember, this is beta! (maybe… alpha :D )

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

Viewing 25 results - 31,576 through 31,600 (of 32,468 total)
Skip to toolbar