https://www.icyphoenix.com/viewtopic.php?f=35&t=5819 ----------------------------------- tbird412 Fri 08 May, 2009 17:36 How Do I Create "FAQ Style" Content Page? ----------------------------------- I read both the CMS documentation and the Advanced CMS documentation. And these were both after going through all search results for 4 different queries (not really sure how to word what I am looking for here). All I am trying to do, is create another page similar to rules.php or faq.php. I already created the page in the CMS Pages ADV area. It shows up right under 3 Columns, 2 Columns. Then there's [mypage.php] as the third entry. So in my infinite wisdom (puke) I click on my page to edit it, then click "Add New Block" assuming this is how I add content to that page. My page is the 2 column layout, and I just want to add one content block that is similar to the rules and faq pages where you can click different 'titles' and they expand the content below them. Basically our site (old site) has a nice chapter separated history. We've been around for almost 11 years now, so all our history in one giant content window is just dumb. But having the "chapters" of our history as the titles (sort of like the FAQ questions) and then the full story of that chapter being expanded (the answer to an FAQ) I figured it would be a nice way of organizing it all. I am sure the answer is quite obvious and I am just missing it. I looked through all the block types and could not find any that even sounded like they would be what I need. ----------------------------------- Chaotic Fri 08 May, 2009 23:50 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- Similar to the rules.php page? I'm betting you could rename those files to whatever you like and edit the "rules" in your ACP to reflect whatever you want...Can someone confirm that? ----------------------------------- spydie Sat 09 May, 2009 00:42 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- I suppose that it has´nt changed from 1.2.0.27 to RC1 ( the same). I confirm your guess CHAOTIC. I suggest FAQ of forum to do what you wanna do ----------------------------------- tbird412 Sat 09 May, 2009 01:13 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- Yes, like the rules page. Basically a page that does the same "expand/contract" thing with the content that rules and faq does. The problem is I use the rules and FAQ pages and like them. I just wanted to make a NEW page that is exactly the same as them (obviously with different content in the middle). So I'm not dumb though right? It's not just a "block" type I am looking over? I am so confused about all of this as it is. This is my first try at "packaged sites" and all this weird language of blocks, acp, cms, etc. confuses the hell out of me LOL. Even when I read the documentation. I'm like "huh?" ----------------------------------- Lopalong Sat 09 May, 2009 06:26 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- At best a patch, but it will do what you want it to do. ;) copy history.php to / copy lang_history.php to your language folder. copy history_body.tpl to the default template folder. Open history.php and change $l_title = History; to $l_title = Old Mother Hubbard or whatever; and that will parse through to the templates also. I've made a "Copy" of the rules as default "lang_history.php" or you can rename the included faq array - lang_history.php to lang_history.php and use that if you prefer an open layout to start with. :P Now all you need to do is edit the lang_history.php file. Url: da da da/history.php :mrgreen: ----------------------------------- tbird412 Sat 09 May, 2009 07:23 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- Ahh it worked! You're the greatest. Especially for packaging it all up like that for me. Seriously, one of the best communities I've seen around. Why can't real life people act like this? Two last noob questions that I will most likely find the answer to before I even get a reply here (I will start searching now): How do I get a link to history.php in around the same area as the included links to FAQ and Rules? Can I use any html or ubb code in those arrays in the lang_history file? Mainly just looking for links or at least small images ----------------------------------- Lopalong Sat 09 May, 2009 09:15 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- [quote=tbird]Why can't real life people act like this? [/quote] Damn! and I thought I was a real life person. :mricy: templates/default/overall_header.tpl [code linenumbers=false]Find: {L_FAQ}    After Add: History   [/code] Yes, you can add pics and stuff to the array with html, but you must comment out any double quotes you use. I.e. Haven't tested this - but if you want try to use bbcode, add this to the top of history.php - Logic tells me it should work - Dunno - You be the Guinea pig. Lol! [b]Edit:[/b] [i][b]Forget the logic[/b][/i] :oops: - bbcode wont parse in this situation irrespective of where it's called from. :( [code linenumbers=false] Add: include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT); After: include(IP_ROOT_PATH . 'common.' . PHP_EXT); [/code] ----------------------------------- tbird412 Tue 12 May, 2009 07:14 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- I kept this thread open in a browser window until I was ready to add the link. That time has now come and passed and I just realized I didn't reply and thank you. So, thanks for your help. Really appreciate it :) ----------------------------------- Lopalong Mon 18 May, 2009 13:02 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- [quote user="tbird412" post="39258"]So, thanks for your help. Really appreciate it :)[/quote] You my friend are pretty easy to help. ;) Tis a pity that some others would describe what you ask about in no more than three words, and then wonder why people ignore them. Welcome to IP tbird - But don't learn too much or come here too often, else they'll pin some green stars under your name. :mricy: ----------------------------------- spydie Wed 20 May, 2009 18:47 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- you mean the ones you just got rid off ??? Lopa one question. I did it with your files but i get a hacking attempt. any idea ----------------------------------- Lopalong Thu 21 May, 2009 00:43 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- Works for me and tbird, and I don't see why it should throw a hacking attempt for you? Try re-installing it, and test it before you do anything else with it. ;) ----------------------------------- spydie Thu 21 May, 2009 09:18 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- My fault. didn´t count on you did it with RC files. that was why. because i tried it on .27. on rc it works. i think i just got to rename faq.php from .27 and change 1 or 2 vars and thats it to got it working on .27 ----------------------------------- Lopalong Thu 21 May, 2009 10:08 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- A bit late in the day to be bothering with v27* when the next stable release is not that far away. ;) OT: If anything, people who are "Playing" with RC2 would be very helpful if they started checking and validating templates and / or reporting any errors and warnings that they come across. And in particular the "Errors". ----------------------------------- spydie Thu 21 May, 2009 10:19 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- i´m still playing around with .27 cause i´m in the middle of a huge project i´m basing on it. it´s just because all the mod´s avaible for it. that project will be a mix of all mod´s working together in something like an online game with shop, cash, point´s etc mod´s ----------------------------------- Lopalong Thu 21 May, 2009 14:41 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- Still OT: :mryellow: Well, if you are adding any phpBB2* mods yourself, then of course it would be a lot simpler to integrate them into v27* than having to convert them to IP-RC's at the same time. ;) ----------------------------------- spydie Thu 21 May, 2009 15:34 Re: How Do I Create "FAQ Style" Content Page? ----------------------------------- [quote user="Lopalong" post="39575"]Still OT: :mryellow: Well, if you are adding any phpBB2* mods yourself, then of course it would be a lot simpler to integrate them into v27* than having to convert them to IP-RC's at the same time. ;)[/quote] exactly. for me it´s easier to understand .27 then RC code. on the other site i´ve the gross done allready. I´m allready finetuning you can say.