Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,126 through 26,150 (of 32,481 total)
  • Author
    Search Results
  • #65138

    Yes =) That’s what I’ve been looking for but the link in the plugins section was broken.

    I ended up using a modified version of the old PM plugin but I think I can adopt some features from that one too.

    Thank you :)

    #70579
    chrishajer
    Participant

    I wonder if it’s because of the integration between themes or with WordPress functions conflicting with bbPress functions? These versions are not *supposed* to work when integrated; maybe this is one of the problems.

    If you have access to the database, look at the bb_topics table for a field called topic_open which should be 1 for open or 0 for closed. I’m curious what the value is for the first topic.

    #4500
    ganzua
    Member

    Hi!

    I was trying to show the latest threads when you get a bbpress 404 page.

    I just copied front-page.php code into 404.php template but it didn’t show anything :(

    Why?

    #70514

    In reply to: Members can add tags

    wiseacre
    Member

    Reading https://bbpress.org/forums/profile/71562 I can’t say are you “tag spammer” or not ;)

    #70513

    In reply to: Members can add tags

    Actually it’s a lot easier to figure out who made the tag than you seem to think.

    ID’s are set in every single tag. <li id="tag-85_71562">tags</li>

    Go to https://bbpress.org/forums/profile/71562 and you’ll see that I added a tag :) Easy as pie to see I’m a spammer ;)

    #70512

    In reply to: Members can add tags

    wiseacre
    Member

    OK let have one bad guy and one good admin. How admin can identify and fight this bad guy without PHP or SQL knowledge?

    chrishajer, I will explain with your own words “The member id is recorded in the database when the tag is added, so if it’s a member doing inappropriate tagging, you can deal with them individually.”

    But in other point of view bbpress admin/key master MUST know PHP & SQL because of undeleteing “deleted” topics and posts. ;)

    #4498
    bijan23
    Member

    I am trying to integrate bbPress into my WP-operated website. My WordPress is 2.6. I installed bbPress “Brubeck” (version 0.9.0.3) in a subdirectory titled “forum”. I chose the integration option. I created a separate database for bbPress with separate users. Everything went well but at the end I got this message:

    “>>> WordPress cookie secret key not set.

    >>>>>> Your “bb-config.php” file was not writable.

    >>>>>> You will need to manually define the “BB_SECRET_KEY” in your “bb-config.php” file.”

    I was able to login at first but later I opened the “bb-config.php” file and entered a secret code there. Then I tried to login again but I got this message:

    “Too many redirects occurred trying to open “http://thepublicsphere.com/forum/bb-login.php”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.”

    I tried to login to my WordPress admin but none of my user names and passwords worked. I tried to reset the passwords but the emails I receive do not contain any new password, neither the link they provide leads to any reset page.

    What should I do?

    #61513
    chrishajer
    Participant

    You could probably change it in the database if you access with something like phpMyAdmin. Otherwise you used to be able to set this in bb-config.php, but I’m not sure if this still works:

    $bb->name = 'Short Forum Name';

    If not, you could just edit the header.php template file to not even display the site name on the site until you can log in and change it in the admin panel.

    Just remove this line long enough to log in and change the Name setting:

    <h1><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a></h1>

    #4495
    nextical
    Member

    I’m running WP 2.7 in my site (www.ins-ide.org) and because it, I choose BBpress Alpha and then I install the bbPress 1.0-alpha-4 into my /forum/ inside the ‘public_html’ (thought from I read, it supposed to be the easiest things to do for installing bbpress).

    after I extract the ZIP file, I send all the content (via FTP) to the /forum/

    Then, I opened the bb-config-sample.php & wp-config.php

    I use ‘localhost’ and only matching the MySQL DB user & pass

    After that went to http://api.wordpress.org/secret-key/1.1/bbpress/

    and copy&paste the result into my bb-config-sample.php

    and DONE!

    i just save it as bb-config.php

    then with the Force in my mind, I opened http://www.ins-ide.org/forum

    *D’oh!

    I got this:

    Parse error: syntax error, unexpected $end, expecting ‘)’ in /home/insideor/public_html/forum/bb-includes/functions.bb-template.php on line 2124

    with the curiosity I’m opened the functions.bb-template.php and seeing whats going on in line 2124,

    well.. it is the last line and it says

    Code:
    function bb_profile_password_form( $id

    could anyone helps me to get my forum build?

    many thanks!

    #4493

    Hello,

    Finally was able to get the Forum installed – like it so far. :) However, with my blog http://www.itshaunted.com members are contributors and each has an extended role; however, When members sign-up Forum FIRST his/her membership is considered a role: NONE for the blog. How can I change the role in the forum to match the assigned role in the blog? Simply meaning, you sign up via blog FIRST your role is a contributor; however, if you sign up Forum FIRST your default assigned role is NONE.

    Thanks in advance.

    #70557
    nuttycoder
    Member

    Just downloaded it and had a look in the code there seems to be a lot of places with the break tag in what line numbers did you edit in to start with, I’d suggest looking there see if you notice where the extra break tag is.

    #70554
    Anonymous User 1502623
    Inactive

    Hmm yeah, I see that now you’ve pointed that out. The code just reads this though on the page:

    <div class=”video”>

    <b><p>

    <img border=”0″ src=”http://www.audioscribbler.co.uk/wp-content/themes/revolution_magazine-40/images/community.png&#8221; width=”290″ height=”18″></p>

    <?php wp_bb_get_discuss_sidebar(); ?></b>

    </div>

    I’ve searched the plugin editor as well as the core plugin files but I can’t find the bit with the double
    tags? Any idea where they’ll be?

    #70553
    nuttycoder
    Member

    looking at the source code you have a double break tag remove the second break tag and there won’t be such a big gap.

    <a href="http://www.audioscribbler.co.uk/boards//topic.php?id=81">What music are you looking forward to in 2009?</a>
    <br />
    <br />
    <a href="http://www.audioscribbler.co.uk/boards//topic.php?id=83">Glissando - UK tour 2009</a>
    <br />
    <br />
    <a href="http://www.audioscribbler.co.uk/boards//topic.php?id=48">putting things on top of cats</a>
    <br />
    <br />
    <a href="http://www.audioscribbler.co.uk/boards//topic.php?id=66">8/11 - Leeds - Hauschka (Fat Cat) + Gareth S. Brown</a>
    <br />
    <br />
    <a href="http://www.audioscribbler.co.uk/boards//topic.php?id=72">7/11: James Yates/Moleck/Pattern/Cigars of the Pharoah LEEDS</a>
    <br />
    <br />

    #70169
    dragly
    Member

    I’ve updated the plugin to cope with forums using blocked and inactive users as well.

    function inactive_to_member() {
    $userID = bb_get_current_user_info( 'id' );
    $user_obj = new BP_User( $userID );
    $user = bb_get_user( bb_get_user_id( $userID ) );
    if(empty($user->capabilities)) {
    $user_obj->set_role('member');
    }
    }
    add_action ('bb_head', 'inactive_to_member', 5, 0);

    The only flaw I can find with this plugin is that it won’t update the user’s role until the next time the user refreshes the page. I guess it could be fixed with a simple redirect/refresh in the plugin however.

    #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?

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