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
Offline
Following.
Offline
Heres what magically appears when you change display: none to display: flex.
https://www.arkivfoto.net/privat/subscribe.jpg
Offline
I hope someone with knowlege can help us with implementing this plugin in Boostrap Darkroom.
Offline
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
You find the template in the plugins folder:
plugins/Subscribe_to_Comments/template/form_outside.tpl
Offline
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
Hello
I edited the file "picture_info_comments.tpl" in
/themes/bootstrap_darkroom/template!
kind regards
Olaf
Offline
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
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" :
<!-- 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> <input type="radio" name="stc_mode" value="-1" checked> {'no'|translate}</label><br> <label> <input type="radio" name="stc_mode" value="image" > {'this photo'|translate}</label><br> <label> <input type="radio" name="stc_mode" value="album-images" > {'all photos in the album'|translate}</label><br> <label> <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> <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);"> *</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}
Offline