when view source, appear this ? when view source, appear this ?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

when view source, appear this ?

Started by Planer, June 01, 2007, 05:54:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Planer

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

Sami

#1
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
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

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 (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.

Planer