Jump to content
xisto Community

galexcd

Members
  • Content Count

    1,313
  • Joined

  • Last visited

Everything posted by galexcd

  1. Nope... still no good.Is preg_replace what i really should be using to do bbcode? and if so, how do other forums check for illegal images? How does Xisto's bbcode work?
  2. Bah, i replied before i tried it. It doesn't work. The function itself doesn't work with the input "$1"
  3. Hi, Im alex, and I've been with Xisto for a while... well at least longer than most people with my post count. I started here because I wanted web hosting like you, but after i got my domain and website with Xisto - Web Hosting, I just stick around these forums just because I got acquainted with them. I liked the community, and the helpfulness I found here. When looking at everybody who posts here, almost everybody I see who has over 50 posts is in the group [HOSTED]. I was thinking of using Xisto again for a different site, but I don't think I'm active enough to keep it. I mainly come here when I need a question answered about something, or Im just bored, then I find myself going through all the different threads (like I am doing now) and answering people's posts for fun... Hahah, I'm such a nerd!Anyway I guess this suffices as MY introduction, because I never had an introduction, and a message for you to enjoy your stay here at Xisto..P.S. when looking at that last sentence, I think it sounds a bit like I have been here a long time and I'm welcoming you on behalf of Xisto. Please know that that is not how I meant that to come out, I do know there are plenty of others who signed up way before me, and others who have a much higher post count than me. Heh,yeah.. I should stop talking now. I'm just rambling on and on... heh,, anyway enjoy~
  4. Thanks so much!Yeah, I don't know too many of the standard php functions, so I usualy end up having to make my own, usually using str_replace, explode, and a whole bunch of arrays and other variables...
  5. Sigh... preg_replace is getting very annoying for me. Could sombody tell me what I'm doing wrong? Im making a bbcode replace for the forums I made, and preg_replace is being a b****... Right now Im working on the "http://forums.xisto.com/ tag, and I want to check for valid URL's, because idiots in the forum are adding js and stuff in the image tags and messing it all up. So i put a function in the array that holds all of the replacements: $main_search=array('/\[b\](.*?)\[\/b\]/is','/\[i\](.*?)\[\/i\]/is','/\[u\](.*?)\[\/u\]/is','/\[img\](.*?)\[\/img\]/is','/\[url\=(.*?)\](.*?)\[\/url\]/is','/\[url\](.*?)\[\/url\]/is');$main_replace=array('<strong>$1</strong>','<em>$1</em>','<u>$1</u>',img(),urln(),url());$str=preg_replace ($main_search, $main_replace, $str); My first try was to pass the variable $1 through to the function as an argument, but it gave me all sorts of errors, which i figured out because variables cant start with a number... Now here comes the annoying part: function img(){$url='$1';$array=explode(".",$url);$ext=strtolower($array[(count($array)-1)]);if($ext=="jpg"||$ext=="gif"||$ext=="png"||$ext=="jpeg"||$ext=="tiff"||$ext=="bmp")return '<img src="$1" style="max-width: 100%">';elsereturn $url;} Thats what I'm stuck at right now, I tried making the variable url only to see if that might fix it at all, but it dosnt. Bascally the if statement always returns false, when looking at it, I found the problem. explode isn't working. It is setting the variable array to the entire URL not spliting it. So of course the If statement returns false unless the URL is only the word "jpg" or "gif". AHHHHH this is driving me crazy Why is it doing this? help!
  6. What are you talking about Premiere sucks... on a PC, the best editing software is avid. It's what the people in the industry use. It was and still is being used for almost all major movies nowadays.But, as a mac guy, I'd have to say final cut is the best editing software, but both avid and final cut cost money.There is really no decent editing software for windows, If you decide to go to a mac, iMovie is free. It's got everything you'd ever need. It's like the mac's version of windows movie maker but 10 times better.
  7. It should work, but PM me if you have any more problems
  8. He isn't talking about ftp or editing sophtware guys... He means a peice of code that can change code on a diferent page dynamicly. And I do think I know the solution for this. The php fopen, and fwrite functions do just this. Syntax: fopen(string filename,string mode[,bool use_include_path[,resource zcontext]]) fwrite(resource handle,string string[,int length]) basically, you could just write $content="Text you would like to set your file to";$open=fopen("yoursite.com/file.php;;fwrite($open,$content);fclose($open) I didn't try this code yet, so Im not sure if you can write directly to the file through http, but you can definatly do it through ftp by making the url http://forums.xisto.com/no_longer_exists/ instead of http://ww38.yoursite.com/file.php. Remember, the file that you are tring to write to, if you do not use FTP, needs to be writable by the world, so set the proporties of the file to give everybody permison to read and write the file.
  9. most of the pages that have the text ads in the iframe, if you scroll down the iframe there is 1 link at the bottom that says "Your ad here", but it links you here, so You would be dealing with a different company that Xisto sells ad-space to. The link has an ID in it, so It most likely will only be for trap 17, but I don't know, I haven't looked at the site. Your link may show up on many sites that Adbrite buys ad-space from. Good luck! P.S. If you want to advertise something, I'd go with google's adsence, It's fast, easy, and it's google!
  10. I'm sorta lost, it's not really on the radio is it? The impression I got from the site is some sort of pod-cast exchange... What is it?
  11. Hah, never thought about changing the RGB lvl's and superimposing it on top of a picture like that! It looks great, the only thing I've ever motion blurred noise for is to make that mac OS X brushed look.Hah, your a genius
  12. Its more than google earth guys, thats the point of it, you can see the maps from many different map websites, yahoo, nasa, and I've heard more may be coming soon.
  13. Great help.. Thanks, but why is it useless for bb code? because that's the reason I wanted to know.. Right now my message boards sorta suck because I'm using str_replace fore the bbcode, It's sorta annoying how you have to put url name every time, instead of also allowing http://www.mydomain.com/. I've also got a flash chat, and stupid flash's html has to be perfect, so <b><i>text</b></i> would leave the bold modifyer on. I was hoping for a way to use preg_replace to disable bbcode within bbcode for the chat.
  14. http://forums.xisto.com/no_longer_exists/ Fun site i found, tells you how many people think that google, microsoft, yahoo, and a few more (cant remember), is evil. Its pretty funny, but the site has been down for about a week. Hopefully It will go back up. Before it went down here are some results of how evil gogole was
  15. lol, me and my friend got one yesterday, when using his old win 98 machine...
  16. <cough> get a mac </cough>lol.... yeah IE sucks..... I'd either go with FF, or get a decent OS (mac os x/linux)
  17. Well, I dont have a nano, but most small things that have audio out (IE: headphone jacks), are usualy 1/8 inch. There is another conector that is slightly smaller, i think it's 1/10 inch, but I'm not sure, that is usualy used for audio in on computers, like for a microphone. I have noticed that on most newer computers, both the audio in and out have the same size, just mainly the older ones were different sizes. The head phones on the nano might be not the standard 1/8 inch, but be the smaller size. I highly doubt that it's not one of those two. There are only a few standards for different connectors, especially audio.
  18. ohhhhhh I'm Jealous......Yeah, for some reason I want blu-ray to win the blu-ray vs. hd-dvd fight. Probabably caus I heard somewhere Apple is planning to use blu-ray for their machines.hehe...
  19. nobody of course says anything about macs, which pwn windows by the way.Anyway best one for the PC (or at least my fav) is FileZilla, even though ive had a few bad experiances.The best for mac wich i use all the time is cyberduck. It's free, and It's alot better than most that cost.
  20. I must be a total noob, or just really tired...............-.- either way, I cannot understand what exactly those funky strings preg_replace wants for the pattern.Could sombody explain to me exactly what the pattern string and the replace string in preg replace does?I get str_replace... that's quite basic.I considered myself a pro at php until tonight........haha shows how much i know. I bet tomorow, if i look it up I'll get it....Anyway.. any help? Thanks.....
  21. php.net Thats been the bigest help for me
  22. I made my own forums for an online game I am making, pretty advanced forums, with admins and stuff.... Took me all summer. Wasn't too hard to code, just very long time. Simple functions.798 lines of code
  23. hehe, no its not wap, its for regular browsers on computers...I shouldn't have posted in this thread, but if any of you want it anyway, PM me. Its made in flash, from scratch, and it's easy to modify to fit any color scheme.It loads variables from a second page every 4 seconds, but you do not see it refreshing, but some browsers may constantly have the words "connecting to (domain name)" in the status bar...I don't know much about wap, but i doubt that flash works on it, but on your download, my flash chat can connect to and update the text file you have to store the messages in, this way if you have a website, you could have a place for mobile, and a place for computers, and they would see each other's messages...
  24. hmm..... I made my own flash chat if anybody wants to use it, no annoying refreshing.... PM me if you want the code.
  25. invitation sent. anybody who wants invites, i've got 98 just PM me... Pretty soon this thread won't have any purpose with google giving away free invites left and right....
×
×
  • 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.