fel64 (@fel64)

Forum Replies Created

Viewing 25 replies - 951 through 975 (of 1,001 total)
  • In reply to: Duplicate Posts

    Chris, lovely code, works straight away. :D Implemented in my forum, the button instantly disappears and double-posting is impossible. Thanks a lot!

    If anyone else wants to implement this but is unsure how, go to your theme (or Kakumei?) and open post-form.php using Notepad.

    Find the line that says:

    <input type=”submit” id=”postformsub” name=”Submit” value=”<?php echo attribute_escape( __(‘Send Post »’) ); ?>” tabindex=”4″ />

    and change it to

    <input type=”submit” id=”postformsub” name=”Submit” value=”<?php echo attribute_escape( __(‘Send Post »’) ); ?>” tabindex=”4″ onclick=”this.style.display=’none’;” />

    (Could someone please add the overflow: auto property for posts in this theme’s CSS? It’s incredibly inconvenient for code running over several lines.)

    Oh yes, I forgot about that. Sorry.

    This should work only in posts:

    .post img {
    max-width: 600px;
    max-height: 800px;
    }

    I think the max-dimension doesn’t work in Internet Explorer, not sure how much that bothers you? You can additionally add:

    .post {
    overflow: auto;
    }

    so that images larger than your post area will not break the layout but simply have a scrollbar at the bottom to navigate it. :)

    Chrishajer, a neater version of your code is:

    .post {
    overflow: hidden;
    }

    I suspect although I haven’t tried it. :)

    What I use is

    .post {
    overflow: auto;
    }

    which annoyingly is not the automatic setting … what it does is wrap text normally unless text/links are really long, in which case it displays a scroll bar at the bottom of the post. Works a treat for images, too. :) Also good for code which isn’t wrapped.

    In reply to: web designing

    Never click their links – they’ll be able to see where the clicks come from, and if they get traffic from here they’ll try again :) Copy and paste the URL into the browser if necessary.

    In reply to: User profile link

    Thanks a lot for posting it here afterwards. :D What other bb_options are there/where did you find them?

    If you log in incorrectly it should take you to the ‘incorrect login’ page. It should always do this.

    Otherwise, force refresh by pressing Ctrl + F5. I found it an annoyingly simple solution when I was accessing the forums from somewhere other than the usual and I just couldn’t log in – turns out I was always logging in and it just cached the old, unlogged-in version of the page.

    They don’t have to be in the same folder, I for example have got them in different subdomains and have no problem.

    Meh, I have little/no experience with handling files myself. Might be easier, though, for you to modify some existing code? There’s already been a lot of very sophisticated work done in statsgathering. I’m thinking of Reinvigorate, for example – not trying to discourage you, just find the most practical solution? I mean, are you in it purely to make the plugin or is there some ulterior motive? :)

    There is a line in the quote plugin that converts all special characters to their HTML equivalents.

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>');

    (Some code is cut off to the side because of the forum’s limited width) I assume that the problem lies here. My guess is that it returns a different character format to the one your browser is using?

    Get your quote.php file in your plugin folder and change this code to

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>', ENT_COMPAT, 'UTF-8');

    Upload the new version to your server and see if it works. :) If not, undo changes, save and upload the original file.

    That’s just my guess; the first thing I would try. I don’t actually know.

    It depends on the amount of work you’re willing to put in as well as the complexity of your WordPress theme (assuming that you’re trying to match your bbPress theme to your WP theme?). Using CSS (which is what you use to style the site) is simple and enjoyable to me, but you may prefer to just get someone else to do it.

    Everything is in plain English and the format is simple. Have a look at http://www.w3schools.com/css/ :)

    What do you mean? Pagination for the list of topics shown, or show page numbers (clickable links) of threads in the list?

    And did you have any success?

    I think you could destroy the tag with phpMyAdmin or some other way, directly in the database, right?

    I don’t recommend that at all, because I assume that there’s a topic/tag-matching table somewhere and if that can’t find the tag in the other table things will get extremely screwy.

    It is very rarely a good idea to directly modify the database.

    Very simple way to softly resize your images: go to your theme’s folder, open style.css, and copy in this code at the bottom:

    img {
    max-width: 600px;
    max-height: 800px;
    }

    You can change this to any values you like, but I think 600px width works with the default theme at least. Make sure there are no spaces between the number and the px. If you don’t care about height you can just take that line out. Any bigger images will be scaled down automatically – they will still load at full resolution/size, but they will display smaller. :)

    Judging by the wordpress system (the documentation is quite good), 10 is default priority and plugins are executed in order of descending priority (so a plugin of 1 comes before 2). In WP the last two arguments are optional.

    Preview sounds good – but better yet would be an AJAX thing that means you don’t even have to reload the page when you post. :D

    “As well, if you have an integration with WordPress, bbPress integrates logins perfectly with WordPress.”

    That said, if they are in different subdomains you will have to tweak some files (currently, anyway). But it’s two lines that need changing in total, and it’s very simple. :)

    If you’re planning to install WordPress, look for a WP plugin that does whatever you want and logs you in – there are way way more WP plugins than bbPress plugins.

    Err … probably! In WordPress you have both hooks and filters, where hooks are there to add actions and filters to change the data going to and leaving the database (like your post – adding stuff to links etc), but they’re almost identical. Never used this in bbPress.

    You should use hooks to make it automatically call your function when that hook is called – the syntax is something like add_action('hook name', 'function name') if I recall correctly. Look at existing plugins for details of how to do it.

    There isn’t a reference for hooks that I’m aware of, sorry.

    Same thing again, it’s great. Why don’t you make an entry in the plugins DB for it? https://bbpress.org/plugins/add/

    If it’s in the Trac and it’s been assigned to someone then yeah they’re probably working on it?

    The obvious thing is, sure you entered/checked the right email?

    Not sure how much control you have on the server, but you could go into PHP MyAdmin or somesuch and check/change the passwords (they’ll have to be md5 encrypted, though).

    If that’s too techy, I think you’re going to have to reinstall. Might be simpler?

    I can’t help you directly, but looking at it through Firebug in FF I notice that the second <p> element in the login form (containing the username, password and submit items) seems to have no area. I can’t see why, though.

    The bozo problem has a fix now, so if you can get your theme sorted you’re set. https://bbpress.org/plugins/topic/37?replies=4

    Brilliant – works straight away again and has all the options I wanted. Thanks. :D

    Why not have the server zip the theme every time a theme is added? Minimises work on all sides.

    Very nice work. I especially like the don’t show for … settings. It feels very professional. :)

    In reply to: Bozo problem

    Interestingly, my bozo problem seems to have matured/reached Phase II, during which all posts I (and perhaps some, though not all, others) make are marked as spam.

    Are you using xampp? I’ve no experience with that whatsoever, but since it’s a path on your hard drive it seems that way to me. I’ve seen a few people say they’ve had problems using bbPress with that, and someone rightly point out that if you test on xampp you’ll get a bunch of errors you wouldn’t get on a server and miss the ones you would get.

    I’ve personally had no problems on my server, and if you already have hosting and an unused or wordpress db then there probably isn’t any harm in just testing it on the server. :)

    Edit: err – hehe …

Viewing 25 replies - 951 through 975 (of 1,001 total)