Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,376 through 31,400 (of 32,431 total)
  • Author
    Search Results
  • #52897
    Nate
    Member

    Spencer, was just hoping for a quick clarification on all this: Did you use the same MySQL database for everything? In the thread here you use terms like “MediaWiki database” and “WP database,” but I’m wondering whether that actually just means the MediaWiki tables and the WP tables, all contained in one MySQL database. Do tell. :)

    Thanks,

    Nate

    #1253
    davidbessler
    Member

    I am trying to write a plugin … how do I refer to the currently logged in user’s name? I tried

    get_user_name( $user->ID )

    but I get “get_user requires a numerical ID” or something like that.

    #52425
    spencerp
    Member

    Awesome! Thanks a million SamBauers! ;) :)

    spencerp

    #1252
    flaerpen
    Member

    Hello, I have made my own template and the original gettext-objects in the code have been replaced. Therefore I need to rescan my files for the gettext-text so I can translate.

    The only problem is that I have been searching for days to find out how to do, but i can’t find anything interesting. I’ve tried poEdit but you can’t search in .php files for gettext-objects!

    how do i do? someone who can help me?

    #52831
    ardentfrost
    Member

    I was referring to scale. Unless it’s in the core, it’s too large to expect others to make their code friendly with your code. If you have a thousand plugin authors and 10% of them do that, it just seems unreasonable that the other 900 will add 100 different things to their code to be friendly with other plugins. And if those 10% each write multiple plugins that way, it’s even MORE things the other 900 have to add to all their plugins.

    It’s nothing against YOU, it’s just that you have to think about scale, and what you’re asking isn’t scalable.

    #53451
    ardentfrost
    Member

    I do this on my page. Code looks like this:

    <h1><a href="http://www.rayd.org/"><?php option('name'); ?></a></h1>

    #53298
    Trent Adams
    Member

    Looking back at the code I put, I must have been tired! Great to hear you got it going Orion!

    Trent

    #1250
    aircow33
    Member

    Hi all, currently the header.php will display the name of the forum as a link. And the link sends you back to whereever you set in your config.php the variable $bb->domain. Currenlty it is $bb->domain = ‘forums.prosperworldloans.com’;

    i dont want to change the domain variable because i think location of cookies and many other things use this variable. But i want to change the link in header.php to point to a different location, namely http://www.prosperworldloans.com

    The code in header.php looks like this

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header”>

    <h1>“><?php bb_option(‘name’); ?></h1>

    <?php login_form(); ?>

    </div>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    and i changed it to

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header”>

    <h1><?php bb_option(‘name’); ?></h1>

    <?php login_form(); ?>

    </div>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    However when i make this change the link actually becomes http://forums.prosperworldloans.com/http://www.prosperworldloans.com

    I have no idea why this is. i tried using php printf to print it out and it seems to work but screws up the layout of the following php login_form() command. Any help on this issue is greatly appreciated it is very frustrating.

    #53297
    startribe
    Member

    YES! I got it… I used this to get the correct path:

    <?php bb_option('uri'); ?>my-templates/images/victorylogo.gif

    Ahhhh, and sigh. Trent, thanks for helping with getting my gears going. Now if anyone else runs into a similar issue, they will have a solution.

    All the Best,

    Orion

    #53296
    startribe
    Member

    actually, I forgot to load the file, the result above was from playing with

    ‘<?php bb_location(); ?>’ and “image”.

    After trying your code Trent, I received no results for the designated area:

    src=""

    #53295
    startribe
    Member

    lol…

    yeah, any solution is good to start for me. The above produced:

    front-pageimages/victorylogo.gif

    I am editing the front-page.php, so I am not sure if it pulled that file name or I have a setting a bit off somewhere.

    Hmmm…. there has to be a way. I am getting the images to load through CSS, but for this particular image I would like to have it in the HTML content.

    So any more ideas or suggestions are welcome.

    -Orion

    #53294
    Trent Adams
    Member

    If you are trying to get victorylogo.gif, I would use:

    <?php $victorylogo = (bb_get_option('uri') . 'my-templates/images/victorylogo.gif'); ?>

    <?php echo $stylesheet; ?>

    There might be an easier way, but I am a ‘may not be pretty, but works’ type of guy….

    Trent

    #53293
    startribe
    Member

    Hey Trent,

    Thanks for the reply…

    I checked out the source of the resulting page and found this…

    /my-templates/style.cssimages/victorylogo.gif

    So I noticed that it is posting “style.css” in the path, which is throwing me off.

    Essentially, I am trying to get into my “my-templates” directory. I will look into your other solution. If you have any other ideas, I am open ears.

    Thanks,

    Orion

    #53292
    Trent Adams
    Member

    <?php bb_stylesheet_uri(); ?> does work for me!?

    Anyways, you can also do something like following I did in bbpress-mobile plugin:

    <?php $stylesheet = (bb_get_option('uri') . 'my-templates/mobile.css'); ?>

    <link rel="stylesheet" href="<?php echo $stylesheet; ?>" type="text/css" />

    Trent

    #1222
    startribe
    Member

    Hey Community,

    I am trying to link to an image in the “my-templates” directory for my bbpress template. When editing templates in WordPress I used:

    <?php bloginfo('stylesheet_directory'); ?>

    Is there something similar that I can use for bbPress?

    I tried:

    <?php bb_stylesheet_uri(); ?>

    & it didn’t work.

    Anyhow, any help would be greatly appreciated.

    Thanks,

    Orion

    #52830
    Null
    Member

    unreasonable request….. ow sorry :(

    #52424
    Sam Bauers
    Participant

    I’m working on a patch (it’s basically finished actually) that addresses bug 520. If it is not accepted in the trunk (core code) then I might develop it into a plugin instead.

    #53442

    In reply to: RSS links not working

    Trent Adams
    Member

    Short of the obvious stupid answer (upgrade or quit using IE :-) I think we need to test this out with more IE6 users. I think I have one old PC kicking around and will do some testing on this.

    Trent

    #51959
    Atsutane
    Member
    #52826

    Maybe using a array? Like

    $menu['FAQ'] = 'faq.php';

    Passing this through a filter so everybody can add his links via filter in his plugin…

    #51690

    Hehe … it sends an email on EVERY new post if it’s checked in the users profile. Not just admins.

    I know what you mean with your plugin-request, this is something mine can’t do at the moment. But I think this is a great feature to be added and it could be done by plugin. “Add Forum to favorites” :)

    #51689
    Trent Adams
    Member

    You might be correct that if checked ‘in your profile’ it would notify everyone of all posts replied and created if they also have it checked. It would notify you of any post or reply in the forum. At least, that is what the code suggests on first glance. Spencerp or Thomas should be able to clarify this.

    Trent

    #53426
    flaerpen
    Member

    hehe, of course it’s that simple :P. Thanks!

    #53425
    Trent Adams
    Member

    You can actually edit rss.php to get it to 50 if you want as well! Just search for the number ’32’ in that file ;)

    Trent

    #53319
    spencerp
    Member

    Thanks rednimer.. ;) :) I’ll try to get on this then, I’ve just been really, really busy with the “home life” lately sigh..

    spencerp

Viewing 25 results - 31,376 through 31,400 (of 32,431 total)
Skip to toolbar