![]() |
Hey there! Welcoming myself to CI, with a twist. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Hey there! Welcoming myself to CI, with a twist. (/showthread.php?tid=21852) |
Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-22-2009 [eluser]AKC_Pico[/eluser] Hey everyone! Firstly, let me express that this is not only a thread welcoming myself here, but also a support thread, im in dire need of assistance. I chose to merge both threads for one reason: I saw that the "introduce yourself" forum did not get much traffic, and that you are most likley not to recieve a warm welcome anytime this month! (Dont intend to bring down CI!) My name is Pico vanbeveren. Im fairly new with CI, and my PHP coding knowledge is fairly limited, however so far with the help of a programmer i hired ive managed to make a semi-stable website with CI! With no money left to spare, my programmer is on more important things right now, so ive decided to take my time and get some help from the community here until my programmer returns. So, here goes! Im having huge theme issues. According to my friend, i merley had to find a free CSS templet, add it to the views folder with my other themes, and copy in my coded footer/header/index files. Ive tried this with several CSS themes, and when i switch to it, it looks HORRID! So i suppose my first question would be: 1. Is it possible to find free CSS templates with a working footer/header/index.php ready for CI? Or are there templates compatible with CI already? The reason i ask is thus: I have already a coded footer/header/index.php for a theme, however i don't LIKE the theme, but i like the structure i made with my .php template files, through they don't seem compatible with ANY css template i download. I need help here, i would like to switch templates/themes, i just don't know how without working footer/header/index.php files for it. (Why make theme'ing so difficult for CI?) 2. My website does NOT work with Chrome/FF. I found out that its an issue withing my footer/index/header.php files within the template folder. I also found out its a "clear fix issue?" Something with a DIV? Thats all I know, do you have suggestions? 3. Is there a built in forum for CI? If so, i have not found it! 4. I tried upgrading the files to the latest CI version, however i get errors back such as "no config/php file" or "check routes.php" file. Normally in another CMS i would go to setup.php and enter the DB info and be done with it. Am i missing something here? Thanks for the help, its appreciated, (I apologize for making my questions hard to understand) and i hope i can contribute a small amount of my knowledge to the community as well while i get myself acquainted to the forums! Pico Vanbeveren. Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-22-2009 [eluser]InsiteFX[/eluser] Hi, Quote:1. Is it possible to find free CSS templates with a working footer/header/index.php ready for CI? Or are there templates compatible with CI already? The reason i ask is thus: I have already a coded footer/header/index.php for a theme, however i don’t LIKE the theme, but i like the structure i made with my .php template files, through they don’t seem compatible with ANY css template i download. I need help here, i would like to switch templates/themes, i just don’t know how without working footer/header/index.php files for it. (Why make theme’ing so difficult for CI?) Not that I know of, you need to build them yourself. CMS like Joomla etc have special designs for there themes, that a designer has to follow. Quote:2. My website does NOT work with Chrome/FF. I found out that its an issue withing my footer/index/header.php files within the template folder. I also found out its a “clear fix issue?” Something with a DIV? Thats all I know, do you have suggestions? You would have to add the clear fix to your css file and then place it in your html file after it does any float left or right. Looks like whoever designed the template did not check it! Quote:3. Is there a built in forum for CI? If so, i have not found it! Search the forum here I know some of the users were working on one. Quote:4. I tried upgrading the files to the latest CI version, however i get errors back such as “no config/php file” or “check routes.php” file. Normally in another CMS i would go to setup.php and enter the DB info and be done with it. Am i missing something here? That is telling you that you need to setup your baseurl in application/config/config.php also you need to setup your database in application/config/database.php You will also need to setup your roots config for your default controller in application/config/roots.php I would read the CodeIgniter users guide. Enjoy InsiteFX Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-23-2009 [eluser]skunkbad[/eluser] Hi Pico, Welcome. I've never seen any templates that designed for CI, and I think the reason is that making a template for CI would assume that everyone codes the same way. Some people, like you, are using header and footer files, but I don't use them. Instead I have a complete template, and I have nested views for columns A, B, C, etc. The beauty of CI is that any existing template can be used to insert dynamic data into, but I guess your problem would be that you don't understand how to get it there, and how to set up the template to accept the data coming from the controller. Basically, somewhere in your controller, you will load a view: Code: $this->load->view('home','',FALSE); This would simply load a view. Notice that the second parameter is blank, which means that no data is being sent to the view from the controller. If you wanted to send some data, you would create an array, and then send the array in that second parameter: Code: $arr = array('skunkbad'=>'boogaloo'); So now that you have sent some data to the view, you use it in the view by simply doing something like this: Code: <p><?php echo $skunkbad; ?></p> Now we can move on to bigger and better things. Let's suppose that you want a view withing a view. First, you create a view to insert, tell it not to output instantly by setting the third parameter to TRUE, and well, just see: Code: $arr['inner_view'] = $this->load->view('menu','',TRUE); Now, inside the view, we can insert the 'menu' whereever we want by doing this: Code: <ul> So, as you can see, working with CI is about as easy as anything. Post some code, and/or give us a link to check out your site, and we might be able to better help you out. Enjoy! Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-23-2009 [eluser]AKC_Pico[/eluser] Quote:You would have to add the clear fix to your css file and then place it in your html file after it does any float left or right. Looks like whoever designed the template did not check it! Could you provide me with the CF code? Im having trouble, thankyou so much InsiteFX. Thanks for the explanation skunk, interesting, im not used to this. Still, im disappointed that theme/templates in this "cms" is so hard to.. grasp. Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-23-2009 [eluser]jedd[/eluser] Quote:Still, im disappointed that theme/templates in this "cms" is so hard to.. grasp. Allow me to disabuse you of the notion that CI is a CMS. What your programmer may have written for you is a CMS - it's hard to say from here - but CI is a framework. While it might sound like a game of semantics at your end, the difference is not especially subtle - a framework provides the tools and infrastructure to write your own application - any kind of application. A CMS is one specific type of application (and under that heading there are dozens of approaches). A drop-in-themeable system is an impressive feat, to be sure, because the theme (a bunch of CSS and image files) needs to be able to work with the rest of the system, so generally themes take a bit of effort to rattle up, and are quite site-specific. It's possible that your programmer developed the system to allow for themes from a given app - wordpress, joomla, or something else - to be dropped in. Again, it's hard to say from here. It's more likely, given the budget constraints that you've mentioned, that they wrote a system that is a tad more selfish with its theme designs and requirements. For forums - there's no 'drop in' forum available, though Phil's writing one, and I know Fuzzy is writing / has finished one, and I'm writing one. At least two of those are going to be free in the pleasant sense of the word, but equally they're not quite ready yet. They're also not going to be hugely generalised, so there'll still be some pain to wedge those into an extant codebase. We're basically back to the same problem as before - CI is a framework that people write their own code for - not a modular CMS that people write modules for. EDIT: Oh, for your clear CSS stuff, have a look through your common CSS file, as your programmer probably already has a section - usually a div, usually called clear, usually looks something like the following. Code: /********************************************************************* Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-23-2009 [eluser]InsiteFX[/eluser] Thanks jedd for posting the clear fix code for me LOL I would have had to pull it out of one of my files. Enjoy InsiteFX Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-23-2009 [eluser]AKC_Pico[/eluser] Hey! I took a look in my style.css file, and i found the following code in it already: Quote:/* Clear */ I then took a look in my stylesheet.css, i found the following code: Quote:.clear { THEN i found a file in my template_name/style folder called: webtoolkit.clearfix.css with the following code: Quote:.clearfix:after { So it seems that i have clearfix all over the place! Yet this confuses me as to my site still does not display properly. Am i supposed to add some clearfix code to my footer/header/index.php files aswell? Appreciate the help. Pico. EDIT! Somehow ive managed to hide my link from you guys! ![]() www.lavarico.com EDIT AGIAN: Ive went into my footer/header/index.php and added the html fix for the DIV's, for a moment it semi worked ion chrome ( I saw the side panel, but not the middle content ). Then i edited something and now its back to the bad way it was. Ive uploaded my footer/header/index.php, could you guys take a look? (added my .css files) I added the clearfix to all div's, however its not working. Files: http://www.picoscape.net/PicoUpload/download.php?file=81a59bc3b17f12add64c4d6409688858 Thankyou so much. Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-25-2009 [eluser]AKC_Pico[/eluser] I posted this 2 days ago, hoping someone will still reply and help me, sorry for the bump! Hey there! Welcoming myself to CI, with a twist. - El Forum - 08-25-2009 [eluser]skunkbad[/eluser] Just because it is in the stylesheet doesn't mean it is applied. When you have .clear that means that the div or other element that needs this style to be applied to it must have something like this: Code: <div class="clear"> I don't remember seeing your site, or your view that is being styled by the style sheets you mentioned, but it is impossible to fix a CSS problem without viewing the HTML/XHTML. There's no way we can see how the elements are arranged, or if there are internal/inline styles being applied. |