Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,401 through 31,425 (of 32,462 total)
  • Author
    Search Results
  • #53468
    Trent Adams
    Member

    I would just use the full path on the server:

    <?php include

    ('var/usr/www/yourdirectory/whatever.file'); ?>

    That should work shouldn’t it?

    Referencing this post

    Trent

    #53459
    davidbessler
    Member

    so:

    Function BlahBlah () {

    global $bb_current_user;

    $myName = get_user_name( $bb_current_user->ID );

    echo "Hello, my name is ".$myName;

    }

    Like that?

    Where can I find a list of all these variables and functions? Like how did the author of that plugin know there was such a thing as get_user_name()?

    #53299
    startribe
    Member

    Thanks Trent, I am still pushing along… I understand, those late nights get to me too.

    All the Best,

    Orion

    #1255
    startribe
    Member

    I am trying to use a call to navigate to the root directory in order to call on an include that is located in a directory outside of the bbPress directory.

    Is there anyone out there who could help me with a BB PHP command that will bounce me back to the root directory. I tried…

    <?php include('../../etc/etc'); ?> with out results.

    So, any suggestions or ideas would be greatly appreciated.

    All the Best,

    Orion

    #52898
    mozey
    Member

    On my setup, (different system, same concept),

    i used a centralized mysql table which contains a mesh of all of the variables of all systems!. The reason wy i did that is, some of these usertables contain information which would change the bahaviour of the software, such as roll, last login etc. SO its not a mater of authentication and session ONLY. You also need the other stuff!!!.

    i ALSO used a single portal for signup/signin. THIS SHOULD NOT BE SCARY (assuming that thinking does’nt hurt your brain). A good IDE will get everything done for you (search replace globally, find all instances of a function etc).

    I reccomend http://www.eclipse.org/downloads/ as an editor, and use PHP IDE as an ide ontop of eclipse. Be patiant, if you have’nt installed before, it could be a bit strang, but do take a better part of a weekend to figure out hw it works. TRUST ME, php will be your bizatch afterwards ;)

    #53455
    flaerpen
    Member

    Hehe, I’m blind! :P Sorry, just open poEdit and do what it says :P.

    #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
Viewing 25 results - 31,401 through 31,425 (of 32,462 total)
Skip to toolbar