K4RL

+Clients
  • Content count

    176
  • Joined

  • Last visited


1 Follower



About K4RL

  • Rank
    IPB Full Member

K4RL's Activity

  1. K4RL added a post in a topic: Completely Remove Mobile Skin   

    Surely someone must know how to do this as its completely ruining my site and I do not need or want it.
  2. K4RL added a post in a topic: IP.Content as a main page and mobile theme   

    Its that bad I am trying to remove it completely. 
  3. K4RL added a post in a topic: Completely Remove Mobile Skin   

    It works fine in forums but it looks really tacky in Content :(
  4. K4RL added a post in a topic: Completely Remove Mobile Skin   

    I really can't stand the mobile skin, it sucks big time.
     
    How would I go about removing it completely?
     
    I have tried to delete it but it seems it is part and parcel of IPS and won't let me.
  5. K4RL added a post in a topic: Templates Editor Not Showing Templates On Test Server ?   

    Glad you brought up the missing files thing, I download a copy from the client area the other day and uploaded those files within the zip, just checked error messages showing in google chrome and they were referencing 404 errors in the admin JS folder, just checked and they were missing files.
     
    Checked the zip I downloaded and they are missing in the same folder too, so I redownloaded a few mins ago and uploaded the new set and all is well.
     
    No idea why they were missing in the first zip as I uploaded them without removing any files, very odd lol.
     
    Oh well case closed and please close the thread staff type people :)
     
    Thanks for the reply Michael, without your saying check the files were missing I would of assumed that as the file was downloaded from here they would be in the zip.
  6. K4RL added a post in a topic: Templates Editor Not Showing Templates On Test Server ?   

    Just to add 'Change Theme' and various other things do not work on the main template either?
     
    Could something be blocking this or could it be a permission not set correctly?
  7. K4RL added a post in a topic: Templates Editor Not Showing Templates On Test Server ?   

    I have just set up a virtual machine test server so I can use it to develop my site but after installing IPB when I go to edit templates I get none showing, nor do any of the drop down boxes in the ACP work.
     

     

     
    Has anyone had a similar problem?
     
    The server is running Centos 6.3 with Apache2 Php etc...
     
     
     
  8. K4RL added a post in a topic: Google map in fields   

    {$data['record']['field_location']} can also be changed to the field number if needed eg.. {$data['record']['field_x']} replacing the x with the id number for the field you wish to use.

  9. K4RL added a post in a topic: Google map in fields   

    The code above is for the database display template, I have more than 1 database and it worked fine as is.
  10. K4RL added a post in a topic: Random Block Display ?   

    Its ok I used some Java to accomplish this and its working great :)

    I have added the code bellow in the case anyone else needs it.

    Make a new html block called random and insert the code bellow.


    <style type="text/css">

    .jsclass body .randomcontent{ /*Do NOT remove! CSS to hide random contents in JS enabled browsers*/
    display: none;
    }

    </style>

    <script type="text/javascript">



    /***********************************************

    * Random Content (from DIVs) script- by Javascript Kit (www.javascriptkit.com)

    * This notice must stay intact for usage

    * Visit Javascript Kit at http://www.javascriptkit.com/ for this script and 100s more

    ***********************************************/



    if (document.getElementById)

    document.documentElement.className = 'jsclass'; //hide content for DOM capable browsers

    var randomcontentdisplay={

    divholders:new Object(),

    masterclass: "randomcontent",

    init:function(){

    if (!document.getElementById)

    return

    var alldivs=document.getElementsByTagName("div")

    var randomcontentsearch=new RegExp(this.masterclass+"s+(groupd+)", "i") //check for CSS class="randomcontent groupX" (x=integer)

    for (var i=0; i<alldivs.length; i++){

    if (randomcontentsearch.test(alldivs .className)){

    if (typeof this.divholders[RegExp.$1]=="undefined") //if array to hold this group of divs doesn't exist yet

    this.divholders[RegExp.$1]=new Array() //create array first

    this.divholders[RegExp.$1].push(alldivs ) //add this div to the array

    }

    }

    this.showone()

    },


    showone:function(){

    for (group in this.divholders){ //loop thru each array within object

    var chosenOne=Math.floor(Math.random()*this.divholders[group].length) //randomly pick one entry from array

    this.divholders[group][chosenOne].style.display="block" //display content corresponding to the chosen entry

    }

    }

    }

    </script>


    <div class="randomcontent group1">
    {parse block="stab1"}
    </div>

    <div class="randomcontent group1">
    {parse block="stab2"}
    </div>

    <div class="randomcontent group1">
    {parse block="stab3"}
    </div>

    <div class="randomcontent group1">
    {parse block="stab4"}
    </div>

    <script type="text/javascript">
    randomcontentdisplay.init()
    </script>

    Change the block names to those of the ones you want to use I used stabx as they are my block names but you can add any block you want.

    Put the parse block code for the random block where ever you want it to show.

    It works fine for what I need so I thought I would let you know how I did it rather than just say I had which many do lol.

    I am sure there is an easier way to do this but like I said if it works then it works.
  11. K4RL added a post in a topic: Random Block Display ?   

    I have 4 blocks I wish to display at random

    stab1
    stab2
    stab3
    stab4

    How would I go about displaying them randomly on my portal page?

    I made another php block called stabportal which I am trying to use as the master block to display the others and have tried using the following code but I am getting parse errors due to the {}.


    $quotes = array(

    // Randomizer

    ' {parse block="stab1"} ',

    ' {parse block="stab2"} ',

    ' {parse block="stab3"} ',

    ' {parse block="stab4"} ',

    );

    /*
    generate a random number between zero
    and the number of quotes minus one
    */
    $rand = rand(0, (count($quotes)-1));

    // output the random quote
    echo $quotes[$rand];

    Anyone know how to do this as its driving me mental
  12. K4RL added a post in a topic: Google map in fields   

    If memory serves Axel it was your code I used for the map info I just tinkered with it for my site so it was controlled by a field in the database rather than using a bbcode. All credit should go to you for the original code.
  13. K4RL added a post in a topic: Google map in fields   

    The code bellow uses the same field to pull local weather data from google, its not perfect but it works well for me.

    <script src="//www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/109162539679639397174/weather.xml&amp;up_location={$data['record']['field_location']}&amp;up_scale=C&amp;up_icons=Google&amp;up_title=&amp;synd=open&amp;w=262&amp;h=258&amp;output=js"></script>
  14. K4RL added a post in a topic: Google map in fields   

    Hi sorry for the late reply, kids off school etc.. so been very busy of late trying to juggle things lol

    Anyhow I will try and explain how to do it the best I can, its based on postal/zip code location but you can also use a street address.

    You can use the one field to display both weather data and map data so all you have to do is fill in one info box for both.

    First of all make a field in your database named 'location' this is where you will be entering the address of post code so you will need to make it a text box.

    Then use the code bellow to display the map where you want it.

    <iframe width="420" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=" http://maps.google.c...m/maps?q={$data ['record']['field_location]}&output=embed&iwloc=near"></iframe>

    Really easy to do to be honest.

    You can alter the dimensions of the map by changing the width and height values.
  15. K4RL added a comment on a file: Member Reviews   

    I knocked up a better system using IP Content and it took a few mins to do. This is certainly not worth the money.