Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,801 through 31,825 (of 32,467 total)
  • Author
    Search Results
  • #1113
    aleko
    Member

    I’ve installed bbpress with wordpress integration, the database integration works correctly thanks your guide. But… when i try to see my posts i have this error:

    (

    Parse error: syntax error, unexpected $end in /home/mhd-01/www.alessandropagano.net/htdocs/blog/wp-includes/gettext.php(307) : eval()’d code on line 1

    1 post)

    you can try to show this at http://www.alessandropagano.net/blog/forum/

    I’ve heard that this could be related with language settings… but my config.php have the default setting (define(‘BBLANG’, ”);)

    Thanks in advance, i hope to hear you soon!

    #52575

    In reply to: IE Display Problem

    Null
    Member

    Get a better browser :)

    #52497
    plus64
    Member

    Create a file called test.php and put in it

    <?php

    phpinfo();

    ?>

    If you get a huge page with something on it with loads of information then you have windows installed. Just looking at your 404 pages show that you have a windows server – low change of having php more likely to be asp.

    #52075

    In reply to: Simply doesn’t work

    plus64
    Member

    You need to change all links for bbpress and put bbpress in front of them, so they look like

    ^bbpress/tags

    etc…. and removed

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress

    as you can only ever have one of those in an .htaccess file, and connect it to your wordpress one as well. If you get all of that :X

    #52543
    Trent Adams
    Member

    Ryan, I stand corrected. I have bbpress-post which makes the topics unresolved by default, but any topic created in the forum is marked as mu (not support question). That is not telling you anything new beause you already knew this ;-)

    I have created an enhancement ticket in TRAC. Thanks for pointing that out.

    Trent

    #52542
    Ryan Fitzer
    Member

    Template-Functions.php seemed to be the pertinent one with function topic_resolved( $yes = '', $no = '', $mu = '', $id = 0 ) being the function that controls this. Although I tried to make some small changes, I was not able to affect which option was selected by default. Any ideas?

    #1111
    weirdtherapy
    Member

    My first bbPress Template:

    http://www.borderline-hacks.at/borderline-hacks-forum/

    The image of it:

    http://www.weirdtherapy.com/images/borderline-green-01-shot.jpg

    If you want to download it to (change and) use it, you can do so here:

    http://www.weirdtherapy.com/zip/borderline-green-ads-01.zip

    There is (commented) space where you may place ads, I added the psd file for the logo, and the text in the header is random (to be truth I only added it because I couldn’t think of anythink else and I wanted it to be finished :) ) and easy editable(… i think / hope). There is also a seperate ie.css for the internet explorer.

    Two of the ads would be shown on every page because they are in the header – I only ad this information cause I think I read somethink in the forum here that there might occur problems with google .. well something like that – so keep that in mind pls.

    grretings

    #52541
    Ryan Fitzer
    Member

    Gave your theory a test just now. When I opened a new topic, titled it, put some text in and hit “send post”, I found that it did not show up when I clicked on the “Unresolved topics” view. So what ever is in the <select> area to begin with is what dictates the post status.

    #1109
    Ryan Fitzer
    Member

    I’ve been looking for a way to start off topics as “Not Resolved” by default, with no luck. Went through all the template files looking for the <select> also to no avail. Any ideas how to accomplish this? (Also, searched the forums). Thanks for any help.

    #1107
    Null
    Member

    Well, I am trying to ad an adminpage to bbPortal. I am quite far, got the admin page, it checks the db for the table bb_portal and if it doesntexcsits, it creates the table.

    Also the form is working (the looks anyway), but how do I get the forum id from <?php forum_dropdown(); ?> cause it gives the name only. And I want it that when people select the forumname using this ddlb the forum id will be written to pforum_id when pressing submit.

    Sec problem; people can fill in a number for the Number of topics on the portal in an input field, but now comes the noob question:

    How the hell do I update this input to the db?

    This is my form for now:

    <form action="<?php echo $bb->domain. $_SERVER['REQUEST_URI']; ?>" method="post">

    <?php do_action('portal_option_form_elements',''); ?>

    <h3><?php _e('Portal settings'); ?></h3>

    <table>

    <tr><th scope="row"><?php _e('Where do you want to pull the topics from?'); ?></th>

    <td><?php forum_dropdown(); ?></td>

    </tr>

    <tr><th scope="row"><?php _e('Number of topics on the portal:'); ?></th>

    <td><input type="text" name="number-of-topics" id="number-of-topics" /></td>

    </tr>

    </table>

    <p class="submit alignleft"><input type="submit" value="Submit" name="submit">

    </form>

    And this is the table where the info must be put in:

    Table name: $bbdb->portal

    pforum_id int(10) NOT NULL,

    number_of_topics int(10) NOT NULL

    Hope you guys can help me :)

    #52503
    spencerp
    Member

    Sorry I didn’t get back sooner, was having problems with my MediaWiki 1.9alpha install, well actually I still am sigh.. Anyway, [slaps self].. after seeing what chrishajer wrote there, yeah.. it would only make sense lol!

    Glad to hear you got it figured out, and someone helped you! ;) :)

    spencerp

    #50455

    In reply to: Google sitemap

    Zambu
    Member

    Got it. Cool. I registered it last night and now google has indexed all of the topics. So now if I run a search in google on one of my topics (in quote marks to make the search more specific), it comes up right away.

    But it doesn’t seem to index the actual contents of the topics…at least not yet. I am guessing it will do this over time.

    Thanks again! :-)

    #52496
    chrishajer
    Participant

    That’s almost certainly due to a PHP error, and errors are not being shown in the browser on your host. I suspect something in config.php is amiss. Can you post the config.php, or look for these common errors:

    • strings must be quoted (like your akismet key if you entered one)
    • your domain name, home and siteurl must all be quoted (due to slashes and colon)
    • possible problem with the table prefix for bb or wp?

    If you have a command line at your host, you can also check the syntax of the config.php file by running:

    php -l config.php

    No syntax errors detected in config.php

    that’s a lowercase L after the php

    Post your config (edit out the good stuff) if you need more help.

    #52501
    chrishajer
    Participant

    In the posts tab of the admin section, I think only deleted posts show up (that is my experience and I have 171 posts in 21 categories. ) If you want to view/edit/delete/’mark as spam’ the posts, log in as admin and perform your work on the forum, not the admin section. It was confusing to me at first, thinking they would show up the admin section, but there’s nothing I would need to do with them there anyway.

    If fact, looking through bb-admin/content-posts.php, the <h2> tag is hard coded “Deleted Posts”:

    <h2><?php _e('Deleted Posts'); ?></h2>

    So, I think that is the intention: to just show deleted posts.

    HTH

    #52483
    chrishajer
    Participant

    I did not see this problem until today when I looked at my site in IE7. The H1 was HUGE. I added this to the BBPRESS/bb-templates/style.css around line 37 (just after the blockquote definition):

    h1 {

    font-size: 2.0em;

    }

    h2 {

    font-size: 1.5em;

    }

    Now the headings are approximately the same size in IE and FF, and retain the styling of the rest of the stylesheet (for #header h1 and #front-page #main h2).

    #52512

    In reply to: bbPortal

    spencerp
    Member

    Nice one Null!! Thanks for sharing that.. ;) :)

    spencerp

    #52509
    spencerp
    Member

    Thanks Josh, I took out the “if else” statements in the two main plugin files, and it’s working now.. ;):)

    In bb-memberlist.php found this:

    function bb_get_memberlist_link( $tag = ” ) {

    global $bb;

    if ( $bb->mod_rewrite )

    $r = bb_get_option(‘uri’) . “mlist” . ( ” != $tag ? “?$tag” : ” );

    else

    $r = bb_get_option(‘uri’) . “mlist.php” . ( ” != $tag ? “?$tag” : ” );

    return apply_filters( ‘get_memberlist_link’, $r );

    }

    Changed to this:

    function bb_get_memberlist_link( $tag = ” ) {

    global $bb;

    $r = bb_get_option(‘uri’) . “mlist.php” . ( ” != $tag ? “?$tag” : ” );

    return apply_filters( ‘get_memberlist_link’, $r );

    }

    Then, in bb-privatemessage.php.. Find these two:

    (near top of file)

    function get_pm_fp_link( $tag = ” ) {

    global $bb;

    if ( $bb->mod_rewrite )

    $r = bb_get_option(‘uri’) . “pm” . ( ” != $tag ? “$tag” : ” );

    else

    $r = bb_get_option(‘uri’) . “pm.php” . ( ” != $tag ? “$tag” : ” );

    return apply_filters( ‘get_pm_fp_link’, $r );

    }

    Changed to this:

    function get_pm_fp_link( $tag = ” ) {

    global $bb;

    $r = bb_get_option(‘uri’) . “pm.php” . ( ” != $tag ? “$tag” : ” );

    return apply_filters( ‘get_pm_fp_link’, $r );

    }

    Then, near the middle of the file, find this one:

    function bb_get_pm_link( $tag = ” ) {

    global $bb;

    if ( $bb->mod_rewrite )

    $r = bb_get_option(‘uri’) . “message” . ( ” != $tag ? “$tag” : ” );

    else

    $r = bb_get_option(‘uri’) . “message.php” . ( ” != $tag ? “$tag” : ” );

    return apply_filters( ‘get_pm_link’, $r );

    }

    Changed it to this:

    function bb_get_pm_link( $tag = ” ) {

    global $bb;

    $r = bb_get_option(‘uri’) . “message.php” . ( ” != $tag ? “$tag” : ” );

    return apply_filters( ‘get_pm_link’, $r );

    }

    This should be it, and should be right.. it’s working for me now, at least.. Hope it maybe helps someone else out there.. ;):)

    spencerp

    #51380

    In reply to: Plugin – Messengers

    I really don’t know how to use it.

    Code:
    [ SQL ] —
    // Using phpmyadmin or something along those lines, run this mysql query:
    ALTER TABLE bb_users ADD user_icq VARCHAR( 255 ) NOT NULL AFTER user_email ;
    ALTER TABLE bb_users ADD user_aim VARCHAR( 255 ) NOT NULL AFTER user_icq ;
    ALTER TABLE bb_users ADD user_msn VARCHAR( 255 ) NOT NULL AFTER user_aim ;
    ALTER TABLE bb_users ADD user_yahoo VARCHAR( 255 ) NOT NULL AFTER user_msn ;
    ALTER TABLE bb_users ADD user_gtalk VARCHAR( 255 ) NOT NULL AFTER user_yahoo ;
    ALTER TABLE bb_users ADD user_jabber VARCHAR( 255 ) NOT NULL AFTER user_gtalk ;
    ALTER TABLE bb_users ADD user_skype VARCHAR( 255 ) NOT NULL AFTER user_jabber ;
    [ OPEN ] —
    bb-includes/functions.php
    [ FIND ] —
    ‘user_email’ => array(1, __(‘Email’))
    [ IN-LINE AFTER, ADD ] —
    , ‘icq’ => array(0, __(‘ICQ Number’)), ‘aim’ => array(0, __(‘AIM Address’)), ‘msn’ => array(0, __(‘MSN Messenger’)), ‘yahoo’ => array(0, __(‘Yahoo Messenger’)), ‘gtalk’ => array(0, __(‘Google Talk Name’)), ‘jabber’ => array(0, __(‘Jabber Name’)), ‘skype’ => array(0, __(‘Skype Name’))

    I mean I don’t what these mean.

    Anybody can help me?

    #52507
    spencerp
    Member

    Hey Josh, yeah.. this link works:

    http://spencerp.net/forums/mlist.php

    Same for the pm.php one:

    http://spencerp.net/forums/pm.php

    Except whenever clicking on a message title link, and anything else related to that section, or what-not, it gives a 404.. =/ =( Is there a way to keep this from happening.. ?

    spencerp

    /I think this came up some where before, but I can’t find it now, my mind is spinning with so much crap going on lately sigh.. can’t think straight these days.. =P

    #1102
    spencerp
    Member

    Since I moved my domain name back onto Dreamhost.com, the “Options +MultiViews” line in the .htaccess file works partly, but not fully for ALL the links.. =/

    When adding that line, the memberlist and pm links work, but, when clicking on a username, or forum link, I get the old “No input file specified” message.. ?

    Now, when I use the rewrite rules from bb-admin/rewrite.php or whatever.. upload that to the forum’s root, then the memberlist and pm links don’t work.. >_<

    Does anyone have a clue, or work around for this maybe? Like, maybe adding a few lines in the bb-admin/rewrite.php verion of the .htaccess, just for those plugin links? Any thoughts, suggestions and such are welcome.. ;) :)

    http://spencerp.net/forums/

    spencerp

    #52482
    ardentfrost
    Member

    Look through the css file, there’s existing code on adjusting the h2 size. Copy it and make it h1

    #52486
    AphelionZ
    Participant

    Do you have pretty permalinks? that seems to really, really help the most out of all the SEO tricks that are already most taken care of for you (graciously) by the bbpress coders

    #52493
    basinalders
    Member

    Nevermind I figured it out. If you wan to do this open Index.php and replace:

    do_action( 'bb_index.php', '' );

    if (file_exists( BBPATH . 'my-templates/front-page.php' ))

    require( BBPATH . 'my-templates/front-page.php' );

    else require( BBPATH . 'bb-templates/front-page.php' );

    With:

    `

    do_action( ‘bb_index.php’, ” );

    if (file_exists( BBPATH . ‘my-templates/forum.php’ ))

    require( BBPATH . ‘my-templates/forum.php’ );

    else require( BBPATH . ‘bb-templates/forum.php’ );’

    #52471
    masterdj
    Member

    damn :( thx ardentfrost

    #52469
    masterdj
    Member

    Hmm? :(

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