The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
I have made some modifications to the hack by Stasik, which is located here.
New features:
Portions, including the installer, are © 2001 Kevin Schumacher. Portions of the installer were created by Bane. The hack and its' installer may not be redistributed, edited or not, without this copyright notice attached. For version: 2.0.3 Files needed: faq_install.php, faq.php Files to edit: admin/index.php, root/misc.php Templates to edit: None. Instructions: Upload and run faq_install.php from your admin directory. Follow the on-screen directions. Upgrading from Stasik's hack: Upload and run faq_install.php from your admin directory and choose the option to upgrade from v2 of the hack. Upgrading from a previous version of *this* hack (e.g. from this thread): Upload and run faq_install.php from your admin directory and choose the option to upgrade from "v3, v31, or v32" of the hack. Please DO NOT contact me via PM, IM, email, or otherwise outside this thread about this hack. Thanks to Stasik for the great hack! Show Your Support
|
Comments |
#182
|
||||
|
||||
Quote:
On my board (yet to see the light of day) I have modifed this hack to have an additional title (called menutitle to be exact) that is used for "menu" parts of the display. The text in this column is just the question (no hyperlinks). The original title is then used on the "detail" part and does contain the hyperlinks. This then looks identical to the original template based version. I may put this code up at a later date once I do the admin bit and check with Kevin that it is ok. Sorry I couldn't be of more help. |
#183
|
||||
|
||||
I'm running 2.2.6 and there is no FAQ mention AT ALL in misc.php. So how to replace this:
Code:
Find:
if ($action=="faq") {
$templatesused = ""; // Only one template used so load it when called
include("./global.php");
$page = intval($page);
if (!$page)
$page = '';
eval("dooutput(\"".gettemplate("faq$page")."\");");
}
|
#184
|
||||
|
||||
suspect you are looking in yoursite/path-to-forum-if-any/admin/misc.php, not yoursite/path-to-forum-if-any/misc.php.
In a vanilla 2.2.6 yoursite/path-to-forum-if-any/misc.php it starts on line 96. Oh, and don't forget to look at post #179 for the fix for variable parsing. Cheers |
#185
|
||||
|
||||
Damn, double files. What a crap idea.
Thanks man. |
#186
|
||||
|
||||
Quote:
Code:
admin/index.php Find: <a href="bbcode.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a> </td></tr> Just under that add: <!-- FAQ addon --> <tr><td> <table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable"> <?php maketableheader("FAQs"); ?> </table> <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=addquestion"> Add Question</a><br> <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=addfaq"> Add Group</a> | <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Edit</a> </td></tr> <!-- /FAQ addon --> <a href="bbcode.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a> </td></tr> In my admin/index.php at least..... |
#187
|
||||
|
||||
Bumpety bump.
|
#188
|
||||
|
||||
Okay, i added:
Code:
PHP: makenavoption("Add Group","faq.php?action=addfaq","|"); makenavoption("Edit Group","faq.php?action=modify","<br>"); makenavoption("Add Question","faq.php?&action=addquestion"); makenavselect("FAQ Maintenance"); // *** Code:
<!-- FAQ addon --> <tr><td> <table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable"> <?php maketableheader("FAQs"); ?> </table> <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=addquestion"> Add Question</a><br> <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=addfaq"> Add Group</a> | <a href="faq.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Edit</a> </td></tr> <!-- /FAQ addon --> |
#189
|
|||
|
|||
Quote:
|
#190
|
||||
|
||||
In line ~94 I have removed "$sql" because I had trouble after installing 4Images with VB integration.
Original: $query = "SELECT faqid,title FROM faq $sql ORDER BY showorder"; It's now: $query = "SELECT faqid,title FROM faq ORDER BY showorder"; Everything works fine now, but I wonder if removing the $sql could cause any trouble in future (I know almost nothing about php/sql ^^; ) Just wanted to hear your opinion about this. |
#191
|
||||
|
||||
The code you need to find in misc.php in 2.2.8 isn't present, so I have to uninstall this hack. Anyone have any ideas? Thanks in advance...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|