View Full Version : FAQ Edit v3
tubedogg
09 Sep 2001, 06:13
I have made some modifications to the hack by Stasik, which is located here (http://www.vbulletin.com/forum/showthread.php?threadid=27713).
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 fixesThe 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! :)
floleb7
09 Sep 2001, 06:34
problem in your faq_install
step 4
admin/index.php
Find:
>a href="bbcode.php?s=>?php echo $session[sessionhash]; ?>&action=modify"> Modify >/a<>br< >/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=modify"< Edit>/a< |
>a href="faq.php?s=>?php echo $session[sessionhash]; ?<&action=addfaq"< Add>/a<
>/td<>/tr<
>!-- /FAQ addon --<
tubedogg
09 Sep 2001, 08:08
Fixed.
I also added an upgrade path from v2 of the hack (Stasik's version).
webhost
09 Sep 2001, 12:52
Couple of comments Tubedogg, first when upgrading my board from version 2, I had to comment out the parts in step2 and step21 about deleting the tables, it would not run until I did this.
Second below for upgrades we have the bottom part of code installed not what you show. so you need to change that in your script. Lastly if it can be done we need to be able to use the vb code in this if possible. I have it upgraded and running after doing the above.
Your instructions for Misc.php replacement
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
But we have this installed from Version 2 of the hack
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
the_sisko
09 Sep 2001, 18:52
Nice job (everyone of you)!!!
I tested it on my lokal machine and will start translate it into german for my board tomorrow!!!
Thanks alot
this is a must-have hack,
Thanks everyone !
tubedogg
10 Sep 2001, 01:41
Webhost: You should not have been running step 2 if you were upgrading. :eek: That will uninstall my version of the hack, not Stasik's.
As for step 21 I believe there was an error in the SQL so I have changed that (and changed the step number to step==31).
I have fixed the misc.php issue you mentioned and added a step specifically for upgrading (step==41).
I also fixed a couple other minor issues.
I will add support for vB code if possible later today.
webhost
10 Sep 2001, 01:49
ok great the only reason I ran step 2 was on a test site to see if had a sql problem also, I finally like I said just commented out the delete stuff and step 21 ran fine except for the misc.php stuff. We appreicate you picking up on this and helping.
One problem I ran into today just to let you know is the following.
I was changing the title around on a question adding a link to it and put in one of these that I shouldn't -- "--
I tried to go back and edit and it gave me just a blank page, so finally I went to database to edit it there because I knew what the problem was. Well in the database you can edit the answer but not the question so you may want to change this because I finally had to delete question/answer and do over, if we were capable of editing question in database we wouldn't have to do that.
Matt*is*thick
10 Sep 2001, 01:50
Is it me or is there no step 5? When I was running the install I had to manually change 5 to 6 so that I could reach the final step.
tubedogg
10 Sep 2001, 02:35
webhost: I'm not really sure what you're saying. Could you explain it again?
Matt: I noticed that right before I uploaded the newest version. Sorry. :(
webhost
10 Sep 2001, 02:45
I had a question that I wanted to edit, adding a link to the right of the question so I did but when I did that I put in " when I shouldn't have,I noticed it after I saved the question in the control panel faq section where you see questions you have installed, so I tried to edit it to take this out "
When I selected edit it took me to a blank page, so I said I will go into database and just modify that field for the question and take that out, The table for the questions will let you edit the answer but not the question, so I ended up deleting that question and answer and putting them in again. So there is a bug somewhere and also we need to be able to modify title/question field in database.
tubedogg
10 Sep 2001, 03:35
I'm still not sure what the problem is. I just tried adding and then editing a question with multiple " in it and it worked fine...?
tubedogg
10 Sep 2001, 05:22
I've added support for vB Code if you want to use it. Select your option for each entry on the Add or Edit screen. All entries are set to use HTML for now, since the original entries put in your database when installing previous versions of this hack had HTML in them.
Updated zip file is in the first post. There are three upgrade paths, a new installation path, and an uninstallation path:
To Upgrade from Stasik's version of the hack, follow the link to upgrade from v2.
To Upgrade from a previous version of *my* hack, e.g. you got it from this thread, follow the link to upgrade from v3, v31, or v32 (it's all the same link).
To just see the file changes (if you are upgrading vB itself) follow the link for upgrading from a previous version of vB.
floleb7
10 Sep 2001, 05:31
Warning: Cannot add header information - headers already sent by (output started at f:\latriade\site\forum_test\upload\admin\adminfunctions.php:18) in f:\latriade\site\forum_test\upload\admin\faq.php on line 281
when i try to add a question
tubedogg
10 Sep 2001, 06:49
Fixed. Download the zip and reupload faq.php. Don't run faq_install.php again.
floleb7
10 Sep 2001, 07:04
little bug
in faq.php search dobbcode (8 to find) replace by dovbcode
tubedogg
10 Sep 2001, 07:15
Actually, no, it's supposed to be dobbcode. If you replace it with dovbcode it won't work I guarantee it.
floleb7
10 Sep 2001, 07:17
so there is a prob my table is dovbcode
and in faq_install i got this
// ######################################## STEP 3 # install SQL
if ($step==3) {
echo("<b>Creating/Altering Tables</b><br><br>");
$DB_site->query('create table faqentries (
entryid int(10) not null auto_increment,
faqid int(10) not null,
title blob not null,
text mediumtext not null,
showorder int(10) not null,
dohtml smallint(6) not null DEFAULT 0,
dovbcode smallint(6) not null DEFAULT 0,
dosmilies smallint(6) not null DEFAULT 0,
primary key (entryid))');
echo('FAQ`s entries table has been successfully created.<br>');
webhost
10 Sep 2001, 07:29
well here is a problem I have now, I have upgraded and now I can not edit any of my existing questions I get this error on all of them.
Also I have code showing up in all of my questions what has happened with this thing?
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: SELECT title,text,dohtml,dobbcode,dosmilies FROM faqentries WHERE entryid='2'
mysql error: Unknown column 'dohtml' in 'field list'
mysql error number: 1054
Date: Monday 10th of September 2001 03:32:37 PM
Script: /admin/faq.php?action=editquestion&questionid=2&faqid=1
Referer: http://forums.realwebhost.net/admin/faq.php?action=modify&expand=1
tubedogg
10 Sep 2001, 07:42
OK floleb run this query:
ALTER TABLE faqentries CHANGE dovbcode dobbcode smallint(6) NOT NULL DEFAULT '0';
Webhost: What did you click on when you ran the installer again? Cause whatever you did you skipped the step where it alters your database...
floleb7
10 Sep 2001, 07:45
i change the table name before my post but you need to look faq_install.php
webhost
10 Sep 2001, 07:48
I selected upgrade 3 3.1 32 and I checked and all new fields are in my database
I tried to run install again and I get this
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: ALTER TABLE faq ADD dohtml smallint(6) NOT NULL DEFAULT '0'
mysql error: Duplicate column name 'dohtml'
mysql error number: 1060
Date: Monday 10th of September 2001 03:56:59 PM
Script: /admin/faq_install.php?s=&step=32
Referer: http://forums.realwebhost.net/admin/faq_install.php
tubedogg
10 Sep 2001, 07:54
They are in your database? Then something else is wrong...cause if your database was altered and you are using the newest faq.php there is something wrong that it's not finding your column...but it works for me.
webhost
10 Sep 2001, 07:57
Yea I agree there is something wrong. So what is it?
faqid int(10) No auto_increment Change Drop Primary Index Unique
title blob No Change Drop Primary Index Unique
showorder int(10) No 0 Change Drop Primary Index Unique
dohtml smallint(6) No 0 Change Drop Primary Index Unique
dobbcode smallint(6) No 0 Change Drop Primary Index Unique
dosmilies smallint(6) No 0 Change Drop Primary Index Unique
tubedogg
10 Sep 2001, 07:58
I have no idea, seeing as it works for me and the column exists in your database...try uninstalling and doing a clean install (you don't have to remove file changes, just the database stuff, via the Uninstall link in the script).
webhost
10 Sep 2001, 08:00
OK I uninstalled and reinstalled and I get the same error as above.
tubedogg
10 Sep 2001, 08:06
Then there is something wrong with your server. It works *perfectly* for me.
webhost
10 Sep 2001, 08:20
ok Tubedogg here goes first I had to change the dohtml field from smallint to int, then I got a error said that it could find dobbcode the field in database was called dovbcode that is what the script setup there, so I changed it to dobbcode and changed to int, now all works except my questions look like this
In order to fully utilise the abilitites of this board, the administrator will probably require that you register as a member. Registration is free, and allows you to do the following:
<ul>
<li>Post new threads</li>
<li>Reply to other peoples' threads</li>
<li>Edit your posts</li>
<li>Receive email notification of replies to posts and threads you specify</li>
<li>Send private messages to other members</li>
<li>Enter events in the board calendar</li>
<li>Set up a 'buddy-list' to quickly see which of your friends are currently online</li>
</ul>
To register, you will need to specify a username and password, and a valid email address. Entering your email address will not leave you open to 'spam', as you can choose to hide your email address, and messages sent to you via email do not reveal your address to the sender in any case. (To verify this, you can try sending an email message to <a href="memberlist.php?s=">another user</a>.) The administrator may have configured the board to send you the final part of the registration process by email, so ensure that the email address you provide is valid and working.
If you are under the age of 13, the administrator may require that a parent or guardian provides consent before allowing you to complete the registration process. More information about this is available during the registration process.
webhost
10 Sep 2001, 08:50
Tubedogg any ideas on this?
floleb7
10 Sep 2001, 08:58
same problem
tubedogg
10 Sep 2001, 10:12
I don't know what you guys are doing but I just uninstalled the hack completely and reinstalled it and it works perfectly, including the final look of the FAQ pages.
Run the query
UPDATE faqentries SET html=1;
and it should fix the exposed HTML...
webhost
10 Sep 2001, 11:51
all dohtml and all dobbcode set to 1 same problem still looks the same. same bug, maybe you should post exactly what goes in misc.php and where, see if has something to do with it, I did this right, All worked before I did the last upgrade, now it doesn't/
tubedogg
10 Sep 2001, 12:01
It should exactly like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
webhost
10 Sep 2001, 12:11
Ok mind was the same, I also downloaded the faq.php file again still get the same. Maybe it is something in the templates. you can post those and I will compare them that is all that is left.
tubedogg
10 Sep 2001, 12:14
faq_entry:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
faq_head
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
faq_title
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
faq
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
webhost
10 Sep 2001, 12:55
Kevin I installed eveything new including templates all works except the code still shows up in the answers to the questions on the board.
tubedogg
10 Sep 2001, 13:34
What versions of PHP & MySQL are you using?
tubedogg
10 Sep 2001, 13:46
Also run this query and tell me what it returns...
SELECT dohtml FROM faqentries WHERE faqid IN (1,2,3);
webhost
10 Sep 2001, 14:15
MySQL 3.23.39
php4.05
below when I select edit on any it of them it shows the same results on all of them. Results from that are posted below.
dohtml
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Edit Delete 1
Field Type Function Value
entryid int(10) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
faqid int(10) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
title blob Binary Binary - do not edit
text mediumtext ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY In order to fully utilise the abilitites of this board, the administrator will probably require that you register as a member. Registration is free, and allows you to do the following:
<ul>
<li>Post new threads</li>
<li>Reply to other peoples' threads</li>
<li>Edit your posts</li>
<li>Receive email notification of replies to posts and threads you specify</li>
<li>Send private messages to other members</li>
<li>Enter events in the board calendar</li>
<li>Set up a 'buddy-list' to quickly see which of your friends are currently online</li>
</ul>
To register, you will need to specify a username and password, and a valid email address. Entering your email address will not leave you open to 'spam', as you can choose to hide your email address, and messages sent to you via email do not reveal your address to the sender in any case. (To verify this, you can try sending an email message to <a href="memberlist.php?s=">another user</a>.) The administrator may have configured the board to send you the final part of the registration process by email, so ensure that the email address you provide is valid and working.
If you are under the age of 13, the administrator may require that a parent or guardian provides consent before allowing you to complete the registration process. More information about this is available during the registration process.
showorder int(10) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
dohtml smallint(6) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
dobbcode smallint(6) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
dosmilies smallint(6) ASCIICHARSOUNDEXENCRYPTLCASEUCASENOWPASSWORDENCODEDECODEMD5RANDLAST_INSERT_IDCOU NTAVGSUMCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUSERWEEK DAY
Skwowwy
10 Sep 2001, 15:24
I've solved the problem already. Simply replace the bbcodeparse2 with bbcodeparse (in misc.php). HTML will work, only the lay-out will be messed up a little, since <p> screws everything up due parsing issues. (like mentioned in the CP)
webhost
10 Sep 2001, 15:43
Thank You
Skwowwy
I figured it out must make links bold to stand out. Thanks Again
Matt*is*thick
10 Sep 2001, 15:43
I have installed it here : www.charmed-boards.com
Its not working though, you click on a question and it doesn't do anything. I make changes to the templates through the Cp but its not showing the changes?!?!
I have changed Misc.php as told to but its not working?
Kevin? Whats about to ask Kier and onther developers to add this hack to next vb release?
Mike Gaidin
10 Sep 2001, 21:50
I like that idea. :D
tubedogg
11 Sep 2001, 03:37
The problem with running it through bbcodeparse() (which, btw, runs it through bbcodeparse2() before it's done) is that it's expecting a forum number (or it uses global options), whereas my system lets you set HTML/vB Code/smilies per question.
tubedogg
11 Sep 2001, 03:39
Originally posted by Stasik
Kevin? Whats about to ask Kier and onther developers to add this hack to next vb release?Good idea. :) There is going to be some kind of dynamic FAQ system, although AFAIK it hasn't been decided how to work it out yet.
tubedogg
11 Sep 2001, 03:41
Originally posted by Matt*is*thick
I have installed it here : www.charmed-boards.com
Its not working though, you click on a question and it doesn't do anything. I make changes to the templates through the Cp but its not showing the changes?!?!
I have changed Misc.php as told to but its not working? I just tried it on your site...it worked fine for me...?
floleb7
11 Sep 2001, 03:47
http://floleb7.dyndns.org/site/forum_test/upload/misc.php?s=&action=faq&page=1#1
i have change bbparsecode2 to bbcodeparse nothing change
i have uninstall and reinstall forum last ziq allways problem with html
[VbbFr]Elie
11 Sep 2001, 16:55
I don't understand ... No one seen to have this problem ...
Please PM me !!!
Fatal error: Call to undefined function: cpheader() in c:\easyphp\www\vbb\faq_install.php on line 5
Skwowwy
11 Sep 2001, 17:40
faq_install.php belongs to the admin folder, and faq.php as well (if you didn't do that).
[VbbFr]Elie
11 Sep 2001, 18:02
Not stupid :)
It's working know ...
Thanks for your speed :p:p
[VbbFr]Elie
11 Sep 2001, 18:33
Ok ... 2nd Problem ...
all is working perfectly but just one thing do not work :(
If i use faq.php?action=addquestion to add a question, the question is not added to DB ...
I Must Use The link with the id of the FAQ : faq.php?action=addquestion&faqid=4
Why don't it work ?
sure.. you must use faqid, to let script know in what hack should the queston be written
[VbbFr]Elie
11 Sep 2001, 20:49
True but ... there is a option and you can have to choose catégory in a select field ... and if i pass by this option the question isn't insert into the DB ... :(
Could you contact me in PM ?
Thanks :):p:):p:):p:)
DarkReaper
15 Sep 2001, 15:49
A nice fast install, but I've noticed a problem. On my FAQ pages, none of the html parses. For example:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
DarkReaper
15 Sep 2001, 16:07
I replaced bbparsecode2 with bbparsecode and it worked...I know you're saying that it should be bbparsecode2 but it doesn't work right, so you might want to fix this :)
tpearl5
15 Sep 2001, 18:08
Yeh, I'm having the same problem.. doh!
beatbox
16 Sep 2001, 00:22
tubedogg = the winnar!!!
You rule. Sweet hack. Major props.
/walks away excited and jumping.
try to find the text "base hack" in hack
Mike Gaidin
16 Sep 2001, 00:47
Just installed it. Seems to be working great. :D
Good job!
beatbox
16 Sep 2001, 01:07
HTML or vB does not parse for me either.
floleb7
16 Sep 2001, 01:52
Originally posted by J-OST
Just installed it. Seems to be working great. :D
Good job!
http://www.mikegaidin.com/forums/misc.php?s=&action=faq&page=1#1
some prob ;)
Mike Gaidin
16 Sep 2001, 03:49
Well I'll be... :)
Guess I should open my eyes. LOL.
shadowbreed
16 Sep 2001, 18:57
Same here:http://www.snakepages.com/forum/misc.php?action=faq&page=4#29
html was ON
Vbcode was ON
Smilies was ON
Nothing is parsed
DarkReaper
16 Sep 2001, 18:59
Find the code you added and change bbparsecode2 to bbparsecode.
shadowbreed
16 Sep 2001, 19:07
Great thnx!
Now my vbcode and smilies are parsed.......
btw it was called bbcodeparse in my misc.php if anyone can't find it
Only still no html?????????
See url above
Mike Gaidin
16 Sep 2001, 19:43
vbcode works now, but smilies and html do not. any ideas?
SirSteve
16 Sep 2001, 22:33
Very nice work! Works perfectly!
SirSteve
17 Sep 2001, 17:50
Originally posted by J-OST
vbcode works now, but smilies and html do not. any ideas?
Same here. Using 2.03
GetMeHosted.com
24 Sep 2001, 22:26
Sounds Like a Great Hack,
We will try to add this soon.
God Bless,
SirSteve
24 Sep 2001, 23:34
Originally posted by SirSteve
Same here. Using 2.03
Anyone? Anyone? I hate seeing good hacks go to waste by not being 100% functional.
GetMeHosted.com
24 Sep 2001, 23:49
Ok, I installed, but then had to remove....
All "Default" FAQ do not parse.
<li>Red</li>
<li>Blue</li>
<li>Yellow</li>
<li>Green</li>
<li>Sky-blue pink with yellow spots</li>
</ol>
Change bbcodeparse2 to bbcodeparse, seem to fix the
"Custom FAQ" we add, but the "Default" one still did not
parse.
This looks like it could be a great feature,
Hope a fix is found soon..
DarkReaper
17 Oct 2001, 22:52
Run the following query:
UPDATE faqentries SET dohtml=1;
If that doesn't fix it, what you can do is change this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That solved it for me. Turns out that changing it do bbcodeparse() only made it SEEM to work, on some browsers. IE 5 loaded it fine, everything else didn't.
SirSteve
18 Oct 2001, 00:46
The HTML is still not rendering! Help! My FAQ looks bad without it!
Dark Blaze
29 Nov 2001, 19:14
Good Day,
I was wondering if the FAQ Editor works under version 2.2.1
If not, how could it be set to work for it?
Thank you,
DarkReaper
30 Nov 2001, 02:45
Its working for me, mostly.
http://www.unrealtournament.org/forums/misc.php?s=&action=faq&page=2#17
On that page, $bbuserinfo[userid] isn't parsing, and neither is {imagesfolder}.....
Help! :)
Does this version not work with vB 2.2.1? I cannot get it to work with this version, I get a database error.
Anyone have any suggestions?
Psychdrone
22 Dec 2001, 23:54
hmmmm could some one clarify, if this works for vb 2.2.1?
thanks!
Psychdrone
29 Dec 2001, 23:20
could someone pleasseee tell me if this works for 2.2.1 or not??
I did the change from bbparse2 to bbparse and that displays the html using vbcodes. But I cannot get images to display with vb codes.
Kevin you have a serious mistake in your code, which is why no one here manages to parse HTML:
dohtml is $entry[dohtml] in your code. BUT YOU NEVER SELECTED IT :D
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
should be
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(in misc.php)
Cheers,
Bira
I changed the following:
In every SELCT-Statement in the FAQ-Section from the misc.php I set a Star instead of the different row-names. (Sample: SELECT * FROM faq $sql ORDER BY showorder).
I use bbcodeparse2.
So the HTML is parsed Good. The Smilies works too. vbCode works all, insted of the [ url ]. This creates a Link like this:
http://usercp.php/?s=
Have anyone a Idea?
And i have another Problem: The Order can't set from the CP. :stupid:
Wolfgang
02 Jan 2002, 12:01
I have the same Problem: The Order can't set from the CP.
I get the Error:
Warning: Variable passed to each() is not an array or object in
/home/sites/site479/web/forum/admin/faq.php on line 344
Order updated!
HTML, Smilies and vbCode works!
Have anyone a Idea?
THX, wolfgang :)
keeps the installation as is and make the change in post 81
Originally posted by Lionel
keeps the installation as is and make the change in post 81
I did it. And the other SQL-Statement too. I wrote it before...
Or should i turn back the others?
I made no change except for the one by Bira on post 81 and works fine.
Psychdrone
03 Jan 2002, 21:29
err so hey dose this work with 2.2.1?
dotagious
03 Jan 2002, 22:35
I have the same question about it working for 2.2.1
I also would like to know what this actually does. I tried to follow the link to the original hack as to find out, but it blocks me from that forum.
Psychdrone
05 Jan 2002, 04:45
grrrrrr some one!!
bbaddons
05 Jan 2002, 05:06
I have installed this on 2.2.1 and it is working fine along with 13 other hacks.
Arathorn
06 Jan 2002, 12:39
Installed in 2.2.1, and it works fine too. But the instructions in the zip file don't work for 2.2.1? In admin/index.php, instead of following the instructions,
Find:
makenavselect("Custom vB Codes","<hr>");
// *************************************************
Add directly below:
makenavoption("Add Question","faq.php?s=<?php echo $session[sessionhash]; ?>&action=addquestion","<br>");
makenavoption("Add Group","faq.php?s=<?php echo $session[sessionhash]; ?>&action=addfaq","<br>");
makenavoption("Edit","faq.php?s=<?php echo $session[sessionhash]; ?>&action=modify","<br>");
makenavselect("FAQs","<hr>");
// *************************************************
If I'm wrong, please correct me.
Armage Bedar
06 Jan 2002, 19:41
Find the following in admin/faq.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hope that helps.
Wolfgang
06 Jan 2002, 20:30
@Armage Bedar BIG THX! It's work! :D :D :D
Just now I can Order set from the CP.
Wolfgang
With the old FAQ templates, I was able to use variables like:
$homeurl
$bbtitle
$inboxname
$sentitemsname
with this hack they are not working any more !!
Does any one know how to fix this.
Thanks
Can Some one answer this please
Or at least tell me is it the way the hack works or the variables are not working for me only!!
Thanks
SaintDog
10 Jan 2002, 05:34
I would have to say that is it the way the new hack works, so you can no longer use the variables you used to use with the old hack.
As it seems, there are a few things in the hack that have not yet been fixed, but I am sure they will be fixed as soon as possible.
Again, the reason the variables you probably used do not work anymore is because of the new hack I would think. I did not make the hack so I can not really tell you, but that would be my thoughts on it.
Thank you very much Saint :)
I hope some hacker now can tell us how to use variable in this wounderfull hack
Does this hack only modify the main vb faq or can you make a custom faq for each forum? I have many forums and in each one I want it's own individual topic specific faq. Does this hack do that or edit only the main vb faq???
thanx
marc
I would like to know if anybody is actually working on searchable version of this FAQ hack, so users can search through categories. Let me know because I would like to start working on it. Thank you.
If you are to do any thing, Please make it work with variables, just like the original FAQ. :)
$homeurl
$bbtitle
$inboxname
$sentitemsname
Thanks
In FAQ.PHP around line 292 in addquestion section there is
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
which prevented you from selecting own category for adding question. You have to remove that line to make it work correctly.
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 ???
This is my FAQ bit in the original misc.php
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I'm running v 2.2.1
but then when asked to find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I can never find it ?
christina
31 Jan 2002, 17:13
Does this hack work on vb 2.2.2? Just curious as I'm looking to add it. :)
TIA,
Christina
SaintDog
03 Feb 2002, 04:51
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
slideboxer
03 Feb 2002, 05:29
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?
SaintDog
03 Feb 2002, 05:46
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 :(
christina
03 Feb 2002, 15:28
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
SaintDog
03 Feb 2002, 20:26
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)
christina
04 Feb 2002, 00:46
Well, I did run faq_install first, and it showed no errors. It's just that things don't work after having done that...
slideboxer
04 Feb 2002, 00:55
The faq_install itself doesn't make the changes to the control panel. During execution of the install you will receive instructions on what lines of code to modify in your admin/index.php file. This you have to do yourself. I think the install even had some wrong code for this part... here's what I added:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
underneath
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hope this gets it workiing for you.
christina
04 Feb 2002, 02:58
Ok, don't know how I missed that bit during the install. :/ But, since making the changes, any of the items now in the control panel just give me an "Internal Server Error" and don't provide any more info...
Thanks, btw. :)
Christina
fonzerelli_79
04 Feb 2002, 07:15
the two problems which i found with this code were
1. html not working - apply biras fix on post 81
2. images not working
edit the following faq's :-
under User Maintenance:
What are the buddy and ignore lists?
under : General Board Usage
Can I send email to other members of this board?
What is Private Messaging?
under Reading and Posting Messages :
Can I edit my own posts?
Each of these faq's have to be amended to
Allow HTML in Answer? Yes
Allow smilies in Answer? Yes
Hope this helps
fonz :stoned:
christina
04 Feb 2002, 14:25
Ok, I've gone through and uninstalled, cleaned up the files I was supposed edit, and reinstalled again. But, I always get an internal server error when trying the items in the control panel... :(
Originally posted by christina
Ok, don't know how I missed that bit during the install. :/ But, since making the changes, any of the items now in the control panel just give me an "Internal Server Error" and don't provide any more info...
Thanks, btw. :)
Christina
SaintDog
04 Feb 2002, 15:51
Well let's see, you have:
- Run faq_install.php
- Placed faq.php in your /admin/ directory
- Applied the updates from Bira
- Fixed what Fonz brought up
I am not sure why in the world you are getting an internal server error. It does not make too much sense on why you are getting it unless something other than the above have been modified on accident.
Where is Sinecure when you really! need him ;) - I am sure he could help both of us out.
SaintDog
04 Feb 2002, 15:54
You could use the below in the Admin CP, I am not sure what difference it would make, but you do not have to have the "echo" commands in the URL, it deals with the newer versions of vBulletin:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Just a suggestion
slideboxer
04 Feb 2002, 15:59
The edit of the faq properties worked for me, thanks Fonz.
fonzerelli_79
04 Feb 2002, 19:04
no problem slideboxer ;)
christina
04 Feb 2002, 19:15
Thanks for the information, again.
It still doesn't work here, I've no idea why. :( I think I'm doing things right. I ended up redoing some things and made a faq.php that just calls my faq templates for me instead since I couldn't get this to work...
Christina
Originally posted by SaintDog
Well let's see, you have:
- Run faq_install.php
- Placed faq.php in your /admin/ directory
- Applied the updates from Bira
- Fixed what Fonz brought up
I am not sure why in the world you are getting an internal server error. It does not make too much sense on why you are getting it unless something other than the above have been modified on accident.
Where is Sinecure when you really! need him ;) - I am sure he could help both of us out.
SaintDog
04 Feb 2002, 19:21
The only thing I can think of now is maybe you have installed another hack that is calling something from the FAQ hack that is making it not work? I have done that before with other hacks, such as Biras, unless you look at it and make changes one by one, you can not install both the Away Hack & the Random Password hack.
IT doesn't work for me :(
http://forum.ngx.sm/misc.php?s=&action=faq&page=3#HTML
No matter what I do, i always get the same window with all the questions, I can't see the answers, etc...
My misc.php code is:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
AS you can I applied bira's hack, but still doesnt work... can someone help please? :(
christina
05 Feb 2002, 01:59
Ok, the only other real hack installed is the Welcome panel hack, nothing else very big really. I'm sure the hacks don't overlap. :( Only possibility is vbportal, perhaps? I wish the 'internal server error' was a little more explicative...
Originally posted by christina
Does this hack work on vb 2.2.2? Just curious as I'm looking to add it. :)
TIA,
Christina
Any word on this working? Is everyone still having trouble?
fonzerelli_79
07 Feb 2002, 21:00
the hack worked fine with me
Where do I change the "categoryfontcolor" that the script generates for colors of the links? I know I can change the colors in CP, but I need to change it in the code.. any ideas?
Or, even better, where do I remove the link after the question on FAQ page? (As it is on this board).
christina
11 Feb 2002, 22:55
Not here, my boards are cursed. Perhabs vbportal is screwing with this somehow, I dunno. So far this is the only hack/mod I've failed at getting going. :D
Originally posted by LuBi
Any word on this working? Is everyone still having trouble?
Xelation
18 Feb 2002, 20:16
I'm running 2.2.2 and it doesn't seem to be working for me either.
Can't someone rewrite the instruction for the hack and release it in a new thread?
threr are so many instructons for this hack wich is very confusing
AndyTSJ
22 Feb 2002, 23:51
This doen't work properly for me. I can add a category, which shows up fine, and while I can submit a new FAQ perfectly well, the problem is that the question never appears on the list of FAQ's anywhere. No error messages or anything - it just doesn't show on the list :(
slideboxer
23 Feb 2002, 02:42
It seems to only allow you to add the questions from under the "Edit FAQS" link in admincp. Everything else, like everyone says, seems to comply but no show.
AndyTSJ
23 Feb 2002, 11:55
Gotcha... thanks for that ;)
slideboxer
23 Feb 2002, 17:53
My pleasure, now if someone could just fix that :D
5861king
28 Feb 2002, 21:25
Can any kind soul help me the order function does not work in the Admin CP I get this error message.
Warning: Variable passed to each() is not an array or object in /home/sites/site253/web/bboard/admin/faq.php on line 347
Everything else is working fine :D
isoking
02 Mar 2002, 15:47
Well After a little messing with the code (wish i know what i was doing :P)
here is the modified code for v2.2.2
Open Admin/index.php
Find:
// ***
makenavoption("Add","bbcode.php?action=add","|");
makenavoption("Modify","bbcode.php?action=modify");
makenavselect("Custom vB Codes","<hr>");
Add Directly Under that:
//**************************************************
makenavoption("Add Question","faq.php?action=addquestion");
makenavoption("Add Group","faq.php?action=addfaq");
makenavoption("Add Edit","faq.php?action=modify");
makenavselect("FAQ Database","<hr>");
Save And Upload.
Hope The Orig Authour didnt mind me adding this info,
works great for me on 222
small fix though. html wasn't working
then I also noticed that the replacement vars weren't working so images were dead. It's because of the bbcodeparse. since I will be using html instead of vbcode or smiles, I just commented out the bbcode pars line in misc.php
$entry[text] = bbcodeparse2($entry[text],$entry[dohtml],$entry[dobbcode],$entry[dosmilies],$entry[dobbcode]);
add // in front of the line
this will fix html and replacement vars but you'll lose vbcode and smilies. oh well
I'm still not able to get vars like $bbtitle to work though. odd
Running fine on 2.2.4 here is my faq code from the misc.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
i also set dohtml to 1
my html smilies AND vbcode are working
the only thing that doesn't work is variables
freehtml
20 Mar 2002, 14:07
Originally posted by 5861king
Can any kind soul help me the order function does not work in the Admin CP I get this error message.
Warning: Variable passed to each() is not an array or object in /home/sites/site253/web/bboard/admin/faq.php on line 347
Everything else is working fine :D
I am using vb 2.2.4
Here is my FAQ (http://forums.sanguo-online.com/misc.php?s=&action=faq) section.
I had done the changes and now can display HTML as well as vb codes. But variables as pointed out by many others, is not working.
diettalk
04 Apr 2002, 00:46
I installed FAQ on 2.2.4 and I just upgraded to v2.2.5 and it works but none of the hacks I added work. I just tried to add a FAQ but it didn't work. It accepts it but it never shows up.
Is anyone else having this problem after an upgrade?
diettalk
06 Apr 2002, 14:39
I uninstalled and reistalled it again and all is working fine.
Originally posted by diettalk
I installed FAQ on 2.2.4 and I just upgraded to v2.2.5 and it works but none of the hacks I added work. I just tried to add a FAQ but it didn't work. It accepts it but it never shows up.
Is anyone else having this problem after an upgrade?
Fallout2man
07 Apr 2002, 05:38
Would it be possible in the future for this hack to be made into a vbhacker file?
nulltone
12 Apr 2002, 02:16
Changing the question order does not seem to work. Whenever I change the numbers, and press update order, the page freshes, but nothing happens. Anyone have a fix for this?
ok, this sucks, HTML works and vB code works, and I think smilyles works (don't know, never tryed yet) but non of the images shows up, looking at the path of the image, I notice it is going to { imagesfolder } instead of changeing it to the image folder path....how can I fix this??
Mathiau
01 May 2002, 08:54
hey m8
would love to install this!!!!!!!!!!!!!
BUT! saw alot of problems above....have they all been a added to the code already as updates? or fixes, whateva :)
will it work in 2.2.5? (perhaps time for a new updated version, if you got LotZ of free time :), or if u just want too :D
Dark Odin
08 May 2002, 01:17
I think this should be re-released..
FleaBag
18 May 2002, 15:00
The code I search for in misc.php in version 2.2.5 doesn't exist. Anyone able to help?
I found the code, I just can't find a way to get my replacements code back :(
FleaBag
20 May 2002, 20:07
So this hack no longer works on later versions?
FleaBag
21 May 2002, 23:10
*Bump*
geniuscrew
23 May 2002, 01:14
Works like a charm on 2.2.5 ;)
FleaBag
23 May 2002, 01:15
Oh dear, wonder what I'm doing wrong then. I'll have to take another look later this morning. :)
geniuscrew
23 May 2002, 01:17
Maybe I can help GF - what's the problem?
FleaBag
23 May 2002, 01:18
I couldn't find the code I was looking for in misc.php, I didn't spend that long on it, admittedly, as I didn't have much time. Did you run into any problems?
geniuscrew
23 May 2002, 01:25
If you open it using Wordpad search for FAQ - now replace the code that is between
// ############################### start faq ###############################
and
// ############################### Popup Smilies for vbCode ################
The only problem i had was with the parsing of HTML - but that's fixed now
FleaBag
23 May 2002, 12:17
OK, maybe this is just me but the code in admin/index.php isn't there either, so for anyone else - this is what I did.
Find...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below that, add...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
...and that should have your CP sorted. :) Seems to be running fine on 2.2.5, thanks for the tip geniuscrew and thanks for the hack tubedogg. :D
Originally posted by geniuscrew
The only problem i had was with the parsing of HTML - but that's fixed now
how did you fix that?? I don't know how to fix it :(
geniuscrew
24 May 2002, 01:02
Firstly do EXACTLY what it tells you in the instructions - don't run any queries mentioned in this thread or change bbparsecode2 to bbparsecode
simple replace this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(in misc.php)
That's what fixed mine :)
Hope that helped!
@ GamerForums - you're welcome ;) Glad i could help
geniuscrew
24 May 2002, 01:04
Originally posted by GamerForums
OK, maybe this is just me but the code in admin/index.php isn't there either, so for anyone else - this is what I did.
Find...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below that, add...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
...and that should have your CP sorted. :) Seems to be running fine on 2.2.5, thanks for the tip geniuscrew and thanks for the hack tubedogg. :D
Exactly - I got errors when I used the code given in the instructions
FleaBag
24 May 2002, 01:13
I'm really starting to get into this hacking lark, I might do something adventurous soon hehe.
geniuscrew
24 May 2002, 01:16
good luck lol
Originally posted by geniuscrew
Firstly do EXACTLY what it tells you in the instructions - don't run any queries mentioned in this thread or change bbparsecode2 to bbparsecode
simple replace this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(in misc.php)
That's what fixed mine :)
Hope that helped!
funny, I areadly had that code for along time when I first installed it, and when I put in a location for a images as {imagesfolder }/whatever.gif, it doesn't work and I take a look and it just shows {imagesfolder }/whatever :(.
should the following lines bechanged instead??
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
if so, to what...if that's not what I so'pose to change, then what?? :( I'm so lonely without that HTML praseing :(
Elentari
27 May 2002, 01:29
Ive installed this hack ... but now html is showing up as raw code on the FAQ page ... Ive tried fiddling with the codes as shown above, but it doesnt seem to be solving it. Any ideas?
My forum is at www.christiansurvivors.com/forums
the FAQ page is at http://www.christiansurvivors.com/forums/misc.php?s=&action=faq
Something else I noticed is that adding questions through the 'edit group' option, works fine - but using the add a question link directly from the left hand menu in user cp, it says its added the question, but it hasnt really!!
Hoping for some ideas!!
Thanks!
El xx
Elentari
28 May 2002, 00:06
Anyone??
I have since tried uninstalling and reinstalling, but ended up with exactly the same result!!! :p
edit : finally got it working!! uninstalled and installed AGAIN ... did exactly the same thing and it worked LOL!! Go figure ;)
Keyser Söze
31 May 2002, 18:14
Originally posted by GamerForums
OK, maybe this is just me but the code in admin/index.php isn't there either, so for anyone else - this is what I did.
Find...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below that, add...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
...and that should have your CP sorted. :) Seems to be running fine on 2.2.5, thanks for the tip geniuscrew and thanks for the hack tubedogg. :D
bless u sir, i shall now name my first born after u ;)
cool hack
Keyser Söze
05 Jun 2002, 05:55
got this error msg Parse error: parse error in /usr/home/emusa/emusanet.com/public_html/forums/misc.php on line 147
but theres nothing on line 147
sigh, help pls
I dl'd the file in post one and did a clean install. I do not see any template additions when I run the faq_install.php, just the misc.php and index.php changes . I see the templates on page 3 of this post, but shouldn't these have been in the install file zip? Upon review with phpmyadmin, I see none of my templatestid's are 1, which is something I see in the install file in relation to the templates. The install script is looking for a templatestid #1.
Edit Update
I pulled the templates and put them in the long way, everything seems to be ok except for images are not working. I had to change the line mentioned in the prev. page to get html to parse, but images don't seem to be working. Changing the path to
<img src="/images/image.gif"> seem to do the trick though. This would have been easier if not for the template problem, which was my own. Very useful hack!
DudeSicko
12 Jun 2002, 11:13
The .zip on the 1 page, is that the upgraded version for 2.5 ore the newest version of the board ?
FleaBag
19 Jun 2002, 20:54
IceMalee; then you shall call him Matthew. Heh. ;)
Just upgraded to 2.2.6, working well with the fixes. :)
tpearl5
05 Jul 2002, 04:56
I'm having a small problem. I plan on using the Referrer Link located in the FAQ. However $userid does not parse. How do I get that link to display the correct referral link?
Dark_Wizard
06 Aug 2002, 14:18
Originally posted by Elentari
Ive installed this hack ... but now html is showing up as raw code on the FAQ page ... Ive tried fiddling with the codes as shown above, but it doesnt seem to be solving it. Any ideas?
My forum is at www.christiansurvivors.com/forums
the FAQ page is at http://www.christiansurvivors.com/forums/misc.php?s=&action=faq
Something else I noticed is that adding questions through the 'edit group' option, works fine - but using the add a question link directly from the left hand menu in user cp, it says its added the question, but it hasnt really!!
Hoping for some ideas!!
Thanks!
El xx
Find this in misc.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
replace with this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I got it working fine. Thanks for the hack, it's just what I needed. :)
tpearl5
11 Aug 2002, 23:09
I can get it to update the order of the faq entries.
I get this error at the top of the page:
Warning: Variable passed to each() is not an array or object in /mnt/web/guide/johnsworld/www/midi/board/admin/faq.php on line 347
FleaBag
04 Sep 2002, 10:09
Working on 2.2.7 with about 40 other hacks. :)
This hack is brilliant - I've been using it for a while now. Remember to use the HTML/ bbcode fix a couple of pages back.
Originally posted by tpearl5
I can get it to update the order of the faq entries.
I get this error at the top of the page:
Warning: Variable passed to each() is not an array or object in /mnt/web/guide/johnsworld/www/midi/board/admin/faq.php on line 347
I am having the same problem. I dont think I get any error, it acts as if it update the order, but the numbers and previous order stays the same.
Any ideas? :(
Apok2002
15 Sep 2002, 02:36
I have custom headers w/ my themes, and the FAQ button got taken out (not intentionally). How do I get it back so I can use the FAQ again? What is the url I should use for the link, and where should I put it? Back in the header where the rest of the buttons to navigate thru the rest of the site are?
speedway
16 Sep 2002, 12:29
For all those fighting with the faq entries and not having things like $bbtitle, { imagesfolder } and maybe even $bbuserinfo[userid] parsing or showing correctly....
I *think* I have found a solution. Determined to get this working and thinking "hey, templates come from the DB so it should work...".
Anyway, enough ranting. I did this.
in misc.php AFTER
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
put
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and BINGO, all your variables will now contain a value....
Have fun. :bunny:
Download the attached text file and copy/paste over what you have in misc.php for the faq bit. The parsing code in vB is screwing up the new PHP bit.
FleaBag
17 Sep 2002, 11:45
OK slight problem I've noticed while running this hack on 2.2.7. If you look here... http://www.gamerforums.com/board/misc.php?s=&action=faq ... You'll see that the Groups have messed up HTML, the brackets e.t.c are included in the hyperlinks [look and you'll understand what I mean]. When I edit the groups, the formatting is fine - why would it be doing this? Anyone have any ideas? Thanks in advance. :)
speedway
17 Sep 2002, 12:39
Originally posted by GamerForums
You'll see that the Groups have messed up HTML, the brackets e.t.c are included in the hyperlinks [look and you'll understand what I mean].
I haven't got a definate answer for this one however I would assume it has something to do with nested href's. If you look at the source it runs like this: <a ..............<a /a>.../a>. Now the question becomes "is this legal in HTML"?
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.
I'm running 2.2.6 and there is no FAQ mention AT ALL in misc.php. So how to replace this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Can I just add an entry anywhere in misc.php with the correct info?
speedway
22 Sep 2002, 14:39
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
Damn, double files. What a crap idea. :D
Thanks man.
Originally posted by GamerForums
OK, maybe this is just me but the code in admin/index.php isn't there either, so for anyone else - this is what I did.
Find...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Below that, add...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
...and that should have your CP sorted. :) Seems to be running fine on 2.2.5, thanks for the tip geniuscrew and thanks for the hack tubedogg. :D
But I'm confused as the installer says:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I see no "makenavoption" instructions at all. Also, thewre is no:
<a href="bbcode.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
In my admin/index.php at least.....
Okay, i added:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And it appears okay in the admin CP. But what about:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I guess they are one and the same? But why the wrong instructions?
Originally posted by NexDog
I guess they are one and the same? But why the wrong instructions?
the way the admin cp handels links was changed some time ago, the hack was made for a older verson that still used html to make the links in the admin cp.
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.
FleaBag
29 Oct 2002, 21:40
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...
DrkFusion
29 Oct 2002, 21:41
Hi, I installed this, and added a new faq catagory, but it isn't showing up in the faq. What is wrong?
Thanks for your help
-Arunan
Bad Bunny
14 Feb 2003, 14:13
I did a search for FAQ in the database, and this was the only result.
No offense, but the whole thread is filled with problems.
FleaBag
27 Feb 2003, 23:43
This hack is very out-dated, it's a shame not all hackers support their work [I realise this isn't manditory, but it would be nice].
Mike Gaidin
28 Feb 2003, 01:27
An update for this would be great.
Keyser Söze
14 May 2003, 18:56
02-27-03 at 10:27 PM Mike Gaidin said this in Post #194 (http://www.vbulletin.org/forum/showthread.php?postid=359308#post359308)
An update for this would be great.
agreed, and with al the good coders here im sure they could make it even better
02-28-03 at 03:27 AM Mike Gaidin said this in Post #194 (http://www.vbulletin.org/forum/showthread.php?postid=359308#post359308)
An update for this would be great.
Yes I agree with that
S.Shady
21 May 2003, 20:01
considering how old this hack is im not surprised its not updated but is there any way to get this to work with vb 2.3.0 it works fine in the admin cp but when viewing the faq nothing shows up as was previously stated
PixelFx
05 Jun 2003, 03:15
tried installing on 2.30 heh no luck ...
It works on 2.3.0. I've had this hack from when it was released, and just upgraded my vB, and it has kept on working.
Koutaru
08 Jun 2003, 03:08
After a couple minutes of code manipulation, I have it working in 2.3 :) very nice hack
I think all I did was
in misc.php
REPLACE
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
WITH
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
DELETE
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
PixelFx
08 Jun 2003, 06:47
thank you for your help, what got me was the admin index.php I wasn't used to how the admin options used to work long ago... so after some digging and help above I got it... thanks for not spelling it out, makes the learning process more fun :P
It's working great now...
Question though: how would someone go about adding access masks to the faq system? aka make it so you have to be registered before reading a faq catigory. ;)
Koutaru
08 Jun 2003, 06:51
for a specific faq categlory or all categlories?
PixelFx
08 Jun 2003, 07:58
after reading this entire thread I have everything working on 2.30 except my image code not showing up ;)
so far everything else seems to be working
seem below for error,
http://www.shukenja.com/forum/misc.php?&action=faq&page=3#27
aka image not loading,
also in the admin cp, I get the following error with the faq.php
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
any ideas?
Falkware
02 Jul 2003, 16:38
get this very same error..any idea how to fix it?
engquist
22 Jul 2003, 06:18
is there any way to have the instructions re-done for this. I would love to install it, but I fear the instability since it was made 2 years ago and versions ago.
I also need to get a hack for the FAQ, I am running 2.30 and after spending a couple of days getting my board back in order after a bad installation I am leery.
If all I need to do is what Koutaru posted then I will go for. ANyone else running this on 2.3?
PixelFx
31 Jul 2003, 02:40
I had it working on 2.30, to get it stable you need to read the entire thread before you install then make notes on what is to be installed and what code to use from the thread.
I need to install it again so might try and put a better installer together with updated info for 2.30...
Yeah, I started at the beginning and just now finished reading, getting ready to install. Crossing my fingers...
edited for total stupidity
PixelFx
01 Aug 2003, 21:18
how did ya make out?
I have it installed and working great! I wish the <p> command didn't cause 2 lines of white space, but I can live with that.
Now if I could only figure out another hack for uploading images I would be done! I have it basically done, but I'm stuck at the moment. Thanks for asking!
Just installed this hack on 2.3.2 . (Fresh install) , and after a bit of modification I have it working. <Yeah !> If anyone wants the details I'll post 'em. 99.9% of the features & such work , including html & admin cp functions.
FastAttack
24 Aug 2003, 05:21
yeah post them dude! :)
FastAttack
24 Aug 2003, 23:08
Following was tested on vbulletin 2.3.0 it should work for 2.3.1 and 2.3.2
Please note follow the regular install directions from the original zip. don't follow the changes on the original readme to misc.php
This file was a compilation of bug fixes made by DarkReaper , bira, and fleabag thanks again guys, you just made it very easy for me to it! and of course thanks to tubedogg for the original hack!
What if we already installed the original version? What changes do I have to make from that? I mean it works fairly well to me minus the re-ordering stuff. Does yours fix that?
FastAttack
24 Aug 2003, 23:19
Yeah this also fixes that..
to update your basicly you would just need to replace everything from the the start faq area. with my updated one..
working example is at http://www.srtforums.com/forums/misc.php
I am working on addon so that certain user groups can access this faq update as well with the lesser admin mod..
:) I will release it but first I will ask all the people that made the original scripts to let me release it
and for a example of working bbcode and smilies :
http://www.srtforums.com/forums/misc.php?s=&action=faq&page=4#28
cool, that is what I thought.
ok I just did that and nothing seemed to have changed :(
I still can't re-order the entries. Are there any changes to faq.php needed for that?
FastAttack
24 Aug 2003, 23:24
what version are you running and nope I never even touched faq.php
vb 2.3.0
I've always (since 2.2.8) gotten it to recognize HTML, not sure about smilies cuz I dont have any but the only thing that never worked is re-ordering the entries. Everything I change a number and submit the changes it refreshes the page as if I had just gone there for the first time and no changes are made.
FastAttack
24 Aug 2003, 23:32
most likely is a bad misc.php you have , upload a new one and do the code fix again :)
I just tried that and still nothing. It lets me re-order the groups but not the questions within each group :(
FastAttack
24 Aug 2003, 23:40
oh I see what it is.. give me a moment and I will see if I can fix it
FastAttack
24 Aug 2003, 23:50
well when I do the code fix it breaks something else.. so I guess its faq.php which needs a updated callback function for the doorder..
I am not an expert programer :( so I guess some other l33t programmer can base it out of the updated code and fix the bug
Well thanks for trying anyway. At least now I have vbcode and smilies :D
FastAttack
25 Aug 2003, 03:35
hehe no prob.. btw html works as well hehe
I know someone can update the faq.php to do the doorder.. like I said I am new to the programming of VBB all together.. in reality I look at other people's work and then build from that since this forum software is a tad bit complex since I am so new to programming it hehe
carryapple
18 Jan 2004, 14:19
awesome hack, thanks a LOT!
My FAQ would prolly be pretty worthless without it. BTW, it worked right away on m y 2.3.4 board - w/ the original zip and new instructions. :)
I am so embarassed to even post this question, but here goes.
I installed l ast August and need to make a change in my FAQ except I have no idea how or where to do it.
I had added an extra question to my User Maintenance section and I cannot find it anywhere.
I have been through every FAQ template I have and it isn't there.
I also don't remember how to add on.
Getting old is tough.
Thanks for the assist.
I found out what the problem was: I couldn't find what I needed because something wiped out the FAQ info on the left panel of the CP. After I had uninstalled and reinstalled that section was back.
Now to go back to see if the questions can be sorted, at the present time the revert back..
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.