Log in

View Full Version : Duplicating the FAQ system?


Kohhal
02-17-2004, 10:23 AM
Hi,

On vB2 I had the FAQ system duplicated on my site for another function, so I had a duplicate .php file and new templates.

I want to set the same system up on vB3, it's not really a hack though. I can duplicate the faq.php easily enough but how do I go about creating a duplictate of the AdminCp system?

Basically, I want an exact copy of the whole system, just renamed?

Hope someone out there can help?

Cheers,

G :)

Kohhal
02-26-2004, 11:20 AM
Well I figured it out, took a lot of work but have it working now.
After I found something similiar on vb.nl(rules hack) too, haven't installed the hack there but it seems to do a similiar job, doesn't make as many file or database changes though.

FYI, files I needed to duplicate :

/faq.php
/admincp/faq.php
/includes/functions_faq.php

and modify :

admincp/index.php
includes/adminfunctions.php
includes/functions.php

Templates duplicated :

FAQ
faqbit
faqbit_link

DB tables modified :

language
phrasetype

DB columns duplicated :

phrasegroup_managerules
phrasegroup_frontrules

Peace,

G :)

KuraFire
02-26-2004, 12:04 PM
Well I figured it out, took a lot of work but have it working now.
After I found something similiar on vb.nl(rules hack) too, haven't installed the hack there but it seems to do a similiar job, doesn't make as many file or database changes though.

FYI, files I needed to duplicate :

/faq.php
/admincp/faq.php
/includes/functions_faq.php

and modify :

admincp/index.php
includes/adminfunctions.php
includes/functions.php

Templates duplicated :

FAQ
faqbit
faqbit_link

DB tables modified :

language
phrasetype

DB columns duplicated :

phrasegroup_managerules
phrasegroup_frontrules

Peace,

G :)
I think it can be done even easier.

Mainly, the trick is to just add a "type" flag to the FAQ system, in both code and database, but that shouldn't take more than a few tiny file edits and some extra rows in a database (== no adjustments, just new data).

If you'd like to know more (TheMasterG), feel free to contact me so we could work something out. THat is, if you're not satisfied yet with what you already have...