Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,301 through 31,325 (of 32,462 total)
  • Author
    Search Results
  • #53746
    drmike
    Member

    You work with PHP and call yourself a serious coder? Back in my day we had Turbo Pascal and Radio Shack Basic and we had to walk five miles through the snow and the lava butt naked to write out code. And we didn’t have these little things called bugs. Our bugs were bigger! They had to be. Our computers filled entire rooms! Not these teny, tiny little laptop thingies.

    :)

    #53699
    Sam Bauers
    Participant

    This is more likely to be a problem with your database setup – make sure your tables are correctly collated/encoded as well as the database as a whole, to some form of utf8.

    I notice that here, the word “Contraseña” which is in the templates/language file is working fine, but part of the title (from the database) “pequeño” is showing up as “pequeño”.

    The thing about using specific encodings, like UTF-8 is that your whole stack has to support it. From the operating system the server is running to the font being used on the clients browser.

    Now as I understand it, you will need to jump through some hoops to fix this. I think it involves converting all yout char/varchar columns in the database to binary and all your text columns to blobs before converting your tables/database to utf-8 collation/encoding. Then after the conversion is done, you change the tables back to what they were. I think there is a full how-to at the mysql documentation website.

    Good luck – backup your database before doing anything, you may want to take your site offline while doing it too.

    #53745
    Sam Bauers
    Participant

    I’m a web developer specializing in PHP/XHTML/CSS and SQL.

    Could all you weekend coders please clear off? : )

    #53768
    drmike
    Member

    What I did on my own install was open up the front-page.php and place it over the tag code. My code looks like the following:

    <div id="hottags">

    <?php search_form( $q ); ?>

    <h2><?php _e('Hot Tags'); ?></h2>

    <p class="frontpageheatmap"><?php tag_heat_map(); ?></p>

    </div>

    Hope this helps,

    -drmike

    #53744
    drmike
    Member

    Webhosting although I’m trying to get out of it now due to legal issues with my ex that won’t even allow me to pull out a paycheck. *grumble*

    Besides that, I collect a tiny month disability check that barely covers my rent, a fair amount of local volenteer work, and make Mark’s life a living hell by pointing out spammers over in the wp.com support forums.:)

    #53743
    Trent Adams
    Member

    I trade for a living and I mean almost everything and anything, except for my wife and son of course;) Commodities mainly specializing in agriculture, but also in the oil industry. I know a bit about coding and the logic behind code, but I really like to help people out. I love music and that is how I started in the web side of things….

    #53767
    raecp
    Member

    Yes- like on your forums. I found the “search_form.php” but I don’t know where I am looking for the function “search_form()” or exactly where I am to put the <div> code.

    Sorry to be so dense on this.

    #53766
    ardentfrost
    Member

    Like on my forums? http://www.rayd.org/forums/

    If so, I just searched through the code for the search form and found the function “search_form()” so I did this:

    <div>

    <h2><?php _e('Search'); ?></h2>

    <?php search_form(); ?>

    </div>

    Then you just take “search_form.php” out of your bb-templates folder, drop it in the my-templates folder and change the sizes to whatever you want.

    #53734
    chrishajer
    Participant

    From the source of install.php:

    // Let's check to make sure bb isn't already installed.

    ...

    if ( $installed )

    ...

    die(__('<h1>Already Installed</h1><p>You appear to have already installed bbPress. Perhaps you meant to run the upgrade scripts instead? To reinstall please clear your old database tables first.</p>') . '</body></html>');

    I think it would just work by browsing to your forum in that case.

    #53697
    chrishajer
    Participant

    Can you put this before the DOCTYPE in the forum header:

    <?xml version="1.0" encoding="utf-8"?>

    Since it’s xhtml, not xhtml transitional like the blog, maybe that will do the trick?

    edit: on my server this resulted in a parse error, maybe because the <? is being interpreted as php? This might not be a good idea :D

    #53544

    I couldn’t make version 1.2 work. I write the names of the allowed users to a specific forum, press submit twice to see what I actually wrote, but if I exit admin menu and enter again, the names aren’t displayed, so I guess it doesn’t store them.

    Looking at the code I believe that the problem is that the table which should store the restrictions isn’t properly created. Which one should be the “forum_restriction_db” ?

    Also, I saw a branch of version 1.3, are you planning to release it soon?

    #53691

    In reply to: query/php problem

    Null
    Member

    Okay, I’ll release bbMenu BETA 0.1 next week (I am on holiday this weekend) so we can all see the code and the way it works (it does work :)) and I hope we can solve this problem I have…

    #1303
    villaman
    Member

    After a quick search of the archives and some poking through the code I’ve come to the conclusion that there is currently no such API available. I would love to be corrected here. Any of the experts know if a REST API has been discussed for future versions? Has something already been implemented that I am just not seeing?

    I ask because I am interested in putting together a simple desktop client to handle some admin functions. Any comments on this would be greatly appreciated.

    #1302

    Plugin inspired by http://bbpress.org/forums/topic/625

    Adds a new Admin section where you can add users if you want to. It’s just like the “add new user” function in wordpress.

    Download here:

    http://la-school.com/2006/downloads/admin-add-user_1_0.zip

    To install simply put it into your /my-plugins/ folder.

    #53727

    Hehe … I just had to much time since my last post. So here we go:

    http://la-school.com/2006/downloads/admin-add-user_1_0.zip

    Simply copy it into your /my-plugins/ Directory and you should see a new Submenu item under Users called Add User.

    Any Feedback is welcome :)

    #53721

    In reply to: template function list

    Maybe doing it the wiki-way? :)

    As I know there is no list aviable at the moment.

    #1300
    Anonymous User 96400
    Inactive

    hey there,

    just noticed that my feeds don’t work properly. the rss links get generated correctly. the problem is that somehow feed: gets added as part of the link, which results in opera and ie in this error message: The address type is unknown or unsupported.

    when i copy & paste just the link, then everything works like a charm. you can see an example here

    #52609
    Anonymous User 96400
    Inactive

    alright, thanks to all of you. figuered it out eventually. that extra </div> on the add new page was the closing div from <div id="discussions">, which is only shown on the frontpage. so i wrapped it like this:

    <?php if ( $forums ) : ?>

    </div>

    <?php endif; ?>

    and it solved the problem.

    #53689

    In reply to: query/php problem

    Null
    Member

    Hmm got this error now when entered your code:

    Parse error: parse error, unexpected $ in /xxx/bbpress/my-plugins/bbmenu.php(123) : eval()’d code on line 1

    Thats where the $switch begins…

    If you want the beta of my plugin (for code), throw me an email and I will email it (got some uploading problems atm)

    email: mauricederegt at gmail.com

    #53688

    In reply to: query/php problem

    Null
    Member

    Thx going to try that, and well I am no programmer at all, learning along the way. It goes like: Hmm that would be cool for bbPress -> is it possible (YES) -> how to make it? (google :)) -> try and error -> try and error -> try and error-> try and error -> getting fed up with it -> post help cry on this forum :)

    I’ll learn along the way :)

    And yes I want it this way, cause it’s only 1 record that looks so clumpsy, all others just have 1 record…

    #53687

    In reply to: query/php problem

    ear1grey
    Member

    It looks like your $rw["location"] variable contains the text "(is_front() || is_forum() || is_tag() || is_topic() || is_bb_feed() || is_bb_profile() || is_bb_favorites() || is_view())"

    Is that what you’re describing?

    If so a ternary structure (the x?y:z thing) won’t work because you need to give it a boolean value, so this may work…

    $switch = eval("return ".$rw["location"]);

    $current = ($switch ? ' id="current"' : "");

    … but if that does work, then you seriously need to ask yourself why you have such code in a variable – why can’t it be evaluated first then the result put in the variable – and if you can’t come up with a cogent answer you need to rethink your code.

    If that’s not what you’re describing then can you describe “not working” a bit better? Error messages and variable dumps help… or upload the source somewhere.

    #53692
    chrishajer
    Participant

    Is it possible it has something to do with the DOCTYPE?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    in the site, where the charset is correct, and

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    in the forum where it’s not correct. I think the DOCTYPE declaration affects the character set. See here:

    http://www.w3.org/TR/xhtml1/#C_9

    I’m not sure if you can change the DOCTYPE on the forum without creating other problems (it’s not the right solution since the forum validates as XHTML 1.1, not transitional), but maybe there’s something at the w3c site that makes sense to you.

    Good luck

    (p.s. this is just a wild guess.)

    #1295

    I just wanted to say that the new version is up.

    The major change is, that now the times are stored as mysql-date in the database so timezone offsets can be handeled much easyer.

    If you’re expecting any problems, let me know :)

    http://bbpress.org/plugins/topic/24?replies=1

    #53658

    In reply to: Session Cookies

    ardentfrost
    Member

    I’m not sure, but looking at the pluggable code, you might be able to drop this into your my-plugins directory and it work without changing core files:

    function bb_cookie( $name, $value, $expires = 0 ) {

    global $bb;

    if ( !$expires )

    $expires = time() + 604800;

    if ( isset( $bb->cookiedomain ) )

    setcookie( $name, $value, $expires, $bb->cookiepath, $bb->cookiedomain );

    else

    setcookie( $name, $value, $expires, $bb->cookiepath );

    }

    Then make the same change you made last time (changing 604800 to 0 or something, whatever you did)

    #53708
    Trent Adams
    Member

    Just checked. I would go back and read the documentation one last time ;)

    Trent

Viewing 25 results - 31,301 through 31,325 (of 32,462 total)
Skip to toolbar