Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

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

    Depending on how many members you are talking about, or how many time you expect a new post to be on the forum, i would definitely be sceptical of something like this. It’s a massive hark back to the old ways of doing things.

    So my suggestions:

    1) When you make a new post, physically email everyone.

    I’m not sure when e-mail became incredibly difficult to do manually.

    2) If you really want to write a plugin it should go something like:

    function notification_new_post($post_id=0) {
    global $bbdb, $bb_table_prefix, $topic_id, $bb_current_user;

    $all_users = $bbdb->get_results("SELECT ID, user_email FROM $bbdb->users WHERE user_status=0");
    foreach ($all_users as $userdata)
    {
    $message = __("There is a new post on: %1$s nReply by: %2$s nText: %3$s nn%4$s ");
    mail( $userdata->user_email, bb_get_option('name') . ': ' . __('Notification'),
    sprintf( $message, get_topic_title($topic_id), get_user_name($bb_current_user->ID), strip_tags(get_post_text($post_id)), get_topic_link($topic_id) ),
    'From: '.bb_get_option('name').' <'.bb_get_option('from_email').'>'
    );
    } //foreach
    }
    add_action('bb_new_post', 'notification_new_post');

    You may need to edit some of that code, but found that by searing for email notification on this website (props to Thomas Klaiber who’s code i quickly edited). Amazing what searching first does :)

    Again Neotoxic, i strongly suggest against this unless you know for sure that everyone’s going to be ok with getting an email everytime. RSS readers on email clients, phones, browsers etc save so much hassle…

    Take Care

    #33010
    #84628

    In reply to: BBPM Translation

    Step 1: open google.com

    Step 2: type in ‘bbpress process translation file “.pot” ‘

    Step 3: click on the first link.

    Step 4: do what it says

    Step 5: ???

    Step 6: Profit :)

    And Jongeren Forum, with all due respect, we answer your questions, and you don’t seem happy. We’re not going to do it all for you, this isn’t our job :)

    Maybe next time follow the advice given and also say THANK YOU to people like Olaf that reply, whether you think it’s “not usefull for me” or not. Manners cost nothing :)

    #61353

    In reply to: get favorites list

    The entire website?

    So it’s going in an infinte loop?

    Please, be less specific, don’t post any code, oooh and don’t include a screenshot. Guessing is a really worth while use of my time :)

    #61352

    In reply to: get favorites list

    56alifar
    Blocked

    Like i said, i got the entire website loading serveral times in my sidebar where i put the code.

    #61351

    In reply to: get favorites list

    What error do you get mate?

    :)

    #84188

    In reply to: Thanks plugin

    bingsterloot
    Member

    @ Paulhawke

    I rest my case :O) works perfectly now. Thanks a lot for your fast updates.

    #61350

    In reply to: get favorites list

    56alifar
    Blocked

    Nope didn’t work, i got the entire website loading serveral times in my sidebar where i put the following code:

    <?php

    $topics = get_user_favorites( $user->ID, true );

    $favorites_total = isset($user->favorites) ? count(explode(',', $user->favorites)) : 0;

    bb_load_template( 'favorites.php', array('favorites_total') );

    ?>

    #77325
    Michael
    Participant

    @Shagalaga – That has already been mentioned in this post.

    @Sam – Nice to see you’re still checking bbPress updates. :)

    #61349

    In reply to: get favorites list

    chrishajer
    Participant

    Was that snippet of code wrapped in <?php tags ?>?

    <?php
    $topics = get_user_favorites( $user->ID, true );
    $favorites_total = isset($user->favorites) ? count(explode(',', $user->favorites)) : 0;
    bb_load_template( 'favorites.php', array('favorites_total') );
    ?>

    #61347

    In reply to: get favorites list

    56alifar
    Blocked

    Sorry, a bit of a PHP Noob, if I insert the following code in my template:

    $topics = get_user_favorites( $user->ID, true );

    $favorites_total = isset($user->favorites) ? count(explode(‘,’, $user->favorites)) : 0;

    bb_load_template( ‘favorites.php’, array(‘favorites_total’) );

    I get an error

    #61346

    In reply to: get favorites list

    Two ways:

    1) It’s an array, so just cycle through it and output the bits you want, this will allow you to style it as you please. If you’re unsure of what it returns use: print_r($topics);

    2) Alternatively, you could just copy all 3 lines from the Favourites.php file:

    $topics = get_user_favorites( $user->ID, true );

    $favorites_total = isset($user->favorites) ? count(explode(‘,’, $user->favorites)) : 0;

    bb_load_template( ‘favorites.php’, array(‘favorites_total’) );

    This will output the favourites in the way you’ve described in your template folder.

    ==========================================

    At the end of the day, BBpress has a number of issues, but if it can already do something, all you really need to do is copy and paste the code :)

    #61344

    In reply to: get favorites list

    Looking in “favourites.php”, right in the root of BBpress (so its not hidden), i found this:

    $topics = get_user_favorites( $user->ID, true );

    I’d use that and output the array, but then again, i’d not have bumped 2 different 2 year old threads, let alone doing it before looking in the file cunningly named Favourites.php ;-)

    #84185

    In reply to: Thanks plugin

    bingsterloot
    Member

    Hi Paulhawke

    Thanks a bundle, it works like a charm :O). I have only one thing left which is very minor.

    Would it be possible to use Ajax when you have voted, so the vote appears right away, instead of having to reload the page before it appears?

    Bingster

    #84591

    In reply to: BBPM Problem

    paulhawke
    Member

    I installed the plugin, deleted the table … then walked through rebuilding the database from what I saw in the code. The following SQL is an export of my bb_bbpm table direct from mySQL. If you run it, you should get PMs back up and running.

    CREATE TABLE IF NOT EXISTS bb_bbpm (

    ID bigint(20) unsigned NOT NULL auto_increment,

    pm_title varchar(100) collate utf8_unicode_ci NOT NULL,

    pm_read tinyint(1) NOT NULL default 0,

    pm_from bigint(20) unsigned NOT NULL,

    pm_to bigint(20) unsigned NOT NULL,

    pm_text text collate utf8_unicode_ci NOT NULL,

    sent_on int(10) NOT NULL,

    del_sender tinyint(1) NOT NULL default 0,

    del_reciever tinyint(1) NOT NULL default 0,

    reply_to bigint(20) unsigned default NULL,

    thread_depth int(10) unsigned NOT NULL default 0,

    pm_thread bigint(20) unsigned NOT NULL,

    PRIMARY KEY (ID),

    KEY pm_to (pm_to,pm_from,reply_to),

    KEY pm_thread (pm_thread)

    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;

    #32991

    Topic: Kakumei WP Theme

    in forum Themes
    josh16
    Participant

    Okay, so I’ve successfully integrated both WordPress and bbPress and combined the themes into one. I wanted to try this since no one else has. So, I used the bbPress Kakumei theme because styling from a WP theme was much to hard at this point given that the whole bbPress template would’ve needed to be redone. Anyways, the header was probably the easiest since I simply copied and pasted the code.

    It’ll sone be up for grabs if I can get all the other template files together. I’m wondering, though, if I should give credit to Bryon Veloso since it was based off of his theme(?)

    Here is my demo site (the site I designed it on): http://thevaultonline.megabyet.net

    Comments/Critiques?

    #84182

    In reply to: Thanks plugin

    paulhawke
    Member

    Great feedback, thanks!

    I’ll modify the plugin so that if you’ve already voted I’ll have it take away the voting link.

    I’ll also look at writing out a list of who has voted “thanks”, but by default that output will be turned OFF. You will need to enable it via the admin interface.

    Is anyone running this plugin on the 0.9 branch of code? I see no reason why it shouldnt function, but someone has asked if it does. If someone can give me a yes / no on that I’ll amend the “Requires version” tag accordingly.

    #32989
    chandersbs
    Member

    Okay, I have this plugin found on this uri activated: http://bbpress.org/plugins/topic/bbpress-mobile/

    I’m using bbPress 1.0.1

    Not working.

    I’ve added in the file bb-mobile.php the user-agent for iPhones Safari 4.0 mobile

    also i added a user-agent switcher addon (https://addons.mozilla.org/en-US/firefox/addon/59) on my firefox, but even if the user-agent is recognized as safari 4.0 mobile — tracked by getclicky, the website is not being shown in a mobile friendly version.

    Suggestions?

    #84517
    chrishajer
    Participant

    I believe those my- folders are still needed. What makes you think they’re not?

    1.0.2 was creating the folders with the wrong permissions, 0750, instead of 0755, but that bug was fixed I believe, just not packaged and released yet. https://trac.bbpress.org/ticket/1139

    #84511

    In reply to: Plugin Upgrades

    bingsterloot
    Member

    hi all and thanks for your answers which were (not what i hoped for) but expected ;O) I know going back to v. 0.9 would solve most problems, but i have based everything on the latest build and i am quite happy with that. I will just have to wait and see where things is going :O)

    thanks

    #84516
    petroski
    Member

    Yes, same here and same result – and I redid it over again with no satisfaction.

    A couple of things to note.

    When you create the bbpress sub-folder within the wordpress folder, one needs to make the bbpress (or forum, etc.) folder writable so that the install can write the bb-config.php file.

    I also note that the install (v. 1.02) created the no-longer-used folders my-plugins and my-templates, which I believe is a remnant from older versions, with apache permissions – meaning that I’ll need to telnet in and remove these from the command-line – something that the average wordpress user would like to avoid.

    In looking around at what’s going on with BBPress and WordPress integration; my comment is that I primarily deploy WordPress as a CMS solution so my vote is for integration as a short code plug-in for WordPress. I also see the need for BBPress as a stand alone application – perhaps a fork in the road is the best solution?

    #84491
    Pomy
    Participant

    @ kevinjohngallagher

    Nothing is impossible, even the word impossible says it self, i.e. I+M+Possible…

    so don’t lose ur hopes, may be one day we get its solution :)

    #84507

    In reply to: Plugin Upgrades

    Hi there,

    This is someting bandied about every now and then. There are a few issues stopping this from happeneing

    1. A new version of BBpress is coming out soon
    2. Given BBpress’s track record, it might/will/possibly break all/most plugins
    3. Who should determine which are the most used plugins
    4. How do we know which ones work and don’t work

    _ck_ gave up a huge amount of time for BBpress, and in the end, did not get the same value back out of BBpress/Automattic/Community. Its hard, as a developer, to see what happened with _ck_ and want to go down that path until things are sorted out.

    I wouldn’t waste any time developing plug ins for a platform that I know is going to change in the near future, possibly breaking my plug-ins again

    -chrishajer

    Chris Hajer is one of, if not the, moderator around here, and a well respected cool calm person. Even Chris, who obviously shares our love for what BBpress could become, feels that plugin development right now would be a waste of time.

    If you have a specific bug with a plugin, come back and post it here. It might be a quick fix. But if you’re looking for “the coders here” to rewrite a bunch of plugins off our own backs, well, it ain’t too likely i’m afraid.

    Take care.

    #32982

    Topic: Plugin Upgrades

    in forum Installation
    bingsterloot
    Member

    Hi all

    Would it be possible for the coders in here to upgrade the most used plugins even though it is not made be them?. I am talking about some of CK´s, the rating plugin etc.

    Cheers

    #84484
    johnhiler
    Member

    I get a lot more than 3 good posts in my spam queues every day… but my forum does 3.5k-5k posts/day, so on a percentage basis I can’t complain. The real problem is when a long-time user gets stuck in spam – they get SO upset! That’s why I wrote some code to let them skip the spam software completely…

    @onthebeach96 – Dunno much about phpbb… sorry I can’t be of more help! I used to really struggle with undeleted spam posts, before I installed this batch edit plugin which made life so much easier!

    https://bbpress.org/plugins/topic/mass-edit/

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