Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,951 through 25,975 (of 32,516 total)
  • Author
    Search Results
  • #69423

    In reply to: tag remove fail

    ganzua
    Member

    BTW, I just tried to remove a tag and it says that I can’t because the topic “is closed” when it actually is not :s

    #69422

    In reply to: tag remove fail

    ganzua
    Member

    Thanks for the fix :)

    I have functions.bb-template.php and functions.bb-core.php modified because there are some stuff that is related with the template; h2 tag, tag cloud size, « Previous and a &hellip for pagination…

    Could it be possible to move this stuff to the template folder? perhaps in a functions.php file?

    #69420

    In reply to: tag remove fail

    deadlyhifi
    Participant

    having same problems here on 1 alpha 6. Would love to see this fixed asap. No pressure or anything! ;) Thanks.

    #70086
    gmvini
    Member

    Same is happening on my board that I just recently installed. It is a fresh install of WP 2.7 and bbPress 1.0-alpha-6.

    Its all running on:

    Win XP SP3 (please dont kick me ;) )

    Apache – 2.2.4 (Win32)

    PHP – 5.2.3

    MySQL – 5.0.37

    #71184

    But why would you ever do such a thing?! :)

    #71183
    mpttt
    Member

    Thank you ganzua. I appreciate your help! :)

    #70415
    _ck_
    Participant

    To make it always link the past post change line 105

    from

    if ($up_key!=false && $up_last_posts[$up_key]!=$topic->topic_last_post_id) {$link = get_post_link($up_last_posts[$up_key]);}

    to

    if (!empty($up_key)) {$link = get_post_link($up_last_posts[$up_key]);}

    I might make that a feature.

    I suspect it’s going to make your queries per page go up much higher though.

    #70414
    circuit
    Member

    apologies. its working like this (we think):

    1. If you click on a thread you have not read since the upgrade, you’ll go to first post.

    2. If you click on a thread you have read since the upgrade, and there are new posts, you’ll go to new posts.

    3. If you click on a thread you have read since the upgrade, and there are no new posts, you’ll go to first post.

    ideally we want #3 to take us to the LAST post instead. is there a quick code change for this?

    #4649
    ganzua
    Member

    Hi

    I’m puzzled again :s

    Quicktacks are working ok in post-form.php but not in edit-form.php. The only tag that works in edit-form.php is the “link” tag.

    I’m not using any plugin, I’m calling the script to the header and then I place it next to the form textarea.

    Why is not working in edit-form.php?

    #67839

    In reply to: Get Current Forum ID?

    Ben L.
    Member

    The problem is quite simple, really.

    <li<?php if ($current_forum_id=get_forum_id()) {echo " class='on'";} ?>> just needs to be changed to <li<?php if ($current_forum_id==get_forum_id()) {echo " class='on'";} ?>>

    (Can you spot the difference?)

    #71181

    In reply to: wp function error

    kerrick
    Member

    I’m getting the same error too. I’m on lunarpages hosting, and I went through “enable php5,” but the error is still there. What else can I do?

    Here’s the error:

    Warning: cannot yet handle MBCS in html_entity_decode()! in /home/[censored]/public_html/semostudents/forums/bb-includes/wp-functions.php on line 113

    EDIT: Alright, I removed php5 and re-added php5, something went wrong with the .htaccess files. It’s working now under php5.

    #50221
    Ben L.
    Member

    @Fender:

    You would need to have the link put into the post at the time of display, not at the time of posting. I already emailed you the plugin you asked for. ;)

    #71178
    Ben L.
    Member

    Or, even better, use the database prefix. ;)

    #71180

    In reply to: wp function error

    cre8tivexjs
    Member

    i tried switching my mt’s Grid server to php5 and the errors are gone …

    if you can switch your server into php5 as well that should fix the MBCS error problem.

    be careful though as some php4 codes may not work in php5

    #71179

    In reply to: wp function error

    cre8tivexjs
    Member

    getting the same errors as criketos

    I’m guessing that one of the php function used in the new release of bbPress only supports PHP5 =(

    http://bugs.php.net/bug.php?id=25670

    #4648
    criketos
    Member

    I would like to install bbpress 0.9.0.4. but at the second step (http://vinblog.com/forums/bb-admin/install.php?step=1).

    I have error “Warning: can not yet handle MBCS in html_entity_decode ()! in / home / vinblog / www / forums / bb-includes / wp-functions.php on line 113. “

    someone would have the solution?

    THANKS

    christian

    #50424

    In reply to: Importing from vanilla

    circuit
    Member

    paste the code into the SQL field in phpmyadmin

    export the result to a CSV

    import the CSV to your bbpress forum tables.

    #71072

    In reply to: Single topic only

    Fender
    Member

    I was able to achieve most of what I wanted to do with almost no core hacks.

    I editted my template front-page.php to basically be topic.php but without the re_permalink() ; call and statically setting $topic_id = 2.

    The core hack I made was to change functions.bb_templates.php to modify all location query functions to trick it into thinking ‘front-page’ is topic-page instead (these are mostly case statements inside functions like is_front() and is_topic()) , meaning that post.php, post-form.php and /bb-post.php all fuinctioned on my new front page in the same way they would on topic.php. I would prefer to develop a plugin that did this modification, but I don’t have time to make one.

    So it essentially does what I wanted it to do, albeit with a core hack that will have to be manually maintained in future releases unless a plugin is developed.

    In the last few days, I’ve basically discovered that neither WordPress or bbPress can do more than 60% of what I want, and it’s a different 60% in each case. bbPress has one major advantage for me over WordPress right now, and that is bbPress Moderation Suite. WordPress has nothing remotely resembling it and I doubt I’ll be able to find someone willing to build it, even for cash. But even bbPress Moderation Suite is missing one key thing for me, and that’s email notification to the users, but Nightgunner is working on that one already.

    #50220
    Fender
    Member

    I’ve been playing with this one and there’s a modification I would mind seeing, or some help on how to make the modification.

    I’m trying to use the AJAX Quote plugin with this, but unfortunately it breaks. The reason is simple … the AJAX Quote plugin basically copies the id=x&page=y#post-zz into the postbox so that you can find and navigate to the original post being quoted. When using this script, it gets broken because the most recent posts are always on page=1, meaning that when a post that’s been replied to gets bumped to page=2, the link is now incorrect.

    What I’d like to see is that the page id’s for a paginated topic don’t change … the earliest post will always be page=1 and the most recent posts will be on the highest page number. I can see that the quoting system can still be broken if the posts per page setting is changed, I know. But assuming it doesn’t change, then this would maintain the integrity of the quote links.

    Any ideas?

    #71167

    Looks like a few changes might be needed unless I’m missing something along the way…

    This makes the favorites load properly for me.

    includes/functions.bb-users.php

    line 221

    FROM

    if ( !empty($user->favorites) ) {

    TO

    if ( !empty($user->bb_favorites) ) {

    includes/class.bb-query

    line 442

    FROM

    $where .= $this->parse_value( 't.topic_id', $f_user->favorites );

    TO

    $where .= $this->parse_value( 't.topic_id', $f_user->bb_favorites );

    line 559

    FROM

    $where .= $this->parse_value( 'p.topic_id', $f_user->favorites );

    TO

    $where .= $this->parse_value( 'p.topic_id', $f_user->bb_favorites );

    Basically, there are a few other places where $user->favorites needs to be changed to $user->bb_favorites.

    So, I’ve got it up and working from doing the above. I’ve never needed to commit a change to the trac before. Should I just open a ticket, or can I change it directly?

    #71163

    Yes, you should use absolute pathing. Try this:

    Redirect 301 /bbpress/register.php http://www.scopedin.com/wordpress/wp-login.php?action=register

    You want bbpress/register.php and NOT your theme because the main register.php is actually what gets called.

    #71177
    mpttt
    Member

    Update:

    (Nevermind this stuff below. WP does this even without bbpress, it may be the template.)

    Removed the cookie code from wp-config above.

    Checked “must be logged in to post comment” option in WP Discussion options.

    Logged in with a Subscriber account. Posted comment. Tried to click “Logout” on comments page. Continue to get error:

    “You are attempting to log out of The Site

    Please try again.”

    Difference between the URLs in admin vs comments page.

    Admin “logout” url: ****/wp-login.php?action=logout&_wpnonce=stringofcharacters

    Comments “logout” url: ****/wp-login.php?action=logout

    #4645
    mpttt
    Member

    Hello.

    Installed wp2.7 in root dir, and bbpress alpha 6 in sub-dir. Enabled permalinks, added code to htaccess in sub-dir.

    Test 1. Logging in to wordpress admin.

    Navigate to comments: shows logged in as admin user

    Navigate to forum: not logged in

    Navigate to forum admin: not logged in

    Test 2. Logging in to bbpress admin.

    Navigate to comments: does not show as logged in as admin user

    Navigate to wp admin: logged in as admin

    Is this how it’s supposed to work?

    More info:

    After adding the following lines of code to the wp-config file:

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    This does not change anything except, if I am logged in to the WP Admin, I can not log out. Clicking Log Out presents:

    “You are attempting to log out of The Site

    Please try again.”

    Am I missing something with the code above? Should I be adding the domain name somewhere?

    I appreciate your help.

    #4644
    Ben L.
    Member

    $warnings = $bbdb->get_results("SELECT user_id, meta_value FROM $bbdb->usermeta WHERE meta_key='bbmodsuite_warnings'");

    Okay, so now I have all of the warnings from every user with them. That was easy, just one query. However, I don’t know any good way to go back to the database, once I loop through them all, since I will need to delete some of the usermeta entries, update the others, and update a second set of usermeta keys designed to lower database traffic. Thank goodness this is only on cron.

    How do I update hundreds (or even thousands) of database entries all at once?

    #71161
    chrishajer
    Participant

    If there is none there, then yes, you need to create one. Be sure it starts with a period:

    .htaccess

    That indicates a hidden file on Linux/Unix.

Viewing 25 results - 25,951 through 25,975 (of 32,516 total)
Skip to toolbar