PDA

View Full Version : [RELEASE v.2.x.x] Additional FAQ Hack (FAQ edit)


Stasik
06 Sep 2001, 17:44
NEW VERSION RELEASED

get it here (http://www.vbulletin.com/forum/showthread.php?threadid=27713)

Chen
06 Sep 2001, 17:52
Nice job, I might try this later. :)

Stasik
06 Sep 2001, 18:25
tnx

floleb7
06 Sep 2001, 19:20
need to use html for add a links or vbcode ?

floleb7
06 Sep 2001, 19:31
i isntall the hack i add an additional faq but nothing appears in faq page

Stasik
06 Sep 2001, 19:37
have you edited the faq template? what is in faq_headlnes template?

floleb7
06 Sep 2001, 19:49
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
06 Sep 2001, 20:21
have u edited misq.php? u have to requre $faq_headlines with ""eval("\$faq_headlines = \"".gettemplate('faq_headlines')."\";");""

floleb7
06 Sep 2001, 20:23
yes

Stasik
06 Sep 2001, 20:37
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
06 Sep 2001, 20:39
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
06 Sep 2001, 20:45
i did everything correctly i have checked

Stasik
06 Sep 2001, 20:55
// ############################### 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
06 Sep 2001, 21:10
Hallelujah!!! I've been waiting for this.

*runs off to try it*

Stasik
06 Sep 2001, 21:12
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
06 Sep 2001, 21:14
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
06 Sep 2001, 21:44
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
06 Sep 2001, 23:54
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
07 Sep 2001, 00:17
DarkReaper

This was only a start.

Mike Gaidin
07 Sep 2001, 00:29
webhost, I've done everything exactly as it said to, but it still doesn't work. Any other ideas?

Stasik
07 Sep 2001, 04:34
make sure you have added the 2 templates

webhost
07 Sep 2001, 14:52
J-OST

We can fix this for you, please email icq number.

BradC
07 Sep 2001, 16:43
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.

Remi
07 Sep 2001, 17:22
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
07 Sep 2001, 17:48
there is a way.... i`m working on it.....

Mike Gaidin
08 Sep 2001, 02:15
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
08 Sep 2001, 02:32
Originally posted by Stasik
there is a way.... i`m working on it.....

Great, thanks! When do you expect this to be done?

Stasik
08 Sep 2001, 12:07
today or tommorow

DarkReaper
08 Sep 2001, 19:00
Great! I'm looking forward to this :)

Stasik
09 Sep 2001, 00:31
http://www.vbulletin.com/forum/showthread.php?threadid=27713