Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,476 through 30,500 (of 32,511 total)
  • Author
    Search Results
  • #57022
    chrishajer
    Participant

    The stylesheet is found perfectly fine, path is OK and it’s linked properly (in FF on XP anyway) but the problem with the sheet is you didn’t style the items you don’t want to print. So, they are just unstyled but will still print. You need to do a display: none; for the elements you don’t want to print for it to work (I think.)

    http://erraticwisdom.com/2007/01/22/css-printing-guide

    #1752
    wmarcy
    Member

    Here is what I have in my front-page.php:

    <h2><?php _e('Hightest Ratings'); ?></h2>
    <table id="highest">
    <tr>
    <th><?php _e('Highest Rated Topics'); ?></th>
    <th><?php _e('Rating'); ?></th>
    <th><?php _e('#'); ?></th>
    </tr>

    <?php $topics = bb_top_topics(); ?>
    <?php foreach ($topics as $topic); ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>

    <td><div class="rating-holder"><?php bb_rating();?>
    <td class="num"><?php bb_rating_count(); ?>

    </table>

    This code is only showing the first topic it comes across with a rating.

    See what I am talking about at: http://www.wetworx.com/forums/

    Any help would be appreciated.

    #1749
    Null
    Member

    Hi,

    I have a form to update a plugin’s settings. The problem is, it seems to update on it’s own as well. Seems randomly and appears mostly when surfing through the admin pages. Whats wrong with my form and how to fix it?

    The form:

    // Update portal
    function update_bbportal() {
    global $bbdb;

    $bbdb->query("UPDATE <code>$bbdb->portal</code> SET pforum_id = '". $_POST['forum_id'] ."', number_of_topics = '". $_POST['number_of_topics'] ."'");
    }

    // Show form
    function bbportal_form() {
    ?>
    <h2><?php _e('Portal Management'); ?></h2>
    <h3><?php _e('Portal settings'); ?></h3>
    <form action="" method="post">
    <table>
    <tr><th scope="row"><label for="forum_id"><?php _e('Where do you want to pull the topics from?'); ?></th>
    <td><?php forum_dropdown(); ?></label></td>
    </tr>
    <tr><th scope="row"><?php _e('Number of topics on the portal:'); ?></th>
    <td><input type="text" name="number_of_topics" id="number_of_topics" /></td>
    </tr>
    </table>
    <p class="submit alignleft"><input type="submit" onclick="<?php update_bbportal(); ?>" value="Submit" /></p>
    </form>
    <?php
    }

    I also no longer want to use the created and used database table “portal”, but use the “bb_update_option” and “bb_get_option”. How to do this?

    Thx

    #1750
    #57008

    In reply to: like5.com

    LMD
    Participant

    Nice use of my Avatar Upload plugin! I see you’ve modded it a bit too by adding a classname to the image link, which is great.

    I like the “Random Members” on the front page. I wonder if you’d consider sharing code, with full credit of course, so the random image thing can be added to the avatar upload plugin?

    I don’t know how you’ve set-up your random script, but I can see it being made configurable, so users can select the number to display and if they wish to limit it to only people who have uploaded an avatar.

    Let me know what you think.

    #56849
    btphelps
    Member

    I added Charly54’s code at line 2113 at the end of the function bb_convert_path_base. Finally solved the problem I had getting the theme working.

    If Charly54’s solution is required to get the bbPress forum working, why isn’t it built into the functions.php? Maybe we can add this to short-term enhancement list?

    Brian

    #56951
    fel64
    Member

    My guess is $_SERVER['HTTP_HOST']. Give it a shot.

    #54996
    Null
    Member

    Good luck with phpBB 3 dude, see you back in a couple of weeks :D:D:D:D:D

    #54995
    spencerp
    Member

    The Gathering theme is on http://spencerp.net currently… :P I could always import the content from WP to MT though, couldn’t I? LOL! I already had MT setup within 15 minutes on a sub domain name a few weeks back, shouldn’t take me too much longer to set it up this time.. whee!

    Maybe could setup phpBB 3.0 whatever the hell the latest version is now… Got up that over here now: http://www.vindictivebastard.net/forum

    I don’t know though.. hmm

    spencerp

    #56949
    fel64
    Member

    Of course. Exactly the same principle applies.

    Replace this

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    With

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = ereg_replace('^(www.)', '', $_SERVER['HTTP_HOST']);
    $bb_table_prefix = ereg_replace('.', '', $table_prefix);
    $bb_table_prefix = $table_prefix . '_';

    That is all.

    #54994
    fel64
    Member

    Sorry Spencer, I haven’t seen the Gathering theme and aren’t particularly looking for a forum theme right now anyway. It’d be cool to see, though.

    But please don’t take down WordPress, I need that WP/bb/Mediawiki integration article for future reference! :P

    #56934
    ProSam
    Member

    Yeah I know the HTML is quite horrid. I was not the original webmaster and I don’t get enough to clean that mess :).

    I have suggested several times that the site be overhauled but the owner does not want to spring for it.

    Oh Well.

    Thanks for the style update it fixed it right up.

    #56928
    john24
    Member

    Thank you so much for your support. :)

    #56887
    gtim
    Member

    I doubt that this is the most efficient way, but it seems to work. Add the following code in post.php in the default theme (/bb-templates/kakumei/post.php), you probably want it within the .threadauthor div.

    <?php
    $puser = bb_get_user( get_post_author_id() );
    if ( isset( $puser->from ) ) {
    echo $puser->from;
    }
    ?>

    It is not possible to do this with a plugin yet because there is no hook there, but there is a Trac ticket for it.

    Also, I compiled a list of all template functions.

    #56907
    Null
    Member

    Darn you beat me too it fel64 :D

    #56927
    fel64
    Member

    Oh, I see what you mean. I just thought of those as seperate sub-forums of the main forum.

    I don’t know how that option works. Perhaps it tags threads according to their category if that category is there? Just experiment with it a bit, and if you find out tell us :)

    #56935

    In reply to: BbLD problem

    Null
    Member

    Each link in that side bar misses the “&page” at the end of the linkurls. Add that and it works fine

    #52229
    wmarcy
    Member

    Thanks Fel64, I wrapped your code up into a table and it dragged the recalcitrant submit button into the proper position. <lol> How come it is the little things that eat away?

    #56933
    fel64
    Member

    Just hang this code onto the bottom of your style.css file and it’ll be dandy.

    p.menulink {
    margin-bottom: 0;
    }

    If you do not want the gap to be that small, change 0 to #px (there must be no gap between the number and the px!).

    Incidentally, I don’t know what your control of the situation is but that site is not particularly pleasant HTML. You have tables in tables in tables, for god’s sake! What you’re doing in the sidebar could be so much easier done using a <ul> element. Are you using Frontpage or something?

    Please, it’ll be much less work for you if you use clean HTML; at least in future! Tables are so very rarely a good solution.

    #52228
    fel64
    Member

    Not sure what it was originally, wmarcy, but it’s all a bit screwy. They’re in seperate paragraphs, which means they can’t be side-by-side (unless they’re both ID’d and have seperate float rules). So basically, find the form (as in, form HTML element) for the search and replace it by:

    <form method="get" action="http://www.wetworx.com/forums/search.php">
    Search: <input type="text" value="" name="q" maxlength="100" size="40"/>
    <input type="submit" class="inputButton" value="Search ยป"/>
    </form>

    The Submit button however still won’t be on the right, but at least it’ll be level and since it wantonly jumps about when you text-align or float it right I can’t be bothered with making it right-aligned. Make the width of your search bar wider or something if you need to push it over.

    #56903

    In reply to: Installing Plugins

    wmarcy
    Member

    Wow, my code doesn’t really look as bad as that <s>.

    #56902

    In reply to: Installing Plugins

    wmarcy
    Member

    This is the code running on http://www.wetworx.com/forums/topic/28?replies=1

    I edited the topic.php file and added:

    <table align=”left”>

    <tr>

    <td>

    Overall Post Rating:

    </td>
    <td><?php bb_rating();?></td>
    </tr>
    <tr>
    <td>

    How do you rate this post?   

    </td>

    <td><?php bb_rating_dingus(); ?></td>

    </tr>

    </table>

    Hope that helps.

    #56901

    In reply to: Installing Plugins

    wmarcy
    Member

    ProSam,

    bbRatings needs you to edit system files to include the tag code into them. Once you add these tags, it will work. I also am struggling with bbRatings, and would love to get a snippet of code that made us of the bb_top_topics() function. Anyone?

    #56920
    tiszenkel
    Member

    Hmm — forums/tags is being redirected to a page that exists, tags.php. But even navigating straight to tags.php causes the same error. I opened up tags.php in a text editor to see what was in there, and it referenced several files that don’t seem to be anywhere in my bbPress installation: bb_tag-single.php, tag-single.php and bb_tags.php. Could this be the problem? I downloaded a completely new copy of bbPress and couldn’t find them in there, either.

    Here’s the tags.php code:

    <?php
    require_once('./bb-load.php');

    bb_repermalink();

    // Temporary, refactor this!

    if ( !$tag && $tag_name )
    bb_die(__('Tag not found'));

    if ( $tag_name && $tag ) :

    $topics = get_tagged_topics($tag->tag_id, $page);
    do_action( 'bb_tag-single.php', $tag->tag_id );

    bb_load_template( 'tag-single.php', array('tag', 'tag_name', 'topics') );
    else :

    do_action( 'bb_tags.php', '' );

    bb_load_template( 'tags.php' );
    endif;
    ?>

    #56900

    In reply to: Installing Plugins

    ProSam
    Member

    Scratch that, post notification is also working. So bb-rating is the one that is giving me a head ache.

    Has anyone else installed this plugin? Is it working for you? How did you install it? The instructions say to

    Add bb-ratings.php, bb-ratings.css, bb-ratings.js, and star.gif to your /my-plugins/ directory.

    But it doesn’t seem to show up on the site. Is there anything else I need to do to activate it.

Viewing 25 results - 30,476 through 30,500 (of 32,511 total)
Skip to toolbar