Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,001 through 28,025 (of 32,481 total)
  • Author
    Search Results
  • #63166
    affacat
    Member

    Ah, just found this thread. I had just posted the sparepencil ajax-fix link in an older thread.

    I am having permission issues. Have tried creating a new keymaster to no avail. I had the same exact issue with WP 2.3.3 until I used the ajax fixing plugin above. It feels like the same exact problem in every way.

    The sparepencil plugin had a less eloquent fix originally – I don’t remember precisely but you basically just commented out a block of code and replaced it with something short and sweet (something to do with cookie decryption i think). Is there any quick fix like that here?

    Basically, anything that will let me start properly admin’ing bbPress would be fantastic.

    #61122
    affacat
    Member

    Having the same issue – first tag added ok. Second tag said gave me the permission error.

    This reminds me of the ajax issue with WP. Is there any chance it’s related?

    http://sparepencil.com/code/ajax-referer-fix/

    #2791
    affacat
    Member

    After a day of on-again, off-again effort I have successfully imported my SMF to bbPress – and integrated it with WP.

    I did this on a local test server, then installed bbPress live, then drop/imported my bbpress tables and user tables (my wp user tables in this case).

    Steps:

    1. Installed PhpBB 2.0.23 (legacy version available from phpbb people) and made sure it worked

    2. Used files within a zip file called convert_smf_111_v1b.zip to convert SMF -> Phpbb. Unfortunately, I can’t find the link to the thread right now… I found this

    http://www.phpbb.com/community/viewtopic.php?f=10&t=306321&st=0&sk=t&sd=a

    but it isn’t as new a version.

    I believe the file I used is here:

    http://sourceforge.net/project/showfiles.php?group_id=141446

    sorry I lost the link to the discussion.

    NOTE 1 : I had to manually go into the database and upgrade my main account to ‘level 1’ to become admin again.

    NOTE 2 : Your password probably won’t work and you probably can’t send yourself an email either. I hacked phpbb/includes/emailer.php and included the variable $this->msg into the error message so that the email appeared on the screen. This gave me the ability to reset my account and get a new password.

    3. Implemented the following MOD on PhpBB to switch conflicting User Ids

    http://www.phpbb.com/community/viewtopic.php?t=388155&sid=3d5e8f776a7086b6fec64c3e80c7cbca

    (this part is tedious! the MOD is a pain to install and rearranging is no fun either)

    Here are directions on how to install a Phpbb mod:

    http://www.phpbb.com/community/viewtopic.php?t=61611

    4. installed Jaim3’s PhpBB to bbPress converter per instructions

    http://bbpress.org/forums/topic/a-phpbb-to-bbpress-database-converter

    This created a .sql file.

    NOTE 1: Make sure to create a temp folder where the file wants to be created

    5. Important edits to .sql file

    A) since I did an integrated WP/BBpress install, I needed to search and replace bb_user for wp_user

    B) Delete any lines that add users who already exist in BB/WP

    C) add a field called topic_resolved to bb_topics

    D) Delete the sample test posts and forums in the bbpress tables

    6. Import the .sql into your database. The above should have solved any conflicts, but if you get an error it should be relatively easy to figure out.

    7. At this point, since I wasn’t doing it live I installed bbPress live, and then drop/created my test tables (all bb tables plus user tables) on my live server and all went well.

    8. This should be everything. Have a drink.

    #63580
    CoreForce
    Member

    As I hardcode byteorder to 0 (zero) everthing is fine.

    Something is wrong with the magic number check for byte order validation.

    #63714
    ben-shaf
    Member

    I changed in formatting-functions.php this code:

    $text = preg_replace(‘/[^a-z0-9-]/i’, ”, $text);

    $text = preg_replace(‘|-+|’, ‘-‘, $text);

    to:

    $text = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $text);

    $text = preg_replace(‘/&.+?;/’, ”, $text);

    AND

    $text = preg_replace(‘/[^a-z0-9_-]/i’, ”, $text);

    to:

    $text = preg_replace(‘|[^a-z0-9 _.-@]|i’, ”, $text);

    * Original code from WordPress (formatting.php), maybe true :)

    Now, I can registration arab characters, but I can not login ( This username does not exist.)

    ????

    #49958

    In reply to: En español

    Covi
    Member

    Gracias krackenn, todo un detalle por tu parte.

    …solo una cosilla… podrías incluir el fuente en la descarga?? ;)

    Un saludo.

    #49957

    In reply to: En español

    Covi
    Member

    Tenéis un alta! :D

    Hola de nuevo Ganzúa y cia.

    Lussumo era temporal hasta que BBPress madurara algo más, ahora, por fin, lo he implementao en la Web junto con Wordpres y a decir verdad, pese a usar versiones Release, me va genial.

    He de decir que para integrar BBPress con el nuevo sistema de passwords de WP2.5 he tenido que meter el diff de BBPress previsto para la 0.9… así que como decía, realmente uso todo releases: WP2.5 y BBPress 0.83+el hack para el password de la 0.9 :D

    #3060
    Shagalaga
    Member

    Could anyone code a plugin which shows your 360 gamertag instead of/under your Nickname

    #60384
    aiitee
    Member

    should i add the first code before the ?> right? because that didnt worked out for me… and the mod rewrite rules i added to the .htacess file, i have some coding there:

    Options +FollowSymLinks +ExecCGI

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

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

    RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]

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

    RewriteRule ^topic/([^/]+)/?$ /topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /tags.php [L,QSA]

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

    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]

    RewriteRule ^rss/?$ /rss.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]

    </IfModule>

    should i delete this and copy the one you gave me?

    #3057
    sb73542
    Participant

    Hi there,

    I would like to switch my forums over to bbPress. However, I can’t seem to find a plugin that will let me display blocks of information in different parts of my forum. For example in Vanilla forums, the “Nuggets” extension lets me add any php code to the header, threads, after the 3rd post, at the footer, wherever. I personally could use this functionality to display Google Adsense code after the first post of every thread. Is there any way I could do this with bbPress?

    Thanks a lot!

    #63164
    Nola1974
    Participant

    I agree. I know bbpress isn’t ‘designed’ to be a drop in integration with wordpress, it seems obvious to me that that should be a major focus. There’s simply too many issues with integration for two projects that share so many concepts, etc… Hopefully 2.5/0.9 will solve a lot of that. It shouldn’t be too much longer after that that WPMU will graft the 2.5 code. I just can’t believe there’s threads on here from 2 years ago about problems sharing cookies.. that are still active. heh.

    #63696
    12thharmonic
    Member

    Thank you very much. That worked a treat!

    Youse Kick Arse!

    ;)

    #63694
    Sam Bauers
    Participant

    I can’t say for sure what is happening for you, but you can just define this constant in your config.php file and it should override that calculated path.

    define('SUPPORT_FORUM_ICON_URI', 'http://headonradionetwork.com/forum/my-plugins/');

    .

    This is not a hack, the plugin was built to allow overrides on that value because of circumstances like yours.

    #63162
    _ck_
    Participant

    Yeah that looks okay. Someone more knowledgeable than me is going to have to trace this. I get as far back as the ajax xml generation code but that’s useless without knowing what’s triggering the error. Maybe ask Sam or MDA on the irc or perhaps turn to other WPMU folks to see if they encounter this?

    #63161
    Nola1974
    Participant

    From user_id 1

    bb_capabilities a:2:{s:9:"keymaster";b:1;s:8:"throttle";b:1;}

    #63157
    Nola1974
    Participant

    I got paros running, could login to a bunch of sites (gmail, yahoo, here) but kept asking me for my bbpress’ login over and over.

    What exactly do you want to see from the session in paros?

    GET http://geekdc.com/forum/bb-admin HTTP/1.1
    Host: geekdc.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Paros/3.2.13
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://geekdc.com/forum/bb-admin/
    Cookie: __utma=164913321.806591864.1206118840.1206381545.1206389257.5; __utmz=164913321.1206118840.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ?wordpressuser?=admin; ?wordpresspass?=33b7fd3d41082aeb1764e84c5e297d8f; ‘wordpressuser’=admin; ‘wordpresspass’=33b7fd3d41082aeb1764e84c5e297d8f
    Content-length: 0

    #63688

    In reply to: Problem with Links

    chrishajer
    Participant

    For right now, turn off permalinks in your config.php

    $bb->mod_rewrite = false;

    Looks like you have it set to 'slugs' right now but your .htaccess rules are not allowing that. Set it to false for now and you can figure out permalinks later.

    #63146
    Nola1974
    Participant

    This is apparently caused by servers running the Suhosin PHP hardening patch… it encrypts cookies. I was having a simlar problem about a year ago on another site:

    Can’t post. Topic turns yellow. Can’t delete.

    I found this plugin for WP that fixes it (in WP).. it’s apparently a bug in WP’s AJAX handling. Perhaps something similar is going on inside BBpress’ AJAX functionality?

    http://sparepencil.com/code/ajax-referer-fix/

    in pluggable.php (current)

    if ( !function_exists('bb_check_ajax_referer') ) :
    function bb_check_ajax_referer() {
    if ( !$current_name = bb_get_current_user_info( 'name' ) )
    die('-1');

    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, bb_get_option( 'usercookie' )) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, bb_get_option( 'passcookie' )) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    if ( $current_name != $user || !bb_check_login( $user, $pass, true ) )
    die('-1');
    do_action('bb_check_ajax_referer');
    }
    endif;

    From above mention (wordpress) plugin:

    if (!function_exists('check_ajax_referer')) :
    function check_ajax_referer() {
    // Explode cookie data like WordPress normally does
    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    // This variable is set when cookie data was sent in an encrypted fashion
    // For more information:
    // * http://forum.hardened-php.net/viewtopic.php?pid=616
    // * http://www.hardened-php.net/suhosin/
    if(isset($_SERVER['RAW_HTTP_COOKIE']))
    {
    // Explode the raw (HTTP) cookie data using the WP method
    $crypt_cookie = explode('; ', $_SERVER['RAW_HTTP_COOKIE']);
    foreach ( $crypt_cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $crypt_user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $crypt_pass = substr(strstr($tasty, '='), 1);
    }
    // Set $user and $pass to the decrypted values if the cookies match
    if($crypt_user == $user && $crypt_pass == $pass)
    {
    $user = $_COOKIE[USER_COOKIE];
    $pass = $_COOKIE[PASS_COOKIE];
    }
    }

    if ( !wp_login( $user, $pass, true ) )
    die('-1');
    do_action('check_ajax_referer');
    }
    endif;

    #63678
    chrishajer
    Participant

    The problem is, you’ve given yourself 600px of space in between those side images, and you’ve used up all of it. You can do something like this to any of those tables that are now 600px wide. Change the width to 560px and then center it. That will give you 20px of whitespace on the left and right. You will need to do this for several tables that are 600px wide now.

    width="560" style="margin: 0 auto;"

    (inside the <table> tag)

    This is a really bad way of doing it, but it gets the job done. Much better to do this with divs that have unique names, then define the style for those divs in style.css. But, just adding that style inline gets the job done. It’s just not the best way of doing it.

    #63673

    In reply to: Design Change

    chrishajer
    Participant

    I think you want to move (or remove) this piece of code in topic.php of your template file:

    <?php topic_tags(); ?>

    Removing that removes the tags for a topic. Then, just put it where you want it to get the tags back.

    #63664

    In reply to: how to inset avatar

    chrishajer
    Participant

    From the readme file:

    =================================

    3. To display an uploaded avatar, insert the following template function.

    a) On the user’s profile page (profile.php template).

    <?php avatarupload_display($user->ID); ?>

    This grabs the avatar info file directly from the current user’s profile information.

    b) On each user’s forum posts (post.php template)

    <?php avatarupload_display(get_post_author_id()); ?>

    You can include the avatar anywhere else you like, just be sure to have the user’s ID available.

    =================================

    You would insert one of those pieces of code in a template file wherever you want the avatar to appear. Try one and see how it works.

    #57375

    In reply to: plugin: seo meta

    aiitee
    Member

    can you please specify where exactly i have to put this code? i dont found is_forum and is_topic

    #3046
    aiitee
    Member

    Hi well, if you check this site http://www.hentaitube.org all the links take you to the “no input specified” page, i did the .htacess thing it didnt work, i tried copied the whole code of the rewrite-rules on the .htacess but it doesnt work,.. just for more details, in the admin control panel i cannot change my profile, i dont see any posts…

    []EDITED[] I changed the permalinks code, its set to “false” now it works, but i want it to be like slugs, what can i do??

    if you need more info just tell me

    3ring
    Member

    Yes, I saw that in the other post chrishajer (pay for help). Thanks so much for your help. I knew it had to be something simple.

    Why would this have worked for so long then break after months of use?

    How can I send you some cake? ;)

    Please contact me through the contact form on the site in my id.

    #63659
    3ring
    Member

    WoooHooo!!

    Thanks _ck_! That worked sweet. Didn’t even need to touch .htaccess.

    I just donated $20 through your donate button. Sweet bbpress site by the way.

    Thanks again so much.

    Also, thanks for the offer, chrishajer, I really appreciate it.

    For anyone who wants to know how to do that quickly, just go to your config.php file and make the following line of code look like this:

    $bb->mod_rewrite = false;

    (problem code was: $bb->mod_rewrite = slug;)

Viewing 25 results - 28,001 through 28,025 (of 32,481 total)
Skip to toolbar