vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Duplicating the FAQ system? (https://vborg.vbsupport.ru/showthread.php?t=61656)

Kohhal 02-17-2004 10:23 AM

Duplicating the FAQ system?
 
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

Quote:

Originally Posted by TheMasterG
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...


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01461 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete