Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,651 through 27,675 (of 32,453 total)
  • Author
    Search Results
  • #64587
    bryan868
    Member

    I’m having a problem with a fresh install of 0.9.0.2. After last step of installation…

    Referrer is OK, beginning installation…
    >>> Setting up custom user table constants

    Step 1 - Creating database tables
    >>> Create table bb_forums
    >>> Create table bb_posts
    >>> Create table bb_topics
    >>> Create table bb_topicmeta
    >>> Create table bb_tags
    >>> Create table bb_tagged
    >>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
    >>>
    >>>>>> Duplicate key name 'user_nicename'

    Step 2 - WordPress integration (optional)
    >>> WordPress address (URL): MYURL
    >>> Blog address (URL): MYURL
    >>> WordPress cookie secret key set.
    >>> WordPress database secret set.
    >>> User database table prefix: wp_

    Step 3 - Site settings
    >>> Site name: MYSITENAME
    >>> Site address (URL): MYURL
    >>> From email address: MYEMAIL
    >>> Key master role assigned to existing user
    >>>>>> Username: admin
    >>>>>> Email address: MYEMAIL
    >>>>>> Password: Your existing password
    >>> Description: Just another bbPress community
    >>> Forum could not be created!
    >>> Key master email sent

    There were some errors encountered during installation!

    I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….

    Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22

    mrhoratio
    Member

    mod_rewrite and wp_redirect don’t seem to like each other. I’m running into problems with the wp_redirect functions in bbPress redirecting the page after the URL has been rewritten, so that the URL changes back to the longer form.

    For example, this mod_rewrite rule:

    RewriteRule ^profile/username forums/profile/username [L]

    will rewrite:

    http://www.example.com/profile/username

    to:

    http://www.example.com/forums/profile/username

    Except, that after its been rewritten, bbPress forces a redirection via wp_redirect, causing the URL in the browser window to change to the longer form. Any suggestions?

    Commenting out lines 2061 and 2062 in the bbPress functions.php file will stop wp_redirect from redirecting the page.

    if ( $check != $uri && $check != str_replace(urlencode($_original_id), $_original_id, $uri) ) {
    //wp_redirect( $permalink );
    //exit;
    }

    But this breaks authentication, and causes bbPress to think you are not logged in, even if you are.

    #64821

    In reply to: User languages?

    A1ex
    Member
    #64887

    Got it somewhat.

    Edit style.css file in themes and enter

    1)To align text both sides

    .post {text-align: justify;}

    2)To prevent overflow

    .post code {
    overflow: auto;
    display: block;
    height: auto;
    max-height: 200px;
    white-space: normal;
    padding-top: 5px;
    padding-bottom: 5px;
    font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono;
    line-height: 1.3em;
    background: #ffffff;
    margin: 2px 0;
    }

    Sill one more thing – how to remove hyperlink in the text entered. That is why <a href=" etc gets added to text I enter between code tag.

    #64827
    Bloggsbe
    Member

    Yea, well, me and the SVN running at bbPress.org is not friends :-)

    I will give it a try later!

    Rune

    #64886

    This is not what I meant, haven’t you seen phpbb3 that sort of thing, scrollbar only under

    Code:

    and hyper links are not active in that box.

    please people suggest.

    #64884
    bobbyh
    Member

    try this then:

    .post code {overflow:scroll;}

    #64775
    Sam Bauers
    Participant

    Use these functions:

    bb_active_theme_uri(); // echos active theme URI
    bb_get_active_theme_uri(); // returns active theme URI
    bb_get_theme_uri( 'user#foobar' ); // returns given theme URI where theme is in "my-templates/foobar"

    #64767
    _ck_
    Participant

    Note that 755/644 is a false sense of security.

    I can write a file in any directory regardless of permissions on a server with posix support (any linux server) by being able to switch the PHP username to yours. However, Safe Mode and/or Open_base_dir will prevent the posix trick from working (unless of course the code is executing from your own directory)

    #3353
    Garth Koyle
    Member

    I’m trying to integreate both the most recent wp posts and bb threads into a home (index) page.

    You can see what I’m doing and where I am at with this attempt at: http://www.mealtrader.com/adbeef/

    I get this error at the bottom of the page:

    Fatal error: Call to undefined function query_posts() in …../public_html/adbeef/community/bb-templates/kakumei/home-page.php

    I think it’s caused by my code not referencing the wp template, but I don’t know how to do that in PHP.

    Any questions or ideas?

    Thanks,

    #64882
    bobbyh
    Member

    Change the attribute for overflow of the relevant class to like:

    .post {overflow:scroll;}

    #3352

    Hi, installed newer version of bbpress 0.9.2.

    Problem: text entered between backtricks`treated as code. Width is larger than page width. look here

    [img=http://img140.imageshack.us/img140/6366/88594514gy3.th.jpg]

    There should be a scrollbar for the purpose of restricting width and hyper links shouldn’t be active. How can I do that?

    #64874
    bobbyh
    Member

    This also happens to me! However, I’ve never looked into it…

    I just looked, and bbPress uses newlines to indicate breaks. This is parsed into <p>’s by a filter upon display. However, the edit textarea shows the unparsed text with just the newlines, and this gets mangled by tinymce.

    If you set this tinymce config value, though, it will turn newlines into br’s, which should fix this problem for new posts:

    * http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/convert_newlines_to_brs

    I just tested this, and it works on new posts! (It won’t work on old posts…)

    #64831
    bobbyh
    Member

    Try this (inserted into the code I had above):

    <?php if ( ( $i == 0 ) && ( $page == 1 ) ) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

    #64602
    bryan868
    Member

    I’m having this same problem. Fresh installation using version 0.9.0.2.

    Referrer is OK, beginning installation…
    >>> Setting up custom user table constants

    Step 1 - Creating database tables
    >>> Create table bb_forums
    >>> Create table bb_posts
    >>> Create table bb_topics
    >>> Create table bb_topicmeta
    >>> Create table bb_tags
    >>> Create table bb_tagged
    >>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
    >>>
    >>>>>> Duplicate key name 'user_nicename'

    Step 2 - WordPress integration (optional)
    >>> WordPress address (URL): MYURL
    >>> Blog address (URL): MYURL
    >>> WordPress cookie secret key set.
    >>> WordPress database secret set.
    >>> User database table prefix: wp_

    Step 3 - Site settings
    >>> Site name: MYSITENAME
    >>> Site address (URL): MYURL
    >>> From email address: MYEMAIL
    >>> Key master role assigned to existing user
    >>>>>> Username: admin
    >>>>>> Email address: MYEMAIL
    >>>>>> Password: Your existing password
    >>> Description: Just another bbPress community
    >>> Forum could not be created!
    >>> Key master email sent

    There were some errors encountered during installation!

    I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….

    Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22

    #64615
    lmsalgado
    Member

    I was having the exact same problem, but with normal WP (not WPMU).

    My problem was that I instaled wp and bbPress both in subfolders, like:

    http://www.mysite.com/wordpress

    http://www.mysite.com/bbpress

    The problem was on cookies, since bbPress was creating them on root and wordpress both on root and on ./wordpress – but it seems that the ‘good cookie’ was the one on ./wordpress.

    The ideal solution would be to set WP to use cookies only on root, but I wasn’t able to do it in a simple way. So I configured bbPress to set cookies on ./wordpress.

    This was done by simply adding a line to bb-config.php:

    $bb->cookiepath = ‘./wordpress’;

    Now it seems that all is working fine.

    Hope it helps you too ;)

    #3349

    Topic: My Private Forum

    in forum Showcase
    Shagalaga
    Member

    <—(Link)

    for me and my Friends, it´s new :-)

    i pimped mikelothars scoun a little bit.

    #64253

    In reply to: Set Topic ID

    _ck_
    Participant

    Not quite sure what you are asking/doing buy try adding global $topic; before your code if you find the function don’t know which topic is active.

    #64867
    mrhoratio
    Member

    I’ve tried mod_rewrite, but running into problems with the wp_redirect functions in bbPress redirecting the page after the URL has been rewritten, so that the URL changes back to the longer form.

    For example, this mod_rewrite rule:

    RewriteRule ^profile/username forums/profile/username [L]

    will rewrite:

    http://www.example.com/profile/username

    to:

    http://www.example.com/forums/profile/username

    Except, that after its been rewritten, bbPress forces a redirection, causing the URL in the browser window to change to the longer form.

    #64854
    chrishajer
    Participant

    It made sense to me, but I didn’t think it would be happening any time soon. Since WordPress just got this functionality in 2.5, I figured it would be a while until bbPress got it since it’s not quite to version 1 right now. The projects they took on for the Google Summer of Code were related to import/export, not anything like this, that I know of.

    https://codex.wordpress.org/GSoC2008#Web_Forums_Export.2FImport_Standard_and_Tools

    #3348
    mrhoratio
    Member

    Is it possible to shorten a profile link such as:

    http://www.example.com/forums/profile/username

    to:

    http://www.example.com/profile/username

    or to:

    http://www.example.com/username

    or to:

    http://my.example.com/username

    or to:

    http://username.example.com

    Thanks in advance.

    #64283
    hmcnally
    Participant

    For those using a 1and1.com hosting package, try adding..

    Options -MultiViews

    to the top of the .htaccess file, and append the mod_rewrite stuff after it. I guess with their shared serving packages, the MultiViews just goes nutty (apparently it’s enabled, though), and needs to be turned off before using mod_rewrite. They actually document this behavior at http://faq.1and1.com/dedicated_servers/managed_server/3.html

    I guess this means I’m in favor of dropping MultiViews, though not fervently.

    #64716
    Sam Bauers
    Participant

    @isaacgreen

    You guessed right. :)

    #64861
    mrhoratio
    Member

    It looks like the culprit is the wp_redirect function() which includes the header() function. This function appears in several bbPress files. I’m not exactly sure what the intent of them are.

    In the functions.php file, I commented out lines 2061 and 2062 in the bbPress functions.php file:

    if ( $check != $uri && $check != str_replace(urlencode($_original_id), $_original_id, $uri) ) {
    //wp_redirect( $permalink );
    //exit;
    }

    This seems to be helping with the problem. Not sure if it’s going to break something else though.

    #3346
    mrhoratio
    Member

    I have bbPress installed in a directory called “forums” on my web server. I have Pretty Permalinks enabled and working. To view the profile of a member, I can go to this URL:

    http://www.example.com/forums/profile/membername

    However, I would like the url to be:

    http://www.example.com/profile/membername

    I’ve tried writing a mod_rewrite rule which rewrites the latter to the former. However, instead of rewriting it, it redirect and exposes the URL. For example. Typing this into the browser:

    http://www.example.com/profile/membername

    Redirects to this, instead of rewriting it:

    http://www.example.com/forums/profile/membername

    Here is the mod_rewrite I am using:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/profile/membername [L]
    </IfModule>

    If I change the rule to rewrite the URL to a simple text file, it rewrites properly and masks the URL. For example, this works:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/textfile.txt[L]
    </IfModule>

    Another example, I wrote this rule, as a test, to rewrite a URL to the rewrite-rules.php file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/bb-admin/rewrite-rules.php [L]
    </IfModule>

    I type in this url into my browser:

    http://www.example.com/profile/membername

    And it redirects to ths instead:

    http://test.doublebad.com/forums/

    If I replace all the text in the rewrite-rules.php file with “test text”, then the URL rewrites properly.

    So it seems that when you are rewriting and URL to a bbPress php file, it will always redirect instead of rewriting, which is quite annoying. I’m trying to trace in the bbPress functions and settings where this is occuring. But I’m having no luck.

    Any suggestions?

Viewing 25 results - 27,651 through 27,675 (of 32,453 total)
Skip to toolbar