Jump to content
xisto Community

AlternativeNick

Members
  • Content Count

    211
  • Joined

  • Last visited

Everything posted by AlternativeNick

  1. i was wondering, i have a cable internet connection, not sure on the specs, but in general is cable fast enough to run a webserver off of?i currently run a pretty active forum off of my hosting here, but id like to run it off of my home server, as well as possibly an IRC Server. what sort of connection should i have, and is cable generally fast enough? thanks.
  2. if your looking to use a php way, put all of your links in a html form (<a href="link">text</a><br>) into a text file, then use a php include like this: <?php include('file') ?> replace file with the relative file path
  3. i really like analytics, it shows everything in a nice, easy-to-read format, and although they do use flash, for most users that doesnt pose much of a problem. The only problem that i can see is that some people use a CMS or something of the sort, and adding the code to each part could be a hassle, although i just used an adsense mod, and added the analytics code to it, and since it doesnt display anything, it doesnt interrupt any of my sites stylings and the like.
  4. ok, i have a php script that is not compatable with Xisto's php (4.4.4) i believe it was made to run on php 5, if anyone could help, id really appreciate it, thanks <?phpfunction something($info) {$script = new mirc_script($info);$script->highlight();return $script->get_script();}class mirc_script { private $data = array(); public $chars = array(); // By specifying TRUE for $beautify here you can save a bit a processing time rather than call the beautify method later public function __construct($script = NULL,$beautify = FALSE) { if ($beautify && $script !== NULL) { $this->beautify($script); } else { $this->script = $script; } } // Attempt to beautify the script a bit public function beautify($input = NULL) { // Beautify the script $script = ($input === NULL ? $this->script : $input); // Break apart commands separated by | $script = preg_replace('/\s+\|\s+/',"\n",$script); // Put newlines before } and after { $script = preg_replace('/\s+\}\s*(?:\s|$)/',"\n}\n",$script); $script = preg_replace('/(?<=\s|^)\{\s+/',"{\n",$script); // Put () around some if conditions $script = preg_replace('/(if|elseif|while)\s+([^\(].*?)\s+\{/','\1 (\2) {',$script); $this->script = $script; } public function __set($var,$value) { $this->data[$var] = $value; if ($var == 'script') { if ($value !== NULL) { $this->split_script(); } } } public function __get($var) { return $this->data[$var]; } // Split the script into an array of characters private function split_script() { $this->script = str_replace("\r",'',$this->script); $this->chars = array_slice(preg_split('//',$this->script),1,strlen($this->script)); array_map(array(&$this,'escape_chars'),&$this->chars); } // Escape HTML characters private function escape_chars(&$char) { $char = str_replace(array('&','<','>'),array('&','<','>'),$char); } // Apply highlighting to the script public function highlight() { $open = '\s,!@^&*\050='; // Characters that start a token $close = '\s,!@^&*\051'; // Characters that end a token $script = $this->script; // Conditional Operators $operators = '!?(?:=|==|===|>|<|>=|<=|\/\/|\\\\|&|isin|isincs|iswm|isnum|isletter'. '|isalnum|isalpha|islower|isupper|ison|isop|ishop|isvoice|isvo|isreg|ischan|' . 'isban|isaop|isavoice|isignore|isprotect|isnotify|iswmcs|\|\||&&|\+|\-|\*|%|\^)'; // Patterns to match for different parts of mIRC scripts $patterns = array( // Comments //Block Style // Here I've put a d in front of the pattern. This is a lazy thing I did to tell the script to delete the matched portion of text. It's not part of the regular expression. 'd/\\013?\s*(\/\*.*?\*\/)\s*\\013?/s' // The first element of the replacement will go before each callback, and the second element after each callback => array('<span class="mirc_comment">','</span>'), // Single Line 'd/^\s*(;.*)$/m' => array('<span class="mirc_comment">','</span>'), // Number '/(?<=^|['.$open.'])([+-]?[\d]+?(?:\.[\d]+?)?)(?=$|['.$close.'%])/m' => array('<span class="mirc_number">','</span>'), // Identifier '/(?<=^|['.$open.'])(\$[^\s\050\051\[,]+)/m' => array('<span class="mirc_identifier">','</span>'), // Identifier Property '/(?<=\051)(\.[^\s$\051]+)/m' => array('<span class="mirc_identifier">','</span>'), // Variable '/(?<=^|['.$open.'])(\%[^'.$close.']+)(?=$|['.$close.'])/m' => array('<span class="mirc_variable">','</span>'), // Operators '/(?<=[\s])('.$operators.')(?=[\s])/m' => array('<span class="mirc_operator">','</span>'), // Special Characters '/([\[\]\{\}\050\051\|]+)/m' => array('<span class="mirc_character">','</span>'), // Events '/(?<=^)\s*(on|ctcp|raw)\s+([^\:]+?)[^\:]+?):/m' => array('<span class="mirc_event">','</span>'), // Commands '/(?<=^|[\{\|]\s)\s*([^\$\%\s]+?)(?=\s|$)/m' => array('<span class="mirc_command">','</span>'), // Command Switches '/(?<=^|[\{\|]\s)\s*(?:[^\$\%\s]+?)\s+(-[^\s]+)(?=\s|$)/m' => array('<span class="mirc_command_switch">','</span>'), ); $patterns_keys = array_keys($patterns); foreach ($patterns_keys as $rpattern) { // Iterate through each pattern if ($rpattern{0} == 'd') { // The 'd' switch means delete the text after matching $delete = TRUE; $pattern = substr($rpattern,1); } else { $delete = FALSE; $pattern = $rpattern; } if (preg_match_all($pattern,$script,$matches,PREG_OFFSET_CAPTURE)) { // Get all matches for this pattern array_shift($matches); // Shift off the part we don't want foreach ($matches as $matches2) { // Iterate through each callback foreach ($matches2 as $match) { // Iterate through each match of each callback list($text,$offset) = $match; // Put the first element before the first character of the callback $this->chars[$offset] = $patterns[$rpattern][0] . $this->chars[$offset] ; // Put the second element after the last character of the callback $this->chars[$offset -1 + strlen($text)] = $this->chars[$offset-1 + strlen($text)] . $patterns[$rpattern][1]; if ($delete) { // Delete the entire matched text so we don't match it again $script = substr($script,0,$offset) . str_repeat(' ',strlen($text)) . substr($script,$offset + strlen($text)); } } // End iterate through each match of callback } // End iterate through each callback } // End if } // End iterate through each pattern return $line; } // Returns the script after processing // Specify TRUE for $indent to have the script indented public function get_script($indent = FALSE) { // Implode the array of characters into the finished script $output = implode('',$this->chars); if ($indent) { $lines = explode("\n",$this->script); $output = explode("\n",$output); $level = 0; foreach ($lines as $key => &$line) { if ($in_comment) { // Don't indent parts of the script that are commented out if (preg_match('/^\s*\*\//',$line)) { $in_comment = FALSE; } continue; } // Check for beginning of a comment if (preg_match('/^\s*\/\*/',$line)) { $in_comment = TRUE; continue; } if (preg_match('/^\s*;/',$line)) { continue; } // Remove spaces at the beginning of the line $output[$key] = preg_replace('/^\s*/','',$output[$key]); // Decrease indentation if there's a } $decrease = preg_match_all('/(?<=\s|^)}(?=\s|$)/',$line); // Increase indentation if there's a { $increase = preg_match_all('/(?<=\s|^|{(?=\s|$)/',$line); // Increase indentation if there's a $& $increase = preg_match_all('/\$\&\s*$/',$line); $difference = $increase - $decrease; if ($difference < 0) { $level += $difference; $difference = 0; } if ($level < 0) $level = 0; $output[$key] = str_repeat(' ',$level * 2) . $output[$key]; $level += $difference; $difference = 0; } $output = implode("\n",$output); } return $output; }}?>
  5. well not only does he have no shame about coming out with the book and interview combo, but even though he was demanded to pay the 33M or whatever, its been reported that he hasnt paid anything at all.not to mention the fact that hes getting paid 3.5M for the book, and all that money will either be transferred through a 3rd party, or will be sent into an bank account overseas, so that the feds cant do anything about it.oh yeah, and im going to write a book called 'if i got my girlfriend pregnant'itll be about how i would have gotten my gf pregnant, if someone who didnt look exactly like me and had my same DNA hadnt done it first.anyone want a copy?
  6. ohio state must win!you see, im from ohio so the buckeyes are the only good team we have left. the browns and the indians are both horrible, and the Cavs well, i dont like basketball so the buckeyes are my last hope.Not to mention that Ohio is ranked #1, and they have the most supporting fan base of any team ever. period.ive seen tickets going for as much as $3,000 (Sadly i had to turn down one from my ex, im getting married and my fiance wouldnt like me going with an ex)anyways, buckeyes are going to win
  7. Im using SMF version 1.09 i would like to make a [mirc] bbcode so that it shows mirc syntax highlighting (as i have an mirc based site) i have a php script that will do the highlighting, im just really not sure how to incoporate that with the forum. http://forums.xisto.com/no_longer_exists/ is the link for the script, it is not mine, but made by tye of mirc.net thanks for the help. Ive asked on the simple machines forum but theres been absolutely no help, so if anyone here can help me out, id really appreciate it.
  8. as far as i know, 2 sites that share similar keywords (or will show up in the same google search) that link to each other will earn more 'points' towards their rankingas far as 1 way links go, im sure theyre worth a bit more, as people will usually only have a 1 way link if the site being linked to is really worthwhile (you wouldnt want a useless link on youre site right?)also, if 2 sites are linked and share identical (or nearly identical) content, this looks bad on both of the sites, therefore lowering the ranking.i swear, googlebot is smarter than i am >.<
  9. this is pretty neat. i have to say, youve done much better with joomla than i could figure out xDi had a really hard time getting joomla to my liking, so i decided not to use it, however youre site makes very good use and shows alot of the potential that joomla has. i love the 'backtracks' section, and the forum looks pretty nice.im glad to see that youre using SMF as that is my favorite forum to use :blink:anyways, good luck on the site, i like it and i think it has potential
  10. well a while back, someone in the US got shot like 9 times for taking a bite off of a pear, and then throwing it. police thought it was a grenade. imagine how messed up you could get for wearing something that even moderately made you look like a terrorist
  11. just to add a little bit more, not all private schools really offer a better environment. the school that i went to had a great reputation, but to the students who actually knew what was going on, there were more drugs there than at a public school.really because the people in private schools have the money, public schools kids smoke weed and drink, but there was hardly a time in the private school that i went to that you couldnt walk into a bathroom and find someone using cocaine or shooting up heroine. money is the root of all evil they say right?
  12. no matter what you do, not everyone is going to be 'equal'take out the private schools, ok.so know you have all the 'rich kids' that youre so worried about coming into the public school system. do you think that their parents, who were so concerned about their schooling, would let them be just like any of the other kids? of course not.i transferred from a private school to a public school recently (believe me, im not rich, but i collect social security since my mom died, thats what paid for my school) and even in the public school no one was equal.even in a small public school, there are different groups of people, so you can never be truly 'equal'for instance, the AP Biology 2 class, which was of course all the smartest seniors, had the option of going to South Carolina to help out with the recovery of animals that were harmed by poachers (alligators, crocs, whatever they have in SC)but of course, only the rich kids could afford it. the government doesnt pay for stuff like that
  13. alright, ill go ahead and start a communist community, you can go out and farm and ill sell what you make, you have to do all the hard work, ill sit on my butt and sell what you make and then we can split the money ok?thats really what communism suggests, have one group of people do the hard work, another group do the easy stuff, and you all get paid the same.and thats only when it works right, in all the situations that communism has actually been used, they make the already poor people do all the hard work, and then the already rich people make all the money, hence the phrase 'the rich get richer and the poor get poorer'
  14. you know, in the UK some guy got arrested for driving under the influence after drinking 23 red-bullsand another person died from heart failure because of the amount of caffeine injested.these things can be dangerous, but god are they wonderful :lol:i wouldnt be able to live without energy drinks, i have a very very busy schedule
  15. ive heard of this actually, although i havent tried it or anything, i do know that there was originally suspicion that it actually contained cocaine
  16. i have a sub-domain and ftp account set up for someone, but is there any way to give them cpanel access? for instance so they can create their own mysql databases, change their own passwords, etc?
  17. i used to play that game constantly, however i really havent played in a long time. i remember it from so long ago, i was actually playing new years eve at midnight when the supposed Y2K bug was supposed to hit. LOL!thats one example of a very addictive game
  18. another addon i found is the XRay addon, i think its mentioned in another post here, but its awesome for anyone trying to examine the source of a page. instead of having to switch between windows, it sort of layers the source over the page itself. pretty neat-o
  19. wow, i really though that i had installed all the addons i needed, up until i got to this post lol. its amazing that in 3 hours of looking through addons i didnt see these, and theyre probly the most amazing downloads ive seen so far
  20. i use Simple Machines Forum along with MKPortali even use the default skins, its really good looking right out of the box, and its incredibly easy to use.if youd like to see an example of the 2, check out defaultsite and defaultsiteforum
  21. i just finished downloaded and am installing right now, i hafta say i cant wait to see what its like *is excited*UPDATE:: Installed, searched through addons and themes, etc. Found a lot that i love!a few that ive installed are the HaikuFox Theme, which is the first 'light' theme ive liked for FF so far.also, ColorZilla, as it helps me coordinating colors for graphics, css, etc,firebug, for letting me debug sites, temporarily fix errors, disable javascripts and suchfoxy tunes allows me to control my media player directly through the browsertab catalog, similar to the window when you alt+tab, except bigger, shows the tabs, and works when you use ctrl+tabweb developer: allows me to find any errors, as well as manipulate the source of a page any way i want, even lets me directly edit the html :(i think i can deal with the spellchecker in exchange for all of that
  22. hah i do plan on moving here within the next 6 months or so, i just have a few problems with that :Sfirstly, im broke :lol:2nd, i wont have any money for internet, and well, thats bad :Sother than that, the potatoe idea is great, now if only i had a potatoe :S
  23. hey man, sorry to hear about that. ive been with my girlfriend for about the same amount of time, and a little while back we broke up for a while, and i know what you mean about the depression. the way i see it is it takes a while for it to build up, or for the reality to really sink in. ive done the whole online-dating thing, and its never worked out for me. in fact a girl i was dating online/phone commited suicide while i was dating her, kind of a shocker. anyways, i guess what im saying is, live your life however you need to, have a good time, and dont worry about 'finding the one' because youll find her when you least expect tooh and ps, dont try to not expect it, just dont expect it
×
×
  • 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.