is pre-made scripts supported?

  • 1
  • Question
  • Updated 10 years ago
  • Answered
like scripts downloaded some wear else.... The problem is it dose not work in the HTML thing. also would syntasite ever offer just free hosting? Like you use something else to build your site?
Photo of Pitfall

Pitfall

  • 44 Posts
  • 0 Reply Likes
  • unsure

Posted 10 years ago

  • 1
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello pitfall,
There are certain types of code that cannot be put into the site builder. You can add html and java script code using an html widget; although it isn't possible to upload .html or .js files into the file manager. Is this code html or javascript. If you can give me a bit more information I will try to help.

Kind Regards,
Emmy
Photo of Pitfall

Pitfall

  • 44 Posts
  • 0 Reply Likes
well my friend had this forum script that i wanted to upload and i have no clue what type of codeing it is...... i think he said it was PHP or something
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
If it is php that wouldn't be possible. If you can get more information about the type of code it is I would be able to say for sure if you can use it or not.
Photo of Pitfall

Pitfall

  • 44 Posts
  • 0 Reply Likes
the code is just a lot of symbols i don't under stand... also why did you post this as a comment?
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Can you copy and paste the code here so I can look at it. Put this before the code <!-- and this at the end --> it will make it inactive so I can see it. I put my response in a comment because I was commenting on what you said. Feel free to post your reply where you would like; either Add Comment or Post Reply.
Photo of Pitfall

Pitfall

  • 44 Posts
  • 0 Reply Likes
<!--<?
include 'connect.php';
session_start();
include "admin/var.php";
include "smilies.php";
print "<title>$sitetitle</title>";
?>

<body>
<center>

</center>
<br><br>
</font>
<center>
<?php
if(isset($_SESSION['user']))
{
$user=$_SESSION['user'];
$getuser="SELECT * from b_users a, b_templates b where b.templateid=a.templateclass and a.username='$user'";
$getuser2=mysql_query($getuser) or die("Could not get user info");
$getuser3=mysql_fetch_array($getuser2);
$thedate=date("U");
$checktime=$thedate-200;
$uprecords="Update b_users set lasttime='$thedate' where userID='$getuser3[userID]'";
mysql_query($uprecords) or die("Could not update records");
if($getuser3[tsgone]<$checktime)
{
$updatetime="Update b_users set tsgone='$thedate', oldtime='$getuser3[tsgone]' where userID='$getuser3[userID]'";
mysql_query($updatetime) or die("Could not update time");
}
$templateclass=$getuser3['templatepath'];
}
else
{
$chipcookie = $HTTP_COOKIE_VARS["$cookiename"];
$userID=$chipcookie[0];
$pass=$chipcookie[1];
$thedate=date("U");
$checktime=$thedate-200;
$getuser="SELECT * from b_users a, b_templates b where b.templateid=a.templateclass and a.userID='$userID' and a.password='$pass'";
$getuser2=mysql_query($getuser) or die("COuld not draw cookies");
$getuser3=mysql_fetch_array($getuser2);
if(strlen($getuser3[username])>1)
{
$_SESSION['user']=$getuser3[username];
$uprecords="Update b_users set lasttime='$thedate' where userID='$getuser3[userID]'";
mysql_query($uprecords) or die("Could not update records");
if($getuser3[tsgone]<$checktime)
{
$updatetime="Update b_users set tsgone='$thedate', oldtime='$getuser3[tsgone]' where userID='$getuser3[userID]'";
mysql_query($updatetime) or die("Could not update time");
}
$templateclass=$getuser3['templatepath'];
}
else
{
$ip=$_SERVER["REMOTE_ADDR"];
$insertguestip="REPLACE guestsonline set time='$thedate', guestip='$ip'";
mysql_query($insertguestip) or die("Could not insert guestip");
$templateclass="default";
}
}
include "templates/$templateclass/title.php";
print "<link rel='stylesheet' href='templates/$templateclass/style.css' type='text/css'>"; //chooses which template to display
if(strlen($getuser3[username])<1)
{
$getuser3[status]=-1;
}
if(isset($_GET['forumID'])&&isset($_GET['ID'])&&$_GET['ID']!=0) //If looking at specific post
{
if(!isset($_GET['start']))
{
$start=0;
}
else
{
$start=$_GET['start'];
}
$forumID=$_GET['forumID'];-->

this is just part of it. well about 5% of it
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello,
Thanks a lot for posting the code, although I'm sorry this can't be added to the site builder. Here is a link to a forum thread with information on adding other types of forums to your site Adding A Forum.

Emmy
Photo of Pitfall

Pitfall

  • 44 Posts
  • 0 Reply Likes
will synthasite ever support PHP?
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Synthasite is built using php, but as far as users being able to upload their own php files I am not sure if that is something that will ever be possible. I'm sorry I don't have better news for you. Please let us know if you need further assistance.