Thanks for the link.Galixte de EzCom wrote:Hi,
you could edit your previous post instead of post two messages.
See this message from author: viewtopic.php?p=13893871#p13893871.
I'm not sure how to code in HTML, etc. Tell me if this is what I use for audio. Thanks! My board is in English.martti wrote:
It's a bit hacky, but you could select on the textA ban has been issued
Edit:: overall_footer_after.html
Code: Select all
<!-- play audio for the banned ones -->
<!-- IF SCRIPT_NAME == 'ucp' and CUSTOMCODE_PARAM_MODE == 'login' -->
<script>
$(document).ready( function() {
window.setTimeout( function() {
if ($('div#message > div.inner > p > em').text().indexOf('A ban has been issued') >= 0){
alert('<source src="https://mywebsite.com/images/siteaudio.mp3" type="audio/mpeg">
<source src="https://https:/mywebsite.comimages/siteaudio.ogg" type="audio/ogg">');
}
}, 100);
});
</script>
<!-- ENDIF -->
Indeed, the files with your custom code are in thestore/customcode
folder and are left intact if you don't click remove data.
You add anJohn connor wrote: I'm not sure how to code in HTML, etc. Tell me if this is what I use for audio. Thanks! My board is in English.
audio
element on the login page and let it play with some javascript code when it sees the text A ban has been issued
.banned.mp3
in the store/sound
folder:Edit:: overall_footer_after.html
Code: Select all
<!-- play requiem for the banned -->
<!-- IF SCRIPT_NAME == 'ucp' and CUSTOMCODE_PARAM_MODE == 'login' -->
<audio src="store/sound/banned.mp3"></audio>
<script>
$(document).ready( function() {
window.setTimeout( function() {
if ($('div#message > div.inner > p > em').text().indexOf('A ban has been issued') >= 0){
$('audio')[0].play();
}
}, 100);
});
</script>
<!-- ENDIF -->
you should be able to use something like thisMeykota wrote:What a very nice extension
I want to use this for my adsense advertisement, but I've got a question. So is it's possible to hide my ads from my registered users? Only guests shall see those ads. Would be great
Code: Select all
<!-- IF S_USER_LOGGED_IN -->
"your code"
<!-- ENDIF -->
Code: Select all
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
"your code"
<!-- ENDIF -->
Code: Select all
<!-- Welcome message -->
<!-- IF not S_USER_LOGGED_IN and SCRIPT_NAME == 'index' -->
<div class="post welcome">
<h2>My content</h2>
<p>More of my content</p>
<!-- IF S_REGISTER_ENABLED -->
<a class="button" href="{U_REGISTER}">{L_REGISTER}</a>
<!-- ENDIF -->
</div>
<!-- ENDIF -->
Code: Select all
<!-- Welcome styling -->
<style>
div.welcome
{
border: 1px solid #444466;
}
</style>
I guess that will be enough.tahoebuff wrote:...
overallheader_stylesheets_after.htmlCode: Select all
<!-- Welcome styling --> <style> div.welcome { border: 1px solid #444466; padding: 5px; } </style>
That did the trick. Thanks a bunch!Galixte de EzCom wrote:I guess that will be enough.tahoebuff wrote:...
overallheader_stylesheets_after.htmlCode: Select all
<!-- Welcome styling --> <style> div.welcome { border: 1px solid #444466; padding: 5px; } </style>
You can search yourself when you know the attribute name which you have to use in the CSS, see that: http://www.w3schools.com/cssref/pr_padding.asp.
Code: Select all
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected end of template in "../../../../../../store/customcode/viewtopic_body_postrow_post_after.html" at line 16' in /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenStream.php:60 Stack trace: #0 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenParser/If.php(47): Twig_TokenStream->next() #1 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Parser.php(191): Twig_TokenParser_If->parse(Object(Twig_Token)) #2 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Parser.php(99): Twig_Parser->subparse(NULL, false) #3 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(479): Twig_Parser->parse(Object(Twig_TokenStream)) #4 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(529): Twig_Environment->parse(Object(Twig_TokenStream)) #5 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(323): Twig_Environment->compileSource('<!-- Google ads...', '../../../../../...') #6 /www/htdocs/w011ec29/phpbb/template/twig/environment.php(151): Twig in /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenStream.php on line 60
Easy:Meykota wrote:What can I do to solve this problem?
Remove the code you just inserted, it will work again.Meykota wrote:I have this message after editingviewtopic_body_postrow_post_after.html
...Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected end of template in "../../../../../../store/customcode/viewtopic_body_postrow_post_after.html" at line 16' ...
You have an error in the code you inserted (maybe you didn't close theMeykota wrote:I have this message after editing viewtopic_body_postrow_post_after.html. I tried to put google adsense into my forum, but didn't work. While this message is active there are no other posts after the first one in topic. Also our pages from the pages-extension aren't shown.
What can I do to solve this problem?
Code: Select all
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected end of template in "../../../../../../store/customcode/viewtopic_body_postrow_post_after.html" at line 16' in /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenStream.php:60 Stack trace: #0 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenParser/If.php(47): Twig_TokenStream->next() #1 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Parser.php(191): Twig_TokenParser_If->parse(Object(Twig_Token)) #2 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Parser.php(99): Twig_Parser->subparse(NULL, false) #3 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(479): Twig_Parser->parse(Object(Twig_TokenStream)) #4 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(529): Twig_Environment->parse(Object(Twig_TokenStream)) #5 /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/Environment.php(323): Twig_Environment->compileSource('<!-- Google ads...', '../../../../../...') #6 /www/htdocs/w011ec29/phpbb/template/twig/environment.php(151): Twig in /www/htdocs/w011ec29/vendor/twig/twig/lib/Twig/TokenStream.php on line 60
<script>
tag). If you can not reach the ACP anymore, then you can edit the file customcode/viewtopic_body_postrow_post_after.html
with your favourite text-editor (Notepad++, Geany, ...) directly.