We want to change the name of our quiz controller file from "vbquiz.php" to just "quiz.php" and we have changed it in the AdminCP settings and changed the filenames in the forum root and /admincp directory.
It seems to be working correctly for taking a quiz, but just to be safe, I checked the support forums and found this thread, http://www.dragonbyte-tech.com/f93/quiz-not-showing-5490/, where the forum owner had to change it back.
So, I ran this command:
on the /dbtech/vbquiz directory, and found the following files where the controller filename appears to be hardcoded (sometimes in multiple places in the file):
I could edit the hardcoded names in each of these files, but could I also replace them with the PHP equivalent of the template var that you use in the templates for links to the file?
If a variable would work, what is the correct variable/arraykey/member to use?
It seems to be working correctly for taking a quiz, but just to be safe, I checked the support forums and found this thread, http://www.dragonbyte-tech.com/f93/quiz-not-showing-5490/, where the forum owner had to change it back.
So, I ran this command:
Code:
grep -R vbquiz.php vbquiz/ | grep -v svn
Code:
vbquiz/hooks/online_location_process.php
vbquiz/hooks/online_location_unknown.php
vbquiz/actions/quiz.php
vbquiz/actions/dofacebookpost.php
vbquiz/actions/admin/dotypeedit.php
vbquiz/actions/admin/type.php
vbquiz/actions/admin/docatsort.php
vbquiz/actions/admin/doaddcategory.php
vbquiz/actions/admin/impex.php
vbquiz/actions/admin/quiz.php
vbquiz/actions/admin/dooptions.php
vbquiz/actions/admin/delquizconf.php
vbquiz/actions/admin/category.php
vbquiz/actions/admin/maintenance.php
vbquiz/actions/admin/doeditcat.php
vbquiz/actions/admin/delcatconf.php
vbquiz/actions/admin/options.php
vbquiz/actions/quizcomm.php
vbquiz/actions/profile.php
vbquiz/clientscript/vbquiz.js
I could edit the hardcoded names in each of these files, but could I also replace them with the PHP equivalent of the template var that you use in the templates for links to the file?
PHP:
{vb:raw vboptions.dbtech_vbquiz_filename_text}
If a variable would work, what is the correct variable/arraykey/member to use?
Last edited: