The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    I want to add Manual code to my Website, how would i do that?

    avatar
    Reverse
    Forumember


    Male Posts : 362
    Reputation : 8
    Language : english
    Location : GraphicZone

    Solved I want to add Manual code to my Website, how would i do that?

    Post by Reverse July 19th 2012, 10:22 pm

    My friend says i need the:
    Local Host
    and
    The username and Password to in the behind my website.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Ape July 19th 2012, 10:56 pm

    Do you mean you need to get in to our servers ?? if this is what you mean then sorry this can not be done

    FM do not let us enter our servers at any time Sorry.

    This is to help stop hacking or our servers and our Host..

    Sorry then this can not be done.

    Ape I want to add Manual code to my Website, how would i do that? Ascaso
    avatar
    Reverse
    Forumember


    Male Posts : 362
    Reputation : 8
    Language : english
    Location : GraphicZone

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Reverse July 19th 2012, 11:33 pm

    so i can't add manual codes to my site?
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by runawayhorses July 19th 2012, 11:46 pm

    You can in your Administration Panel. Scroll down to the bottom of your home page and click the "Administration Panel" link.
    avatar
    Reverse
    Forumember


    Male Posts : 362
    Reputation : 8
    Language : english
    Location : GraphicZone

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Reverse July 19th 2012, 11:50 pm

    Yes i know, but i've tried adding custom codes like this:
    Code:
    <script>
    document.write("<?php echo 'hello!'; ?>");
    </script>


    <?php
    echo "<script language=\"JavaScript\">";
    echo "alert(\"Hello World\");";
    echo "</script>";
    ?>


    <?php $phpvar=1; ?>
    <script type="text/javascript">
    jsvar = 3;
    //Assign jsvar javascript variable value to php variable $phpvar
    '<?php $phpvar="<script>document.write(jsvar)</script>"; ?>';
    </script>
    <?php echo $phpvar; ?>
    <script type="text/javascript">
    var counter = 0;
    for(i=0;i<10;i++){
    counter++;
    }
    </script>


    <?php
    $phpvar= "<script>document.write(counter)</script>";
    echo $phpvar;
    ?>
    <?php session_start(); $_SESSION['nume']='Sanat';?>
    <!-- HTML code -->
    <script type="text/javascript">
    alert("Welcome <?php echo $_SESSION['nume']; ?>");
    </script>
    <script type="text/javascript">
    function test(){
    document.getElementById("php_code").innerHTML="<?p hp
    $w="do";
    switch($w){
    case 'do': echo "You will be logged in?"; break;
    case 'loguot': echo "You will be logged out?" ; break;
    }
    ?>";
    }
    </script>


    <a href="" onclick="test(); return false;"> test </a> <br>
    <span id="php_code"> </span>
    <?php
    if(isset($_GET[action])){
    // Retrieve the GET parameters and executes the function
    $funcName    = $_GET[action];
    $vars    = $_GET[vars];
    $funcName($vars);
    } else if (isset($_POST[action])){
    // Retrieve the POST parameters and executes the function
    $funcName    = $_POST[action];
    $vars    = $_POST[vars];
    $funcName($vars);
    } else {
    echo "<INPUT NAME='click_me' TYPE='button' ONCLICK='javascript:javaFunction()' VALUE='Click Me'>";
    }


    function phpFunction($v1){
    // makes an array from the passed variable
    // with explode you can make an array from string.
    $varArray = explode(",", $v1);   


    echo "First Value: $varArray[0] <BR>";
    echo "Second Value: $varArray[1]<BR>";
    }
    ?>


    <SCRIPT language="javascript">
    function javaFunction(){
    // In the varArray are all the variables you want to give with the function
    var varArray = new Array();
    varArray[0] = "Hello";
    varArray[1] = "World";


    // the url which you have to pass an action to the GET- or POST-variable
    var url="<?php echo $_SERVER[PHP_SELF];?>?action=phpFunction&vars="+varArray;


    // Opens the url in the same window
    window.open(url, "_self");
    }
    </SCRIPT>


    Trigger:


    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("h1").click(function () {
    alert("h1");
    });
    $("button:last").click(function () {
    $("h1").trigger('click');
    });
    });
    </script>


    <div><h1>Hello World</h1></div>
    <button value="Enter">Enter</button>
    Triggered By Select Change Event


    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("select").change(function () {
    var str = "You select : ";
    $("select option:selected").each(function () {
    str += $(this).text() + " ";
    });
    $("div").text(str);
    }).trigger('change');
    });
    </script>


    <select name="A" multiple="multiple">
    <option>A</option>
    <option selected="selected">B</option>
    <option>C</option>
    </select>
    <div></div>
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by runawayhorses July 20th 2012, 12:20 am

    Try add it to AP>>Display>>Generalities>>

    On that page add it to the "Homepage message" box.

    If your code works or not is your issue, but that Homepage message box will accept that kind of coding.
    avatar
    Reverse
    Forumember


    Male Posts : 362
    Reputation : 8
    Language : english
    Location : GraphicZone

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Reverse July 20th 2012, 12:23 am

    The Code Works, but it's just vBulletin, but we need the Local Host and stuff to tweek it up a bit, could you guys tweek it up a bit to make it for forumotion?
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Ape July 20th 2012, 12:27 am

    Ph4zeChineseBanana wrote:The Code Works, but it's just vBulletin, but we need the Local Host and stuff to tweek it up a bit, could you guys tweek it up a bit to make it for forumotion?
    What is it your trying do ? a screen shot of the thing your trying to place on your site would help

    and the codes for VB forums will not work right on our forums

    The Codes are not even the same as ours

    if your friend knows how to add this to your forum why don't you just add him / her as admin so they can enter your ACP and do the setting for you ?

    Also a link to your forum will help us more and a link to the page your trying to put the code on Wink

    Ape
    avatar
    Reverse
    Forumember


    Male Posts : 362
    Reputation : 8
    Language : english
    Location : GraphicZone

    Solved Re: I want to add Manual code to my Website, how would i do that?

    Post by Reverse July 20th 2012, 12:28 am

    Never Mind, problem solved.

      Current date/time is September 23rd 2024, 8:33 pm