Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,501 through 28,525 (of 32,492 total)
  • Author
    Search Results
  • #62115

    In reply to: Url Rewriting Problem

    Ben L.
    Member

    Yes, you would need to go into your .htaccess file, plus something to make sure topic links went there… I’ll look into it.

    Here it is:

    Go into your bb-includes/template-functions.php. Find the function called get_topic_link, it should look like this:

    function get_topic_link( $id = 0, $page = 1 ) {
    $topic = get_topic( get_topic_id( $id ) );

    $args = array();

    $rewrite = bb_get_option( 'mod_rewrite' );
    if ( $rewrite ) {
    if ( $rewrite === 'slugs' ) {
    $column = 'topic_slug';
    } else {
    $column = 'topic_id';
    }
    $link = bb_get_option('uri') . "topic/" . $topic->$column . ( 1 < $page ? "/page/$page" : '' );
    } else {
    $link = bb_get_option('uri') . 'topic.php';
    $args['id'] = $topic->topic_id;
    $args['page'] = 1 < $page ? $page : false;
    }

    if ( $args )
    $link = add_query_arg( $args, $link );

    return apply_filters( 'get_topic_link', $link, $topic->topic_id );
    }

    Change 'topic/' to 'konu/'.

    Now, go into your .htaccess file. If you’re using Options +MultiViews, I don’t know how this will work, but if you’re using mod_rewrite, here’s what to do:

    Find the lines that look like

    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]

    and change them to

    RewriteRule ^konu/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^konu/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]

    I think that’s all you’ll need to do…

    #55389
    djuggler
    Member

    To eliminate WordPress as a possible problem, I have tried a fresh install of BBPress 0.8.3 in a new directory ~/make2for1_com/ for a throwaway domain I had laying around http://make2for1.com/ The database is a freshly created MySQL 4 db. PHP is using version 4.4.7 The .htaccess uses the code generated with http://make2for1.com//bb-admin/rewrite-rules.php and nothing else. The config is the sample file with all the appropriate blanks filled in and nothing more.

    $bb->mod_rewrite = ‘slugs’; is set.

    Trying to get to a profiles produces a 404. Trying to read a discussion produces a 404. If I change $bb->mod_rewrite = false; it works.

    #62111

    In reply to: Style first post only?

    fel64
    Member

    You could apply the style you want for only the first li to every li, then use the + selector to modify it for all li following another li (in effect letting you style only the first one, although it’s annoying that you may have to cancel styles).

    li {
    font-weight: bold; }
    li + li {
    font-weight: normal; }

    should make just the first li bold. This I think works on every browser, even IE6.

    The http://developer.mozilla.org/en/docs/CSS::first-child rule is of course the proper thing to do, but (if I recall correctly) doesn’t work for IE6. (This is what I would do … but I generally have no mercy for IE6 users anyway.)

    #61732
    livibetter
    Member

    I am thinking to use another approach (current method is extremely stupid, just like me):

    Using activate_before usermeta. When user registering, activate_before is set as registered + 72 hours (depends on current setting). User need to log in within 72 hours, or to be deleted.

    No need to plug bb_check_login(). :)

    Also have something remove_method for doing deletion or switching to inactive role when user doesn’t log in before deadline. And having last_login can allow admin to make a yearly cleaning up those accounts didn’t log in for a long time. Ask them (by emails?) to log in, or will be switch to inactive role and send a notification mail for a response from them, then could be deleted in anytime if they don’t respond.

    Just some thoughts, what do you think?

    #60931

    I downloaded trunk and it now works. I hope there’s a new release soon that will incorporate these changes so I can use something a bit more stable than the current development version. ;-) It seems to be working fine, though.

    #2719
    livibetter
    Member

    I have kept reading this forums for about a month. I saw many similar processes of solving the same problem.

    Not long ago, I asked Sam Bauers a question about bbpulp.org on IRC:

    <livibetter> can we (users) expand it? like FAQ, troubleshooting, theme modifications?
    <livibetter> there are many questions asked again and again on forums. If we can systematically organize a collection of these, then may be easily to give a solution for their questions.
    <sambauers> Yeah, go ahead.
    <sambauers> It is a wiki after all :)
    <sambauers> Although it was focused on being a developers resource.
    <livibetter> Thanks! I will post a post for this, and hope many other user will do the same thing.
    <sambauers> If you wanted to look at the actual bbPress.org documentation
    <sambauers> you are welcome to suggest additions and edits of the pages there
    <livibetter> I see
    <sambauers> It makes more sense to compile FAQs there for instance
    <sambauers> And installation/integration notes
    <sambauers> Which will soon need updating anyway
    <livibetter> means 0.8.4 coming soon?
    <sambauers> Probably not until WordPress 2.4

    If we can collect and organize these solutions well, we can be more easier to help. I did a small change on the main page, not really start to write something. I took a while to write those new entries, it’s harder than I can imagine. I can’t make them systematic. And that’s still not good, but collaboration can correct mistakes and build a great stuff.

    So, Let’s collaborate!

    #62093
    livibetter
    Member

    I remember there is a post about this. Anyway, I made one.

    Put this in plugin folder: http://bbpress.pastebin.com/f271761bf , use any filename you like

    And this to register-success.php of template:

    <?php
    global $STP_password;
    if ($STP_password)
    echo "<p>Your password is: $STP_password</p>";
    ?>

    Activate plugin and test.

    #2716
    itissue
    Member

    Is there a way to print out the password after someone registers instead of sending an email? My web host won’t allow sending emails through web pages. I looked at topics already written but I was unable to implement the code because I have version 8.3. If anyone can give me the code I have to add or modify, that would be great.

    Thanks,

    Sue

    #60859

    The problem is; I’ve never explicitly told bbPress to connect via a local socket, and since I’m not a Unix expert, I didn’t really comprehend the error message. I now understand a bit more of what it says and that I should instruct bbPress to connect via TCP/IP instead. However, isn’t this something bbPress should have available as an option in the config.php file somehow? Or even just as an automatic switch it figures out based on whether BBDB_HOST is set (or is different from localhost) or not?

    #60858
    livibetter
    Member

    Yes, you surely can’t, cite from man mysql

    ·  --socket=path, -S path

    For connections to localhost, the Unix socket file to use, or, on
    Windows, the name of the named pipe to use.

    No remote IPC, if you can communicate via TCP/IP from remote, why use unix socket?

    #62067
    citizenkeith
    Participant

    There are some decent programs for legal mass mailing that you can use. For Mac, there’s a great program called MailDrop that will import email addresses from a spreadsheet. The email service, Constant Contact, does the same thing. Just export from PHPMyAdmin and import the info into your bulk mail program.

    A plug-in would be easier, that’s for sure! :)

    #60856
    Sam Bauers
    Participant

    > I suspect bbPress of having hard coded a connection to localhost and thus configuring define(‘BBDB_HOST’, ‘…’) to be something else than localhost doesn’t really matter.

    That’s simply not the case.

    #62083
    alderete
    Member

    Yeah, I guess it would work for now, we only have a few forums. But I’m reluctant to put that kind of thing into the templates, where it’s hard to update, and prone to typo problems, etc., if the conditional code gets accidentally mucked up.

    Is there any way to add arbitrary meta attributes to things in bbPress, the way you can add them to posts in WordPress?

    #62092
    livibetter
    Member

    Check Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

    It’s written for WordPress, but you can use it for installing bbPress.

    #62066
    chrishajer
    Participant

    You could extract all the email addresses from the database with a tool like phpMyAdmin. I don’t know of a plugin that does this. If it’s a onetime thing, I would just grab the email addresses from the database with a query like:

    SELECT DISTINCT user_email
    FROM bb_users
    ORDER BY user_email ASC

     

    With all the email addresses, then just send out a mass email with your email client putting their email addresses in the BCC field.

    Are you looking to do this regularly, and are you thinking this should be a plugin? I guess you’d need to know if the installation were integrated or not, then query the correct table, and also if it is an integrated installation, you’d need to separate out the bbPress registrations from the WordPress registrations.

    chrishajer
    Participant

    If you are going to do something like bb_installation_ and bb_plugins_, it sounds like you want subforums. You would have one installation in a directory like /forums/ then you create subforums in your admin panel.

    You would NOT create multiple $bb_table_prefix = lines – that wouldn’t work.

    #61967

    sambauers, is there an ETA on that? I’m not trying to rush it, just wondering. :)

    #61892
    livibetter
    Member

    I just noticed I gave you wrong link to rss.php

    This is the correct one: http://llbb.pastebin.com/f1aee01cf

    #61886
    livibetter
    Member

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    #62076

    In reply to: Installation woes

    livibetter
    Member

    Well I updated WP…

    You probably need to ask in WordPress Support.

    Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1

    #61882
    livibetter
    Member

    What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)

    Have you set $bb->uri in your config file?

    What browser are you using?

    #62079

    In reply to: Posts lost :(

    r4zv4n
    Member

    Unfortunately, not only they aren’t in the DB, but I don’t have a usable backup either (the last full backup I have is from about two weeks ago and the daily backup has the same thing as.. what i see).

    Another weird thing is that some days ago, in my Akismet spam list I found some posts from way back (that weren’t spam, but.. why check them if they were already “accepted” ?).

    So I suspect that something might have triggered a full check and it automagically deleted what it considered spam or something..

    So, I lost about a month and some of posts :(

    #61933

    In reply to: Excerpts

    fel64
    Member

    livibetter, if you can separate the logic code from the presentation it’d be even better. You can always put a hook into the template and put the code into a plugin, or use the query filter to find when the topics are being looked for.

    #62057
    livibetter
    Member

    !defined('DB_NAME') is redundant, since you should be only one can code on your files.

    I will use

    if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
    require_once('../wp-blog-header.php');

    Anyway, you did a great job!

    PS. could you show us your forums?

    #62056
    ixray2
    Member

    Here is a quick workaround I just figured out, but I’m not sure this is state of the art:

    Instead of

    require_once(dirname(__FILE__) . '/../wp-blog-header.php');

    in config.php, I put

    `if ( !defined(‘DB_NAME’) && !strstr($_SERVER[“PHP_SELF”],’bb-admin’) )

    require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’); `

Viewing 25 results - 28,501 through 28,525 (of 32,492 total)
Skip to toolbar