Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,476 through 25,500 (of 32,481 total)
  • Author
    Search Results
  • #72564
    Null
    Member

    Well it’s a comment link and, at the moment, linking to the last post. I want to change this to link it to the second post since that is the first real comment. I want, from a specified forum, the links of every second post (first real reply) of every topic in that specified forum.

    Current code:

    <?php printf(__('<a href="%1$s">Comments (%2$s)</a>'), get_topic_last_post_link(), get_topic_posts()) ?></div>

    So get_topic_last_post_link(), should be change to the link the second # is generating now…

    Like get_topic_first_reply_link() or something…

    Thanks

    #72563

    Assuming that by ‘sec post’ you mean the second post.

    Just the second post of any topic or a specific topic or … What’s the significance of the second post? What’s your plugin supposed to do? I’m asking because it’s easier to help someone if you actually know what they’re trying to do.

    If all you want is a plugin that lists links to the second post of every topic, that’s different than say, one that lists the second post of topics about cabbages. They look similar, but they aren’t always :)

    Null
    Member

    There is also a offical MS code you can put in your header that IE8 can read and it will automaticly render as IE7 when it’s in. I only can’t remember what that code was :)

    But to be honest, these are dirty fixes. Since IE8 is more ‘web standard compatible’ then IE6 or 7 we should update the CSS files with the next release (and hopefully get rid of those: if IE then… code)

    _ck_
    Participant

    For those that don’t want to install IE8 permanently to just test their sites, this version will run in it’s own virtual box so it doesn’t affect the rest of your system:

    http://start-o.xenocode.com/layers/ie8/8-0-0-0__2/ie8.exe

    #72352

    In reply to: Bulgarian translation

    wiseacre
    Member

    Добра работа :) Пробвах го на trunk – засега изглежда супер :)

    Само това “Вписване” и “Отписване” ми звучи странно … Може хората да го разберат като “Регистрация” и “Изтриване на регистрация” … при мен поне това е първосигналната реакция …

    #59343

    In reply to: Adding a new User Type

    steveg190
    Member

    I’ve tried using fel64’s method above but I’m not able to make it work at all, so I thought I would try something different. Since he mentioned using the $bb_roles->add_role() that already exists in functions.bb-capabilites.php I thought I could work with that. Bascially, I want to put my own additions and modified base roles (aside from admin and keymaster, obviously) into a plugin that replaces the existing roles function. I’ve sucessfuly done this via a dirty hack of the core file but I’d really love to migrate my changes to a plugin.

    Is it not possible to just do bascially a copy-paste of the bb_init_roles function from functions.bb-capabilites.php, rename it, make new roles and modify existing ones, then use something like add_filter('init_roles','my_bb_init_roles') to hook it to init_roles? Obviously I’m a complete noob to this since my attempts are completely failing and what I know is just scraped together from looking at other plugins and some limited reading on making WordPress plugins. Any assistance here would be greatly appreciated.

    tema5
    Member

    Now I got an extra headache, my WP widget column disappeared.

    I’m switching back waiting suggestions.

    update: sorry, it was a wicked weather widget blockng sidebar, not PHP5 extention, but bbpress install problem remains

    tema5
    Member

    I’m with godaddy.com

    It uses php 4.x by default, but supports PHP5 for .php5 files.

    I changes handle of .php files to PHP5 too.

    But I got the same error. What to do?

    #72541

    In reply to: 简体中文测试

    threk
    Member

    ha ha :)

    Interesting forum, isn’t it?

    중국어 테스트였군요.

    행운이 함께하시길…

    #72421

    Fixed.

    Changed

    <?php if ( $avatar = bb_get_avatar( bb_get_current_user_info( 'name' ), $size = '50' ) ) : ?>
    <div style="float:right;"><?php echo $avatar; ?></div>
    <?php unset($avatar); endif; ?>

    to

    <?php if ( $avatar = bb_get_avatar( bb_get_current_user_info( 'id' ), $size = '50' ) ) : ?>
    <div style="float:right;"><?php echo $avatar; ?></div>
    <?php unset($avatar); endif; ?>

    #72420

    This issue is fixed with trunk as of … er now?

    Side error is my old hack to fetch the gravatar on the front page is borked, but that’s okay :)

    #72522

    So 7 hours later and i can’t find a solution to this.

    The weird thing is that ‘some’ functions can be overwritten with filters or added to with actions but others are refusing to play ball. Here’s the code that i have:

    //works

    add_action(‘post_ip_link’, ‘output_what_i_want’);

    add_action(‘topic_pages’, ‘output_what_i_want’);

    // does not work

    add_action(‘post_form’,’output_what_i_want’);

    add_action(‘bb_post_header’,’output_what_i_want’);

    add_action(‘bb_get_footer’, ‘output_what_i_want’);

    When that code runs, the first 2 add_actions’s run fine, but the bottom 3 don’t. For some reason i can’t overwrite those functions.

    Now to the filters:

    // Working

    add_filter(‘post_ip_link’, ‘output_what_i_want, 11’);

    add_filter(‘topic_pages’, ‘output_what_i_want, 11’);

    add_filter(‘post_form’,’output_what_i_want, 11′);

    // Not Working

    add_filter(‘bb_post_header’,’output_what_i_want, 11′);

    add_filter(‘bb_get_footer’, ‘output_what_i_want, 11’);

    This is where it’s a bit weird, as POST_FORM can be added to via a filter (great), but can not be overwritten. BB_POST_HEADER and BB_POST_FOOT cant seem to overwritten or added to via a filter.

    So in the short term, i’m looking for a solution to overwriting the BB_POST_HEADER and BB_POST_FOOT functions. I’ve a plugin that’s stalled due to it.

    Moving on from there though, i think this is something we need to look at and maybe get some documentation/information posted about somewhere. Because as far as i can tell there are only a few options here:

    1) My code is wrong

    2) Some functions cannot be overwritten

    3) Some functions cannot be added to with an action

    4) There’s a bug at play.

    Any help would be really appreciated.

    #71392
    deadlyhifi
    Participant

    the latest bleeding edge release (from subversion) adds paging to the ‘Latest Discussions’. But if any of the arguments are used in ‘get_latest_topics’ the paging doesn’t work.

    from functions.bb-topics.php

    function get_latest_topics( $args = null ) {
    $defaults = array( 'forum' => false, 'page' => 1, 'exclude' => false, 'number' => false );

    so I’ve tried it with

    $topics = get_latest_topics('forum=-3');

    and

    $topics = get_latest_topics('exclude=3');

    both have same results but no paging.

    #5027
    #72516

    In reply to: WordPress Integration

    WP 2.7.1 and bbPress 0.9.0.4 can’t be integrated natively because of the way they handle cookies. Either you downgrade the method used by WP or upgrade the method used by bbPress. Both the method can be done via plugins (You only need to use one of them).

    For WP plugin:

    http://superann.com/2009/02/26/wordpress-26-27-bbpress-09-cookie-integration-plugin/

    For bbPress plugin:

    https://bbpress.org/plugins/topic/freshly-baked-cookies/

    I have used the bbPress plugin to get them in sync.

    Hope that helps. :)

    #72484
    inkey
    Member

    I know about navigation, that says where is the form.

    But, I see, nobody know how to display form on every page :(

    #72496
    john32
    Member

    To answer your question, all 3 of them, I am using bbPress 1.0-Alpha-6.

    Here’s something interesting. When both WP URL and bbPress URL’s match, no www, if I log into WP Admin FIRST and then try logging into bbPress, the bbPress login will refresh itself but it will not change to what you see when you log in.

    BUT…

    Once I log out of WP Admin and refresh that same forum page with the empty login and password fields?

    Just by hitting refresh once I have logged out of WP, it automatically switches the login to my logged in box with my profile link, admin link, etc.

    I’m going to try some more tweaking and see what I can come up with. :-D

    EDIT: After hitting refresh logs me into my forums, I go to my WP Admin and, even though I just logged out, it lets me into my WP Admin area. I try logging out here and get that error loop. I do what you said to do Kev, /wp-login.php?action=logout, and it asks me if I want to log out. I do logout successfully. I go back tot he forums, where I’m still logged in, REFRESH that forum page, go back to my WP Admin and AGAIN I’m logged in!

    The huge gaping problem with this is if I go to my main site and click on a post it asks me for my name and email, as if I wasn’t logged in.

    I’ll keep trying.

    2nd EDIT: I guess it would be nice to include the link to my forums.

    http://ascendanceradio.com/forums/

    #5019
    verve
    Member

    Hi,

    I am very very green with CSS (read, I have NO idea what I am doing! LOL). I am using a template for my new site that only has 1 column. I would like there to be 2 columns on the main page. The overall width is set to 1000px and I would like to integrate a 2nd column where I can put widgets and other content like a category list, RSS, html linked image ads, etc.

    Can anyone look at the code and tell me where and what to put to make this happen?

    http://www.vervelifeportraits.com/clientsite

    Thanks so much!

    #72495
    john32
    Member

    Very valid point about the plugin. :-)

    I disabled it. I need to run for about another hour but will try your suggestion and report back what happens then.

    Thanks for the help!!

    #72494

    “You are attempting to log out of AscenDance Radio

    Please try again.”

    ah, right, i can help you here. First read my reply to ashfame who him a similar issue yesterday. What you want to do is close teh browser and clear the cache and cookies entirely. You’re loading up /wp-login.php?loggedout=true – but that page’s sole purpose it to remove the cookie which it cannot find in exactly the format it wants – so WP freaks out.

    You need to supply us with the answer to the following questions before we can help:

    1) Are you using Ann’s plugin to make WP2.7.1 cookies compatible with BB0.9 ?

    2) Are you using _ck_’s plugin ot make BB0.9 cookies compatible with WP2.7.1 ?

    3) Are you trying to integrate WP2.7.1 to BB0.9 without either of these plugins?

    btw, if the answer to 1 & 2 is NO and 3 is Yes, then i have to tell you it won’t work.

    May i also suggest two things which should help greatly? 1) set everything up at home or on a development environment first, that way you’re not getting these issues on a live website. 2) Take off the Maintenance Mode plugin. There’s no point in asking for help with an issue when it’s quantified by “i also have a plugin which hides almost all of the data useful to help debug”.

    Lets see if we can’t get your sorted :)

    #72482
    Greg-G
    Member

    perfect thanks…

    i hate when a plugin spoils my fun =)

    #5018
    john32
    Member

    (I removed all references tot he URL due to the spam plugin hating me for it)

    I installed WordPress 2.7.1 first then bbPress 1.0-Alpha-6. When I first installed I set the follow settings,

    bbPress Admin – Settings – WP Integration:

    WordPress address (URL): URL with WWW

    Blog address (URL): URL with WWW

    My main admin / keymaster has to log into both WP and bbPress to access both. I want to integrate it so I can log into one and access both.

    I realized that in WP my WP URL and Blog URL, they are both the same, was set to (URL WITHOUT WWW) so I changed it in the bbPress settings. You would think since both WP and bbPress now actually match things would get better? They got worse.

    I have a Maintenance Mode plugin that denies access to every page in WP (Excluding the forums since they aren’t a part of WP) unless you are logged in as an admin on the WP side. When the URL and Blog were set to (URL with WWW) I had to log into bbPress and then WP but could see all of the WP pages.

    Now that I changed the URL to exclude the www I can now log into bbPress AND be AUTOMATICALLY logged into WP BUT I can no longer see the WP pages indicating WP doesn’t see me as an admin. Not only that but when in the WP Admin and I try to log out it gives me an error:

    You are attempting to log out of AscenDance Radio

    Please try again.

    With a link back to my admin page. It never lets me log out and only happens after I go into bbPRess Admin Panel and change the URL / Blog to match the actual URL that WP has in its settings.

    It has nothing to do with the Maintenance Mode plugin either. I take it off and try to leave a comment on a post but bbPress and WP Admin see me logged in BUT the post requires me to enter my name and email address as if it doesn’t know I’m logged in.

    So basically bbPress and WP Admin knows I’m logged in but my actual WP Site had no clue.

    When I put,

    define(‘COOKIE_DOMAIN’,’.ascendanceradio.com’);

    define(‘COOKIEPATH’, ‘/’ );

    into both the wpconfig and bbpressconfig files it will no longer let me log into both WP and bbPress. If I log into WP first I can access all my WP Pages but when I try to log into bbPRess after the page just refreshes and my login information clears. If I log into bbPress first it lets me get into my WP Admin but my WP Pages can’t be access due to the plugin not recognizing I’m an admin. I also get the same error when trying to log out of the WP Admin.

    I tried only adding the cook domain / path code to ONLY wpconfig and receive the same error as mentioned in the above paragraph.

    I also just tried adding all that code from the Integration 101 8 step solution and get the same problems as mention in the big paragraph above.

    The closet I get to having it work is when I add www to all the bbPress settings. I just tried adding to the 8 step code snippet (the URL portions, I did not touch the cookie domain or any other domains) AND changing the URL and Blog to (URL with WWW) and it lets me log into both giving me access to everything I want, bbPress / WP Admin AND WP Pages as my plugin now sees me as an admin.

    The only problem is that’s not integrated login.

    Do you think if I change, in WP Admin, my URL and Blog URL to (URL with WWW) (As opposed to what it is now, http://ascendanceradio.com) it would fix the problem? I tried changing the name before and ruined my WP site and had to reinstall (Afterward I figured out I could have changed the value through myphpadmin and proceeded to cry for days). Could I ruin my WP site if I change the URL and Blog address to include www?

    Is there someway somewhere a function / cookie / database value is requiring a www and that’s why things seem to work better when I include it in my bbPress Admin Settings?

    I try to go to (URL with WWW) and it automatically redirects me to (URL WITHOUT WWW) so I don’t understand why www would be needed for anything.

    I hope I was clear and concise enough to get some good help. I’ve spent over 8 hours debugging this before turning for help so anything at this point is greatly appreciated! Thanks!! :-)

    #5016
    inkey
    Member

    I’m use bbPress, and have one big usability problem: there is a bug (you think “a feature, I know that! :) ) – when a topic has a few pages, the post form displaying only on last page. Quoting on another pages is not working, and user must read (or skip) all pages to post reply.

    How to display a post form on every topic page?

    (sorry for my bad English)

    #5015
    Greg-G
    Member
      Reason

    My users are signing up on a mobile device and can not copy paste the generated password from their email.

      What Is Needed

    When you successfully register a new user, it redirects to register.php and the Username is already pre-populated with the following code:

    <input name="user_login" type="text" id="user_login" size="18" maxlength="40" value="<?php if (!is_bool($user_login)) echo $user_login; ?>" tabindex="1" />

    How can we do the exact same thing with the password field?

    I have already tried using $pass, $password and $user_pass none of which are available to register.php

    Thanks!!!

    #5014
    john32
    Member

    I registered last night and asked for some help dealing with integration and I was bozoed. :-(

    It’s not hard to figure out something isn’t right when you can only see the thread you made after you log in yet you can see everyone else without.

    I searched to find some rule I violated but I can’t. There are no private messages here and no emal address so this is my only option to find out what I did wrong.

    My name was TechnoKelvin. What did I do?

Viewing 25 results - 25,476 through 25,500 (of 32,481 total)
Skip to toolbar