Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,801 through 18,825 (of 32,499 total)
  • Author
    Search Results
  • #105081

    In reply to: WYSIWYG

    silasje1
    Member

    i am making the plugin better and better now :) But tomorow (utc +1) morning i will try to create a fast first build with notes, on how too install.

    What is needed before the first WYSIWYG TinyMCE release for bbpress:

    -Somebody who can make it a plug-in, i have the pieces of codes which should be added to let it work.

    -Adding a new button for the [video] tag whch i use. I want to release that too aftwards and include it to this version.

    -Clean-up code, since it is untouched code from their website.

    -Now uses no-jquery, but dont know if it is handy.

    Hope some people want to help ;)

    I will make a demo soon, but you can register @ forum.fstube.org or fstube.org/forums .

    Greetins silasje1, fstube.org.

    olek12
    Member

    hello I just finished Deep integration of my WordPress with BBpress.

    I had no errors with installation so everything was right from that part.


    but when I’m trying to view forum on the header I got eror :


    Deprecated: Assigning the return value of new by reference is deprecated in /customers/a


    And when Im trying log in or go to bb-admin Im geting that error :


    Deprecated: Assigning the return value of new by reference is deprecated in


    Anyone could help me with that ;/ cuzz Im noob from php and I would like to make it working ;/

    please for help ;/


    #99980

    In reply to: WYSIWYG

    ajz
    Member

    Please share silasje1 :)

    #105080

    In reply to: WYSIWYG

    ajz
    Member

    Please share silasje1 :)

    #99975
    Kurt Glen
    Member

    hey asboyd do you have phpmyadmin or any other database management? if so select the database and go to execute and execute the same exact code that gave u the error… should be the same as mine. Only this time change the last line to:

    ENGINE = MYISAM DEFAULT CHARACTER SET 'utf8';

    basically changing TYPE to ENGINE. That will correct everything. good luck.

    PS thanks to Super Artsy in the topic below for posting the solution.

    https://bbpress.org/forums/topic/db-posts-table-not-installing?replies=4#post-86225

    #105075
    Kurt Glen
    Member

    hey asboyd do you have phpmyadmin or any other database management? if so select the database and go to execute and execute the same exact code that gave u the error… should be the same as mine. Only this time change the last line to:

    ENGINE = MYISAM DEFAULT CHARACTER SET 'utf8';

    basically changing TYPE to ENGINE. That will correct everything. good luck.

    PS thanks to Super Artsy in the topic below for posting the solution.

    https://bbpress.org/forums/topic/db-posts-table-not-installing?replies=4#post-86225

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

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

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

    #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?

    #99999
    christofian
    Member

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

    #105099
    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

    #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

    #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

    #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!!!

Viewing 25 results - 18,801 through 18,825 (of 32,499 total)
Skip to toolbar