Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,126 through 26,150 (of 32,467 total)
  • Author
    Search Results
  • #70543
    chrishajer
    Participant

    <?php bb_active_theme_uri(); ?>

    #4489
    aiitee
    Member

    hey there…

    i really don’t know how to code this, if i could i would do it.

    i would like an auto tag generator.

    The script reads the text inside the post and makes optional tags so you just click on it and you add them just like that.

    what do you think about it?

    #4488
    Buca
    Member

    I am trying to embed some javascript on my BBpress forum using this code from my WordPressblog.

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/prototype.js”></script>

    What is the equivalent of <?php bloginfo(‘template_url’); ?> in BBpress?

    #4487
    fatninja
    Participant

    I noticed at the Trac roadmap page

    http://trac.bbpress.org/roadmap

    That it states the anticipated release date of bbPress 1.0 is in 2 weeks.

    However, the 1.0-BETA release states that it’s 5 months behind schedule.

    So would it be correct to assume that the 1.0 release date is approx 5.5 months away? Meaning, sometime in the summer of 2009 – I can expect the 1.0 code base to be released.

    #70168
    dragly
    Member

    I was in need of a quickfix for the user-role problem, so I wrote a really ugly plugin for it.

    Whenever the page is shown, it checks whether or not the user is able to “write_post”. If not, it sets the user role to “member”.

    IMPORTANT: This means the plugin won’t be usable for all of you who are in the need of setting users as ‘inactive’ or ‘blocked’! In my case, I probably won’t need ‘inactive’ or ‘blocked’ users before bbPress 1.0 is released.

    Download plugin

    Here is the code for the plugin if you would like to check it out before download. And by the way, I’m not really used to writing plugins for bbPress yet, so if I’ve made any really bad flaws (especially on the security-side) please sort me out.

    function inactive_to_member() {
    $userID = bb_get_current_user_info( 'id' );
    $user_obj = new BP_User( $userID );
    if(!bb_current_user_can('write_post')) {
    $user_obj->set_role('member');
    }
    }
    add_action ('bb_head', 'inactive_to_member', 5, 0);

    I hope this might help some of you out.

    #69689
    adamhdv04
    Member

    I ran this script perfectly. I was running phpbb3 3.0.3 I think, with phpbb-se0 advanced installed. Worked perfect, thanks!

    :)

    #70539
    nuttycoder
    Member

    I edited BBcode-buttons.php in bbcode buttons plugin

    I changed the line:

    BBcodeButton('ed_code','CODE','

    Code:
    ','

    ','p','line-height:160%;font-size:80%;letter-spacing:1px;font-family:anadale,serif;','unformatted / code'));

    to:

    BBcodeButton('ed_code','CODE','‘,’','p','line-height:160%;font-size:80%;letter-spacing:1px;font-family:anadale,serif;','unformatted / code'));

    Now when the code button is pressed it puts in the backticks

    #70538
    nuttycoder
    Member

    oh yes excellent thanks very much!

    I have the bbcode plugin but using [ code] some code and [/ code] does not appear to do anything?

    #70537
    chrishajer
    Participant

    Put the items you don’t want converted in backticks(under the ESC key on US keyboards) or <c ode> tags.

    Like this:

    <a href="http://www.google.com/" title="visit google">Google</a>

    That was posted inside backticks.

    #70536
    nuttycoder
    Member

    I see it does the same on this forum as well

    this is what I should have been show:

    I write tutorials on my forum and when I write links they are converted into actual links I really don’t want it do do that instrad I want it to loave the link as it has been wrote like < a herf=”file” >link< /a > also when I edit a post it converts all < into &lt ; and > into &gt ; how do I stop this from happening?

    #4485
    nuttycoder
    Member

    I write tutorials on my forum and when I write links they are converted into actual links I really don’t want it do do that instrad I want it to loave the link as it has been wrote like link also when I edit a post it converts all < into < and > into > how do I stop this from happening?

    #69128
    umit-namli
    Member

    Do you mean the link back to my blog Ganzuelo?

    If so, you can adjust this in the header.php file.

    On line 31 you can find div id=”navigation”, from there are, my code looks like this.

    <div id="navigation">
    <ul id="menus">
    <li class="<?php if(is_front()) { ?>current_page_item <?php } ?>page_item"><a class="home" title="Home" href="<?php bb_option('uri'); ?>">Home</a></li>
    <li class="<?php if(is_front()) { ?>current_page_item <?php } ?>page_item"><a href="<?php bb_option('uri'); ?>search.php" title="Search">Search</a></li>
    <li class=""><a href="http://zoekmachineguru.nl" title="ZoekmachineGuru blog">Zoekmachine Optimalisatie & Marketing Blog</a></li>
    </ul>

    I hope this help you out.

    #69591
    Immelody
    Member

    lolos, I apologize for taking so long to get back. You can download the themes together at http://www.asparenting.com/downloads/ASPtheme.zip . You’ll want to go into header.php in the bbpress template and manually edit the page links.

    Honestly, it took me going through lots of different themes before coming to this one. I chose two themes from the same creator because generally, they’ll follow the same code. Then I had to figure out what was what. Such as with these themes, there was originally two sidebars for the wordpress theme, so I had to consolidate.

    BTW, I haven’t figured out what to do about the granny font size. For now, I’m going to keep it the way it is. I’m not able to reproduce the error even when I granny size.

    #4483
    Malice
    Member

    Hey,

    I have a wordpress forum @ http://www.holysh1t.net for the quake live CTF community.

    I recently installed a bbpress forum to go with that. Seems to work pretty fine besides some inital errors.

    Yet now I face this problem where It does not automaticly link people’s account when they signed up via front end of the wordpress. All the registered users in wordpress had to be manually given in a role in bbpress. The same thing applies for new registrations in wordpress.

    However, if I sign up via the forum stuff works great.

    This is the menu I get when someone made an account via front end:

    http://www.holysh1t.net/files/bridge_error.png

    If I click any role and then save, it corrects itself and the user can post. The long error is replaced by whichever role I chose. (member/admin,etc…)

    Now I have to manually assign a role each time someone signs up through wordpress instead of bbpress.

    WordPress: 2.7

    bbpress: 10 alpha 4

    Any ideas?

    Thanks for the support and I greatly appreciate the effort put into this great piece of code!

    Greetings,

    Nico

    http://www.holysh1t.net

    #70167
    chrishajer
    Participant

    Wow, this thread has attracted some really well-known (infamous?) WordPress people. :-)

    #70526
    _ck_
    Participant

    bbPress has an advanced WHERE filter on every mysql query.

    You could write a plugin that simply tallys their post (and cache that cause you don’t want to do it each time) and then manipulate the WHERE filter based on the result.

    It’s a very strange request so don’t expect me to do it for you ;-)

    See my Hidden Forums plugin to see how the filters work.

    #70460
    nuttycoder
    Member

    haha that makes 2 of us then :) just adjusted the stylesheet as I noticed when lot logged in the login form went over the header section, been fixed now.

    #70461
    Trent Adams
    Member

    You could pretty much make a codex out of your plugins and tips _ck_ :) Another great one!

    #70450
    Huda Toriq
    Member

    Thank you for your response. I’ll take a deeper look into the BB_Query class.

    After reading this question, do you think of a plan to extend the bbPress live plugin so it can transport the query as well?

    I think it’s a great idea. Just my opinion :-)

    #4477
    adam613
    Member

    A little about me: I’m working on a hobby web site. It was going to have a forum, a few database-based applications I’ve written the back-end for, and in the process of deciding what should go on the front page, I figured I should start a blog too. I have a version of the site sort of written using phpBB as the the forum and the templating engine for the web apps, but it’s very frustrating getting phpBB to do what I want it to do…you really can’t do much without editing the core code. On the recommendation of a co-worker, I decided to check out WordPress/bbPress. I’m not sure WP/bbPress is the right solution, but I haven’t found anything I like better….it seems like it’s pretty easy to rearrange things on the page and add new elements as needed.

    What I want: My forum should appear on the site similar to a Page. I don’t think I need “deep integration”…I’m not terribly concerned about data integration, other than the fact that signing into WP should sign you into the forums and vice versa. I don’t need the forum to be able to interact with other pages on the site…if I need data from my other apps in the forum, I’ll just grab it from the database using a forum plugin. But I am concerned about appearance integration…I want the WP header and footer, including my logo and nav bar, to show up at the top of the forum page, and I want the forum theme to be similar to (if not identical to) the WP theme.

    What’s the safest way to make this happen? I’m very new to WP/bbPress, but I’m not afraid to write code…a certain major website pays me a good bit of money do so during the week :)

    #69885
    chrishajer
    Participant
    <div>
    <h3>Backtick test</h3>
    <p>This is in a P block</p>
    This is not
    <?php echo bloginfo(); ?>
    </div>

    #63122

    In reply to: Super Sticky Problem

    _ck_
    Participant

    I think it’s confusing too and I am not sure why they did that.

    You could try at the start of the forum.php template

    global $super_stickies;

    or maybe

    $stickies=array_merge($stickies,$super_stickies);

    but php may renumber the topics causing it to fail.

    or try

    $stickies=$stickies+$super_stickies;

    Of course this will show all super stickies in each forum.

    A real plugin would have to be written to do this properly.

    #63121

    In reply to: Super Sticky Problem

    Yes, I am having the same problem :/

    Even though it is intended to behave like this many users find that confusing.

    I’ve tried modifying the code in forum.php to include the $super_stickies like on the front page but without success…

    <?php if ( $topics || $super_stickies || $stickies ) : ?>

    Is there a workaround?

    #58952
    _ck_
    Participant

    Never hack the core.

    Especially when that function is right there designed to be filtered.

    see this apply_filters( 'get_profile_info_keys', array(

    It means you can make a simple plugin to modify the info keys on the fly.

    Untested but should work as a plugin:

    /*
    Plugin Name: Allow Title Edit
    */
    add_filter ('get_profile_info_keys', 'allow_title_edit');

    function allow_title_edit($array) {
    if (bb_current_user_can('participate')) {
    global $bbdb;
    $array[$bbdb->prefix.'title']= array(0, __('Custom Title'));
    }
    return $array;
    }

    #69973
    _ck_
    Participant

    I think vannak did that, and it’s 10 seconds:

    https://bbpress.org/forums/topic/bbpress-is-slow-like-godaddy-says/page/2#post-21978

    What happens if you upload a random file and name it test.txt ?

    Since it can’t modify the php file, I guess it won’t be able to modify the text.txt file either but maybe it’s only because the php file is open by the same process.

Viewing 25 results - 26,126 through 26,150 (of 32,467 total)
Skip to toolbar