Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,001 through 23,025 (of 32,468 total)
  • Author
    Search Results
  • #80864
    chrishajer
    Participant

    Yes, you can comment out a block of code in between the <?php and ?> by using /* commented this part */. For example,

    <?php
    echo $user;
    /* echo $phone; */
    ?>

    The phone would no longer be displayed because you commented it out. It won’t even appear in the source of the page when viewed in the browser, unlike a HTML comment <!-- commented this part --> or CSS comments (which are always visible.)

    #50322

    I’m afraid I don’t take on paid work, since I simply can’t guarantee the time needed to write code on demand, ensure it’s to a standard expected of paid work and to be honest, I don’t need the money anyway.

    As I said, I’d be more than happy for someone else to use my code as reference on how to implement such a feature, since it’s pretty much just butchered up parts of core bbPress code, but as it stands I simply don’t have the time to work on the plugin and guarantee it’s to a production standard, paid or not.

    As to the requesting login details later part, I think that was requested before, and I did look into doing it, but because of the way bbPress is structured internally, you have to bypass so many checks against the referring page and carry over the post data to be passed later on. Do-able yes, but not really a 5 minute job, since as far as I know you’d still need to re-do the post function as I did previously.

    It’s nice to know there’s still interest in this though, and I’ll look into trying to implement it more cleanly later on with requested features. Having pulled and learnt the login and post system once, it should be easier a second time. Really, really wish we had a bbPress codex, so it could be documented more.

    #32136
    InvTrdr
    Member

    In CSS I use /*………*/ for a few lines of code or ……..// for just a line so that code is skipped or avoided. Will this work in a .php file also? I would like to skip code to test it out without deleting the original code. Just want to mask the original code so I can go back to it if I make a mistake.

    Thank you.

    #80796

    In reply to: Future of bbPress

    wiseacre
    Member

    Thanks for the answer, Matt. :)

    #80795

    In reply to: Future of bbPress

    chandersbs
    Member

    Wow, the legendary Matt :D

    #80794

    In reply to: Future of bbPress

    Matt Mullenweg
    Keymaster

    Happy to be here. :)

    #32131
    Matt Mullenweg
    Keymaster

    A few people have reached out to me and I just wanted to let everyone know that bbPress is still an important project for the WP community. (It powers our forums and plugin directory, for one thing!) It’s not going away.

    Strategically the most important thing we need to figure out is how to integrate bbPress better with WP more for people who want that — right now it’s easier to use one of the WP plugins for forums than bbPress.

    As to where bbPress goes in the future, I’d be curious to hear who wants to help with that. The world is our oyster. :)

    You have a space or a line return around your code tags.

    #80696

    In reply to: When bbpress 1.0.3?

    wiseacre
    Member

    @johnhiler – Yes man, everyone leaving. Sam’s post is about “1 month old”. How many plugins are updated last month? :)

    I wrote Matt some hours ago …

    #80695

    In reply to: When bbpress 1.0.3?

    apam
    Member

    I really hope bbpress will thrive from this transition! Go Bbpress! ;)

    #80694

    In reply to: When bbpress 1.0.3?

    johnhiler
    Member

    Marius – Everyone’s leaving? One person has left… the lead developer, Sam. And he worked crazy hard to get version 1.0 out the door (you can see all his code checkins on Trac).

    bbPress is definitely in a state of transition now. I’ll reach out to Automattic and see if we can’t get some clarification on where things are. If they’re not going to actively develop the platform, we can fairly easily fork the code since it’s open source…

    chrishajer
    Participant

    Can you post the full code of exclude-forum.php please? If it’s too long, use something like pastebin rather than posting here.

    http://pastebin.com/

    If you post here, be sure to wrap code in backticks `, usually above the tab key on a US keyboard.

    #50320
    anabelle
    Member

    That would be great, Im sure i don’t have the best way to do it, im sure working together we can find the best way of achieving it.

    I’d love to pay, and I will. You must consider nonetheless I live and work in colombia. My current salary is les than $5 an hour. And I can’t even pay half that :( BUT! Im happy to give “donations” if the developer is ok. How much do you charge?

    I’ve thought about anonymous, but that isn’t the idea. If an account can be created, why not?

    I will surely use instant pasword! thanks for that!

    That gives me even more clear ideas about this.

    The reply form in a topic, if a user is logged out. Should include login, password, and reply.

    If the account exists, login and post. If it doesn’t exist; ask for email, createaccount, login and post.

    A special message could be shown. Your reply has been posted! And an account has been created for you. Thanks for joining our community.

    What do you think about it?

    #80791
    chrishajer
    Participant

    1. If your website is in public_html, then I would put the folder inside that folder, so you would have this:

    /public_html/bbpress/

    or

    /public_html/forums/

    or

    /public_html/discussions/

    When you unzip bbPress, it will create a folder called bbpress. Rename that folder to whatever you want before you upload it.

    Uncompress it on your desktop, then rename it, then upload the whole thing to public_html.

    4. Well, if /public_html resolves to your domain at http://www.example.com/ and you renamed your bbpress folder to discussions, you would visit http://www.example.com/discussions/ and start the installation.

    If you want a link to the forum in your WordPress menu, you will need to create a Page with a slug that is identical to your folder name. So, if you called your folder discussions, create a Page called Discussions with a slug of discussions and if you’re using permalinks in WordPress, that menu item will serve up the bbPress installation.

    There are also plugins that will allow you to redirect a page to another URL. You might need to do something like that.

    Custom Field Redirect: http://www.nathanrice.net/plugins/

    Page Links To: https://wordpress.org/extend/plugins/page-links-to/

    There are ways to do it in a page template as well, but you might not need any of that. Create a page with the slug named the same as your forum folder, and it should ‘just work’.

    #50317
    anabelle
    Member

    Sure, and i’ll definitely use it. Im just a little scared about support or having to fix things that are beyond my reach.

    So, as much as i Will test it. I don’t think im using it in production enivonment yet.

    But, my concept of a forum, the way I am conceiving it, designin it, and targeting it, REQUIRES this feature. I won’t use it right now but I’m sure the lack of it will almost fully stop the growth of the site.

    Simple as is, mi site “¿Cómo diablos.. ?” is targeted to solve basic questions to tech newbies in spanish, you can imagine there are a LOT of people, and grownups how are just getting to know a computer. And the process of registering, in a separate page, activating through email, and then asking some really basic question, it just really doesn’t work.

    What we’ve been using until now is a WordPress site, with reply to coment mail notification enabled. So they just ask, and get the answer to their mails. It’s working ok. But we really think the right way of doing it is using a forum. Auto-creating an account when the user signs up could be incredibly useful for getting recurent visitors and building local support communities in common language.

    Sorry for writing so much in such a bad english :P hope you understand.

    #80756

    In reply to: instable scripts

    chrishajer
    Participant

    I think that’s the output from the command top so watpocom is just the user that’s running the processes.

    I suspect it’s a plugin causing the problem. Using the plugins linked to by johnhiler will help pinpoint the problem. I’d start with bbPress plugins.

    #50316

    anabelle: The code that I’ve posted is fully working as a proof of concept, so you could use it. I’m not sure if this would ever be implemented into the core code though. I’ll look into re-doing it with an interstatial page at a later point if I have the time.

    #80760
    chrishajer
    Participant

    What version of bbPress are you running? The 1.0 version has some classes that you seem to be missing there. I don’t have a 0.9 version installed with categories to check this out.

    This would get you close, at the bottom of your style.css, but it’s not quite right – it spaces all the table data cells over. You just want the first ‘column’ over, the forum category.

    .bb-root td {
    padding-left: 2.5em;;
    }

    I didn’t think the older version had forums as categories – are you using a plugin for that, or are you using 1.0 and just missing some classes for your theme? Maybe that theme was for 0.9 and is missing the markup for 1.0.

    #80689

    In reply to: When bbpress 1.0.3?

    johnhiler
    Member

    @grassrootspa – BuddyPress uses bbPress to power forums, so as long as BuddyPress is important for Automattic then that’s good for us. :-)

    We definitely need clear guidance around the future of bbPress. If it’s not going to be supported, then we will have to work together as a community to fork it…

    #78876

    I was having the same problem. I back tracked through the code and found the problem was the admin section looking for a secure cookie and the login script was always setting the cookies without the secure flag. I worked around the issue by changing the force_ssl_admin function to always return true.

    function is located in: bbpress/bb-includes/backpress/functions.core.php line 802-ish

    hope this helps somebody.

    #80142
    legacyblade
    Member

    thanks, it worked perfectly :D

    AphelionZ
    Participant

    So I totally hacked up my htaccess file and now when I visit a nonexistant url it goes to the apache 404 page instead of the bbpress 404.. how do I need to change the code below to fix that?

    # BEGIN bbPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /community

    Options +FollowSymlinks +MultiViews

    RewriteRule ^forums$ forums/ [R=301]

    RewriteRule ^forums/$ /community/index.php?view=forums [P,L,QSA]

    RewriteRule ^leaderboards$ leaderboards/ [R=301]

    RewriteRule ^leaderboards/$ /community/index.php?view=leaderboards [P,L,QSA]

    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/([^/]+)/?$ tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ tags.php [L,QSA]

    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/?$ profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([^/]+)/?$ profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([^/]+)/?$ view.php?view=$1 [L,QSA]

    RewriteRule ^rss/?$ rss.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([^/]+)/?$ rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([^/]+)/?$ rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([^/]+)/?$ rss.php?profile=$1 [L,QSA]

    RewriteRule ^page/([0-9]+)/?$ ?page=$1 [L,QSA]

    RewriteRule ^forums/([^/]+)/([^/]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]

    RewriteRule ^forums/([^/]+)/([^/]+)/?$ topic.php?id=$2 [L,QSA]

    RewriteRule ^forums/([^/]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forums/([^/]+)/?$ forum.php?id=$1 [L,QSA]

    </IfModule>

    # END bbPress

    #80757
    nutsmuggler
    Member

    Oops, just 2 mins after posting I found a list of BBpress functions, featuring is_bb_admin()

    Well, hope this monologue will be helpful to other developers :)

    #80750

    In reply to: Color of text.

    batrachoid
    Member

    They’re links, so look for

    a { color: #2e6e15; text-decoration: none; }

    #32119

    Topic: Color of text.

    in forum Installation
    InvTrdr
    Member

    When I change the font color to “ffffff” in the code below, it does not apply it to all the text on the top of the page for registration/login etc. It only changes “welcome” and the rest like “admin”, “logout”, “register” and “lost password” are still the same. Where is the color of these fonts (all the text having to do with login, logout, forgot password, logout etc.) controlled in the CSS?

    .login {
    position: absolute;
    bottom: 31px;
    left: 0;
    font-weight: normal;
    color: #ffffff;
    width: 100%;
    z-index: 1;
    font-size: 12px;
    }

    Thank you.

Viewing 25 results - 23,001 through 23,025 (of 32,468 total)
Skip to toolbar