Is there any plans to move the javascript to an external file rather than putting a load of code into the head of the page? Great plugin by the way!
Forums
Javascript
Hi DazOpc,
Is it the editor script that's the problem? You coudl try loading this externally. In plugins/content/ChronoComments.php find line 91
Bob
Is it the editor script that's the problem? You coudl try loading this externally. In plugins/content/ChronoComments.php find line 91
$document->addCustomTag('<script type="text/javascript" src="'.JURI::Base().'components/com_chronocomments/editor.js'.'"></script>');
and replace it with $document->addScript(JURI::Base().'components/com_chronocomments/editor.js');
Not tested and may not work!Bob
Not sure what it is, this is whats getting added to my head, ignore all the other scripts Im testing loads of stuff🙂
<head>
<base href="http://www.iphoto.ie/index.php" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="joomla, Joomla" />
<meta name="description" content="Joomla! - the dynamic portal engine and content management system" />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>Welcome to the Frontpage</title>
<link href="/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<link href="/templates/ja_purity/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" href="http://www.iphoto.ie/components/com_chronocomments/msg.css" type="text/css" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/msg.js"></script>
<script type="text/javascript">var CommentPublished = 1;
var CommentVerified = 1;
var path = 'http://www.iphoto.ie/';
var imtype = '1';
var captcha = 1;
var hideemail = 1;
var hideurl = 0;
var loadercolor = 'b';
var ENTER_NAME = 'Please Enter Your Name';
var NAME_LENGTH = 'Name length Should not exceed 50 characters';
var ENTER_COMMENT = 'Please Enter Your Comment!';
var ENTER_EMAIL = 'We need your valid email address for verifications!';
var URL_HTTP = 'Your URL should contain http://';
var WRONG_CODE = 'You have entered a wrong security code, please retry!';
var NOT_VERIFIED = 'Thank you, We have sent you an Email with a verfication link, please click it to verify your comment!';
var NOT_PUBLISHED = 'Thank you, your comment will be published once reviewed.';
var UNPUBLISHED_SUCCESS = 'Unpublished Successfully!';
var GUEST_CANT_VOTE = 'You need to login to vote';
var OWNER_CANT_VOTE = 'You can not vote because you are the owner or you already voted!';
</script>
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/scripts.js"></script>
<!--[if lte IE 6]> <link href="http://www.iphoto.ie/components/com_chronocomments/style-ie6.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gte IE 7]> <link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if !IE]> <--><link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/editor.js"></script>
<!-- VOTItaly Plugin v1.0 starts here -->
<link href="http://www.iphoto.ie/plugins/content/ji_votitaly/css/votitaly.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
window.addEvent('domready', function(){
var ji_vp = new VotitalyPlugin({
submiturl: 'http://www.iphoto.ie/plugins/content/ji_votitaly/ajax.php',
loadingimg: 'http://www.iphoto.ie/plugins/content/ji_votitaly/images/loading.gif',
show_stars: true,
show_votes: true,
show_average: true,
language: {
updating: 'Updating...',
thanks: 'Thanks for voting!',
already_vote: 'You have already voted for this item!',
votes: 'votes',
vote: 'vote',
average: 'average',
outof: 'out of 5',
error1: 'An error occured submitting yout request!',
error2: 'You have already voted for this item!',
error3: 'Rating out of range!'
}
});
});
</script>
<script type="text/javascript" src="http://www.iphoto.ie/plugins/content/ji_votitaly/js/votitalyplugin.js"></script>
<!-- VOTItaly Plugin v1.0 ends here -->
<script type="text/javascript">var CommentPublished = 1;
var CommentVerified = 1;
var path = 'http://www.iphoto.ie/';
var imtype = '1';
var captcha = 1;
var hideemail = 1;
var hideurl = 0;
var loadercolor = 'b';
var ENTER_NAME = 'Please Enter Your Name';
var NAME_LENGTH = 'Name length Should not exceed 50 characters';
var ENTER_COMMENT = 'Please Enter Your Comment!';
var ENTER_EMAIL = 'We need your valid email address for verifications!';
var URL_HTTP = 'Your URL should contain http://';
var WRONG_CODE = 'You have entered a wrong security code, please retry!';
var NOT_VERIFIED = 'Thank you, We have sent you an Email with a verfication link, please click it to verify your comment!';
var NOT_PUBLISHED = 'Thank you, your comment will be published once reviewed.';
var UNPUBLISHED_SUCCESS = 'Unpublished Successfully!';
var GUEST_CANT_VOTE = 'You need to login to vote';
var OWNER_CANT_VOTE = 'You can not vote because you are the owner or you already voted!';
</script>
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/scripts.js"></script>
<!--[if lte IE 6]> <link href="http://www.iphoto.ie/components/com_chronocomments/style-ie6.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gte IE 7]> <link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if !IE]> <--><link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/editor.js"></script>
<script type="text/javascript">var CommentPublished = 1;
var CommentVerified = 1;
var path = 'http://www.iphoto.ie/';
var imtype = '1';
var captcha = 1;
var hideemail = 1;
var hideurl = 0;
var loadercolor = 'b';
var ENTER_NAME = 'Please Enter Your Name';
var NAME_LENGTH = 'Name length Should not exceed 50 characters';
var ENTER_COMMENT = 'Please Enter Your Comment!';
var ENTER_EMAIL = 'We need your valid email address for verifications!';
var URL_HTTP = 'Your URL should contain http://';
var WRONG_CODE = 'You have entered a wrong security code, please retry!';
var NOT_VERIFIED = 'Thank you, We have sent you an Email with a verfication link, please click it to verify your comment!';
var NOT_PUBLISHED = 'Thank you, your comment will be published once reviewed.';
var UNPUBLISHED_SUCCESS = 'Unpublished Successfully!';
var GUEST_CANT_VOTE = 'You need to login to vote';
var OWNER_CANT_VOTE = 'You can not vote because you are the owner or you already voted!';
</script>
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/scripts.js"></script>
<!--[if lte IE 6]> <link href="http://www.iphoto.ie/components/com_chronocomments/style-ie6.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gte IE 7]> <link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if !IE]> <--><link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/editor.js"></script>
<script type="text/javascript">var CommentPublished = 1;
var CommentVerified = 1;
var path = 'http://www.iphoto.ie/';
var imtype = '1';
var captcha = 1;
var hideemail = 1;
var hideurl = 0;
var loadercolor = 'b';
var ENTER_NAME = 'Please Enter Your Name';
var NAME_LENGTH = 'Name length Should not exceed 50 characters';
var ENTER_COMMENT = 'Please Enter Your Comment!';
var ENTER_EMAIL = 'We need your valid email address for verifications!';
var URL_HTTP = 'Your URL should contain http://';
var WRONG_CODE = 'You have entered a wrong security code, please retry!';
var NOT_VERIFIED = 'Thank you, We have sent you an Email with a verfication link, please click it to verify your comment!';
var NOT_PUBLISHED = 'Thank you, your comment will be published once reviewed.';
var UNPUBLISHED_SUCCESS = 'Unpublished Successfully!';
var GUEST_CANT_VOTE = 'You need to login to vote';
var OWNER_CANT_VOTE = 'You can not vote because you are the owner or you already voted!';
</script>
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/scripts.js"></script>
<!--[if lte IE 6]> <link href="http://www.iphoto.ie/components/com_chronocomments/style-ie6.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gte IE 7]> <link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if !IE]> <--><link href="http://www.iphoto.ie/components/com_chronocomments/style.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->
<script type="text/javascript" src="http://www.iphoto.ie/components/com_chronocomments/editor.js"></script>
<!-- Zaragoza Clouds Styles -->
<style type="text/css">
.zonline1 {
text-align: left;
}
.zonline2 {
text-align: left;
}
.zonline3 {
color: #f0f0f0;
}
.zonline4 {
padding-top:7px;
text-align:right;
line-height: 5px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
.zonline2 a:link{
text-decoration:none;
}
.zonline2 a:visited{
text-decoration:none;
}
.zonline2 a:hover{
text-decoration:none;
}
.container_clouds {background:#CCCCCC; margin:0 0px;}
.container_tags{padding: 10px;}
.rtop, .rbottom{
display:block;
background:#FFFFFF;
}
.rtop *, .rbottom *{
display: block;
height: 1px;
overflow: hidden;
background:#CCCCCC;
}
.r1{margin: 0 5px}
.r2{margin: 0 3px}
.r3{margin: 0 2px}
.r4{
margin: 0 1px;
height: 2px
}
</style>
<!-- Zaragoza Clouds Styles ends here -->
<link rel="stylesheet" href="http://www.iphoto.ie/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="http://www.iphoto.ie/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="http://www.iphoto.ie/templates/ja_purity/css/template.css" type="text/css" />
<script language="javascript" type="text/javascript" src="http://www.iphoto.ie/templates/ja_purity/js/ja.script.js"></script>
<script language="javascript" type="text/javascript">
var rightCollapseDefault='show';
var excludeModules='38';
</script>
<script language="javascript" type="text/javascript" src="http://www.iphoto.ie/templates/ja_purity/js/ja.rightcol.js"></script>
<link rel="stylesheet" href="http://www.iphoto.ie/templates/ja_purity/css/menu.css" type="text/css" />
<link rel="stylesheet" href="http://www.iphoto.ie/templates/ja_purity/styles/background/lighter/style.css" type="text/css" />
<link rel="stylesheet" href="http://www.iphoto.ie/templates/ja_purity/styles/elements/black/style.css" type="text/css" />
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<style type="text/css">
#ja-header,#ja-mainnav,#ja-container,#ja-botsl,#ja-footer {width: 97%;margin: 0 auto;}
#ja-wrapper {min-width: 100%;}
</style>
<script type="text/javascript" src="/plugins/system/rokbox/rokbox.js"></script>
<link href="/plugins/system/rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/plugins/system/rokbox/themes/dark/rokbox-config.js"></script>
</head>
Hi DazOPC,
There is a fix in the forums here for the double posting. The defines are created on the fly so I guess they can't easily go in a file. Maybe they could be cahced and loaded? No problem with the editor code as far as I can see. The rest is the Votitaly something or other.
Bob
There is a fix in the forums here for the double posting. The defines are created on the fly so I guess they can't easily go in a file. Maybe they could be cahced and loaded? No problem with the editor code as far as I can see. The rest is the Votitaly something or other.
Bob
Well I found the post with the fix and it only kinda worked it removed one of the below from my head, still shows up three times thou. Thanks for the help.
<script type="text/javascript">var CommentPublished = 1;
var CommentVerified = 1;
var path = 'http://www.iphoto.ie/';
var imtype = '1';
var captcha = 1;
var hideemail = 1;
var hideurl = 0;
var loadercolor = 'b';
var ENTER_NAME = 'Please Enter Your Name';
var NAME_LENGTH = 'Name length Should not exceed 50 characters';
var ENTER_COMMENT = 'Please Enter Your Comment!';
var ENTER_EMAIL = 'We need your valid email address for verifications!';
var URL_HTTP = 'Your URL should contain http://';
var WRONG_CODE = 'You have entered a wrong security code, please retry!';
var NOT_VERIFIED = 'Thank you, We have sent you an Email with a verfication link, please click it to verify your comment!';
var NOT_PUBLISHED = 'Thank you, your comment will be published once reviewed.';
var UNPUBLISHED_SUCCESS = 'Unpublished Successfully!';
var GUEST_CANT_VOTE = 'You need to login to vote';
var OWNER_CANT_VOTE = 'You can not vote because you are the owner or you already voted!';
</script>
Hi DazOPC,
where is the post you got your fix from ? we can add an extra line to fix it all!
Regards
Max
where is the post you got your fix from ? we can add an extra line to fix it all!
Regards
Max
Hi Max,
I downloaded the .zip from http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=17&t=11304
Thanks
I downloaded the .zip from http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=17&t=11304
Thanks
Hi Daz,
try this one
regards
Max
try this one
regards
Max
Tried it and it broke the component, trying to post a comment and nothing shows up and no error message🙂 And its back to writing the variable 4 times instead of three🙂
Hi Daz,
This is strange, back to the previous state, the 3 variables was appearing in the blog pages, correct ?
Regards
Max
This is strange, back to the previous state, the 3 variables was appearing in the blog pages, correct ?
Regards
Max
It was appearing on the homepage of the website. Im not sure if it was showing on the blogpages/article pages, I wont be able to check until I get home from work, when I check Ill post here.
Hi Daz,
yes, because the home page is of type blog too, no problems, I will continue testing this and release a new version when possible!
regards
Max
yes, because the home page is of type blog too, no problems, I will continue testing this and release a new version when possible!
regards
Max
This topic is locked and no more replies can be posted.