Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,826 through 18,850 (of 32,518 total)
  • Author
    Search Results
  • #105135
    Gautam Gupta
    Participant

    You may check my WordPress to bbPress converter – http://code.google.com/p/wordpress-to-bbpress-converter/

    It doesn’t migrate users yet, so you would have to do that yourself (before using the script).

    #77989

    Lol @ Marius

    #38075
    silasje1
    Member

    Hey.

    When i tried Easy Video Embed i had alot of problems with all IE versions.

    Now i added the new <iframe> from youtube in it. Also i updated the old code and made that for IE only, cause they dont support html5. I cant contact or add the new files so maybe sombody else wants to?

    O yeah it works on 1.0.3 of course :) here is the new code:

    <br />
    function ae_detect_ie()<br />
    {<br />
    if (isset($_SERVER['HTTP_USER_AGENT']) &&<br />
    (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))<br />
    return true;<br />
    else<br />
    return false;<br />
    }</p>
    <p>...............................(60 lines of code)</p>
    <p>if (ae_detect_ie())

    {$post_text = preg_replace('#[video]http://([a-zA-Z0-9]+.|)youtube.com/.*v=([a-zA-Z0-9_-]+).*[/video]#i', ' <object width="640" height="510"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\2" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="510"></embed></object>',$post_text); }
    else
    { $post_text = preg_replace('#[video]http://([a-zA-Z0-9]+.|)youtube.com/.*v=([a-zA-Z0-9_-]+).*[/video]#i', '<iframe title="YouTube video player" width="853" height="510" src="http://www.youtube.com/v/\2"frameborder="0" allowfullscreen></iframe>',$post_text);<br />
    } </p>
    <p>

    test it here:

    http://www.fstube.org/forums/bbpress/topic/touch-and-go

    #93237

    In reply to: Bavatars Error

    If you’re unlucky like me and you still have some old php4 code that’s preventing you from flipping the switch to php5. Here’s what I did to fix bavatars.php, around line 48.

    //$id = bb_get_user( $id_or_email, array( 'by' => 'email' ) )->ID;

    // Fix for Fatal error: syntax error, unexpected T_OBJECT_OPERATOR

    $bb_get_user_object = bb_get_user( $id_or_email, array('by' => 'email'));

    $id = $bb_get_user_object->ID;

    #60027

    More than likely these problems are either fixed by now, related to not looking in the right place, or used in JavaScript. :)

    #105116

    Hi Doug,

    1.1 is in /trunk/ and is the most recent stand-alone code. You could use it the same as you use 1.0.2/1.0.3 right now and shouldn’t have any issues.

    2.0 is in /branches/plugin/ and nothing has been specifically built to make the two talk to each other yet. Every effort has been made to make sure they don’t conflict though, so they shouldn’t get in each others way either. :)

    #100016

    Hi Doug,

    1.1 is in /trunk/ and is the most recent stand-alone code. You could use it the same as you use 1.0.2/1.0.3 right now and shouldn’t have any issues.

    2.0 is in /branches/plugin/ and nothing has been specifically built to make the two talk to each other yet. Every effort has been made to make sure they don’t conflict though, so they shouldn’t get in each others way either. :)

    #95097
    Gautam Gupta
    Participant

    Is there a way of utilising the hook transition_post_status only when it’s in reference to a topic or reply? Or is there a function for this already?

    I’m looking to only call a function when a user posts a topic or reply, possibly when a post gets spammed or trashed.

    You can use the hooks bbp_trashed_topic, bbp_trashed_reply, bbp_spammed_topic, bbp_spammed_reply. All those supply you with the reply or topic id. :)

    #95095
    moonoi
    Participant

    Adding to the question above:

    I found out that when I type in /blog/forum/test-forum I’m not redirected but just shown the 404 page. All other combinations ends in a redirect back to the front page.

    I can see in the posts table that WP saved the permalink as http://localhost.localdomain/?post_type=forum&p=8053. Requesting this URL just results in the redirect.

    I already tried saving permalinks settings a number of times. I also tried each of the custom structure combinations mentioned in here such as /%post-type%/%post-name%/etc., and I tried disabling “neat” permalinks all together. Nothing seems to work.

    #95093
    moonoi
    Participant

    I’ve looked through this whole thread and have seen several cases of people having trouble with the permalink structure, getting 404’s.

    No matter what I try, every time I try to access /forums/forum/test-forum I’m just redirected to the site root.

    I’ve spent loads of time looking through the core files of bbpress, but I can’t seem to find the place where this particular link structure is set. Rules are added for a lot of other pages, but not the single forum page.

    Does anyone know where WordPress is told to use this particular URI structure?

    #105099
    christofian
    Member

    fixed, the problem was that $_GET["page"] = $wpbbpmpage; should have been $wpbbpmpage = $_GET["page"];

    #99999
    christofian
    Member

    fixed, the problem was that $_GET["page"] = $wpbbpmpage; should have been $wpbbpmpage = $_GET["page"];

    #38046
    christofian
    Member

    Hi, I’m working on a plugin for the bbpress plugin version. I’m trying to add private messages to the bbpress plugin, and I have already done a lot of work on it.

    My problem is I’m trying to add a page in the bbpress profile to display the private messages. I’m trying to do it by modifying /bbpress/bbp-themes/bbp-twentyten/bbpress/user.php so it looks like this:

    $_GET["page"] = $wpbbpmpage;

    if( $wpbbpmpage == recieved ) {

    get_template_part( ‘bbpress/user’, ‘pm-recieved’ );

    }

    elseif( $wpbbpmpage == sent ) {

    get_template_part( ‘bbpress/user’, ‘pm-sent’ );

    }

    else {

    // Profile details

    get_template_part( ‘bbpress/user’, ‘details’ );

    // Subsciptions

    get_template_part( ‘bbpress/user’, ‘subscriptions’ );

    // Favorite topics

    get_template_part( ‘bbpress/user’, ‘favorites’ );

    // Topics created

    get_template_part( ‘bbpress/user’, ‘topics-created’ );

    }

    So that when the url is http://siteurl.com/users/username/?page=sent a list of all the private messages that the user sent will be displayed, and when the url is http://siteurl.com/users/username/?page=recieved a list of all the private messages that the user has received will be displayed. Right now the code isn’t working, and I have no idea why. If someone could tell me where I’m going wrong, I would appreciate it a lot.

    NOTE: This is my first wordpress plugin, and I’m pretty proud of myself for coming this far :)

    Thank’s for your help,

    -Christofian

    #105072
    Kurt Glen
    Member

    hey guys its a database problem where the table for posts arent being created any1 have any ideas why? this is the error im getting:

    SQL ERROR!

    >>> Database: xxxxxxxx (127.0.0.1)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_posts (

    post_id bigint(20) NOT NULL auto_increment,

    forum_id int(10) NOT NULL default 1,

    topic_id bigint(20) NOT NULL default 1,

    poster_id int(10) NOT NULL default 0,

    post_text text NOT NULL,

    post_time datetime NOT NULL default ‘0000-00-00 00:00:00’,

    poster_ip varchar(15) NOT NULL default ”,

    post_status tinyint(1) NOT NULL default 0,

    post_position bigint(20) NOT NULL default 0,

    PRIMARY KEY (post_id),

    KEY topic_time (topic_id, post_time),

    KEY poster_time (poster_id, post_time),

    KEY post_time (post_time),

    FULLTEXT KEY post_text (post_text)

    ) TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8’;

    >>>>>> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8” at line 16

    #99972
    Kurt Glen
    Member

    hey guys its a database problem where the table for posts arent being created any1 have any ideas why? this is the error im getting:

    SQL ERROR!

    >>> Database: xxxxxxxx (127.0.0.1)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_posts (

    post_id bigint(20) NOT NULL auto_increment,

    forum_id int(10) NOT NULL default 1,

    topic_id bigint(20) NOT NULL default 1,

    poster_id int(10) NOT NULL default 0,

    post_text text NOT NULL,

    post_time datetime NOT NULL default ‘0000-00-00 00:00:00’,

    poster_ip varchar(15) NOT NULL default ”,

    post_status tinyint(1) NOT NULL default 0,

    post_position bigint(20) NOT NULL default 0,

    PRIMARY KEY (post_id),

    KEY topic_time (topic_id, post_time),

    KEY poster_time (poster_id, post_time),

    KEY post_time (post_time),

    FULLTEXT KEY post_text (post_text)

    ) TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8’;

    >>>>>> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8” at line 16

    #38028

    I installed bbpress the other day, I then found that when i tried to edit the theme I got error messages, so I reuploaded bbpress, and now i’ve got error messages at the top, http://technomaniacs.co.uk/bbpress/bb-admin/install.php, take a look for yourself. The code is in white at the top so you’ll have to highlight it to read it. Also, when i installed the first time i think these error messages where there then.

    How do i fix this?

    thanks

    #95089

    @ryangannon

    bbp_reply_author_link( array( 'type' => 'avatar', 'size' => '100' ) );

    #95088

    @alexvorn2 – Fixed in r2970. Review your ticket for details. :)

    #89853
    guppydas
    Member

    I may be wrong. I am just a curious user and not very technical as I am not a coder.

    Here is what I did and finally all these steps together, worked.

    First of all, let me make it clear, I would not try ANYTHING on a site that is online. So I try is on WAMP first. 101% of time this choice is clever choice as I get to see any potential glitches before hand.

    I run WAMP on Windows 7

    This is what I did, in order to get rid of those annoying errors.

    1) Downgrade PHP to 5.2.11 (I could get that for WAMP)

    2) As mentioned here, above, changed the bb-load.pbp line 25

    3) I also changed(added) the above code to bb-config.php at the end.

    Only then I was able to get rid of the errors. Hope this helps.

    Cheers!!!

    #38004
    expose
    Member

    I wonder if anyone can help please. I have run an update to a WordPress site (created by someone else) that had bbpress integrated. I didn’t upgrade BBpress. Before the WP upgrade, the forum was working fine. However since the wordpress upgrade (from 2.9.2 to 3.1) we are having the following problems:

    1) I cannot access the bbpress admin panel

    2) The Forum is showing posts and topics but the reply form is missing (only the heading shows)

    3) I cant see any way of creating posts, topics or threads so I presume something else is missing…

    I had to rewrite the WordPress theme files as the original custom theme had been so badly coded / core hacked etc. I haven’t touched the custom bbpress theme so thought it would be something to do with that. So first thing I did was disable it and enabled the default bbpress theme (through phpmyadmin) but have exactly the same set of problems – which to me rules out a theme issue.

    Anybody have any ideas where to start? Sorry I am not sure of bbpress version. Where do I find that?

    #104576
    zaerl
    Participant

    Your question is too generic. In order to add content to your site you must edit template files but you must be skilled with HTML/CSS/PHP.

    #99476
    zaerl
    Participant

    Your question is too generic. In order to add content to your site you must edit template files but you must be skilled with HTML/CSS/PHP.

    #37993
    jnw
    Member

    Hi all,

    I’m sure this has been covered a few times, but here goes.

    Cookies obviously aren’t working, because I’m getting booted out of wp-admin when logged into bbpress and visa versa.

    Have installed the bbPress integration plugin with settings in wp-admin like so:

    bbPress URL: http://website.com/forum/

    Your Plugins URL: http//website.com/forum/bb-admin/plugins.php

    Wordpress type: WordPress

    Added this code to the very bottom of wp-config.php

    define( ‘COOKIEPATH’, ‘/’ );

    In bb-admin, I’ve got:

    Wordpress address: http://website.com

    Blog address: http://website.com

    WordPress “auth” cookie salt: (auth_salt wasn’t present in the wp admin page, anyway I took the code from wp-config.php)

    WordPress “secure auth” cookie salt: (as above)

    WordPress “logged in” cookie salt: (as above)

    Manually entered codes so the following match

    AUTH_KEY / BB_AUTH_KEY

    SECURE_AUTH_KEY / BB_SECURE_AUTH_KEY

    LOGGED_IN_KEY / BB_LOGGED_IN_KEY

    And that’s where I’m at. Can someone tell me what I’m missing?

    I’m not going to worry about database sharing right now – is that advisable? Or is it highly recommended?

    Also what should I have the wordpress roles set to for each one of these?

    WordPress Administrator

    WordPress Editor

    WordPress Author

    WordPress Contributor

    WordPress Subscriber

    Thanks for the help!

    #104575
    1onely
    Member

    where are you ?

    #99475
    1onely
    Member

    where are you ?

Viewing 25 results - 18,826 through 18,850 (of 32,518 total)
Skip to toolbar