Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,926 through 21,950 (of 32,516 total)
  • Author
    Search Results
  • #85534

    In reply to: single forum

    xananax
    Member

    Ok, thanks to your idea, I’ve got it working. I quickly slapped together a theme that names the forums “categories” and uses the “latest topics” as the main view. It’s a very awkward theme, the CSS is crap, there is repeated code here and there but it is just a proof of concept. I’ll work more on it later.

    You can get it here:

    http://www.yelostudio.com/dump/yelobbpress.zip

    #81522
    Mark-k
    Participant

    I don’t like to mess with SVN, but I have no objection that someone will upload it to there ;)

    #81014
    xananax
    Member

    ok scratch that, the code is:

    <a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id);?></a>

    tried it, it works.

    #81013
    xananax
    Member

    this is what I did:

    <a href="<?php forum_link($topic); ?>"><?php forum_name($topic);?></a>

    I have no idea if it is the best way…No documentation, I just tried some function names that seemed logical to me and it worked.

    #85523

    Thanks, Paul,

    That corrected it to the point that it was happy with it and allowed it to activate.

    Unfortunately, the impact of the thing was that other than the passwords the fields and their content disappared from the Profile and Edit Profile pages, so there’s obviously a bit more to ardentfrost’s approach other than this so far (as I’m sure you corrected the code right), if you or anyone else know what it needs? It seemed to be an officially approved approach to doing the thing on that other forum page.

    So I’ve de-activated it for now, and fortunately the fields and their content were still there and returned.

    Thanks again, Paul.

    James

    #85522
    paulhawke
    Member

    I just loaded the code into an editor, and reformatted for clarity

    <?php
    /*
    Plugin Name: jbs_own_plugin
    (etc....)
    */

    add_filter( 'get_profile_info_keys',
    array('user_email' => array(1, __('Email')),
    'user_url' => array(0, __('Website')),
    'from' => array(0, __('Location')),
    'occ' => array(0, __('Occupation')),
    'interest' => array(0, __('Interests')),
    'extra' => array(0, __('Extra'))));

    ?>

    Basically, it was missing a closing ) and semi-colon on the line. I cant promise that it does exactly what you are after, but this ought to solve the PHP syntax error. :-) Good luck.

    #33501

    Hi,

    I’ve just been following this instruction – http://bbpress.org/forums/topic/adding-custom-profile-fields (and as per http://bbpress.org/forums/topic/add-new-fields-to-user-profile#post-14767) – to create a plugin of my own to add a couple of extra fields for my post/edit post, as per ardentfrost’s instructions.

    I’m not overly familiar with php so wonder if anyone can see what is wrong with my code. The plugin I created for myself, which I’ve uploaded to /forums/my-plugins/jbs_own_plugin.php is as follows:-

    <?php

    /*

    Plugin Name: jbs_own_plugin

    (etc….)

    */

    add_filter( ‘get_profile_info_keys’, array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘extra’ => array(0, __(‘Extra’)))

    ?>

    And when I try to activate it in bbPress plugins I get;

    Parse error: syntax error, unexpected ‘;’ in /var/www/vhosts/wholelifewholeworld.com/httpdocs/forums/my-plugins/jbs_own_plugin.php on line 13

    I’ve tried it with one less ), and with ; after, and a couple of other combos, but can anyone see what I’m doing wrong please? Just want to add a few extra fields that people can fill in from Edit profile and have displayed on the Profile page.

    Also, I found out I don’t actually HAVE a functions.php page in bb-includes at all, so that is slightly worrying me (though everything else is working okay).

    Thanks,

    James

    #33452

    Topic: Toggle Forums

    in forum Themes
    driz
    Member

    Hi,

    I’m adding a toggle switch on categories for my forum, but they need to each have unique ids or something along those lines in order for the toggle to talk to each individual category.

    Any ideas how I could do this? Here is the code I have for the toggle.

    <script>

    $(“.toggle”).click(function () {

    $(“#box”).slideToggle(“slow”);

    });

    </script>

    #85481

    In reply to: No Plugins Found

    chrishajer
    Participant

    The permissions on your my-plugins should be 755. Are the permissions correct?

    Depending on when you installed and what version, the default permissions on the folder were 750, but that’s fixed now.

    If the permissions on the my-plugins directory are 755, we will look at something else.

    #85407
    paulhawke
    Member

    @chrishajer – D’oh! You’re right – it does say when an email is already in use. What was I thinking? ;-)

    #33447

    Topic: RSS Feeds

    in forum Troubleshooting
    thelobbyist
    Member

    Just doing some searching and see that RSS feeds for forums were broken. I discovered this myself when I tried to load my forum feeds for my new site into Google Reader today and it couldn’t find the feed. I have updated my code with the patch update and feed validator says my feed is fine, but it still won’t load in Google Reader.

    From what I’ve read on the forums there was a wide spread problem, but I can’t seem to locate if there was ever a definite solution. I am running the latest WP with BBpress 1.0.2 with deep integration.

    Anything I can do to fix this? RSS feeds for my forums are pretty vital because this particular site won’t have posts, just pages for research content, and forums for feedback and discussion.

    Thanks

    #83588

    Cause I have no knowledge on how to recode the php.

    It’s JavaScript.

    You didn’t want to edit PHP files.

    #83587
    Marius-
    Member

    Hi, forgot this was my problem.

    Where should I put that php code?

    #85473

    Nevermind. I found it. You can do it like this:

    <?php echo forum_name($forum->forum_parent); ?>

    #85470

    In reply to: new to BBpress

    cary1221
    Member

    I second that Marius! :) But looks/feel apart haven’t really had a problem with php BB. I want to shift but am skeptical of other internet forums, functionality-wise. Any suggestions ?

    #33442
    cary1221
    Member

    hey guys!

    I’m using php BB forums currently, why should I shift to BBpress? Pls help!

    Thanks ! :)

    #85169

    Hi,

    I tried contacting you by email but had no success (it says it has been delayed).

    I can work for you.

    Email me – ashishsainiashfame[at]gmail<<<dot>>>com

    OK, I think I got it working. I hired someone to code it for me–now I have to figure out how he did it!

    Thanks.

    #84733

    In reply to: Plugins You Want !!!

    toniperdew
    Member

    An avatar plugin that works when just installed/activated, without needing to modify php code would be great! :-)

    Please, don’t say that I have said things that i have not. Feel free to quote me, but don’t make things up or wrongly generalise and attribute them to me.

    That said, i apprecaite you finally getting round to being polite to the people who have helped you out thus far. Finally finding manners to Thank people like John who went out of their way to help you was the decent thing to do :)

    Either way, don’t think it really matters.

    Personally i’ve found that pointing my post form towards WP is better because if something is going to change/break in a future version it will happen in WordPress long before bbPress. People are patching/plugins/writing-guides on how ot make bbPress work with WordPress not the other way around, so i stick with the strongest/most stable software as my login base. But really, thats just me being careful; i shouldn’t matter :)

    #85443
    lynx13
    Member

    Okay, I think I solved it myself.

    The working code is as follows:

    # BEGIN bbPress

    #Options +MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /forum/

    RewriteRule ^page/([0-9]+)/?$ /forum/index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum/forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /forum/forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ /forum/ [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forum/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /forum/topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ /forum/ [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forum/tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /forum/tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /forum/tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forum/profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forum/profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forum/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /forum/profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ /forum/profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forum/view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /forum/view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /forum/rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ /forum/rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /forum/rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ /forum/rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /forum/rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /forum/rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ /forum/rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /forum/rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ /forum/rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /forum/index.php [L]
    </IfModule>

    # END bbPress

    As you can see, I commented the Options +MultiViews out and let the bbpress-generated .htaccess do the rest.

    I was just lucky and experimenting with different .htaccess in this subfolder for hours.

    Thanks anyway!

    #85451

    I say it’s not likely to happen becuase we only have 2 or 3 plugin developers left, and your requirements are very specific. We’ve seen from all the other plugins that you’re unhappy with about how you want something that fits your needs exactly, and you never say please or thank you. I told you days ago where you could get one, and you didn’t like it even though it does everything you said you wanted.

    I’m not your enemy mate, everytime you ask for help i step up. You’ve still not thanked me for the code i sent last week to solve your issues you could have googles (they weren’t bbPress issues).

    I dont think a simple chatbox is something thats specific to me and my needs alone. I think its a perfectly logical thing to make in context with the philisophy of BBPress.

    Cool, then go make it :)

    #85448
    Marius-
    Member

    I want a box on the side of the forum, with two fields.

    One field of posted messages, and one input-field to write them in.

    I dont want tabs, smileys, list of users, links to php-shit, bubbles-background, different colors in text or bb code buttons at all.

    Just a simple simple SIMPLE chatbox.

    Look at my _shout_box on http://www.michaeljackson.no. Thats a plugin called WP-Wall, and its great.

    I want something similar to that, just optimised for chatting.

    When I say optimised, I mean = room for more comments with better readability, and live refreshing.

    #85442

    Ok, i’m coding on my iPhone – expect errors.

    function kjg_custom_feed_rewrite($wp_rewrite)

    {

    $feed_rules = array

    (

    ‘forum/(.+)/(.+)’ => ‘/bbpress_folder/index.php?variable1=’ . $wp_rewrite->preg_index(1) . ‘&variable2=’ . $wp_rewrite->preg_index(2),

    );

    $wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;

    }

    add_filter(‘generate_rewrite_rules’, ‘kjg_custom_feed_rewrite’);

    function kjg_add_custom_page_variables( $public_query_vars )

    {

    $public_query_vars[] = ‘variable1’;

    return $public_query_vars;

    }

    add_filter( ‘query_vars’, ‘kjg_add_custom_page_variables’ );

    Basically, whenever you try and load “domain.com/forum” the .htaccess file would load wordpress. WordPress then hits it’s own htaccess rules (how it does permalinks etc), which it stores as an array you can manipulate and it then loads the page you tell it with the $_GET variables you can also maipulate. The thing is, WordPress does this AFTER it’s loaded it’s variables and plugins, but obviously before it’s done any form of outputting to the screen… so in theory you could just tell it to load the bbpress index instead, and as it’s already got wp-load.php processed, all of the user-ids/logins/permissions etc should be already generated – not to mention, you could call WP functions etc.

    Basically, it’s deep integration but form the WordPress side rather than the bbpress side. There might be some BackPress function un-compatability (i can think of a few right now that would be iffy) – but it basically looking at the problem from a different viewpoint.

    Instead of trying to bridge WordPress and bbpress, why not have WordPress load bbPress as a “plugin”, and then we could take advantage of plugins like WP-Role-manager and facebook connect etc.

    Ok, my code may be very very wrong, give me a day to hack out something :)

Viewing 25 results - 21,926 through 21,950 (of 32,516 total)
Skip to toolbar