Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,101 through 24,125 (of 32,431 total)
  • Author
    Search Results
  • #76840
    TonyVitabile
    Member

    I’ve been busy this weekend with church related activities & I didn’t get back to this post until now. I’ve also found the answer to my own question about getting the current page’s URI.

    I still have a problem to lick in that my WordPress theme came with a horizontal drop down navigation bar that works in WordPress. I included that code in the header.php & the styles from the original stylesheet for the theme, but nothing is dropping down on the bbPress side. The theme uses a JavaScript file to handle the drop-down logic that I’m including on the bbPress side, so I don’t get it. When I look at the WordPress output side by side to the output of my function, it’s identical. So it has to be something in the CSS. I think.

    Anyhow, I’m going to mark this resolved. Thanks folks

    Tony

    #77339
    _ck_
    Participant

    Trying switching to the built in kakumei and then back to your theme.

    Make sure each of your themes is in it’s own directory under my-templates

    ie. my-templates/kakumei/

    Make sure ALL the files are in that kakumei directory.

    If all that fails, do a “view source” on your page and look for the line like:

    <link rel="stylesheet" href=" blah

    and see where it is trying to load the stylesheet from.

    #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

    Markus Pezold
    Participant

    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 &nbsp; 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 :)

Viewing 25 results - 24,101 through 24,125 (of 32,431 total)
Skip to toolbar