Questions and discussions


Discuss template's customization


Postby Devil » Sun Jun 07, 2015 10:13 am

Hi Anton,

I would like to add this feature in item_photo.tpl. Which file should I edit?

Thanks for your help
Greetings from Berlin, Olaf


I have inserted into the file content.php following code:

Code: Select all
//Show Shares
function shares_show(value)
    var req = new JsHttpRequest();
    // Code automatically called on load finishing.
    req.onreadystatechange = function()
        if (req.readyState == 4)
            document.getElementById('sharescontent').innerHTML =req.responseText;
            document.getElementById('shares_content').innerHTML =req.responseText;
    }, '<?=site_root?>/members/shares.php', true);
    req.send( { id: value } );

I have inserted into the file item_photo.tpl following code:

Code: Select all
        <ul class="nav nav-tabs">
          <li class="active"><a href="#details" data-toggle="tab">{lang.Description}</a></li>
          <li> <a href="#exif_content" data-toggle="tab"  onclick="exif_show({ID});">EXIF</a></li>
          <li> <a href="#comments_content" data-toggle="tab" onclick="reviews_show({ID});">{lang.Comments}</a></li>
          <li> <a href="#tell_content" data-toggle="tab"  onclick="tell_show({ID});">{lang.Tell a friend}</a></li>
          <li> <a href="#reviewscontent" data-toggle="tab"  onclick="map_show({GOOGLE_X},{GOOGLE_Y});">{lang.Google map}</a></li>
          <li> <a href="#sharescontent" data-toggle="tab"  onclick="shares_show({ID});">{lang.Shares}</a></li>

        <div class="tab-content">
          <div class="tab-pane active" id="details">{DESCRIPTION}</div>
          <div class="tab-pane" id="exif_content"></div>     
          <div class="tab-pane" id="comments_content"></div>
          <div class="tab-pane" id="tell_content"></div>
          <div class="tab-pane" id="reviewscontent"></div>
          <div class="tab-pane" id="sharescontent"></div>

Shares.php created file:

Code: Select all
$JsHttpRequest =new JsHttpRequest($mtg);


<p ><textarea name="bbcode" style="min-width: 500px" >[url=][img][/img][/url]</textarea></p>


<p><textarea name="html" style="min-width: 500px" "><a href="" title="sdaf" alt="sdaf"><img src="" title="" alt="sdaf" border="0"></a></textarea></p>


<p><input type="textbox" name="linkto" value="" style="min-width: 500px" class="form-control"></p>


It does not work! What I have done wrong? :oops:
Posts: 32
Joined: Sat Oct 18, 2014 7:45 pm

Return to Design & Templates

Who is online

Users browsing this forum: No registered users and 4 guests

  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  CMSaccount Inc.