Jump to content
xisto Community

matak

Members
  • Content Count

    419
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by matak


  1. Google Chrome designer bug was found merely few hours after google releasted it.
    I really love google products. And while waiting for the NEW browser which will revolutionize the internet, as designer i really hoped that they will fix the stupid scrool bug by adding empty white space as holder of the scrool, so that you don't have to se your page shiver when loading from small content to content that has some scrolling to do"

    I also hope that google engineers find this notice before they reach zillion of uses of their browser.

    More news can be found, here


  2. Yes your credits will bet sent to between 1 and 4 credits. They are reset after you are accepted for hosting. The way you make credits before hosting is a little easier because Xisto wants you to be able to earn your credits so you can be hosted right away. Once you are accepted, they are reset and you'll have to start earning them again.

    thanks for explanation. :XD:

  3. Hy peeps. That forum "Post a new topic in My Ideas, Theories, Possiblities, Innovation" (possiblities is misspelled :) ), is forum forum for my first posts, and i guess for few last ones (unless it gets accepted :XD:) j/k (memories)

     

    Anyway trap has a good offer for 250 credits for one year of domain, and i was wondering why can't be an offer for 250 credits for one year of hosting.

     

    Here's how i think it goes, and why 250 credits application could be a good one.

    buying a hosting for a website, means that you have a good idea for your website

    when you are achieving that goal you don't have much time to post on forums, but you are dedicated to developing your website

    after development you need a good host to test your website

    if in your free time you managed to stay active on trap forums an gather at least 250 credit (which isn't that hard) you can go for one year hosting application

    one year hosting is approved, and you don't lose credits for one year after that approval

    if you don't have enough credits to buy another year of hosting then your account is canceled, or you just start to lose your credits unless you canceled your account

    Gathering 250 credits requires patience, and again if you gather so much you wouldn't have to wory about your credits going to be brought back to 0 after your 30 credits hosting application is approved.

     

    Thank you for taking time to read this.

     

    Notice from BuffaloHELP:
    Spelling corrected and moved to Feedback > Suggestions

  4. I just tried to check out your first design but mozilla said there was a problem loading the page

    oh, sorry i should edit that.. and change the link.. first design is old, and not in use i think..
    i'll find it somewhere on my PC an change the link

    after not beeing hosted at trap anymore lot's of my links are broken.. :XD:

    thanks for the good comments on New design

    EDIT: repaired the broken link :)

  5. Anyway, rambled enough. Thanks for the nice topic :P :P Hope you submit some more psychological and spiritual topics.

    i was unsure wheater to post a topic about this subject, and then just few posts below i saw someone talking about lsd, and mentioning dr.Houses episode when he used it to treat migraine...

    anyway, dr House is only series i'm lurking for on TV, and i think it's great. It's power is in the brilliant new way of studying human behavior on whole new level. Psychological profiles of characters like House, and his crew are made to be conflicting but again show that line in each one of us which makes us humans.

    Anyway i just wanted to comment on last episode i saw, when he got shot, and had complete outer body experience, in which he realized that he's hallucinating, and strugling to stay alive. Also he mentioned ketamine, which is powerfull supstance that i know people used in heavy depressing states, when they had trouble dealing with deaths of their closest.

    ketamine is known to produce outer body experiences and so called astral projections, and many people noted that after just few trips they had chance to feel the presence of their lost family, friends, which helped them in accepting their deaths, and getting rid of depression.

    as for psychedelic writings, i do that in my free time, on paper and on web, but i'm writing in my native language, couse it's hard to express all those feelings and impressions in foreign language.

    thanks for accepting this topic, couse i'm sure many people will misunderstand it's purpuse :P

  6. Psychedelic medicine is know no treat psychiatric difficulties like schizophrenia or bipolar disorder. In 1943 A. Hoffman created lysergic acid which was the main couse of the 60ties hippie movement. Little people know that from time that medicine was invented until the 1963 when it was banned in US for massive and uncotroled consumption it was used in clinics under supervision of specialists to treat lot's of psychiatric problems like alcoholizm, cigarets addiction, schizophrenia.

    Also, shamans, around the world like the ones you know from Mexico use magic shrooms (aka psiloglobin) for subconcious travels. Those supstances are known to have similar effects on human behavior like lysergic acid.

    Now it is forbiden to use those supstances, and it's forbiden in good couse. Many teenagers are exposed to use of drugs, and that by all means should be stopped. But nevertheless it should be noted, that some psychiatrists are still voting for use of those supstances in medical treatment for severe cases of schizophrenia, bipolar or similar subconcious problems.

    It's a shame that fear of loosing our kids to the missuse of drugs, forbid us to see some possible benefits of using the same in society.

    Prety much old link from Wired, that made me write this post, can be found here, and just by further clicking, and reading, it's simple to se how humanity is ignorant in accepting the truth about their egzistance.

    It's all in your head.. :P

    Respect!


  7. Althought it works, and maybe some users can even use this class for some simpler websites, this is not a good way to create class. I cant really explain why, and i'm publishing it so maybe people with more experience in template design can help me figure out how to create PHP templates. Looking forward for your answers.

    some of the variables and directories are in croatian, but i don't think that matters when you look at with programmers eyes.

    First my index.php file looks like this...

    <?php 	include ("includes/showSiteClass.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/; xml:lang="en" lang="en"><head><title>jednostavno.com - Jednostavno o Web dizajnu i programiranju - <?php $ypSiteModules->showTitle(); ?></title><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><link rel="stylesheet" href="css.css"><style type="text/css"></style></head><body><div id="gore"><?php $ypSiteModules->showMainLinks($_GET); ?></div><div id="lijevo"><?php $ypSiteModules->showSubLinks($_GET); ?><div id="desno"><?php $ypSiteModules->showContent(); ?></div></body></html>

    showSiteClass.php is this

    <?php error_reporting(E_ALL); ?><?php	class c1ShowContent {				private $variable = array (				 "index"	=> array ("PHP Open source sustav" => "opensource"),									"HTML" => array ("Pisanje HTML koda [HTML 0001]" => "pisanjehtmla"),									"PHP"	=> array ("Instalacija Xampp [PHP 0001]" => "instalacijaxampp"	)									);			public function showMainLinks($fun) {			echo "<div class=\"mainLinkovi\"><ul>";			foreach ($this->variable as $key => $val) {				echo "<li><a href=\"?main=".$key."\">$key</a></li>";			}			echo "</ul></div>";			$mainKeys = array_keys ($this->variable);								if (empty($_GET['main'])) {				$this->link = $this->variable["index"];				$this->main = $this->variable = "index";			}			elseif (in_array($_GET['main'], $mainKeys)) {				$this->link = $this->variable[$_GET['main']];				$this->main = $_GET['main'];			}			else {				$this->link = $this->variable["index"];				$this->main = $this->variable = "index";			}				}				public function showSubLinks($fun){			echo "<div class=\"subLinkovi\"><p>Sadraj - $this->main</p>";			echo "<ul>";			foreach ($this->link as $key => $val) {				echo "<li><a href=\"?main={$this->main}&sub=".$key."\">$key</a></li>";			}			echo "</ul></div>";			$subKeys = array_keys ($this->link);			$this->subKeys  =$subKeys;						if (empty($_GET['sub'])){			$this->content = $this->main;			}			elseif (in_array($_GET['sub'], $subKeys)) {			$this->content = $this->link[$_GET['sub']];			}			else {			$this->content = $this->main;			}		}					public function showContent(){			include "stranice/$this->main/$this->content.html";						$filename = "stranice/$this->main/$this->content.html";				if (file_exists($filename)) {					echo "<p class=\"ftime\">Dodano: " . date ("d F Y H:i:s.", filemtime($filename))."</p>";					}		}				public function showTitle() {					$mainKeys = array_keys ($this->variable);												if (empty($_GET['main'])) {			$this->title = "index";			}			elseif (!empty($_GET['main']) && empty($_GET['sub'])) {			if (in_array($_GET['main'], $mainKeys)){			$this->title = $_GET['main'];			}			else {			$this->title = "index";			}			}			elseif (!empty($_GET['sub'])) {			$this->link = $this->variable[$_GET['main']];			$subKeys = array_keys($this->link);			if (in_array($_GET['sub'], $subKeys)){			$this->title = $_GET['sub'];			}			else {			$this->title = "index";			}			}				echo $this->title;		}			}$ypSiteModules = new c1ShowContent;?>

    directory sturcture on root is

    -includes
    --showSiteClass.php

    -stranice
    --index
    ---index.html
    ---opensource.html

    --HTML
    ---HTML.html
    ---pisanjehtmla.html

    --PHP
    ---PHP.html
    ---instalacijaxampp.html

    index.php

    Problem i found on this class, that it's not dynamic enough. It's fast, and i think it's secure enough, but i got some problems when i wanted to include some pages EG. contact.php, that need another included file eg mailto.php, and can't figure out a way to solve that problem, except by including it in index.php file at start, but than it would be availiable to any file i have, and that's not an option.

    I tried to find many good tutorials on writing PHP template system, and am trying to avoid smarty, beacouse i preffer to use my own templating system until i become more familliar with the way it works.

    If you had experience in building such a system, please help.

    Main problem i think is, array that sets pages, beacouse it's really crude for now, and i need to make it more justifiable (dunno the proper word).

    Thanks for any help.

  8. This is really simple script. Well at least this part is, but it could be extendable. Only problem is that it's not really for massive websites with hundread of visitors a day, but rather for small ones. But it is a good script to figure out how to make a visitor counter script.

    Anyway here's the snippet.

    <?phpfunction getVisits($variable) {	$visits = array();	if ($handle = opendir('stats/')) {	while (false !== ($file = readdir($handle))) {		if ($file != "." && $file != "..") {			array_push($visits, $file);		}	}	closedir($handle);	}	$key = array_search($variable, $visits);		if ($key !== FALSE) {				echo "Posjeta do sada: ".count($visits);			}	elseif ($key === FALSE){		$file = fopen("stats/".$variable, 'a');		fwrite($file, $variable);		fclose($file);			getVisits($variable);	}}?>

    Just call it with getVisits($_SERVER['REMOTE_ADDR'])., and be sure to have that stats directory in same root as file in which script is executed.

    Comments or improvments are welcome.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.