Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,226 through 20,250 (of 32,517 total)
  • Author
    Search Results
  • #35076

    I was making a custom plugin to make users subscribe to topics so I attached my function to hook bb_insert_topic but bb_subscription_management() doesn’t work here.

    Its working under a different function hooked to register_user though.

    Any ideas what could be wrong? And how can I actually debug it.

    Kojichan
    Member

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC-7)’ in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php:180 Stack trace: #0 /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php(180): DateTimeZone->__construct(‘UTC-7’) #1 {main} thrown in /home/neosmcn1/public_html/hsti/forum/bb-admin/options-general.php on line 180


    Here’s a random question, does BBPress support timezone differences?

    I see the option in the options-general.php in bb-admin, but, I’m beginning to wonder if it’s implemented yet. Doesn’t’ appear to be, yet. As I can change the time-zone willy-nilly, and the times listed below are not affected. (IE, I’m GMT-7, so I have selected Edmonton as the closets city to me. At the time of writing, it is 12:43p here, and my forum says it’s 6:43p. Mind you, it ALSO says that UTC ALSO is 6:43p. … whut??)

    Moreover, the options drop-down seems to be populating false timezones toward the end, the UTCxxxx portions. UTC itself is fine under ETC, but under the “Manual offsets” there are a set of UTC-7, UTC+7, UTC-1, etc. However, in PHP, DateTimeZone does not recognize the UTC-xx or UTC+xx values. They are incorrect. Shouldn’t they be GMT-xxx or GMT+xxx?

    I’ve tried looking in the code for some answers, (bb-includes/backpress/functions.core.php and bb-admin/options-general.php ) but neither of them seem to be shedding any light…

    #92788

    Pastor Bob,

    I’m sorry, i’ve gotten it wrong.

    I thought you wanted notification of a first post (or a new topic) and not every reply. So i’ve caused some confusion, sorry.

    It seems to me that everything is working well, just not in the right order for you.

    The way it works:

    1) New Post

    2) A plugin Email’s you

    3) Checks and makes spam.

    The way you want it to work:

    1) New post

    2) Check and make spam

    3) A plugin Email you if first time poster.

    To that end, what you’re looking for is something called “add_action”. It’s the plugin API call. It looks like this:

    add_action('action_name','function_to_fire',priority);

    priority can be left empty (and is then classed as 9? by default) and the lower number is fired first.

    The theory is, if you make sure that your “mark as spam” plugin fires before your email plugin (give them numbers 7 and 8), then you should be ok.

    So go through each plugin, looking for the add_action line. See if there’s a time when they both fire at the same “action name”, and then add/change the priority.

    Other than that, it seem slike a custom plugin would be the way forward.

    #92787

    Hello Kevin.

    Thanks again for your intervention.

    So, instead of post_status = 0 I should use post_position=1?

    But then how is it going to be handled by askimet after that? Because I read here that 0,1 and 2 are statuses that akismet sets.

    Or is this another solution to my first post moderation?

    I am sorry that I cannot follow. I wish I would be quicker.

    Regards,

    Bob

    #92786

    HI Pastor Bob,

    writing on an phone, so can’t write out full code, but you also want to test for “post_position=1” to check if it’s the first post.

    #35068

    Hello.

    I want to start by thanking the following developers: _ck_, Nightgunner5, Yu-Jie Lin, Olaf Lederer and michelwppi; for their time and effort in bringing about some very useful plugins.

    I have a few comments of my own, and in some cases, very important questions as well.

    Even though I have very few genuine users on my forum – four to be more precise, I have decided to (try to) offer as good of a service as I can. I have had a couple of spam posts (5.88%), which Akismet handled impeccably so far.

    Also, in the last few days I have had about 20-25 new users that only registered, and considering some of their email addresses, have no other intention but to spam. In this case, another useful plugin came to my rescue, Enhanced Registration, which appears to be doing the perfect job. In conjunction with this plugin, I am using New User Notification Email, so I am always notified whenever a new user registers and if in X hours he/she doesn’t login, then their username is removed and my database kept clean. A very good combination in my opinion.

    Further on, a common plugin for moderation that I am also using is bbPress Moderation Suite, and I am sure that it would prove its worth when people will be more interested in what I have to say on my forum. Anyway, I think it’s missing a very useful feature, provided (luckily enough) by Moderate new members’ first posts. Now, I have no doubt that this last plugin is working fine with some people, but not with me. What I wanted was to be notified once at an email address of my own choice (other than admin_email), whenever a new member made his first post (or after two). After that, he/she would post unhindered.

    So, I (think that I) have identified the section in the plugin that needs attention, where the post count is made:

    if(!is_moderator($bb_current_user->ID)) {
    $sql = "
    SELECT COUNT(*)
    FROM $bbdb->posts
    WHERE poster_id = $bb_current_user->ID AND post_status = 0
    ";
    $userpostcount = intval($bbdb->get_var($sql));
    }

    And where they are marked for moderation (as spam):

    if($userpostcount <= POST_NUMBER_MODERATION) {
    $sql2 = "
    UPDATE $bbdb->posts
    SET post_status = 2
    WHERE poster_id = $bb_current_user->ID
    ";
    $markedasspam = $bbdb->get_results($sql2);
    }

    Now, I wouldn’t know what or where to edit in order to have it do what I want, and that is why I would appreciate it if someone who does know it would assist me. No matter how many times my dummy user called “testing” makes a post, I always get a notification, at the default email address.

    I only want to be notified of the first post because I am using xili New Post Notification (xnpn) for the rest of them, at a different email address. What I like about this plugin is that it gives me the possibility to assign an email address of my own choice. It’s true that I would get an email twice when an user would post for the first time (2 plugins), but I can live with that, since they are at different email addresses (the default and my choice).

    Thank you,

    Bob

    #92776
    extremejacob
    Member

    I’m not using the same theme, but my theme came with a bunch of place holders for links e.g. “Link A”, “Link B”, … inside the different theme files (in the theme folder) which I could edit manually. That made it easy to find where to fix it.

    Look in your theme folder for header.php, sidebar.php, footer.php or similar. Put the link code (a href .. ) in there where appropriate. If you don’t have place holders, you have more work to do.

    #92769
    zaerl
    Participant

    It writes the option in the database. Open phpmyadmin. Locate the meta table (usually bb_meta.) Change the bb_option called uri to whatever you want.

    #92764
    Trilijan
    Member

    Ok, thank you very much :)

    #35058
    ph23man
    Member

    I’ve had this very odd issue suddenly crop up. All deleted posts on my forum have automatically become undeleted. Basically the post_status field in the bb_posts table is getting reset to 0 for all posts.

    I’m running bbpress 1.02 that’s deep integrated with WP Multisite 3.0.1 (with Buddpress 1.2.5.2). It’s deep integrated, but I run bbpress by itself, NOT as a component of Buddypress (in the groups component). The site’s been running for a year and I’ve never experienced this issue until now.

    Is there any code in bbpress that could cause something like this? Reseting all posts?

    My web host recently upgraded PHP from 5.2.13 to 5.2.14 very recently, could there be some kind of incompatibility?

    Another side-effect of this is that it throws off paging on topics and cuts off newer posts in the topic. The number of pages shown for each post stays the same even though deleted posts are visible again so this essentially pushes newer posts back. Doing a recount doesn’t fix this.

    I’m having a hard time finding the cause although I somehow reproduced the problem. I had thought a moderator had restored deleted posts so I was going back deleting some posts that had been undeleted. When I was all done, I did a full recount. A few minutes later I found that all the posts that I had just re-deleted were restored again! I tried deleting some more posts and doing some recounts haven’t been able to reproduce the problem again.

    I’m running the following plugins:

    – Ajaxed Quote 1.2

    – Allow Images 0.8

    – BBcode Lite 1.0.3

    – bbPress Moderation Suite 0.1-rc2

    – bbPress signatures 0.2.0

    – bbPress Smilies 0.0.8

    – bb Topic Views 1.6.4

    – BBVideo 0.24

    – BuddyBar in bbPress 1.0.4

    – Forum Last Poster 0.0.5

    – Hidden Forums 0.0.9

    – Post Count Plus 1.1.11

    I’ve been running these plugins for a long time. The most recent one was bbpress Moderation Suite but I tested it pretty extensively on a development site (mirror) without issue.

    Any help is greatly appreciated!

    #35057
    Trilijan
    Member

    I’ve just tried to install bbpress forum, and during installation and after at the top of the screen I have got this warrnings:

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Does anybody know what is it, and what to do?

    Thnaks :)

    #76420

    Yo _ck_,

    We also have a history of major changes in 0.1 releases. We might indulge in a little bit of inflation with a 2.0.

    -matt

    Matt didn’t give anything firm, or if he did , its in another discussion :)

    https://bbpress.org/forums/topic/bbpressorg-for-standalone-and-talkpressorg-for-plugin#post-71339

    #76419
    mikkelsen
    Member

    John;

    I appreciate that, and there is no crisis, but it would be great if you could keep us updated on this site going forward :)

    #92723
    kai920
    Member

    I am using the default theme Kakumei (sp?). I don’t see any other errors of note in my MAMP log, and the Bluehost error log I don’t see anything useful either…

    You know what, I disabled nicer permalinks (on localhost) and it seems to work now, so this plugin may be the culprit.

    Could it be a conflict because my bb-press is installed in /forum?

    Here is what my .htaccess looks like when Nicer Permalinks is enabled:

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # /forum/ and bb_get_option( 'path' ) must match
    RewriteBase /forum/

    Options +FollowSymlinks

    # admin stuff, not processed
    RewriteRule ^bb-admin/.*$ - [L,QSA]

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

    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [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/([^/]+)$ profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/$ profile.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/topics/?$ rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)$ rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)$ rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)$ rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)$ rss.php?view=$1 [L,QSA]
    RewriteRule ^rss/topics/?$ rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/?$ rss.php [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 ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)$ view.php?view=$1 [L,QSA]

    # forums
    RewriteRule ^([^/]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^([^/]+)/$ forum.php?id=$1 [L,QSA] # tailed '/' is mandatory for forum URIs! Props: Mohta

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

    # other pages
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ index.php [L]
    </IfModule>

    # END bbPress

    #92677

    In reply to: Registration Email

    pagal
    Participant

    Don’t listen to pagal.

    I cannot ignore this line zaerl, I was trying to help him. :(

    #92720
    kai920
    Member

    bbPress 1.0.2

    PHP 5.2.13

    MySQL 5.1.47-community-log

    As for plugins, these are installed and activated:

    Allow images

    BBcode buttons toolbar

    BBcode Lite

    bbPress Smilies

    Check for Updates

    Hidden Forums

    Hot Tags Plus

    Nicer Permalinks

    Related Topics

    Support forum

    Unread Posts

    extremejacob
    Member

    Here’s what worked for me.

    I changed from website.com/forum/ to forum.website.com/

    I had name-based permalinks. My forum was in public_html/forum

    1) Set up the subdomain (used cpanel with host; this uses the same dir as before)

    2) Switch name-based permalinks to none (very important! You can do this temporarily. Nothing bad happened to me.)

    3) Change the URL from website.com/forum/ to forum.website.com/ in general settings.

    4) I had to log back in again after this step.

    5) Go to admin. I couldn’t get to admin after logging in. The link was pointing me to forum.website.com/forum/bb-admin … I manually typed in

    forum.website.com/bb-admin .. that worked.

    6) Change back to name-based permalinks.

    7) The admin link magically works now.

    8) Go into .htaccess and insert things like

    RedirectMatch 301 /forum/topic/(.*)$ http://forum.website.com/topic/$1

    Solved!

    #92658

    In reply to: Forum Issue

    zaerl
    Participant

    Open phpmyadmin. Inside the table your_prefix_usermeta you must change all that rows that have a wrong meta_key. Example:

    your_old_prefix_capabilities -> your_new_prefix_capabilities

    #76417
    _ck_
    Participant

    Didn’t Matt agree to call it 2.0 instead of 1.2 as a compromise to try to somewhat reduce the massive confusion that is going to happen?

    This forum is about to become a complete jumble of 1.2 vs 1.1 vs 1.0 vs 0.9

    Since 100% of the plugins are now useless, can some kind of header be put on the plugin section to warn people not to try to install any of them?

    #92675

    In reply to: Registration Email

    zaerl
    Participant

    Don’t listen to pagal.

    You have to edit the bb-includes/function.bb-users.php line 369. Substitute bb_get_uri(null, null, BB_URI_CONTEXT_TEXT) with your site address.

    Be careful cause it’s a core file. Unfortunately that function doesn’t expose a filter otherwise we could have done the dirty work through a plugin.

    #76415

    Yo Gatuam,

    I’m in a real positive mood mate, it’s a glorious day here in Edinburgh (ha, that don’t happen that often) during the largest Arts festival in the world, at a time when we have 8 festivals overlapping in 6 weeks. I am like a pig in the proverbial :D

    And if they were subscribed to feeds, most of them would also have subscribed to BuddyPress feeds

    That’s a massive presumption matey :)

    All i’m saying is, hasn’t 20 years of the internet as we know it shown us not to presume about users? :)

    or they would be using WordPress (so they may get to know about it from the dashboard)

    If they happened to log in on the 20-24 hours it was on the dashboard ;)

    Which gets harder depending on timezones and y’know life. If it was up there for a week, well yeah, I think you’d be closer to being right :)

    All i’m saying is this JJJ: Maybe when you make posts about bbPress on other websites, you could do us a favour and make a little 2 line forum post on this website too. All that’s needed is “hello folks, FYI, link”.

    From my point of view, this covers 100% of bbPress users, where are not doing it covers less than 100%. To me, in a really positive sense, taking 1 minute to post “FYI, link, :)” and make sure no-one feels lift out is really positive :)

    bbPress users have a history of hearing things 3rd/4th/5th hand, and rarely do those things turn out positive. I believe that JJJ’s plug-in will be positive to countless people, and i’m positive he’s the man for the job. Lets communicate about something positive, in a positive way, to all users :D

    As opposed to posting about software X, on software Y’s website, and hoping people use software Z to read the news about it for the 24 hours it showed it. That’s just comical – haha actually I wonder if there’s already a dilbert comic that covers such convoluted messaging…

    Have a great day folks, i’m off to see my 3rd favourite comic ever tonight

    #76414
    Gautam Gupta
    Participant

    Kevin, let’s be positive.

    Couldn’t you have even posted a blog post here or a forum post here just with a link “hey folks, wanted to make sure you saw this :)” ?

    If bbPress users don’t use WordPress, then 99.999% they would also not be coming to bbPress blog each day to check for updates. And if they were subscribed to feeds, most of them would also have subscribed to BuddyPress feeds or they would be using WordPress (so they may get to know about it from the dashboard). And even if anyone would have missed, he/she would have got to know about it via other blogs like wpmu (I am talking of the people who like to be up to date with bbPress happenings).

    #92701
    zaerl
    Participant

    You have to pass an additional parameter to mail():

    $add = "-f my-website.com";
    mail($to, $subject, $message, $additional_headers, $add);

    http://php.net/manual/en/function.mail.php

    #76412

    Thanks Rich! Me too! :)

    #76410

    Aw, you’re all so afflicted. :)

    A few of the more vocal people in the BuddyPress forums raised concerns about me dual wielding projects, so it made more sense to address it there than here. Plus there’s a bigger audience over there, and since both blogs feed into the WP dashboard you’re all going to see it regardless.

    It’s easy to assume that no one is thinking of you guys, I am, I was, and I did.

    And yes, I’d like to have /something/ usable in a month or so, like I said in that post “give or take a missing feature or two.”

    So, buck up. :D

Viewing 25 results - 20,226 through 20,250 (of 32,517 total)
Skip to toolbar