Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kimberlyc

    (@kimberlyc)

    help?

    Thread Starter kimberlyc

    (@kimberlyc)

    I was told I had to change the java.js file in my theme folder.

    Specifically the selectEpisode() and the ScreenWrite() functions.

    Here are a few of the functions:

    function ScreenWrite() {
    if ((xmlhttp.readyState == 1)&&(aimObj == document.getElementById(‘list_container’))) {
    aimObj.innerHTML = ”;
    setfade(0,’linkup’);
    document.getElementById(‘linkdown’).className=”inactive”;
    }

    if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) ) {
    if (aimObj==document.getElementById(‘mediacontent’)) {
    strep=wpdetexturize(xmlhttp.responseText)

    from=strep.indexOf(‘plink:’);
    plinker=strep.slice(from+6);
    strep=strep.slice(0,from);
    document.getElementById(‘linker’).setAttribute(“href”,plinker);

    from=strep.indexOf(“<cut>”)+5;
    if (from<12)
    from=strep.indexOf(“</object>”)+9;
    if (from<12)
    from=strep.indexOf(“</embed>”)+8;
    if (from<12)
    from=strep.indexOf(“</h1>”)+5;
    mediastr=strep.slice(0,from);
    jstring=false;
    if ((mediastr.indexOf(“<script type”)>0)&&(wdtube==’1′)) {
    jfrom=mediastr.indexOf(“<script type”);
    jto=mediastr.indexOf(“</script>”)+9;
    jstring=mediastr.slice(jfrom+45,jto-9);
    mediastr=mediastr.slice(0,jfrom)+mediastr.slice(jto);
    }
    video=”;
    if (mediastr.indexOf(“[video:”)>0){
    if (mpl>0){
    if (mediastr.indexOf(“image:”)>0){
    image = mediastr.slice(mediastr.indexOf(“image:”)+6,mediastr.indexOf(“;”,mediastr.indexOf(“image:”)));
    if (image.indexOf(“]”)>0)
    image=image.slice(0,image.indexOf(“]”));
    } else { image=’false’;}
    if (mediastr.indexOf(“h:”)>0){
    pheight = mediastr.slice(mediastr.indexOf(“h:”)+2,mediastr.indexOf(“;”,mediastr.indexOf(“h:”)));
    if (pheight.indexOf(“]”)>0)
    pheight=pheight.slice(0,pheight.indexOf(“]”));
    } else { pheight=’330′;}
    if (mediastr.indexOf(“w:”)>0){
    pwidth = mediastr.slice(mediastr.indexOf(“w:”)+2,mediastr.indexOf(“;”,mediastr.indexOf(“w:”)));
    if (pwidth.indexOf(“]”)>0)
    pwidth=pwidth.slice(0,pwidth.indexOf(“]”));
    } else { pwidth=’440′;}
    if (mediastr.indexOf(“;auto”)>0){
    pauto=true;
    } else {pauto=false;}
    video=mediastr.slice(mediastr.indexOf(“video:”)+6,mediastr.indexOf(“;”,mediastr.indexOf(“video:”)));
    if (video.indexOf(“]”)>0)
    video=video.slice(0,video.indexOf(“]”));
    mediastr=mediastr.slice(0,mediastr.indexOf(“[video:”))+'<div id=”theplayer”></div>’;
    } else {
    mediastr=mediastr.slice(0,mediastr.indexOf(“[video:”))+’Please check if the “mediaplayer.swf” file exists in the Video theme directory. For further support please visit the Quommunication Forum.’
    }
    }
    if (diggbuttons==”1″) {
    poststr='<h2></h2><span id=”digg_span”>’+digghead+plinker+diggtext+'</span>’+strep.slice(from)+’
    ‘;
    } else {
    poststr='<h2></h2>’+strep.slice(from)+’
    ‘;
    }
    aimObj.innerHTML = mediastr;
    if ((jstring)&&(wdtube==’1′))
    eval(jstring);
    if (video!=”) {
    launchNsiteplayer()
    }
    document.getElementById(‘postcontent’).innerHTML = poststr;
    GetComments();
    } else
    aimObj.innerHTML = xmlhttp.responseText;

    if (aimObj == document.getElementById(‘list_container’)){
    var episodes = document.getElementById(‘list_container’).getElementsByTagName(‘LI’);

    totalheight=0;
    numberofepisodes=0;
    for(var no=0;no<episodes.length;no++){
    if (episodes[no].id == ‘next’){
    episodes[no].onclick = regenerateList;
    } else if (episodes[no].id == ‘prev’){
    episodes[no].onclick = regenerateList;
    } else {
    episodes[no].onclick = selectEpisode;
    };
    episodes[no].onmouseover = enterEpisode;
    episodes[no].onmouseout = leaveEpisode;
    heights[no]=episodes[no].offsetHeight/1;
    lastheight=heights[no];
    totalheight+=heights[no];
    numberofepisodes=no;
    activeEpisode=episodes[no];

    if ((episodes[no].id.replace(/Episode/, “”)==actualEpisode)||(episodes[no].id.replace(/Episode/, “”)==latestid)) {
    episodes[no].className=”current totalfaded”;
    clickedEpisode=episodes[no];
    }

    if (no<=numepisodeshown-1)
    setTimeout(“fadeIn(0,'”+episodes[no].id+”‘)”,no*80);
    else fadeIn(100,episodes[no].id);
    }

    contheight=0;
    for(var k=0;((k<=numepisodeshown-1)&&(k!=numberofepisodes+1)&&(contheight+heights[k]<=maxlistheight));k++)
    contheight+=heights[k];
    document.getElementById(‘list_container’).style.height = contheight+’px’;

    if (totalheight>contheight) {
    document.getElementById(‘linkup’).className=”totalfaded”;
    } else document.getElementById(‘linkup’).className=”inactive totalfaded”;
    setTimeout(“fadeIn(0,’linkup’)”,k*120);

    document.getElementById(‘contentlist’).style.top = ‘0px’;
    edge=true;
    aimpos=0;
    aimObj=’none’;

    if (!actualEpisode) {
    aimObj=document.getElementById(‘mediacontent’);
    actualEpisode=latestid;
    latestid=false;
    getdata(themedir + ‘/episode.php?id=’+ actualEpisode);
    }
    }
    if (aimObj == document.getElementById(‘commenting’))
    initLivePreview();
    }

    function selectCat() {
    if (document.getElementById(‘show_tags’))
    document.getElementById(‘show_tags’).style.display=”none”;
    aimObj = document.getElementById(‘list_container’);
    getdata(themedir + ‘/list.php?id=’+ this.id.replace(/cat/,””));
    if(clickedCat && clickedCat!=this)
    clickedCat.className=”;
    this.className=’current’;
    clickedCat = this;
    cat = this.id.replace(/cat/,””);
    episodeOffset=0;
    tagged=”;
    }
    function pulldownCat(cv) {
    if (document.getElementById(‘show_tags’))
    document.getElementById(‘show_tags’).style.display=”none”;
    aimObj = document.getElementById(‘list_container’);
    getdata(themedir + ‘/list.php?id=’+ cv.replace(/cat/,””));
    cat = cv.replace(/cat/,””);
    episodeOffset = 0;
    tagged=”;
    }
    //———————————EPISODE PROCESSING————————————-
    function selectEpisode() {
    aimObj=document.getElementById(‘mediacontent’);
    actualEpisode=this.id.replace(/Episode/,””);
    getdata(themedir + ‘/episode.php?id=’+ actualEpisode);
    if(clickedEpisode && clickedEpisode!=this)
    clickedEpisode.className=””;
    this.className=”current”;
    clickedEpisode = this;
    }

    I am not a javascript programmer, so I really need some help. Does anyone know what I need to change in the above code?

    Thanks again.

    Thread Starter kimberlyc

    (@kimberlyc)

    The theme is from https://www.quommunication.com/…its the video theme.

    My website is https://www.localvideo.tv

    Please help. I really need to get this site finished. I will post any of the php files that you need to help me.

    Thank you so much,
    Kim

Viewing 3 replies - 1 through 3 (of 3 total)