Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,776 through 30,800 (of 32,432 total)
  • Author
    Search Results
  • #55499
    Justin Tadlock
    Participant

    Doing that for the permalink didn’t work for me. I’ve tried it several times.

    There are a couple of things I want to do with the “author” as opposed to the “last poster”:

    1) On front-page.php I want to put the topic author’s name under the link to each of the latest discussions.

    Ex:

    Link to topic

    By link to topic author

    2) On the topic pages, I want to put the name of the post, then link to the post author.

    Ex:

    Topic Title

    By link to topic author on Date/Time

    Rest of post……

    This type of setup is already on my forum. I’ve already got the author’s name already set up on the forum. I just need to get the author’s profile link.

    #55498
    Trent Adams
    Member

    For the permalinks, put the following in your .htaccess file in your root and then turn mod_rewrite on in your config.php:

    Options +MultiViews

    What exactly do you want for the last poster versus the author? Explain to me like I am 5 years old because sometimes I act like it ;)

    Trent

    #1553
    Justin Tadlock
    Participant

    I finally got everything set up at Books In Bed. The Forum is working well too. Tell me what you think of it so far.

    The problems I have had are linking to a topic author’s profile page. I can get the “last poster’s” profile page link though.

    What I think I need to do is get the author’s “user id” to do this, but for some reason I can’t get it.

    Also, I’ve tried everything on this site to get pretty permalinks working (I use GoDaddy). They’ve always worked fine on my WordPress blog, but not on bbpress. The only thing I haven’t done is /bb-admin/rewrite_rules.php because I keep getting an error when I go to that page.

    #55489
    macwise
    Member

    Many, many, many ulterior motives. ;) First of all, this is happening because I can’t seem to find any solution that will search for and filter what <u>I</u> would like it to search for and filter. Instead, it gives the cookie cutter solution.

    I am also on Dreamhost right now, coming from a dedicated hosting environment, (my own server), and since I can’t configure the stats program they have installed, nor can I easily install another of my own, I thought I’d try my hand at learning how to parse files myself.

    So this is partially for education, partially for usefulness, and partially with the hopes of developing something that the gen. public might find helpful.

    Am I wasting my, (and everybody else’s) time?

    #55488
    fel64
    Member

    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? :)

    #55328
    drmike
    Member

    Shows you how often I go into the admin side. :)

    Fixed. Thanks.

    -drmike

    #55479
    flaerpen
    Member

    It works :D

    Thanks!

    #55478
    fel64
    Member

    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.

    #55481
    fel64
    Member

    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/ :)

    #55439
    fel64
    Member

    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. :)

    #55438
    chrishajer
    Participant

    > 1) wenkong posted a topic i think in chinese

    > and now i cant delete the tag he created because

    > it wont work, he said its something to do with

    > utf8. How can I delete that tag & how can I stop

    > it from happening again

    Sorry, I can’t help with the tags. Maybe this will help: https://bbpress.org/forums/topic/433

    > 2) How many tags will appear on the start page?

    > does it go forever or is it limited to 100 etc

    It is limited, never checked how many, but it’s

    taken care of automatically.

    > 3) is there any examples of what the allowed

    > markup with backticks looks like (If ?I dont

    > know how it works Im sure my users won’t)

    <?php /* this is a block of code in backticks */
    echo "Hello.nn";
    ?>

    > 4) Is there a way to add images with a

    > softresize to a set size say 500px etc

    > or a plugin that can do it

    Not that I know of, and I know why it’s a problem (it messes up the layout when wide images are used.) Maybe just post the image parameters and ask people not to insert large images. Ban those who won’t comply :)

    But maybe someone will consider the image size limits for a plugin.

    Have fun

    #55224
    LMD
    Participant

    I’ve managed to create a plugin that adds titles to replies – and documented it. The plugin is available for download from my website:

    http://www.classical-webdesigns.co.uk/articles/36_bbpress-plugin-add-titles-to-replies.html

    Comments and suggestions are welcome.

    One other thing, re:

    “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

    That’s what I meant by using the DOM. In fact there would be no need for AJAX even – by using the javascript DOM you can ‘preview in place’ the post you are currently working on. If users do not have javascript enabled, then graceful degradation would mean that a button to view the preview on a separate page would be visible.

    #55157
    talgalili
    Member

    Thanks chrishajer.

    Since I did not yet open the forum, I don’t see a reason to try and patch it to work. (especially when I don’t know how people are supposed to login if I remove the TEMPLATE)

    I hope the issue will be resolved soon, so I could open up the forum :)

    Cheers,

    Tal.

    #55467
    Atsutane
    Member

    it seem to me u set $bb->mod_rewrite = true; Follow the instruction here and u will be fine

    #55156
    chrishajer
    Participant

    I was only kidding about making people use FF. :)

    And from experience, it might take a week or so before the ticket is assigned, unless it’s affecting a lot of people or is an easy one to fix. I wish I had the answer but I have a hard enough time just reading from right to left.

    Did you try removing the / class=”login” / from the template for the login form and see if the problem goes away in IE? At least that way it would be visible in IE, although not styled and ugly. It could be used at least temporarily until it’s resolved.

    #55464
    Atsutane
    Member

    If u want to integrate your wp with bbpress then u should use the same database. But if u dont want, having new database also ok :)

    #54653

    In reply to: Restrict New Topic

    olzvoi
    Member

    Put this code in a Plugin. The group “Member” will be affected.

    function restrict_bb_got_roles() {

    global $bb_roles;

    unset($bb_roles->roles);

    unset($bb_roles->roles);

    unset($bb_roles->role_objects->capabilities);

    unset($bb_roles->role_objects->capabilities);

    }

    add_action(‘bb_got_roles’, ‘restrict_bb_got_roles’);

    #55452

    In reply to: Ajax libs used…

    Null
    Member

    Nah protoype.js can’t be removed, cause my bbMenu plugin uses/needs it too :)

    I guess you’ll need to include your .js in your template folder and call it from there…

    #55445
    wenkong
    Member

    so nice, thank you.

    I’m using your new templates. :)

    hope new creative template release.

    #55444
    Trent Adams
    Member

    You would need to edit your template files to get rid of all the places that tags show up. If you are using the default theme, the best thing would be to edit all the files that need editing and upload them to a new folder /my-templates/themename/ as that will allow you to edit the files that you need without doing anything to the themes in /bb-templates/. Any file in the folder inside /my-templates/ will be read and if it doesn’t exist there, it uses the originals in /bb-templates/.

    Off thet top of my head, it would require editing the following files:

    front-page.php

    topic.php

    forum.php (to get rid of the place to create topic and tags)

    new-topic.php

    There might be more and I might be off on the names, but just comment out <! — and –> around any code that deals with the tags.

    Trent

    #55443
    lonemadmax
    Member

    If punbb uses the same markup in posts that phpBB uses (the square bracket things) maybe a few changes to phpbb2bbpress can give you a direct conversion script. I could have a look if you provide me with a database dump from punbb. Also, if you are trying multistep conversions, there’s a script to go from SMF to bbPress :-)

    #55418

    In reply to: Allowing HTML

    larsjensen
    Member

    I sure do, thanks a bunch! :-)

    #55338
    Staffan
    Member

    Alright! I did it. And if anybody wants to know, here’s how:

    This code in the stylesheet

    ul.taglista { list-style: none; margin: 0; padding: 0; }
    ul.taglista li { display: inline; }
    ul.taglista li:after { content: ","; }
    ul.taglista li:last-child:after { content: ""; }

    And this in topic-tags.php

    <?php if ( $user_tags ) : ?>
    <?php _e('Your tags:'); ?>
    <ul class="taglista">
    <?php foreach ( $user_tags as $tag ) : ?>
    <li id="tag-<?php echo $tag->tag_id; ?>_<?php echo $tag->user_id; ?>"><a href="<?php tag_link(); ?>" rel="tag"><?php tag_name(); ?></a> <?php tag_remove_link(); ?></li>
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>

    It won’t work in IE, but that’s fine with me. Thanks for the help!

    #54281
    spencerp
    Member

    Alright, I just went ahead and remove those two things. I’m planning on working at the Gathering theme for bbPress now… Thanks again Sam for everything! :D

    spencerp

    #52903
    spencerp
    Member

    UPDATE: I’ve decided to remove my MediaWiki, or better known as the Codex. I merely installed it to play around, customize, and get familiar with it.

    The whole reason for removing it is, I really don’t have the time for it. I don’t have time to add anything to it, make a theme for it, and customize it anymore.

    As for this article, it’s still a good reference guide as what To-Do for getting your MediaWiki, bbPress, and WP login/registration working together. :) I hope you find it as useful as I did. Well, I guess that’s it for now. Tata.

    http://spencerp.net/id/46

    spencerp

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