Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,901 through 31,925 (of 32,294 total)
  • Author
    Search Results
  • #990

    Topic: My simple theme.

    in forum Themes
    xoyi
    Member

    Simple theme with the posibility to put ads on the right and left :-)

    http://forum.lividu.com/

    #1009
    Trent Adams
    Member

    On the bottom of my register.php page I have an error and it doesn’t have all the information needed for my registration form. The error is:

    bb_get_user needs a numeric ID

    Check it out at:

    http://blog.trentadams.ca/forum/register.php

    I cannot register users without it, so I guess I better fix it!

    Thanks in advance,

    Trent

    #51751
    ear1grey
    Member

    Probably quotes:

    $bb->wp_home = "http://canadanoise.com"; // WordPress - Options->General: Blog address (URL) // No trailing slash

    #51267
    so1o
    Participant

    the easiest way right now is to change the function tag_heat_map()

    change the line

    uksort($counts, 'strnatcasecmp');

    to

    asort($counts); //or

    arsort($counts); //reverse

    may we should have a filter in the function make it pluggable..

    #51486
    ardentfrost
    Member

    Yeah, IE6 kinda screws the pooch with css. I suggest adding in a commented out section after the original section that just doesn’t show the avatars. IE6 will read what’s in the commented out section, but firefox will not. This will mean that people with IE6 cannot view avatars, of course, but that browser sucks anyway ;)

    The problems are fixed in ie7.

    #997
    ear1grey
    Member

    There’s a sub-forums ticket open at the moment, assigned to Matt, and I thought have have a quick think-aloud to see how feasible this idea is…

    I think the combination of forums, sub forums and tags encodes too much structure into the application and the db; I can see another (possibly more flexible) way of delivering the same capabilities, which involves three steps:

    1. Add descriptions to tags, so they can behave like forums.

    2. Remove the old forums altogether and instead allow tags to be sticky – sticky tags then go on the front page, with their descriptions, like forums.

    3. Avoid the restrictive tree structure of forums and sub-forums by using a graph – i.e. in the same way that any post can be linked to any tag, any tag should also be able to be linked to any tag.

    The net result would be the same operation for the user, but more more potential for adaptive content structure and semantically rich navigation by, for example, seeing related articles from “nearby” tags.

    There’s probably other advantages, and maybe caveats that I’ve not seen… :)

    #995
    aleister
    Member

    I just finished installing bbPress for the first time, and I like it very much. I just wanted to say great job! :)

    It was very easy to customize the template to match my custom WordPress theme.

    If you would like to check it out, it is at http://www.dagondesign.com/forum/

    #51617
    johanmaelson
    Member

    dunno … i’m using Opera and FireFox 2.0 .. no problems within log in o.O

    #51649

    UPDATE:

    Now users can decide if they want to receive emails on their favorites. There is no need to change templates, simply upload the plugin =)

    #51630
    johanmaelson
    Member

    thx :)

    Sorry but do not want to use js for this did :) i’ll try to solve this by css

    #991
    johanmaelson
    Member

    you can check it out here :)

    http://www.forum.faces.kz , but some issue in IE some bug within image swap on mouse over but i nevermind, use Opera of FireFox :)

    #51338
    johanmaelson
    Member

    I have added Wysiwyg to bbpress as a first. I choosing TinyMCE dunno why … maybe cuz i haven’t ever use this one. But it’s relay roxx nice organization and realy lightweight. Author of this subject using fckeditorm …. but this wysiwyg so slow … oh meine god …

    After inserting to my bbpress TinyMCE … i’m starting to play within tags … something doesn’t works cuz BBPRESS cut out disallowed tags … i thought that i can just edit some code in bbpress plugin for image tag. After some manipulation my wysiwyg work’s well but not good as i want :)))

    you can check out my bbpress forum and skin which i make for it here http://www.forum.faces.kz

    all suggestion and questions send to johanmaelson at gmail dot com .. or post here i’ll check this three :)

    links : http://tinymce.moxiecode.com/ – TinyMCE ;)

    forum page within TinyMCE : http://forum.faces.kz/topic/1?replies=10

    #51337
    circuit
    Member

    thanks for the instructions. unfortunately it doesn’t work for me.

    on the page you linked to, there are two pieces of advice as to where to put the editor files:

    “create a directory in the root directory called “editor” and then upload the same directory from their download page. Then drop the .js files into your root, and place the fckeditor.php file where ever you want (i chose the my-templates directory) and call it accordingly.”

    or

    “unrar FCKeditor_2.3.2.zip into my-templates”

    Wherever I put it, it doesn’t seem to work. I have tried a directory within my-templates, dropping it directly into my-templates, and putting the relevant files in the root with my-templates holding the PHP file. In all cases I edited the path in the replacement code accordingly.

    I think it’s including the PHP file OK, but I guess there is an iframe where the FCKEditor box should be, and that is just pulling the home page of my site (i.e. a 404 error, as far as I can tell).

    #50351
    circuit
    Member

    This isn’t a great solution. For those of us who are not in the same timezone as our server, the board times are inaccurate even though the ‘freshness’ problem is solved.

    There must be a way to correct this, surely it would just be a case of adding the difference in hours back on to the time? Can anyone suggest where and how to replace this code?

    It will definitely make our board confusing for people if all the times are seven hours out.

    #51286
    sevendotro
    Member

    I’m useing wp 2.0.5 and bbpress 0.73

    Anyone? :)

    #989
    intelliot
    Member

    Hey, I’m interested in the idea of doing free bbPress hosting, much like WordPress.com is doing for WordPress. I have a lot of experience in this area, having done it with other forum software, and even doing some experimental multi-WordPress work even before mu came out. If you’re a PHP coder, MySQL admin, and/or Internet entrepreneur, contact me!

    AIM: intelliot

    Google Talk: elliot.lee at Gmail

    #51405
    ardentfrost
    Member

    Oh, mine didn’t do that :( I had to create the tables myself. Once I created them, though, the plugin rocks :) Saved me some time certainly b/c it was on my list of plugins to write.

    #51404

    the *first* time after you’ve installed the plugin, it will display this error, but then the table will be added automatically and there shouldn’t be any errors any more =)

    #51626
    ardentfrost
    Member

    How did you get your hot tags to come out in various sizes like that? When I set it up, the hot tags only come out the largest size and never change :( I don’t know if a div is overriding it or what.

    You need to adjust your GMT offset in your config file by an hour. That’s why your freshness is saying (-1 years) for recent posts.

    #988
    joebarone
    Member

    so here’s my first attempt at tweaking bbPress for my own purposes:

    http://www.joebaronedesign.com/forum

    wondering if I should keep hacking away at the hard code to change the layout and overall appearance, or if i should just wait to upgrade when the new version of bbPress is released… because I have no idea what I’m doing in CSS and PHP…drrrr

    #51590

    In reply to: Google Adsense

    ear1grey
    Member

    Hi Null, to do that you need to change your template a bit and create a new hook, which is dead easy, and a testament to the flexibility of the event model that underpins both WP&bb.

    1. Copy topic.php from bb-templates into my-templates (you may need to create this folder).
    2. Find the for loop near line 29 – it will read something like this: <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    3. Immediately before it (outside the loop, but inside the <?php) add the line $need_to_show_ad=true;
    4. Then change the line <?php bb_post_template(); ?> to read <?php bb_post_template(); if ($need_to_show_ad) { do_action('showadvert'); $need_to_show_ad=false; } ?>
    5. Finally, change the action in the plugin so it fires on your newly created hook add_action('showadvert', array('bb_adsense','wide_advert'));

    … and an admin page? Maybe when bbPress matures!

    #926
    sevendotro
    Member

    Hello world :)

    I need help from you.

    http://www.glosar-media.ro – it’s the domain

    http://www.glosar-media.ro/forum – here is the forum

    It dosen’t seems to be integrating with WP :-S

    1. I want to colect users from WP db

    2. I can’t login, the user & pass dosen’t work…

    Pls help!

    My config.php:

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!
    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
    // Adjust the domain and path to suit your actual URL.
    // Just the domain name; no directories or path. There should be no trailing slash here.
    $bb->domain = 'http://www.glosar-media.ro'; // Example: 'http://bbpress.example.com'
    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.
    $bb->path = '/forum/'; // Example: '/forums/'
    // What are you going to call me?
    $bb->name = 'New bbPress Site';
    // This must be set before running the install script.
    $bb->admin_email = '[edited by Trent]';
    // Set to true if you want pretty permalinks.
    $bb->mod_rewrite = true;
    // The number of topics that show on each page.
    $bb->page_topics = 30;
    // A user can edit a post for this many minutes after submitting.
    $bb->edit_lock = 60;
    // Your timezone offset. Example: -7 for Pacific Daylight Time.
    $bb->gmt_offset = +2;
    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
    // of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
    // http://wordpress.com/api-keys/
    $bb->akismet_key = false;
    // The rest is only useful if you are integrating bbPress with WordPress.
    // If you're not, just leave the rest as it is.
    $bb->wp_table_prefix = true; // 'wp_'; // WordPress table prefix.
    $bb->wp_home = true; // WordPress - Options->General: Blog address (URL) // No trailing slash
    $bb->wp_siteurl = true; // WordPress - Options->General: WordPress address (URL) // No trailing slash
    // Use the following line *only* if you will be loading WordPress everytime you load bbPress.
    //define('WP_BB', true);
    /* Stop editing */
    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( BBPATH . 'bb-settings.php' );
    ?>

    Thx for your time! :)

    #51588

    In reply to: Google Adsense

    ear1grey
    Member

    I’d advise against using header.php, because your header is also shown on non-content pages such as 404’s; something which is disallowed in the adsense T’s and C’s.

    I did it by writing a small plugin, which you’re welcome to. Just create a my-plugins folder within your bbpress root folder, paste the text below into the file and save it as bbpress-adsense.php, upload it to your server and an advert will appear on every topic.

    From there on you have the basics for changing the advert to whatever you prefer.

    <?php

    /*

    Plugin Name: Simple bbPress Adsense

    Plugin URI: http://boakes.org/talk/tags/bbpress-adsense

    Description: An plugin that includes an adsense advert just above the content on the topic page.

    Author: Rich Boakes

    Version: 0.1

    Author URI: http://boakes.org

    License: GPL

    */

    class bb_adsense {

    function wide_advert() {

    ?>

    <div class="bbpress-adsense" style="text-align:center;">

    <!-- Paste your advert below this line -->

    <script type="text/javascript"><!--

    google_ad_client = "pub-9050338238897291";

    google_ad_width = 728;

    google_ad_height = 90;

    google_ad_format = "728x90_as";

    google_ad_type = "text_image";

    google_ad_channel = "5984252204";

    google_color_border = "FFFFFF";

    google_color_bg = "EEEEEE";

    google_color_link = "990000";

    google_color_text = "333333";

    google_color_url = "999999";

    //--></script>

    <script type="text/javascript"

    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

    </script>

    <!-- Paste your advert above this line -->

    </div>

    <?php

    } // function wide_advert

    } // class bb_adsense

    // adds the footer so the javascript is loaded

    add_action('under_title', array('bb_adsense','wide_advert'));

    ?>

    #984

    Topic: Google Adsense

    in forum Themes
    ry4nanderson
    Member

    Hello-

    I’d like to add some Adsense ads in either my header or below the the forum listing on the main page. Pasting Google’s code in the header doesn’t seem to play nicely. Any ideas? Sample syntax, perhaps, from those who have already done it?

    Thanks!

    #49529

    An interesting situation :) I’ll look into it.

    Thanks for bring it up!

Viewing 25 results - 31,901 through 31,925 (of 32,294 total)
Skip to toolbar