Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I support relative paths in topic posts?


  • RobertFontaine
    Participant

    @robertfontaine

    I am standing up a forum for posting backgammon positions.

    The two commonly used pieces of backgammon software export html board positions
    using a relative path to an images file. i.e
    2O

    How do I make bbpress think that this folder structure exists and point it to a folder with these gifs in it? I have been searching all over the place and haven’t been able to find a clear answer.

    Thanks,
    Robert

    
    
    <!-- Score -->
    
    <strong>Match to 5 points - gnubg 0, Robert 0</strong>
    
    <!-- End Score -->
    
    <!--  Board -->
    
    <table style="page-break-inside: avoid"><tr><th align="left">gnubg</th><th align="right">167</th></tr><tr><td align="center" colspan="2"><img src="../Images/n_high.gif" style="vertical-align: bottom" alt="" /><br />
    <img src="../Images/o_w_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_up_b_2.gif" style="vertical-align: top" alt="2O" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_ud_w_5.gif" style="vertical-align: top" alt="5X" /><img src="../Images/b_up_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_ud_w_3.gif" style="vertical-align: top" alt="3X" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_ud_b_5.gif" style="vertical-align: top" alt="5O" /><img src="../Images/c_up_0.gif" style="vertical-align: top" alt="" /><br />
    <img src="../Images/b_center.gif" style="vertical-align: top" alt="" /><img src="../Images/c_center.gif" style="vertical-align: top" alt="" /><br />
    <img src="../Images/o_b_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_dd_w_2.gif" style="vertical-align: top" alt="2X" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dn_b_5.gif" style="vertical-align: top" alt="5O" /><img src="../Images/b_dn_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dn_b_3.gif" style="vertical-align: top" alt="3O" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt="&nbsp;'" /><img src="../Images/p_dn_w_5.gif" style="vertical-align: top" alt="5X" /><img src="../Images/c_dn_0.gif" style="vertical-align: top" alt="" /><br />
    <img src="../Images/n_low.gif" style="vertical-align: top" alt="" /></td></tr>
    <tr><th align="left">Robert</th><th align="right">167</th><th align="center" colspan="2"></th></tr><tr><td align="center" colspan="2"><span style="font-size: 75%; color: #787878">Position ID: <tt>4HPwATDgc/ABMA</tt> Match ID: <tt>cAmgAAAAAAAA</tt><br /></span></td></tr></table>
    
    <!-- End Board -->
    
    <p>&bull; Robert doubles</p>
    
    <!-- Epilogue -->
    
    <!-- Output generated  by GNU Backgammon 1.04.000-mingw 20141021 (http://www.gnu.org/software/gnubg/)  (HTML Export version 1.235) -->
Viewing 2 replies - 1 through 2 (of 2 total)

  • RobertFontaine
    Participant

    @robertfontaine

    bump


    Robkk
    Moderator

    @robkk

    I think as far as wordpress can go is, but you have to create a custom folder in the uploads directory.

    <img src="/wp-content/uploads/images/image.png" />

    And possibly this if you have the images in your theme.

    <img src="/wp-content/theme/images/image.png" />

    You have to have all these images on your site for it to work.

    It might be possible to change the image source, but it might depend on how you are sending this data to bbPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar