Jump to content
xisto Community

vujsa

Members
  • Content Count

    1,008
  • Joined

  • Last visited

Everything posted by vujsa

  1. Definitelty use CSS for this situation. As far as learning CSS, yes just change the file extention from .txt to .css.Start small and just keep adding to it. Don't fret about the lack of fancy editors. Many people use Notepad for web design. The program I use is just a basic text editor like Notepad that has a couple of features built in for HTML autocompletion.Also, be sure that you are editing your code with some kind of text-based editor for this kind of specific table creation. WYSIWYG editors tend to mis-format tables, so your background images won't line up. Another trick to getting your tables to line up correctly is to use a spacer image. Basically it is 1 pixel by 1 pixel and either the same color as the background or transparent. Then insert the spacer image into a table cell you have trouble with and set the width or height to be the size you want the table to be. The cell won't be samller than the specified image size. This doesn't work if the image doesn't load for some reason.I hope this helps. vujsa
  2. Just to warn you, SMF frequently updates the code for the forum. As a result, the guild I posted above for chaosx2x may need to be tweaked for a more up-to-date release. As far as I can tell, most people have a hard time with the final steps in adding this mod. I mean, you install it and nothing happens. The reason the commands are not automatically inserted into the template is because there are too many templates to consider and each template has many places where the Shoutbox can be inserted. Additional modifications to the actual shout.template.php, will produce output like Xisto's shoutbox or not. Just drop a post here if you run into any problems. vujsa
  3. vujsa

    Google Ads?

    To start, SMF (Simple Machines Forum) is a Bulletin Board System (BBS). Similar to the forum BBS we use here at Xisto. I suggest that you read the post at the top of this forum's index called: Pinned: SMF: Simple Machines Forum - General Descritption. This will start you off on the right foot. As for Google Ads, it wouldn't be difficult to insert the script in to the template. --> To start, choose which template you want to use. (If users can choose from a selection of templates, then they all must be modified.) -->The file to edit in many cases will be public_html > {FORUM_DIRECTORY} > Themes > {TEMPLATE_NAME} > index.template.php --> If you are planning to replace the newsbox with the Google Ads, then you will need to replace the newsbox code with the code provided to you by Google. --> --> Without knowing which templates you are using and not having a sample og the Google code, I can not get more specific. YOU WILL NEED TO KNOW SOME PHP AND HTML TO COMPLETE THESE MODS! Please post specific information so I may better explain how you can make the necessary changes. In this case, I would prefer to explain one template to you and then assist you if you need help with additional templates. Happy Modifying, vujsa
  4. Hey SpaceWaste, I'll install the template on my test site so I can figure out exactly where to insert what code. I guess you meant that you wanted the Shoutbox box just above the News box. I also assume that you want the Shoutbox to look like the News Box? If you'll check My Test Forum you will see my progress. (Page Down Currently) It may take a day or two. But I'll get you a working code. Helios is the theme you are using, correct? Well, I'll get to work on it tomarrow. Got to go to bed soon. vujsa Notice from vujsa: I think that I have what you need. Check out my website and let me know if that's what you wanted. If so, I can either give you Mod Directions or Replacement Files. The replacement files are ready to go but include modifications made for my own site. Additionally, you may just want the directions because it will show you how to do further modification to the Shoutbox templates. Let me know. vujsa
  5. Please read this line again: I was asking why m^e didn't continue with his expaination. Sorry, I have a very sarcastic sense of humor. You think your book's example was poor, did you see the one @ PHP: Hypertext Preprocessor Website By the way, I think it is funny that you wrote a joke script because I just wrote one too. Did you cast a spell on my avatar? I think I know what the error is about, but I think I should let someone else aswer because I can't completely answer the question and I'm also trying to learn this. vujsa
  6. Wow, why did you stop typing? I'm beginning to understand now. That's the easiest to understand explanation I've seen so far. Still a little fuzzy on whay, but I'm beginning to understand how. I think I'll start playing with this some more and hopefully get it figured out. moonwitch, I'm glad you brought the subject up again, my post on the subject has gotten a little stale. I hope we both figure it out.Happy initializing, vujsa
  7. This should suppress most messages. Unless there is a die() message coded in and there probably is.@mysql_connect():Look for mysql_connect();and change to:@mysql_connect() or die("Sorry Server Error");however, you may want to investigate why you are getting an error message.Hope this helps!vujsa
  8. The auto installer is much easier. The database configuration along makes Fantastico irreplacable. Want a real challenge, try the Mambo CMS with the SMF bridge. Both have to be installed manually after being modified to work together.There are a few of us here that are familiar with SMF, so give us a yell if you need a hand.Happy posting, vujsa
  9. Without access to the IPB BBC parser, I can't say for sure as to how to code it, but the best way that I have come up with from a DHTML point of view is to use {content} to generate the id value.The method I used was to get a hash of {content} with the md5() function. Time() or microtime() may produce two seperate values. Date isn't specific enough. Basically, you need a constant specific to each note and that is {content}.The md5() function doesn't care about non-alpha-numeric characters and will produce the same hash every time for a specific string but is highly unlikely to produce the same hash for two different strings. <script> function toggle(toggleId, e){ if (!e) { e = window.event; } if (!document.getElementById) { return false; } var body = document.getElementById(toggleId); if (!body) { return false; } var im = toggleId + "_toggle"; if (body.style.display == 'none') { body.style.display = 'block'; if (document.images[im]) { document.images[im].src = "close.png"; } } else { body.style.display = 'none'; if (document.images[im]) { document.images[im].src = "open.png"; } } if (e) { // Stop the event from propagating, which would cause the regular HREF link to be followed, ruining our hard work. e.cancelBubble = true; if (e.stopPropagation) { e.stopPropagation(); } } }</script><?phpfunction id_name($id){ $id = md5($id); return $id;}?><div id="notice" style="width: 505px; border: solid 2px #FF0000; background-color: #FFFFCE;"> <div id="header" style="width: 505px; color: #FFFFCE;"> <div id="rightbox" onClick="toggle('notemsg', event)" style="width: 15px; height: 15px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/closebutton.jpg); color: #FFFFCE; float: right; cursor: pointer; font-family: Tahoma; font-size: 9px; font-weight:bold;"></div> <div id="leftbox" style="width: 20px; height: 15px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/topleft.jpg); color: #FFFFCE; float: left; padding-top: 0px; padding-bottom: 0px;"></div> <div id="middlebar" style="padding-left: 5px; width: 475px; height: 16px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/notetitle.jpg); color: #FFFFCE; float: center; font-family: Tahoma; font-size: 12px; font-weight: bold;"><b><center>Notice from beetleman:</center></b></div> </div> <div id="notemsg" style="width: 475px; padding-top: 10px; padding-bottom: 10px; padding-left: 15px; padding-right: 15px; background-color: #FFFFCE; font-family: Tahoma; font-size: 12px;">Note #1</div></div><div id="notice" style="width: 505px; border: solid 2px #FF0000; background-color: #FFFFCE;"> <div id="header" style="width: 505px; color: #FFFFCE;"> <div id="rightbox" onClick="toggle('<?php echo id_name("{content}"); ?>', event)" style="width: 15px; height: 15px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/closebutton.jpg); color: #FFFFCE; float: right; cursor: pointer; font-family: Tahoma; font-size: 9px; font-weight:bold;"></div> <div id="leftbox" style="width: 20px; height: 15px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/topleft.jpg); color: #FFFFCE; float: left; padding-top: 0px; padding-bottom: 0px;"></div> <div id="middlebar" style="padding-left: 5px; width: 475px; height: 16px; border: solid 2px #FFFFCE; background-image: url(http://forums.xisto.com/misc/bbcode/notetitle.jpg); color: #FFFFCE; float: center; font-family: Tahoma; font-size: 12px; font-weight: bold;"><b><center>Notice from {option}:</center></b></div> </div> <div id="<?php echo id_name("{content}"); ?>" style="width: 475px; padding-top: 10px; padding-bottom: 10px; padding-left: 15px; padding-right: 15px; background-color: #FFFFCE; font-family: Tahoma; font-size: 12px;">{content}</div></div> This worked in my browser stand alone with an actual string instead of {content}. I imagine something like vizskywalker's suggestion will need to be done where a variable is assigned the value of {content}. Let me know if this helps at all.vujsa Notice from vujsa: Thought that there should be a note tag actually used in the note tag tutorial. Notice from vujsa: This note is here to be used as a test note for the identification bug that is still being resolved.
  10. Hey, I'm glad that you found this tutorial helpful and informative. If you liked that tutorial, there are a couple of related tutorials available as well. Html 102 Web Design For Beginners Good Comments Make Good HTML Hopefully these tutorials will give you a better understanding of how HTML works and help you dream up ideas of what you can do with it. That was a good link that you posted above for:W3Schools TryIt Editor v1.4 I wish they had one of those 10 years ago! An HTML practice window, that's great. I mean, wow, I started by editing a blank shell document via telnet (emacs), saving, switching to browser to reload and view, and noting changes that were needed. Next thing you know, someone will invent an HTML editor that lets you visually place content in the page. AKA WYSIWYG Okay, sarcasim aside, let us know if you have any questions. happy coding, vujsa
  11. Did you upload all of the files? Did you get a FINISHED message when you ran install.php? Why don't you use the auto-installer in cPanel Fantastico? I see the "index" that you are talking about. vujsa
  12. How are you trying to install the software?If you use cPanel Fantastico you should be able to simply select the domain (subdomain) to use and below that, you can specify a directory. If no directory is specified, then the software will be intalled in the root diectory.If you are installing manually, then simply goto xevian.astahost.com/smf/install.phpWhat is your web address?vujsa
  13. Nice explaination of how to do a BBC highlight tag with more than one option. I don't actually use IPB, so I don't need the specific code but the idea works for many needs. Just one question: Seems off to me. Shouldn't it read: <span style="color: $fore; background-color: $back;"> A few more posts on Custom BBC codes for IPB, and we'll have to add a subforum. Keep up the good work. vujsa
  14. I've bought two domain names through Network Solutions. Being the oldest domain registrar, they have a lot of support and send plenty of reminders. If you forget to renew your domain name and you registered it with NetSol, you must be in a coma.As far as price, everyone charges $35.00 a year unless you get a hosting package with them. I remember when domain names were $70.00 for 2 years.I use Network Solutions because they have the fewest question marks after their name.Happy registering, vujsa
  15. For Pentium 4 compatable Celeron processors, the same die is used for both processors. The difference is that the Celeron processor in without as much level two cache. Usually half of the same Pentium 4 processor. Additionally, Intel continues to use an outdated Pentium 4 die as a new Celeron ie. .09 micron compared to .13 micron. Still more, some Celerons were Pentium 4's that were either substandard or intentionally retarded to be packaged as Celerons. The longer a processor is made, the higher the yield of higher performance processors. As a result, Intel has to lock the clock on many 3.2GHz chips to be able to sell them as 2.0GHz chips. This is because as their process improves, the lower clock speeds are less predominant.As far as instruction sets, my understanding is that they are the same although new versions of a chip will have better instructions than their predecessors. I imagine that you will see an increase in performance by installing the higher clocked Celeron.Happy upgrading, vujsa
  16. karlo, welcome to the forum. I really wish I could help you but you are much more knowledgable about PHP than I am. What I can tell you is that there is someone here that should be able to help you. mastercomputers seems to be the most knowledgable PHP scripter here. He has answered many questions for me. As for error pages, your Xisto cPanel should have a Custom Error Pages button under Site Management Tools. This is a basic error page creator. There is more information about environmental variables at http://www.apache.org/ . Hope this helps. vujsa
  17. Wow mastercomputers,I wasn't expecting so much information. Thanks for the hard work. Iwas surprised that you hadn't replied to my post sooner. I know you're a fan of PHP. The first post you had is very similar to what I actually coded. Great minds I guess.I simplified my example problem in order to avoid getting lost in variables. My log function actually passes about ten arguments. Actually, I learned something really useful here. The touch() function. It reduced my code considerably. Again, thanks for the information. It gives me ideas for other text files and logs. also, I'm going to replace my getenv with $_SERVER as you suggested. vujsa
  18. Well, MySQL seemed like overkill for such a simple log file. But yes, you're right, sorting and viewing the data would be better in MySQL. Maybe the reason PHP is lacking a pointer to do what I wanted is because PHP was designed to work with database engines like MySQL. Of course, the reason I didn't know how to manipulate a simple text file was because I learned PHP with MySQL. Thanks for the input. vujsa
  19. To begin with, we want everyone to participate at the forum. We don't want john the super programmer selling scripts for hosting credits and never actually posting any of his vast knowledge. Additionally, we don't want users to feel as though they owe anything to members that give them help in the forum. Finally, only Admins can adjust credits and they are allready swamped with forum work which they do for free. The logistics of the idea is quite daunting to say the least.vujsa
  20. Hey thanks Muddyboy. I was afraid I'd have to do it that way. I was hoping that there was a pointer I didn't know about that would simply insert an entry before instead of overwritting the first line. Just to make sure I'm reading this correctly and well recap for those that may have trouble reading it; Create a new entry and assign the variable $entry to it Open the file for use or create a new file if none exists. Read the current log and assign the variable $content to it. Create the new log as $entry + $content and assign the variable $towrite to it. Write the variable $towrite to the file. Close the file Thanks a lot,vujsa
  21. So I need help getting data entered into my log correctly. I want the newest entry to be at the beginning (top) of the log instead of at the end (bottom). Here's what I have: <?phpfunction access_log(){ // Enter data in usage log. $filename = "access.log"; $entry = gmdate("M d, Y H:i:s T").": ". getenv("REMOTE_ADDR").": ". getenv("HTTP_USER_AGENT")." \n"; fwrite(fopen($filename, "a"), $entry); fclose(fopen($filename, "a"));} // End function access_log()?> And it outputs:Mar 29, 2005 07:57:16 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 07:57:40 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 07:58:03 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:01 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:04 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:07 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:09 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Notice how the newest entry is at the bottom. I need the data to read like this: Mar 29, 2005 08:02:09 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:07 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:04 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 08:02:01 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 07:58:03 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 07:57:40 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Mar 29, 2005 07:57:16 GMT Standard Time: 192.168.1.1: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) I've tried: fwrite(fopen($filename, "r+"), $entry);Set pointer to the beginning.But that erases the first line when a new entery is added. Please let me know how to adjust the code to insert an entry at the beginning. Thanks, vujsa
  22. Consider how long it would take to calculate PI to a trillion digits even on a super-computer. Now the calculation of PI can't really be broken into smaller calculations but that should give you an idea of what the time involed would be if only one computer was used. For example, if computation took 10 days on a single computer then it would only take 5 days on two computers or 1 day on 10 computers. But perhapes the same computation could be done in an hour on an expensive super-computer. So, if you had 240 computers, you could calculate as quickly as a super-computer. United devices has over 3 million computers on its grid. So, United Devices could compute the example above in 0.288 seconds! That's fast. Currently, the project I participate in anylizes proteins to determine if they will bond with cancer cells in such a way that the cancer will die, stop growing, etc... This requires mathmatically trying to fit the test protein and the cancer proteins together like a puzzle to get the desired effect. (simplized explaination) Hope this clarifies the process and use. vujsa
  23. Grid computing is a method of solving complex mathematical equations using several computers at the same time. Here's how it works. Special software is installed on a server and the complex mathematical equation is loaded into the application. Then client software is installed on several computers connected to the server via LAN, WAN, Dial-Up, or Broadband. Once the software is installed, the client informs the server that it is ready to start working and the server sends a piece of the equation to be computed. Once the client finishes the computation, it returns the result to the server and asks for another job. The client can be setup so it only works when the computer is idle. In fact most utilize a screen saver that shows the progress of the current task. This allows the computer to provide full resources when being used for office work, internet browsing, designing, etc... As a result, all of the computers in your entire office could be working on complex mathematical chemistry problems all night while nobody is there. Most people that partisipate in grid computing are donating their spare computer resources to the effort. I have donated both of my computers' spare cycles to United Devices. It is possible to sell your computer's time to some grids. Usually, you will need a minimum number of computers on a network to be considered by a paid grid company. Many large offices that are only open during daytime hours have sold their computer's spare resources to drug companies, research laboratories, the U.S. government, and the military. This is possible because each computer is working on a very small piece of a very large puzzle, so security isn't a problem. Here are the two most popular grids which you can donate your coputers resouces to: SETI@Home - Help search for life outside of Earth. Your computer filters through hours of radio transmission looking for atificial patterns. United Devices - Help medical research. Your computer searches for possible cures for cancer, small pox, antrax, etc. There are many other grids available if you look hard enough. HOW TO install and use the client software: First, go to the web site of the grid you want to participate in and look for the download button. You'll need to register in order to participate because each computer will need to be accounted for in order to make sense of the results that are returned to the server. Following the supplied installation instructions, install the client software on your computers. I don't recommend attempting to install the software in any way other that the suplliers recommended installation configuration. Now, as far as setup goes, you will want to carefully consider what the cosequences of each setting is. If you tell the software to run all of the time, you may find that you will lose computer performance because many of the grid tasks place a very heavy load on your system. Especially the SETI software, the individual tasks are huge and require a lot of resources. I would set the software to run only while the computer is idle and/or only during certain hours of the day. If the coputer is used frequently, You can set the software to run only as a screen saver. United Devices allows the user to setup several configurations and usage times. SETI@Home is a little less user friendly. Currently, United Devices is working on a search for a cure to cancer. See my signature below. Happy Grid Computing, vujsa
  24. Silent Soul X is correct, I recommend simply replying to the faulty post and letting the moderation team know about it. After replying to the first post with your additions or corrections, click on the REPORT > button under your user information area. This will open a PM window where you can include a message or comment about the reported post. In the message box, just tell the moderation team know why you reported the post. Like: "I posted this correction post for my previous post" or "I need to add this post to my last one." or "I pasted this huge block of code on the wrong forum, please delete the code" (my favorite request). In some cases, we won't bother merging the posts as they are fine being seperate. Remember to let us know why you reported the post, or at least explain in the second post why you replied to your own post. This report goes to the entire staff so that the first one to read the PM can make the corrections. All of the Mods are happy to help out. That's why we are Mods. Our primary function is to help you, but we tend to get caught up in stopping abuse. A little off topic, the REPORT > button was actually designed to report spam and other bad post to staff. In an effort to maintain a clean and pleasant forum, we ask that you report any post that you feel does not belong here at Xisto. Thank you for your cooperation, vujsa
  25. Well, if you already know html, then try this website for some javascripts and css tricks to add images as buttons. http://www.codeave.com/ If you still need help, I'll be around. vujsa
×
×
  • 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.