Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,176 through 24,200 (of 32,504 total)
  • Author
    Search Results
  • #31331
    piedpiper21
    Member

    Themes in the my-templates directory don’t seem to be applied correctly. They can be read but the thumbnail shows a blank image. When I apply, the forum works, but without any graphic element whatsoever. Looks as though it’s coded in html with the Times font.

    #77266
    taboo
    Member

    It looks great! Looking forward to using it ;)

    #31329

    Topic: Role = Main?

    in forum Themes
    Mark / t31os
    Member

    Googled, searched the forum, it’s hard to create a specific search for something like the above without getting irrelevant results..

    Had a dig and couldn’t find the answer….

    bbPress 1.0

    I’ve noticed throughout the default themes are references to..

    role="main"

    Firstly, what does this do? .. In some cases removing this from a template file reseults in the file not working.

    Secondly, is there an alternative, these lines are causing invalidtions.

    It’s not the end of the world, i can live with them, but some info on what they are for would be most helpful, if one of you lovely chaps could help.. :)

    As a side question, and this one again isn’t a huge problem, i find tabbing in code in certain files causes T_ error messages, T_SWITCH, T_CASE, depending on where and what i’m editting.. I like to indent the code appropriately when i’m working on it, but as said i simply can’t do this with particular template files..

    Any ideas on that one?

    I’m using Notepad++ and Notepad2 for editting, same programs i use for modifying WordPress. I’m using the correct encoding, transfer type etc… i’m use to handling code..

    #77264
    sdv1
    Member

    Looks great :-) Thanks for sharing snaps. btw, when it will be live?

    #77254

    In reply to: Custom user password

    piedpiper21
    Member

    You’re saying I should edit the copy in the my-templates directory? I tried that and it doesn’t work. Shouldn’t I edit the original in bb-templates? I would assume that’s what is being read to display my theme list.

    Edit: Oh I see, it displays themes in both directories. Changing that line of code has disabled all graphics on that theme though haha. Let me have a closer look at what I messed up.

    Edit 2: Okay this doesn’t seem right. I deleted the folder and just copied the kakumei theme over to the my-templates directory. Checked my admin panel and the theme shows up, but with a blank sample image. If I activate it, I get a site that looks HTML coded. Devoid of any graphics and adorned with the big shiny Times New Roman font. The same happens with Kakumei Blue. Hmm, I’ll download a free theme and see if it’s an unrelated issue.

    Edit 3: Yep, seems to be an issue with reading themes in the my-templates folder. I uploaded the Crystal theme to both of the folders, same problem. The core theme displays fine, the user theme, not as fine haha. I think it’s time to call in the experts.

    #77112

    In reply to: Topic paging issue

    _ck_
    Participant

    24mb is fine. Remember that’s per PHP instance, it’s not shared.

    My method does it all inside mysql anyway so the problem will be eliminated. If mysql has to, it will make a temporary table on disk to solve the query and it all happens in high speed compiled C which will always be faster than PHP (even with an opcode cache).

    #77253

    In reply to: Custom user password

    _ck_
    Participant

    Wait, I take that back, it’s in the theme, so you can definitely edit it.

    It’s in register.php and assuming you are using the default theme, it’s under bb-templateskakumei

    What you should first do is copy that directory to a new directory and make a directory called my-templates at the same level as bb-templates, so it would be my-templateskakumei

    Then edit the new copy of the files instead of the original and have bbpress switch to your new theme. That way when you upgrade you won’t lose your changes.

    #31326
    _ck_
    Participant

    I got tired of waiting for error pages that don’t crash the user into the default bbPress theme and logo so here’s a plugin that makes an empty post error message actually stay within your custom theme. I’ll make it into a formal plugin as soon as I make it a bit more robust.

    Let me know of other common error pages and I will see if they can be addressed via plugin vs a core hack.

    http://pastebin.com/f2e46536d

    (direct download, save as themed-error.php)

    #77257

    In reply to: Topic Templates

    _ck_
    Participant

    It’s easy to control what template loads, just override it at the end of your header.php and include any other template with any other name from there – then just make sure to load the footer manually and exit before bbPress does the rest of it’s own routine.

    #77255

    In reply to: Topic Templates

    Anonymous User
    Inactive

    Hmmm…

    it may be possible to write a short plugin to overwrite and extand the Template-Function.

    Actually the post_template() loads only the “post.php” – in functions.bb-template.php

    function bb_post_template() {

    bb_load_template( 'post.php' );

    }

    #77211

    In reply to: Issue with tags

    _ck_
    Participant

    There isn’t a line long enough to support the extra long tags. What you can do, is UNDO the   that bbPress replaces the spaces with, which will force everything to wrap. I don’t think it will look too good but it’s your call.

    Add this to a file called functions.php in your theme folder.

    (make a new file if it doesn’t exist)

    <?php
    add_filter('bb_get_tag_heat_map','wrap_tags');
    function wrap_tags($heatmap) {return str_replace("&nbsp;"," ",$heatmap);}
    ?>

    #77195
    chrishajer
    Participant

    At your web host, you already installed WordPress. So, if you’re using FTP, download bbPress to your desktop, then unzip it. It will be unzipped into a folder called bbpress. Rename that to forums on your desktop. Now, upload that whole folder to your web host, putting it into the same place where the folders wp-content, wp-includes and wp-admin are right now. If you do a directory listing there, you will have these directories now:

    forums
    wp-admin
    wp-content
    wp-includes

    Now, go to http://roadtoanimation.com/forums/ and you should see your forum installation. If you’ve already started the installation in another directory, you might need to get rid of some tables in the database.

    #29805
    anandasama
    Member

    I recently tried the different Bb quote Plugins that exists but neither of them fit my taste in a WYSIWYG environment.

    I wanted a plugin with javascript that can multiquote, and quote small parts without reload, and insert to a Wysiwyg environment.

    Then I remembered that the “quote-comments” plugin in WordPress works even with TinyMCE,

    so I copied it over to bbpress and modified it so it would call the bbpress functions instead of wordpress.

    Needed to change some calls to the post_content instead of comments too..

    It works fine for me now, but the only problem is that I can’t use the quote link from another page than the form itself. So If Im in a thread with 2 pages, the first page won’t redirect me to the form of the last page.

    Somehow I need to make a link with the quote info to get saved (somehow?) and then called into the javascript function.

    As im not the best at PhP / javascript maybe some of you here can help me.

    I managed so the PHP outputs the necessary info for the javascript to grab. But problem is how to call it from another page with a link to the last page with the form.

    1. First I need to make a Php function that outputs a different link if im not on the same page as the form. Alright but how do I send it to the last page and how do I call the javascript from the last page?

    I put the files into the my-plugins folder with a folder called quote-comments

    Here is the PHP file (It gets outputed below the post) :

    quote-comments.php

    http://pastebin.com/f6743a79c

    2. As you can see the javascript gets called from the Link, so I need to call it in another way when it’s redirected to the last page.


    Here is the JS file:

    quote-comments.js

    http://pastebin.com/f74d57ac5

    Mark that the addQuote function ISNT used if you use TinyMCE and I set to use TinyMCE = true in the php file.

    As im not so good at php im kind of lost here. But it would be nice to make it all work and clean it up and make a plugin out of it.

    #77037
    QuickD
    Member

    Anybody want to help me out with this. I am not an expert. I need someone to actually do it for me. :)

    #76978
    chrishajer
    Participant

    Would it be the same on the top of every topic, or would you want the ability to post something different on each new topic? If you always want the same thing, you could just edit the template file topic.php and put the content you want displayed there. There is also this function (in 1.0 anyway) in topic.php <?php do_action('under_title'); ?> – looks like you could hook under_title with a plugin, but if you just want the same thing at the top of topic.php, I think I would just edit the template file.

    #76248
    Rohan Kapoor
    Member

    :P I agree. Deep Integration is the way to go. See my site: http://wpmu.zyrot.com/forums/

    #76954
    gravitydk
    Member

    You can enter basic HTML in these posts, like type

    <strong>bold text</strong>

    and you will see bold text; like that.

    Alternatively you can download the bbcode plugins and bbcode buttons plugin from _ck_ (that’s what I did), which makes it easier and visual.

    #28005
    Perry
    Member

    Hey.

    I was clearing my test forums on my bbPress install, I deleted all forums and when I try to load my forums I get this message;

    Oh dear!

    Please complete your installation before attempting to include WordPress within bbPress

    bbPress is already installed.

    Perhaps you meant to run the upgrade script instead?

    What on earth has gone wrong? All I have done is deleted forums?

    Thanks.

    chandersbs
    Member

    I think this:

    <?php if( $topic->forum_id == 9 ) { ?>

    Is not working actually :(

    chandersbs
    Member

    Hi,

    How can I number the topics displayed in the Latest Discussion section?

    I know that by adding this code:

    <?php if( $topic->forum_id == 9 ) { ?>

    I get to choose which forum topics will be shown ONLY. I just want to know what exactly I should add so I can decide by giving a number which section will have how many number of topics.

    Thanks.

    #76952
    braenz
    Participant

    Thanks Batrachoid. That has been very helpful.

    “Backticks should be used to insert code in your posts that you actually want displayed for readers.”

    That’s what I was trying to get my head around. Thanks so much for your help. A bit complicated, though, I think to use a lot. And why is my post above in italics AND indented?

    #76951
    batrachoid
    Member

    This page might explain a few things for you: http://www.econjobrumors.com/topic.php?id=3608

    Backticks should be used to insert code in your posts that you actually want displayed for readers.

    #26824

    Hi there,

    I have a request from a user on my forums. I am running word press and bb press together. The user has an old account and would like to merge her newer account with the old account (to combine all her old posts to her new account). I have no idea how to do this in phpmyadmin. If someone could possibly give me a detailed way on how to do this, that would be great. I am somewhat a noob to phpmyadmin. I know how to change display name/user names in phpmyadmin, etc but I have not done much else.

    Thanks,

    Adam :)

    #76892
    Dolugen
    Member

    Fixed at last…

    I digged some database tables, and deleted the bb_integration row in wp_options, and some rows that was added later in bb_meta*.

    I pray that WP+BP+bbPress integration would be much simpler :)

    #76923
    Josh Leuze
    Member

    Thank you for the info, it was very helpful!

    @chrishajer – I checked my .htaccess file, and the permissions were incorrect, II tweaked that, and bbPress added the rewrite rules without issue.

    @incirus – Yes, my forum is converted from phpBB as well, I don’t know why I didn’t think of that before. I checked a new topic, the pretty permalink worked just fine. I checked an old topic in the database, no slug. i added a slug and it worked great.

    Unfortunately I have 875 topics that I would have to edit my hand… That’s too bad, one of the draws of migrating to bbPress are the useful permalinks.

    Has anyone out there come up with a handy script to solve this problem? I’d imagine the code is already there, since bbPress already converts your topic title into a slug, it would just be a matter of having it process all of the old titles. But I think that’s a bit out of my league!

    Hell, I’d settle for a way to use slugs from here in out, but fall back on the default permalinks if there is no slug, but I think that would be more complicated.

Viewing 25 results - 24,176 through 24,200 (of 32,504 total)
Skip to toolbar