Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-08-2001 Last Update: Never Installs: 68
 
No support by the author.

I have made some modifications to the hack by Stasik, which is located here.
New features:
  • Edit display order from the list of questions/groups
  • Got the display code into templates and out of misc.php
  • Removed some extra queries
  • Added support for vB Code and fixed support for smilies
  • Various small cosmetic/coding fixes
The base hack is © 2001 by Stasik.
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 01-12-2002, 04:41 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are to do any thing, Please make it work with variables, just like the original FAQ.

$homeurl
$bbtitle
$inboxname
$sentitemsname

Thanks
Reply With Quote
  #103  
Old 01-16-2002, 08:17 PM
Grower Grower is offline
 
Join Date: Dec 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In FAQ.PHP around line 292 in addquestion section there is
PHP Code:
makehiddencode("faqid""$faqid"); 
which prevented you from selecting own category for adding question. You have to remove that line to make it work correctly.
Reply With Quote
  #104  
Old 01-26-2002, 02:02 PM
Linus Linus is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did the hack and it worked fine for me a couple of weeks ago but now the FAQ when clicked upon is empty ... I might have done another hack that might have affected one of the files ... any opinions / advice ???
Reply With Quote
  #105  
Old 01-26-2002, 02:13 PM
Linus Linus is offline
 
Join Date: Dec 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my FAQ bit in the original misc.php

PHP Code:
if ($action=="faq") {
  
$templatesused "faq_title,faq_head,faq_entry";
  include(
"./global.php");

  if(isset(
$page)){$sql "WHERE faqid='$page'";}
  
$query "SELECT faqid,title FROM faq $sql ORDER BY showorder";
  
$faqs=$DB_site->query($query);
  while (
$faq=$DB_site->fetch_array($faqs)) {
    if (isset(
$page))
      {
$title " > <a href='misc.php?s=$session[sessionhash]&action=faq&page=$faq[faqid]'>$faq[title]</a>";
    }
    
$questions=$DB_site->query("SELECT entryid,title,faqid FROM faqentries WHERE faqid='$faq[faqid]' ORDER BY showorder");
    while (
$question=$DB_site->fetch_array($questions)) {
      eval (
"\$faqtitles .= "".gettemplate("faq_title")."";");
    }
    eval (
"\$faqhead .= "".gettemplate("faq_head")."";");
    unset (
$faqtitles);
  }
  if (isset(
$page)) {
    
$entries=$DB_site->query("SELECT entryid,title,text FROM faqentries WHERE faqid='$page' ORDER BY showorder");
    while(
$entry=$DB_site->fetch_array($entries)){
      
$entry[text] = bbcodeparse2($entry[text],$entry[dohtml],$entry[dobbcode],$entry[dosmilies],$entry[dobbcode]);
      eval (
"\$faqentries .= "".gettemplate("faq_entry")."";");
    }
  }
  eval(
"dooutput("".gettemplate("faq")."");");

I'm running v 2.2.1

but then when asked to find
PHP Code:
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")."");");


I can never find it ?
Reply With Quote
  #106  
Old 01-31-2002, 04:13 PM
christina's Avatar
christina christina is offline
 
Join Date: Jan 2002
Location: Chicagoland
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack work on vb 2.2.2? Just curious as I'm looking to add it.

TIA,
Christina
Reply With Quote
  #107  
Old 02-03-2002, 03:51 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly or another person, could you please let me know why I am getting the below error. I have applied the fix provided by Bira as well as the one that another member provided which is supposed to fix the ordering problem, below is the error I get when trying to change the order:

Warning: Variable passed to each() is not an array or object in /path/to/my/forums/admin/faq.php on line 344
Reply With Quote
  #108  
Old 02-03-2002, 04:29 AM
slideboxer's Avatar
slideboxer slideboxer is offline
 
Join Date: Dec 2001
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was having parsing problems until making the change from post #81.

Problem I'm having now is that the images are not showing up. Anyone have the code fix for this one?
Reply With Quote
  #109  
Old 02-03-2002, 04:46 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The images were not really working for me, I instead went in and instead of using the { images } variable I just used /path/to/image instead.

I need to find a way to correct that error
Reply With Quote
  #110  
Old 02-03-2002, 02:28 PM
christina's Avatar
christina christina is offline
 
Join Date: Jan 2002
Location: Chicagoland
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since no one answered about 2.2.2...

I installed it, and there weren't any updates to the admin control panel. If I try to run faq.php directly I get some complaint about "Fatal error: call to undefined function: cpheader() in....path\faq.php on line 13.

Chrirstina
Reply With Quote
  #111  
Old 02-03-2002, 07:26 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You still would have to run the FAQ Install file to update things Christina, I think anyway (since there may be new queries or such added to the db).

I still have not figured out why I get the above error, Can anyone help out on this, I know I can not be the only one getting this, or am I? (I am using 2.2.1)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05465 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete