•  » Themes
  •  » Bootstrap Darkroom - Subscribe to comments

#1 2022-04-27 19:55:07

Ralf
Member
Dorsten-Lembeck
2012-05-08
235

Bootstrap Darkroom - Subscribe to comments

Hi all,

good to see that the Bootstrap Darkroom theme is still maintenanced.

Has anybody managed to make the 'subscribe to comments' plugin working with this theme?

The source code of the page shows me a:
<div style="display:none>
for the container where subscribe to comments should appear.

I found the <div style="display:none> in the form_outside.tpl file of the plugin, but i have no idea what has to be changed.

Cheers
Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#2 2022-05-04 01:01:18

BigIsland270972
Member
Norway
2022-03-15
374

Re: Bootstrap Darkroom - Subscribe to comments

Following.


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#3 2022-05-04 02:25:34

BigIsland270972
Member
Norway
2022-03-15
374

Re: Bootstrap Darkroom - Subscribe to comments

Heres what magically appears when you change display: none to display: flex.

https://www.arkivfoto.net/privat/subscribe.jpg


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#4 2022-05-04 16:03:36

BigIsland270972
Member
Norway
2022-03-15
374

Re: Bootstrap Darkroom - Subscribe to comments

I hope someone with knowlege can help us with implementing this plugin in Boostrap Darkroom.


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#5 2024-11-04 22:36:10

Damienouebe
Member
Metz, France
2020-09-03
10

Re: Bootstrap Darkroom - Subscribe to comments

Ralf wrote:

Hi all,

good to see that the Bootstrap Darkroom theme is still maintenanced.

Has anybody managed to make the 'subscribe to comments' plugin working with this theme?

The source code of the page shows me a:
<div style="display:none>
for the container where subscribe to comments should appear.

I found the <div style="display:none> in the form_outside.tpl file of the plugin, but i have no idea what has to be changed.

Cheers
Ralf

Hi,
Same need here :)
I did not find the _form_outside.tpl file in my version (15a) of the theme :(
I tried looking at a couple tpl files without finding the hidden subscribe form. Were you able to do this on recent versions or was I looking in the wrong place?

Cheers,
Damien

Offline

 

#6 2024-11-04 23:46:25

OHappyDay
Member
2023-02-08
123

Re: Bootstrap Darkroom - Subscribe to comments

You find the template in the plugins folder:
 
  plugins/Subscribe_to_Comments/template/form_outside.tpl

Offline

 

#7 2024-11-05 08:33:08

Damienouebe
Member
Metz, France
2020-09-03
10

Re: Bootstrap Darkroom - Subscribe to comments

Grr I should have thought about that, thanks :)
I tried "display:flex" and no style at all but obtained the subscribe form... twice :(

I also could not find the "global" subscribe link that is suggsted in the settings. Is that only in the list of possible subscriptions on an image page?

BR,
Damien

Offline

 

#8 2024-11-05 12:34:46

Schneider-Fotografie
Member
Berlin
2023-04-16
98

Re: Bootstrap Darkroom - Subscribe to comments

Hello
I edited the file "picture_info_comments.tpl" in
/themes/bootstrap_darkroom/template!

kind regards
Olaf


-Schneider-Photography- Gallery
----------------------------------
   Piwigo 15.5.0 / PHP: 8.4.4

Offline

 

#9 2024-11-05 21:36:15

Damienouebe
Member
Metz, France
2020-09-03
10

Re: Bootstrap Darkroom - Subscribe to comments

Schneider-Fotografie wrote:

Hello
I edited the file "picture_info_comments.tpl" in
/themes/bootstrap_darkroom/template!

kind regards
Olaf

Hi Olaf,
What did you change there? AFAIK there's only the classic comment form, I did not see anything related to subscribing? Or did you paste the subcsribe template there?

Cheers,
Damien

Offline

 

#10 2024-11-06 15:38:52

Schneider-Fotografie
Member
Berlin
2023-04-16
98

Re: Bootstrap Darkroom - Subscribe to comments

Hello Damien
I have kept some of it and added some new ones, such as the privacy confirmation. I left it out for the website entry.

here is the code for "picture_info_comments.tpl" :

Code:

 
   <!-- comments -->
{if isset($comment_add) || !empty($COMMENT_COUNT)}
    <div id="comments">

  {$shortname = $theme_config->comments_disqus_shortname}
  {if $theme_config->comments_type == 'disqus' and !empty($shortname)}
      <div id="disqus_thread"></div>
{footer_script}{strip}
var disqus_shortname = '{/strip}{$shortname}{strip}';

(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
{/strip}
{/footer_script}
  {else}
      <ul class="nav nav-pills p-2" role="tablist">
    {if !empty($COMMENT_COUNT)}
        <li class="nav-item">
          <a class="nav-link active" href="#viewcomments" data-toggle="pill" aria-controls="viewcomments">{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}</a>
        </li>
    {/if}
    {if isset($comment_add)}
        <li class="nav-item">
          <a class="nav-link{if empty($COMMENT_COUNT)} active{/if}" href="#addcomment" data-toggle="pill" aria-controls="addcomment">{'Add a comment'|@translate}</a>
        </li>
    {/if}
      </ul>
      <div class="tab-content">
    {if !empty($COMMENT_COUNT)}
      <div id="viewcomments" class="tab-pane active">
        {if isset($COMMENT_LIST)}
          {$COMMENT_LIST}
        {else}
          {include file='comment_list.tpl'}
        {/if}
        {if !empty($navbar) }
        <div class="row justify-content-center">
          {include file='navigation_bar.tpl' fragment='comments'|@get_extent:'navbar'}
        </div>
        {/if}
      </div>
    {/if}
    {if isset($comment_add)}
   
        <div id="addcomment" class="tab-pane{if empty($COMMENT_COUNT)} active{/if}">
          <form method="post" action="{$comment_add.F_ACTION}">
      {if $comment_add.SHOW_AUTHOR}
            <div class="form-group">
              <label for="author">{'Name'|@translate}{if $comment_add.AUTHOR_MANDATORY} {/if} : *</label>
              <input class="form-control" type="text" name="author" id="author" value="{$comment_add.AUTHOR}">
            </div>
      {/if}
      {if $comment_add.SHOW_EMAIL}
            <div class="form-group">
              <label for="email">{'Email address'|@translate}{if $comment_add.EMAIL_MANDATORY} {/if} : *</label>
              <input class="form-control" type="text" name="email" id="email" value="{$comment_add.EMAIL}">
            </div>
      {/if}
      {if $comment_add.SHOW_WEBSITE}
            <div class="form-group">
              <label for="website_url">{'Website'|@translate} :</label>
              <input class="form-control" type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}">
            </div>
      {/if}
    
            <div class="form-group">
              <label for="contentid">{'Comment'|@translate} : *</label>
              <textarea class="form-control" name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea>
      <br>
      {'Security code'|@translate}:<br>
  <img id="captcha" src="{$PHPCAPTCHA_PATH}renderimage.php?hash={$captchahash}" alt="">
  <br><label for="captcha_code">{'Enter code'|translate} : *</label><br>
  <input type="text" id="captcha_code" name="captcha_code" maxlength="{$captcha.stringlength}" value="">
  <input type="hidden" name="captcha_hash" value="{$captchahash}">
  <br><br>
 <p id="stc_comment">
  {'Notify me of further comments'|translate}:<br>
  <label> &nbsp;<input type="radio" name="stc_mode" value="-1" checked> {'no'|translate}</label><br>
  <label> &nbsp;<input type="radio" name="stc_mode" value="image" > {'this photo'|translate}</label><br>
  <label> &nbsp;<input type="radio" name="stc_mode" value="album-images" > {'all photos in the album'|translate}</label><br>      
  <label> &nbsp;<input type="radio" name="stc_mode" value="all-images" > {'all photos in the gallery'|translate}</label><br>
  </p>

</div>
            <input type="hidden" name="key" value="{$comment_add.KEY}">
      <div class="form-group"><i class="fas fa-link"></i> <a href="/index.php?/page/datenschutz#Kommentarmöglichkeit" target="_blank"><u>{'I accept the privacy policy'|translate}</u> :</a> &nbsp; &nbsp; &nbsp; 
      <input  required style="box-shadow: 0 0 1px rgba(0,0,0, .4);"  aria-label="Datenschutz" type="checkbox" id="inlineCheckbox12" name="datenschutz" value="akzeptiert"  onclick="setActive(this);" onfocus="setActive(this);">&nbsp;*</div><br>
            <button type="submit" class="btn btn-primary btn-raised">{'Submit'|@translate}</button>
      <br><br>
      <span class="text-danger">{'Note'|translate}:</span> {'Fields with * must be filled out.'|translate}
          </form>
        </div>
      </div>
    {/if}
    </div> 
  {/if}
{/if}

-Schneider-Photography- Gallery
----------------------------------
   Piwigo 15.5.0 / PHP: 8.4.4

Offline

 
  •  » Themes
  •  » Bootstrap Darkroom - Subscribe to comments

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact