Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,901 through 10,925 (of 11,524 total)
  • Author
    Search Results
  • #57194
    fel64
    Member

    Okay, I promise in future I’ll be all mature and responsible and test these things first. Sorry for the inconvenience. This works on my forum now; just copy and paste this into a new plugin file. Then put <?php aposttime(); ?> for default time output, or <?php aposttime( 'DATE FORMAT' ); ?> for your own time formatting.

    <?php
    /*
    Plugin Name: Accurate Post Time
    Plugin URI:
    Description: Outputs an accurate post time in, optionally, your choice of formatting. Use <?php aposttime( 'DATE FORMAT' ); ?> in your template, <a href="http://uk3.php.net/date">date formatted according to PHP standards.</a>
    Author: fel64
    Version: Phi
    Author URI: http://www.loinhead.net/
    */

    function aposttime ( $dtformat = "jS F 'y" ) {
    global $bb_post;
    $aposttime = date( $dtformat, strtotime( $bb_post->post_time ) );
    echo $aposttime;
    }
    ?>

    #57507
    fel64
    Member

    I really do :) This Patrick Ehrlund? He’s great – even if he does have a flash website :P

    I’d argue that the coolness of appearance is worth it, since the login form’s not exactly rocket science. I think it’s still pretty distinguishable anyway. Mockups:

    http://img513.imageshack.us/img513/5090/ochreblackuf9.jpg

    http://img338.imageshack.us/img338/5758/ochrewhiteyh4.jpg

    That’s just suggestions if you’re interested, no need to give it further thought :)

    Test account to see the problem with the HTML, didn’t realise Chris had already fixed it. My bad. :)

    #57506
    csl749
    Member

    Aha – thanks very much chrishajer! I’ve just noticed that there’s a surplus /div in footer.php. I’ve removed it and all is now well, as far as I can tell. Though it’s strange how it only affected that one page (?!). Thanks for pointing me in the right direction.

    Thanks fel64 – glad you like the design of the site! :) The header pic was designed by a friend of mine, Patrick Ehrlund. I’m torn about the login background – it does look much better without the white background, but also more difficult to read. I might play with some font colours to get something that displays nicely over the header pic colours.

    A test account? What do you mean? I’ll help if I can.

    #57505
    fel64
    Member

    It’s a really nice site and I love the header. The login form would fit in more if you remove the background: #FFFFFF property in the CSS. :)

    Could you make a test account please, so we can see the HTML?

    csl749
    Member

    Hi folks,

    Here’s my forum at the moment after some theme-tweakery to make it fit the general theme of my wordpress site. Everything’s more or less fine, but there’s just on little section that I can’t seem to solve – when using the ‘- ADD NEW’ topic link on the latest discussions section on the front page I get a gap between the footer and the new post div, yet this gap is nowhere to be found on any other of the pages. Looks a bit incongruous.

    Here’s a pic of how the problem looks: http://img525.imageshack.us/img525/7683/bbpresspw3.jpg

    Any help on how to solve this little problem would be great – thanks!

    #53429

    I did add the avatar upload plugin to the post.php page, and add a few line breaks br / but thats about it?

    #53428
    Trent Adams
    Member

    I can’t get it to work with safari or firefox either on your site. Have you changed any of the files in your template that deal with the feed?

    Trent

    #57497

    In reply to: WordPress and PHPBB

    Trent Adams
    Member

    I used phpbb for about 4 years and once I created a test site of bbPress, I converted over all my forums to bbPress and continue to help support a great product. As far as I can tell, almost all the ‘bloated’ features of phpBB that people love have now become plugins for bbPress, so if you like all or most of those features, you will love bbPress.

    Trent

    #53427

    XML Parsing Error: xml declaration not at start of external entity

    Location: http://mysite/rss.php?profile=1

    Line Number 2, Column 1:<?xml version=”1.0″?><!– generator=”bbPress” –>

    This is the error I am getting when I try to load my rss feed from ie7? any idea how to fix this?

    #56564
    atomastro
    Member

    works perfectly.

    #56563
    fel64
    Member

    Yup! Find this (or similar) codeblock in your theme’s front-page.php.

    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>

    Around it put

    <?php if( $topic->forum_id != 666 ) { ?>
    ... that code block ...
    <?php } ?>

    You will probably want to change 666 to whatever forum id you actually want to exclude. You can put any conditional logic you like inside those if( … ) brackets, so for example to filter for two forums you would put if( $topic->forum_id != 666 && $topic->forum_id != 999 ). Hope that helps.

    #1695
    atomastro
    Member

    I would like to limit the forums being included in the latest discussions section. More accurately, I wish to specifically exclude a forum. Anyone have any ideas on how to do this in the template?

    #57345

    In reply to: Plugin: Say My Name

    Trent Adams
    Member

    Very nice! I will test it out for you and report back if I see any problems!

    Trent

    #57326
    mathzqy
    Member

    yeah, you are wrong.

    #56257
    jessiebirks
    Member

    Thanks Trent!

    I tested the change on one user, and I was able to edit his ID number to match the number from the old PHPBB. As hoped, his posts in the transferred Forum are now correctly attributed.

    However, I ran ino a quirk. When I change the ID in WordPress, the user gets bumped in the User Role list. He went from “Subscriber” to “No role for this blog.” I manually promoted him to Author from the wp-admin/users panel.

    What field in the wp-db controls the user roles? Can I avoid this quirk on future ID edits?

    #57325
    godwar
    Member

    i’m wrong:)

    #1806
    godwar
    Member

    i am sorry to see that tag can’t work for chinese

    #57303

    In reply to: Plugin: bb-Topic-Views

    wittmania
    Member

    I haven’t tested this yet, but it looks like the mods that fel64 and Sam have proposed here should work. So, instead of rushing a new version of the plugin out today, I think I’ll just save these changes (and some other functionality I’m working on) for the next major release. Hopefully I can get a new version of it out in the next couple of weeks.

    #57297

    In reply to: Plugin: bb-Topic-Views

    wittmania
    Member

    @Sam, I use your excellent Page Links plugin, and I wrote mine specifically to be compatible with yours. In fact, I wouldn’t have known what filter to use if it weren’t for your plugin.

    I set the priority of my filter as 99 (yours is set to 100), so it fires directly before yours. Also, my plugin checks to see if the page_links_add_links function exists, and if it does it automatically drops the page links to a new line below the title in order to make things a little more sightly.

    @smurfdude, I thought about that, too. I initially decided against that route so I could have it function without having to edit any template files. The way it works right now is that it is inserted with a filter that is triggered when (and where) the topic title is fed to the page. If you’re feeling really ambitious, you can go into bb-topic-views.php to see how the mechanics of the plugin work. From there, you could change some things around so you could put the views count in its own column. Eventually I may add that functionality within the plugin, but that’s not a high priority right now.

    Speaking of priorities, the next to-do on my list is to add functionality where a user can add a template tag that will display the top 5 (or 10, or whatever) most viewed posts, either as <li> items so you can use it anywhere, or in a format similar to the way the Latest Discussion area is laid out. Stay tuned…

    #57272

    In reply to: Profile Tabs

    Sam Bauers
    Participant

    I tested the second method on the latest build and it passes the bb_repermalink tests and loads.

    I tried using standard URLs and both types of permalinks.

    I didn’t try to load a template. I used a file called avatar-upload.php containing the following:

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

    bb_repermalink(); // The magic happens here.

    echo 'test';
    ?>

    My test plugin contained:

    <?php
    /*
    Plugin Name: Test for fel64
    Plugin URI:
    Description: Test profile tab addition
    Author: Scooby Doo
    Version: 0.0.1
    Author URI:
    */

    $bb->debug = 1;

    function felavatartab()
    {
    add_profile_tab(__('Avatar'), 'edit_profile', 'moderate', 'avatar-upload.php');
    }

    add_action( 'bb_profile_menu', 'felavatartab' );
    ?>

    #56962
    fel64
    Member

    Thank you!

    For testing if it’s bb it might be easiest to do exactly what you did but with a global variable bb uses anyway, such as $bbdb or whatever you feel like – saves you having to put in the declarations.

    #1805
    wittmania
    Member

    bb-Topic-Views keeps track of how many times each topic has been viewed, and then displays the count alongside the title of the topic on the front page, on forums pages, and on tags pages.

    The plugin is written in such a way that it does not double-count views when a visitor browses to a different page in the same topic. If no view count record exists for a specific topic, the plugin will create a record for it. Rather than setting the initial view count to zero, the plugin sets it to the number of posts in the topic, because it has obviously been viewed at least as many times as people have posted in it! This is especially nice for adding the plugin to existing bbpress forums so the view count isn’t zero for every single topic.

    You can download it here: http://blog.wittmania.com/bb-topic-views

    You can see it in action here: http://blog.wittmania.com/bbpress

    By the way, I’ve only tested this plugin in browser environments where cookies were enabled. This plugin doesn’t set any cookies (directly, anyway), but it does use session variables which are usually passed as cookies. So, if anyone runs into any bugs, please let me know!

    I’m also very open to suggestions as to how I could streamline or improve the code. Thanks!

    #57253
    lokem001
    Member

    Thanks Trent, but that link gave me nothing :(

    Fel64, I don’t really get what you mean with “live Windows server”… anyhow it’s a WindowsXP server, Apache 2.2, PHP5, latest MySQL – all installed on a personal LAN server.

    And the Apache/PHP installation works fine with some other simple PHP applications.

    I also tried to copy an older installation of bbpress that worked fine on a previous WinXP/Apache server, but due to a disk failure I had to format the drive and re-install everything.

    However, that older bbpress turned out with the exact problem (blank page) and the same line Apache’s error.log…

    My guess is something’s wrong with my Apache/PHP installation.

    Thx,

    lokem

    #56412

    In reply to: Freshness Linked

    citizenkeith
    Participant

    Oops. Sorry about that! It works now.

    Latest post link is screwed for the forum named OBT. Threads from other forums work fine. WEIRD.

    #56411

    In reply to: Freshness Linked

    fel64
    Member

    Forum 1 is private, and I can’t login using “test” and “test” :( Last time I checked, though, the latest post thing was screwed. :/

Viewing 25 results - 10,901 through 10,925 (of 11,524 total)
Skip to toolbar