View Full Version : [RELEASE v.2.x.x] Additional FAQ Hack (FAQ edit)
Stasik
09-05-2001, 10:00 PM
NEW VERSION RELEASED
get it here (http://www.vbulletin.com/forum/showthread.php?threadid=27713)
Admin
09-06-2001, 04:52 PM
Nice job, I might try this later. :)
Stasik
09-06-2001, 05:25 PM
tnx
floleb7
09-06-2001, 06:20 PM
need to use html for add a links or vbcode ?
floleb7
09-06-2001, 06:31 PM
i isntall the hack i add an additional faq but nothing appears in faq page
Stasik
09-06-2001, 06:37 PM
have you edited the faq template? what is in faq_headlnes template?
floleb7
09-06-2001, 06:49 PM
end of my faq template
</td></tr></table>
$faq_headlines
$footer
</body>
</html>
my template faq_headlines seems to be good
however i see this in the template
<ul><li><a href="misc.php?action=faq&page=4#test">PEtit Test</a></li></ul>
the sessions hash shouldn't be here i think (but it 's not my probs here :D )
Stasik
09-06-2001, 07:21 PM
have u edited misq.php? u have to requre $faq_headlines with ""eval("\$faq_headlines = \"".gettemplate('faq_headlines')."\";");""
floleb7
09-06-2001, 07:23 PM
yes
Stasik
09-06-2001, 07:37 PM
and u still see nothing?
are u sure the misc.php is in /vb dir? and edited ok?
can u post the FAQ Showing part here?
misc.php?action=faq&page=4#test
does this link work by u?
floleb7
09-06-2001, 07:39 PM
i can't it's on my computer
i see in misc.php?action=faq&page=4#test
but not with all the line
floleb7
09-06-2001, 07:45 PM
i did everything correctly i have checked
Stasik
09-06-2001, 07:55 PM
// ############################### start faq ###############################
if ($action=="faq") {
$templatesused = ""; // Only one template used so load it when called
include("./global.php");
eval("\$faq_headlines = \"".gettemplate('faq_headlines')."\";");
$page = intval($page);
if (!$page)
$page = '';
if($page == "4"){
eval("dooutput(\"".gettemplate("faq_additional")."\");");
} else {
eval("dooutput(\"".gettemplate("faq$page")."\");");
}
}
replace the whole part in musc.php
then the $faq_headlines in faq template HAS to work
Mike Gaidin
09-06-2001, 08:10 PM
Hallelujah!!! I've been waiting for this.
*runs off to try it*
Stasik
09-06-2001, 08:12 PM
ups.... there was a small mistake in instructions... replaced :)
J-OST: if u has troubles: just read a install-point 3 in new file ;)
floleb7
09-06-2001, 08:14 PM
yes i have search include("./global.php");
but there are 3 include("./global.php"); in misc.php so you need to take the latest;)
Mike Gaidin
09-06-2001, 08:44 PM
Here is what I get...any ideas?
why doesn\'t this work?
i can\'t figure it out
$footer ' WHERE templateid=A mysql error: Unknown column 'A' in 'where clause' mysql error number: 1054 Date: Thursday 06th of September 2001 05:42:14 PM Script: /forums/admin/faq.php Referer: http://www.mikegaidin.com/forums/admin/faq.php?s= -->
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin Control Panel: Invalid SQL: UPDATE template SET templatesetid=1,title='faq_additional',template='{ htmldoctype}
$headinclude
$header
> Frequently Asked Questions
$faq_headlines
A
why doesn\'t this work? i can\'t figure it out $footer
' WHERE templateid=A
mysql error: Unknown column 'A' in 'where clause'
mysql error number: 1054
Date: Thursday 06th of September 2001 05:42:14 PM
Script: /forums/admin/faq.php
Referer: http://www.mikegaidin.com/forums/admin/faq.php?s=
DarkReaper
09-06-2001, 10:54 PM
I can't wait to install it, but I've got a suggestion:
Make it so you can edit the current FAQ questions and categories. So the entire FAQ can be managed through the admin CP and not just one extra section of it.
webhost
09-06-2001, 11:17 PM
DarkReaper
This was only a start.
Mike Gaidin
09-06-2001, 11:29 PM
webhost, I've done everything exactly as it said to, but it still doesn't work. Any other ideas?
Stasik
09-07-2001, 03:34 AM
make sure you have added the 2 templates
webhost
09-07-2001, 01:52 PM
J-OST
We can fix this for you, please email icq number.
BradC
09-07-2001, 03:43 PM
I am going to install this, this weekend... so we will see how that goes..
GREAT JOB! :)
btw.. if you need help with adding stuff to this.. I might be able to help... time permitting.
Originally posted by DarkReaper
I can't wait to install it, but I've got a suggestion:
Make it so you can edit the current FAQ questions and categories. So the entire FAQ can be managed through the admin CP and not just one extra section of it.
Very good idea
I wish there is a way of doing this :rolleyes:
Stasik
09-07-2001, 04:48 PM
there is a way.... i`m working on it.....
Mike Gaidin
09-08-2001, 01:15 AM
I don't have icq, or aim.
It just doesn't work for me. I've installed it 22 times and neither work. I just keep getting that database error.
DarkReaper
09-08-2001, 01:32 AM
Originally posted by Stasik
there is a way.... i`m working on it.....
Great, thanks! When do you expect this to be done?
Stasik
09-08-2001, 11:07 AM
today or tommorow
DarkReaper
09-08-2001, 06:00 PM
Great! I'm looking forward to this :)
Stasik
09-08-2001, 11:31 PM
<a href="http://www.vbulletin.com/forum/showthread.php?threadid=27713" target="_blank">http://www.vbulletin.com/forum/showt...threadid=27713</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.