coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Planer on June 01, 2007, 05:54:25 AM

Title: when view source, appear this ?
Post by: Planer on June 01, 2007, 05:54:25 AM
When i view source
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>


appear before tag <html>, what is it ?, how to remove it ? My site is http://yourfreepicture.com

And when i go to tab "config" in Admincp to edit default lang: lang current is English but when i apply other lang, it not change, still is English, i don't know why, i changed many times :(
plz help me
Sorry for i speak E not well
Thanks
Title: Re: when view source, appear this ?
Post by: Sami on June 01, 2007, 07:56:19 AM
Remember we have 1 question per thread policy

for your first issue
check {gallery-root}\themes\yourtheme\template.html
if you can't find script there then it is your host injected code , ask them to remove their script injection to your page

For your 2nd issue
after setting new default language you should delete your cookies and refresh the page and then you'll see your new languge
it's not correct suggestion
Title: Re: when view source, appear this ?
Post by: Joachim Müller on June 01, 2007, 08:10:09 AM
Language issue: Sami, your advice is not correct. In the config panel, you specify the default language that will only be taken into account if the user's language preferences (by cookie or by browser language) both don't apply. Read How languages work in Coppermine (http://documentation.coppermine-gallery.net/languages.htm#how) (comes from the preliminary cpg1.5.x documentation, but it's the same thing for cpg1.4.x as well).

@Planer: to actually force coppermine to use a particular language, add lang=yourlanguage, e.g. http://coppermine-gallery.net/demo/cpg14x/index.php?lang=spanish to see the demo in Spanish.
Title: Re: when view source, appear this ?
Post by: Planer on June 01, 2007, 03:09:52 PM
Thank you but ... (new thread)