Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,776 through 31,800 (of 32,431 total)
  • Author
    Search Results
  • #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? :(

    #52463
    ear1grey
    Member

    <li<?php

    if ( is_front())

    {

    echo " id="current">";

    ?>

    BTW the list item would be better described as being something like class="current" then add an appropriate .current {} to your css.

    See also: https://bbpress.org/forums/topic/250

    #52462
    ardentfrost
    Member

    It sounds like what you need is to overload the bb_get_location function. This is easy to do in bbpress. You need to make a set of functions like this:

    is_home() {

    if( 'home-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    get_home_location() {

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'home.php' )

    return 'home-page';

    }

    apply_filter( 'get_bb_location', 'get_home_location' );

    That’s untested, but I think that should work. Basically what you want to do is add in your locational test when bb_location is called. Then you can just call is_home() and it’ll do what you want. Of course, if you don’t want any other part of the forum to care if it’s on the home or not, you can take out all that stuff at the end that integrates it with get_bb_location, and just do this:

    is_home() {

    if( 'home-page' == get_home_location() )

    return true;

    else

    return false;

    }

    get_home_location() {

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'home.php' )

    return 'home-page';

    }

    Whichever you want to do. The second is easier, the first is more versatile.

    #52461
    Null
    Member

    Quote:

    What does it matter that what bbpress sees at “front-page” isn’t the actual front page of your site? It’s just a moniker used throughout the program, it doesn’t have to mean anything to you.

    Well wrong, I am working on a menu for the forum and it defeniatily is important that the call back is accurate.

    Some excample code menu:

    <li<?php

    if ( is_front())

    {

    echo " id="current">";

    ?>

    <a href="<?php option('uri'); ?>">Forums</a>

    <?php

    }

    ?></li>

    Here you can see is_front and we also have is_forum so I need to add is_home aswell in order to make the menu work :)

    Well I understand your explaination of how things work. I started home.php from index.php and edited/deleted things i didn’t need to make my own startpage. I also wanted to keep the normal index file, thats why I renamed them. Unfortunally the addons i did in the template functions don’t work unless i keep it like this:

    case 'home.php' :

    return 'front-page';

    break;

    And then the id won’t work too, cause is_front() is called (and not is_home) so it gets the front-page id.

    Well going to release my project very soon (as soon as I found a solution for my DIV problem), perhaps you can help me better then.

    Really appreciate the time helping me out!!

    Null

    #52460
    ardentfrost
    Member

    What does it matter that what bbpress sees at “front-page” isn’t the actual front page of your site? It’s just a moniker used throughout the program, it doesn’t have to mean anything to you.

    Not a lot needs to change when adding a new page. Make a file in your forums root directory call it whatever, like null.php. set it up like this:

    <?php

    require_once('./bb-load.php');

    ***[if you need any code, put it here]***

    if ( file_exists(BBPATH . 'my-templates/nullsfile.php') ) {

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

    } else {

    echo "File does not exist in my-templates folder";

    }

    ?>

    Then make a file in your my-templates folder called nullsfile.php and make it look like an html file, but be sure to set it up like this:

    <?php bb_get_header(); ?>

    ***[put all your html code here with calls to php functions]***

    <?php bb_get_footer(); ?>

    At that point, you have a page integrated into bbpress. What you do in those two files is up to you. To access the file, you just go to forumsroot/null.php (if you have pretty links turned on, you don’t need the .php part). If you need called functions, standard is to put them into a file in the my-plugins folder.

    In some of the plugins I’ve made, my main file does stuff like detects if something is set in the address line by checking the $_GET[] variable, or it pulls information needed by the required my-templates file by running a database query…

    That all make sense?

    #52403
    Justin Tadlock
    Participant

    Okay, I’ve done that. Here’s what I get on both page 1 and page 2.

    $page = 1

    $topic = Object

    #52456
    ardentfrost
    Member

    because of the function is_front(). It returns true if bb_get_location returns front-page.php.

    #51508

    In reply to: FeelingGray Theme

    pilkster
    Member

    but i think we should some how figure out a way to integrate the themes for wordpress and forums..

    Great idea :)

    #49547
    pilkster
    Member

    Hi again Trent

    I’ve had another go. Here are the steps I have taken:

    Created a new account on my server (taxdeduct.net)

    Installed WP 2.0.5 via fantastico

    Downloaded BB from this site

    Created database and user through cpanel. Added user to database with all privileges >> sidenote: https://bbpress.org/documentation/installation/ does not mention setting up the database. A bit confusing.

    Copied config-sample.php to config.php, edited with my info

    Uploaded to host

    Ran bb-admin/install.php

    Downloaded https://trac.bbpress.org/attachment/ticket/438/bbpress-integration.php – uploaded to WP plugins dir, activated and configured with tables prefix.

    Created new user on bbpress… couldn’t log in to WP.

    Created new user on WP… couldn’t log in to bbpress.

    My head hurts from pulling at my hair :(

    Another question: do you have to allow new user registrations on your blog for the plugin to work?

    #52455
    Null
    Member

    Why doesnt this work? Re-checked the functionsfile 3 times now, but no where else in the file it asks for this.

    I am experimenting with this new home.php page and adding these new functions to the file and renaming front-page.php aint solving the problem.

    What files more need to be changed in order to make home.php and home-page.php work just like index.php and front-page.php (which I renamed)?

    Thx

    edit:

    Changing:

    case 'home.php' :

    return 'home-page';

    break;

    to

    case 'home.php' :

    return 'front-page';

    break;

    Fixes the lay-out mess up, but still… WHY? Why doesn’t the renamed file home-page.php (front-page.php) work when the return is changed too?

    #52454
    ardentfrost
    Member

    why would you have it return home-page when everything is expecting front-page?

    #52453
    Null
    Member

    well I found the function and added this one:

    case 'home.php' :

    return 'home-page';

    break;

    Where home-page is the front-page renamed aswell but this aint working either, it’s still messed up

Viewing 25 results - 31,776 through 31,800 (of 32,431 total)
Skip to toolbar