Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Who can help me with this?
Where should the code for the sitelock seal be copied:
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> < / a>
Thank you in advance
Pixelmover Rainer
Learn for a lifetime
Offline
I am not familiar with this. What is it? What is the intended purpose of including this code?
If you can help me to understand what you are wanting to accomplish, then I can hopefully answer your question.
Is this just some badge or logo you want to display on your site, or on one of your site's pages? If so, where?
Offline
Who can help me with this?
Where should the code for the sitelock seal be copied:<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> < / a>
Thank you in advance
I would put it into the footer using phplugins. Maybe
function ttg_footer_bottom( $style, $path ) {
echo <<<SITELOCK
<div id="sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> </a>
</div>
SITELOCK;
} // END /**/
I put it inside a <div> so you can use some custom.css to place it. Maybe #sitelock {float:right;}
updated code to fix errors
Last edited by Daniel Leu (2018-06-08 09:29:05)
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
I would put it into the footer using phplugins. Maybe
ttg_footer_bottom(( $style, $path ) { echo <<<SITELOCK <div id="sitelock"> <a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> </a> </div> SITELOCK; } // END /**/
I put it inside a <div> so you can use some custom.css to place it. Maybe #sitelock {float:right;}
I ran Daniel's suggestion and added the code to my "photoart.php" in the "SET USER FUNCTIONS BELOW" section:
ttg_footer_bottom (($ style, $ path) {
echo <<< SITELOCK
<div id = "sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url] [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] [/url] "alt =" Homepage Security "> </a>
</ Div>
SiteLock;
} // END / ** /
/ * DELETE THIS LINE// Basic structure for a PHPlugins function
function _HOOK_ ($ style, $ path) {
echo '
';
return false;
} // END / ** /
Unfortunately, I get the error message:
Something went wrong
Unexpected error: syntax error, unexpected ',' in photoart.php on line 246
Please report error at http://community.theturninggate.net
The Line 246 is the first line of the code
What is wrong here?
Last edited by Pixelmover (2018-06-08 06:54:31)
Pixelmover Rainer
Learn for a lifetime
Offline
I am not familiar with this. What is it? What is the intended purpose of including this code?
If you can help me to understand what you are wanting to accomplish, then I can hopefully answer your question.
Is this just some badge or logo you want to display on your site, or on one of your site's pages? If so, where?
It is a logo of the company sitelock to indicate that the site is free of maleware etc. It would be nice if the logo appears on the bottom right side of each page.
Maybe daniels suggestion works
Pixelmover Rainer
Learn for a lifetime
Offline
Sorry, I had to two opening brackets instead of one in my code.... But you have to check that you properly copy the code: no space between $ and style/path, closing SiteLock needs to be all capital.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Hi Daniel.
Da ich gesehen habe, dass Sie die deutsche Sprache beherrschen, erlaube ich mir diesen Post in deutsch zu schreiben.
Die Fehlermeldung erscheint nicht mehr, damit Problem 1 gelöst.
Problem 2 = das Logo wird nicht angezeigt.
In meiner Custom CSS habe ich folgenden Code eingegeben:
#sitelock {
float:right;
}
Fehlt da noch etwas? Ich kenne mich da leider nicht sehr gut aus.
Pixelmover Rainer
Learn for a lifetime
Offline
I try to keep it in english so others can follow the thread as well
Do you have a link to the page where it should show?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
oops... it should be: function ttg_footer_bottom(...
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Do you have a link to the page where it should show?
Here comes the link:
https://www.rainerhassmann.de
Pixelmover Rainer
Learn for a lifetime
Offline
Looks like your original code has an error. The image link should be
src ="https://shield.sitelock.com/shield/rainerhassmann.de"
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Problem solved. Thanks for the quick help.
Pixelmover Rainer
Learn for a lifetime
Offline
Pages: 1