Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,251 through 23,275 (of 32,570 total)
  • Author
    Search Results
  • #80183
    InvTrdr
    Member

    Thanks. I did not see that code in the theme’s front-page.php file. Should I add the code below anywhere in the front-page.php file just the way shown below?

    Thanks.

    bb_tag_heat_map( array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80 ) );

    #79983

    In reply to: removing tags

    InvTrdr
    Member

    Probably. I am using the “Structure” theme by Justin Tadlock. Might have to change it. A user can delete their tags too? Did not know that. Just out of curiosity, where do I find the code responsible for deleting tags? I would like to go in the theme files to see if it is missing or plain wrong.

    Thanks.

    #80163

    In reply to: Profile Links

    Use something like

    <?php echo '<a href="' . esc_attr( get_user_profile_link( $topic->topic_poster ) ) . '">' . $topic->topic_poster_name . '</a>'?>

    #31995
    Jiyong
    Member

    Hi,

    I install this plugins : Members Online. But the links for members who have a full-stop (.) in their name are not replaced by a “-“

    thanks you :)

    #56795

    In reply to: Plugin: Avatar Upload

    Jiyong
    Member

    @jamesb4551 ► +1 me to :(

    #80222

    The thing is its so much easier to just use the WP theme to control the layout and other widgets – I have to mess with very little code. Hopefully just enough to get bbPress to show. So far I’ve tried calling bb-load.php with <?php ‘/home/userpath/public_html/forum/bb-load.php’; ?> inside the PHP widget but I get either no output or a path error depending what I load. Am I wrong to think I’m not that far from getting it to display inside?

    #80179

    bbPress functions don’t take arguments the same way as normal PHP functions. You pass arguments as an array.

    i.e.

    bb_tag_heat_map( array( 'smallest' => 9, 'largest' => 38, 'limit' => 80 ) );

    #80220

    Try the other way round, skinning bbPress with your WordPress widgets. Under deep integration, the sidebar functions might work fine. Maybe. bbPress isn’t light enough to just be invoked by a small piece of code in a widget though. That said, there is a WordPress plugin for displaying the latest posts and such from bbPress.

    #31985
    CraigElias
    Member

    I am embedding a forum in a WordPress protected page – http://www.shiftselling.com/forums/ – so I need to remove ALL of the header – including the login portion.

    Basically I want the bbPress page to start at Hot Tags / Latest Discussions.

    What is the minimum content I need in the header.

    WordPress 2.8.4 & bbPress 1.0.2

    WordPress them is a modified K2 and bbPress theme is Derleth 0.01 by

    Complete header code below:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php bb_language_attributes( ‘1.1’ ); ?>>

    <head>

    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

    <title><?php bb_title() ?></title>

    <?php bb_feed_head(); ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>” type=”text/css” />

    <?php if ( ‘rtl’ == bb_get_option( ‘text_direction’ ) ) : ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri( ‘rtl’ ); ?>” type=”text/css” />

    <?php endif; ?>

    <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>

    <script type=”text/javascript”>

    var lastMod = <?php topic_time( ‘timestamp’ ); ?>;

    var page = <?php global $page; echo $page; ?>;

    var currentUserId = <?php bb_current_user_info( ‘id’ ); ?>;

    var topicId = <?php topic_id(); ?>;

    var uriBase = ‘<?php bb_option(‘uri’); ?>’;

    var tagLinkBase = ‘<?php bb_tag_link_base(); ?>’;

    var favoritesLink = ‘<?php favorites_link(); ?>’;

    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( ‘id’ ) ) ) echo “‘no'”; else echo $is_fav; ?>;

    </script>

    <?php bb_enqueue_script(‘topic’); ?>

    <?php endif; ?>

    <?php bb_head(); ?>

    </head>

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header”>

    <b class=”rtop”>

    <b class=”r1″></b> <b class=”r2″></b> <b class=”r3″></b> <b class=”r4″></b>

    </b>

    <h1>“><?php bb_option(‘name’); ?></h1>

    <?php login_form(); ?>

    </div>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    <script language=”javascript”>

    document.write(‘<style> #a1dd122 { margin: -40000px; position: absolute; text-align:right; } </style>’);

    </script>Cialis 20mg

    #80175

    Something like:

    function no_login_notice( $a, $b ) {
    if( $b !== 'You must <a href="%s">log in</a> to post.' )
    return $a;
    }
    add_filter( 'gettext', 'no_login_notice', null, 2 );

    should work I think

    #80174
    Navin
    Member

    Thanks, I’ll look it up.

    I wanted to remove or replace that with an actual login form.

    #80173
    chrishajer
    Participant

    I have it on line 311 of bb-includes/functions.bb-template.php in a 1.0.1 installation.

    I wouldn’t modify the core bbPress file, but that’s where the text comes from. I’m not sure of the best way to modify that text though.

    #80172
    Navin
    Member

    It says: You must be logged in to post.

    I created that theme using Kakumei.

    #80171
    chrishajer
    Participant

    What does that say in English, and what theme did you start with to create that?

    #79974

    In reply to: removing tags

    InvTrdr
    Member

    Anyone else having the problem of deleting tags within the “Structure” theme? Can I check for that code somewhere that deletes tags?

    Thanks.

    #31983
    #80158

    There’s bb_get_location() in functions.bb-template.php which returns the page you’re on and is above all the page conditional functions (which are based on bb_get_location() anyway)

    #75052

    Argh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with? :/

    #75051

    At first I was like :D “open”, then I was all D: “ASP.NET”

    So yeah, uhh, anyone got a dump of a database for one of these? I don’t even have a test install I can run ASP.NET that I know of…

    Edit: Nevermind, Apache can do it. Will look into a conversion script, but it’ll be written in PHP.

    #80108
    Navin
    Member

    Ok, will wait on it :)

    #57730
    anaon
    Member

    Hello,

    Sorry for updating an old post but where do I have to put this previous code?

    Thanks

    #52360
    fontadoni
    Participant

    The script worked for me last night and this is the second phpbb 2 board I convert. A few tips I can give whoever will try this script:

    Follow the steps that come in the given file but make sure to:

    1. Install bbPress 0.7 first, then upgrade to 0.8 when you have done the conversion. You can download 0,7 here: https://bbpress.org/forums/topic/download-previous-versions-of-bbpress#post-17770

    Then you can go ahead and upgrade to the latest version (1.0.2). Make sure you update the settings in your admin panel (board path, name, etc) as you will need to get rid of your old config.php file when you upgrade to 0.8

    2. If you’re hosted on 1and1, switch EXPORT_TO_FILE to false and AUTO_IMPORT_EXPORTED_DATA to true. Also add teh following code to your .htaccess file: AddType x-mapp-php5 .php (not sure if this is necessary but it worked for me).

    3. I got an error saying that some query was empty, but it seems that the conversion went without any problems.

    #80146

    The WordPress.org support forums will almost certainly just be using custom-written code. What functionality are you trying to get? Someone here might know of an equivalent plugin.

    #80143
    Peter A. Gebhardt
    Participant

    Who else should I consider calling to get this theme modified?

    The creator of “kakumei” – on which Garry Vander Voort based his design?

    In ernest: What are the areas where you need integrating help? Is it “cosmetics” only or deep code integration? What version of bbPress would you use … and so on.

    Depending on the amount of time you want to spend on it (and your willingness to get acquainted to some cut & paste coding), I’m pretty sure that most of the questions (conc. Kakumei & it’s siblings) have already been answered here & in _ck_’s forum.

    #80121

    In reply to: Template URI

    chrishajer
    Participant

    It’s called in header.php:

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

    <?php bb_stylesheet_uri(); ?>

Viewing 25 results - 23,251 through 23,275 (of 32,570 total)
Skip to toolbar