Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,951 through 30,975 (of 32,432 total)
  • Author
    Search Results
  • #54400
    lonemadmax
    Member

    OK, here it is. Notice though that the selection box is added using evil ways. You may be all well and good if you don’t add it, though. More info in the README.

    A few modifications and it will become a nice plugin that saves the user preferred theme in the db and id not annoying (and only works for registered users when logged in). Will that be useful to anyone?

    #54913

    In reply to: Error After Upgrade

    chrishajer
    Participant

    Error 28 is a MySQL out of disk space error:

    Error code 28: No space left on device

    #54877

    In reply to: Template Tags

    chrishajer
    Participant

    I think bbPress is still like the Wild West, and is changing so often that writing the docs would be a waste of time. It’s not super complicated, so if you have a question about how to get a specific piece of data, you can always ask here or grep through the code. There are a lot of knowledgeable people here who are very good at writing plugins. Looking through the plugin code is helpful too.

    Plugins

    Good luck and share what you learn. Thanks.

    #1466
    CMoseley
    Member

    I use aggrss to do syndication of my own website’s RSS feeds to the front page (OncTalk) and I want to be able to do the same thing on my bbPress theme (which is nearly identically to my WordPress theme). I’ve setup integration between the two theme systems, and I know it works becuase all of my WordPress Conditional tags and things I’m using in my bbPress theme are working, but when I put in aggrss, I get this error:

    Fatal error: Call to undefined function: get() in /usr/home/josh/domains/onctalk.com/public_html/wp-content/plugins/aggrss.php on line 127

    When looking up the code on that, I didn’t seen anything blatantly obvious that would cuase a screw up, but im still a beginner at this.

    This is the code around line 127 from aggrss.php:

    (From line 123-131)

    function aggrss($rssurl,$striptags=false,$num=0) {

    global $lastRSS;

    $lastRSS->CDATA= ($striptags) ? “strip” : “content” ;

    $lastRSS->items_limit=$num;

    if ($aggr = $lastRSS->Get($rssurl))

    return $aggr;

    else

    return 0;

    }

    Full view of the code can be found here.

    Any help in getting this fixed/solved would be much appreciated.

    #54820

    In reply to: Rewriting URLs

    marky
    Member

    Well, I’m still having trouble getting this working. Indeed, all I’d like to do is redirect existing links to the new topics; I don’t want to change the permalink structure or anything else.

    I’ve tried escaping the dot and question mark, but it’s still not rewriting the URL. I’m wondering, at this point, if ModRewrite can handle urls with parameters in them. I’ve tried some other quick tests (RewriteRule ^/forums/blah.foo$ /forums/topic/1/) and it worked no problem, so ModRewrite isn’t the problem itself.

    Any other suggestions?

    #53885

    In reply to: Bozo problem

    I went to the rendered page and it does say the type is supposed to be a checkbox. IE:


    <tr>
    <th scope="row">This user is a bozo:</th>
    <td><input name="is_bozo" id="is_bozo" type=&quot;checkbox&quot; value=&quot;1&quot; />

    </td>

    However in the actual view of the page it is not a checkbox but a row with a “1” that I cannot get rid of in the place of it.

    #54872

    In reply to: Sub-Categories?

    macwise
    Member

    Ha! I guess I know less than I thought I did. When follow the link to trac, I scroll to the bottom and see

    Added new patch file for build [719] i.e. 0.8.1

    I click on [719] and it takes me to a new page where I can view changes, or download a zip at the bottom. I see no option for getting a file named “categories-build719.patch”. What am I missing?

    #54871

    In reply to: Sub-Categories?

    macwise
    Member

    Perfect…looks like just what I’m looking for. I’ll post back when I screw everything up. ;)

    #1461

    Topic: Template Tags

    in forum Themes
    fel64
    Member

    I would like/want to know about all the various template tags there are. For example, I wanted to change the way authors are presented next to their post, but found it impossible without changing core files (and those fairly confusing anyway). It would be nice if there were more template tags like there are in wordpress, so that I could call the_author(), the_author_title(), the_author_website(), the_author_profile() (or some variation with parameter-passed requested details). I’d like something, in other words, that was simple and straightforward to use, where looking over code you could immediately see the function. Maybe it’s implemented but I couldn’t see it?

    If they exist, then at least a list of them would be nice.

    More template tags would be great.

    #53884

    In reply to: Bozo problem

    fel64
    Member

    I have the same screen as radkitten, but I do not notice anything out of the ordinary. I don’t have to approve posts, for example. I’m using a .81 install (first version I installed), with a handful of plugins (post count, smilies, quick buttons on the post box).

    Looking at the page source code, type=""checkbox"" and value=""1"" (yes, there are double quotemarks).

    <tr>
    <th scope="row">This user is a bozo:</th>
    <td><input type=""checkbox"" value=""1"" id="is_bozo" name="is_bozo"/>
    </td>
    </tr>

    I went to template-functions, to bb_profile_admin_form, and found no code for inclusion of a bozo checkbox, but code to include a custom member title etc.

    Edit: yeah, it is trying to double-escape my quote marks when I edit. I had to remove the original forward slashes now to avoid this.

    #53883

    In reply to: Bozo problem

    chrishajer
    Participant

    radkitten, that’s interesting. It’s supposed to be a checkbox as seen in this screenshot: http://www.chrishajer.com/bike/XLF/bozo2.png

    Can you post the relevant source of the rendered page to see if the input is type=”checkbox” like this?

    <td><input name=\"is_bozo\" id=\"is_bozo\" value=\"1\" type=\"checkbox\">

    edit: those slashes do not appear in the HTML, just here after I pasted the HTML. I thought I saw a trac ticket for that already :

    https://trac.bbpress.org/ticket/596

    edit2: they had one slash added the first time, then I edited above and a 2nd slash appeared, now I am editing now and I suspect there will be a 3rd slash when I check again.

    #54328
    donnavitan
    Member

    Hello chrishajer,

    I’m definitely seeing the () error when I look at the source.

    I have installed the latest xampp, wordpress and bbpress locally for testing purposes. My config is as follows:

    $bb->wp_table_prefix = 'wp_';

    $bb->wp_home = 'http://localhost';

    $bb->wp_siteurl = 'http://localhost';

    I really don’t think I should be getting this error, so must I configure something else? Any help would be greatly appreciated. Thank you.

    #53881

    In reply to: Bozo problem

    Yeah, I am currently running 0.8.1 and I don’t have a checkbox on user profiles to un-bozo them :-/

    I just installed this like 2 days ago.

    #54870

    In reply to: Sub-Categories?

    Sam Bauers
    Participant

    There is another more vanilla implementation here.

    You should use the patch that corresponds to your version. Check the ticket to find out which is which.

    If you upgrade then you need to grab the latest patch (preferably made for that version) and re-apply it to your code.

    #54890
    acefinale5
    Member

    In my case, I would like to see the following capabilities be added into the code:

    1. Deleting a particular “deleted” post. (e.g. I certainly wouldn’t want to see a post packed with profane wordings again. NOT EVEN in my admin panel.)

    2. Automatic/Manual cleanup of “deleted” post (e.g. Removing all “deleted” posts that are older than 6 months / 1 year / 2 years….)

    3. Automatic/Manual cleanup of all posts (e.g. Removing all topics that had no replies in the last 6 months / 1 year / 2 years….)

    Thanks a lot!

    –acefinale5

    #54326
    kirkk
    Member

    <link rel="stylesheet" href="http://chezmauricekusadasi.comyeniforum/bb-templates/kakumei/style.css" type="text/css" />

    This is the site

    Could it be the reason that i see my site unstyled on Firefox2 ? You can see the slashes arent arranged in order. Some of them head to left and some of them right ?

    #54889
    Trent Adams
    Member

    Short of actually going through the database and deleting the topics using phpmyadmin, I don’t know of any tool that is available to delete the posts that ‘already’ deleted! I would imagine that a plugin could be written to do this for you, but in terms of space, I don’t think that a post takes up very much space in the database, but your point is taken with great attention! I would love a simple plugin to do this as well to clean up posts and topics and there are many great code writers that use this forum and I wouldn’t be suprised if one comes up to do just this!

    Nice point!

    Trent

    #1463
    acefinale5
    Member

    Hi, this is a newbie to bbPress. Thanks for the great work.

    Just want to ask before deploying the code into a semi-production environment.

    It’s great to hear that deleted posts can be undeleted.

    But, how am I going to clean up posts that I’m sure I no longer need anymore?

    I pay for web hosting and don’t have a very large database.

    Thanks a lot. Take care.

    –acefinale5

    #54670

    In reply to: Import SMF to bbPress

    lonemadmax
    Member

    I’m very sorry. My SMF forum was not in UTF-8. If your try was in a test bbPress forum, try again deleting all utf8_encode calls in the script (leave the argument, of course).

    #50261
    Pravin Paratey
    Participant

    Me too. It’s not done yet. Trying v0.8.1 now :D

    #54834

    In reply to: .htaccess/Cookie woes!

    macwise
    Member

    STATUS: RESOLVED

    Ziyphr,

    I’ll preface this by saying that I love Ahi Tuna dishes at restaurants. What is it about that huge hunk of raw fish meat that’s only seared to (probably) keep men’s wives from refusing to share a bed with a man who would eat a classic “dry heave” food. So, why do I like it? Well, it’s not the big chunk of meat that draws me in and pleases my palate. It’s the simple glaze that I often find on top; the light, sweet sauce that perfectly compliments the fish. As they say, “The secret’s in the sauce.”

    So, the “sauce” for this problem was the secret, and the sauce ended up being all too simple. Ziyphr first directed my friend and I to wp-settings.php. (He said to check out line 185, but mine was around 151-160). I found the code that called the siteurl and home, both of which would have returned http://babyquestions101.com, as that is what I have listed in my admin panel. I thought I needed to modify those to somehow spit out two domains, with the www and sans.

    My friend also informed me that he believed that cookie domains really need two dots, the first before the domain and the second after the domain but before the ‘com’. In my case it would be .babyquestions101.com. How to get ‘siteurl’ or ‘home’ to reflect that was a challenging thought.

    One side-note for anyone trying this same thing, DON'T CHANGE YOUR SITE ADDRESS OR HOME ADDRESS TO ANYTHING OTHER THAN \"WWW.MYURL.COM\" OR \"MYURL.COM\" IN THE ADMIN PANEL. Doing so will cause you more headaches than when you meet your mother in law for the first time. (Ok, that was an exaggeration, but only slightly).

    Once I got that mess sorted out, we tried to hard code in the .babyquestions101.com, replacing

    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); with

    define('COOKIEPATH', '.babyquestions101.com');

    This didn’t work, and all hope was lost. Curiosity getting the best of me, I opened up my preferences panel in Safari and pulled up the list of all my stored cookies to see if there were any similarities/discrepencies between my cookie and other sites’ cookies. This is where I saw my cookie had the value “www.babyquestions101.com” under the heading “website” where most other sites were listed as “.siteurl.com”, missing the www that seemed to be plaguing me. I decided that was what I needed changed, and when I looked back at the code in wp-settings.php, I discovered that line 160 was unique from the others.

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', false);

    I decided to change this to this:

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '.babyquestions101.com');

    What do you know…I dumped my cookies for my site, refreshed the page, logged in, checked the cookie, and there it was, ‘.babyquestions101.com’. Now for the true test, I got rid of the ‘www’ in the address bar, hit return, and VOILA! I was still logged in. Everything was seamless. I was now the owner of a spiffy wordpress/bbpress integrated site that shared cookies across sites and subdomains. No crazy .htaccess directives, no checking and double checking every last link in my site to reflect my choice of domains.

    This is the way it should be done. I’m quite surprised it was such a simple solution, and that nobody seemed to be aware of how simple the solution is. I hope this is helpful to someone else trying to share cookies across multiple subdomains.

    #54867
    macwise
    Member

    I can confirm that I have the same code, the same behavior (no users displayed), and had the exact same assumption when I came across it. I was expecting some results to show up when a username was searched for, but alas, none of the results reflected a query for usernames.

    So, no solutions, but a chime in from Macwise…

    #54669

    In reply to: Import SMF to bbPress

    vedmak
    Member

    Script works, but i have problem. All not english (russian) symbols convert in questions (???????).

    Example:

    Before – “Эволюция Красоты (YouTube)”

    After – “??????? ??????? (YouTube)”

    My smf forum 1.1.2 and all database in UTF-8. Its strange why script dont understand russian characters. Anyway thanks.

    #1459
    chrishajer
    Participant

    When I upgraded from .73 to .80, the search stopped finding users. In the templates folder, search.php, this code exists:

    <?php if ( $users ) : ?>
    <h2><?php _e('Users')?></h2>
    <ol>
    <?php foreach ( $users as $user ) : ?>

    which makes me THINK it should display users, and it used to display users, but it doesn’t any more. There were quite a few changes in that file between versions. Does anyone else have this problem? Try searching your forum for an exact username and see if you find any users. It also used to match part of a username, so searching for “river” would return “riverside” and “riverfront” if those were valid users.

    Anyone?

    #51970
    fel64
    Member

    I like this plugin a great deal, because it works so nicely right off the bat :D

    Since my forum is in a subdomain, I had to change the code a bit (just coded in the location of my forums instead of letting it grab my blog location and adding a path). But a very minor thing to do for a very nice plugin. :)

Viewing 25 results - 30,951 through 30,975 (of 32,432 total)
Skip to toolbar