Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb_get_option(‘uri’) in 0.8


  • Geezerjim
    Participant

    @actorjiml

    I am using the following code in my graphic-display-ranks plugin running bbPress 0.8:

    $path_to_subdirectory = bb_get_option('uri') . "my-plugins/ranks/";

    later on in the plugin I call that path using:

    $display_text = $path_to_subdirectory . $image_for_special_rank_1 . "" alt="#Posts:" . $rank_count . "" title="#Posts: " . $rank_count . """;

    $display_text is inserted into an image tag for display. Everything works, but when I look at the source code of the page I see:

    <img src="my-plugins/ranks/metalic_modo.png" alt="#Posts: 1" title="#Posts: 1" />

    It’s as if it’s not pulling in the base part of the uri at all. Am I missing something here?

  • You must be logged in to reply to this topic.
Skip to toolbar