vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE v.2.x.x] Additional FAQ Hack (FAQ edit) (https://vborg.vbsupport.ru/showthread.php?t=27512)

Stasik 09-05-2001 09:00 PM

NEW VERSION RELEASED

get it here

Admin 09-06-2001 03:52 PM

Nice job, I might try this later. :)

Stasik 09-06-2001 04:25 PM

tnx

floleb7 09-06-2001 05:20 PM

need to use html for add a links or vbcode ?

floleb7 09-06-2001 05:31 PM

i isntall the hack i add an additional faq but nothing appears in faq page

Stasik 09-06-2001 05:37 PM

have you edited the faq template? what is in faq_headlnes template?

floleb7 09-06-2001 05:49 PM

end of my faq template

Code:

</td></tr></table>
$faq_headlines
$footer

</body>
</html>


my template faq_headlines seems to be good
however i see this in the template

Code:

<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 06:21 PM

have u edited misq.php? u have to requre $faq_headlines with ""eval("\$faq_headlines = \"".gettemplate('faq_headlines')."\";");""

floleb7 09-06-2001 06:23 PM

yes

Stasik 09-06-2001 06: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 06: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 06:45 PM

i did everything correctly i have checked

Stasik 09-06-2001 06: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 07:10 PM

Hallelujah!!! I've been waiting for this.

*runs off to try it*

Stasik 09-06-2001 07: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 07: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 07: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 09: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 10:17 PM

DarkReaper

This was only a start.

Mike Gaidin 09-06-2001 10: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 02:34 AM

make sure you have added the 2 templates

webhost 09-07-2001 12:52 PM

J-OST

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

BradC 09-07-2001 02: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.

Remi 09-07-2001 03:22 PM

Quote:

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 03:48 PM

there is a way.... i`m working on it.....

Mike Gaidin 09-08-2001 12: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 12:32 AM

Quote:

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 10:07 AM

today or tommorow

DarkReaper 09-08-2001 05:00 PM

Great! I'm looking forward to this :)

Stasik 09-08-2001 10:31 PM

<a href="http://www.vbulletin.com/forum/showthread.php?threadid=27713" target="_blank">http://www.vbulletin.com/forum/showt...threadid=27713</a>


All times are GMT. The time now is 05:47 AM.

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.02630 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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