View Full Version : [RELEASE V2.0.1] New Forum Features
Wayne Luke
06-04-2001, 10:00 PM
Forum Features Hack
---- About
This adds several new options and features to individual forums that can be useful.
New Features
1. Meta Tag Keywords set by forum.
2. Meta Tag Description set by forum.
3. Robot Meta Tag set by forum.
New Options
1. Censor words by Forum.
2. Minimum Posts required for New Thread.
3. Minimum Posts to view Forum.
---- Credits
This hack is distributed under the GPL as an add-on to vBulletin. vBulletin is a commercial product and not subject to this license agreement.
Written by: Wayne Luke
Portions of the Install script written by: Kier Darby
vBulletin is created by Jelsoft Ltd. http://www.jelsoft.com
---- Installation.
Run ff_install.php. This will make the modifications to the database and create the new templates.
Open admin/forum.php and look for:
makeyesnocode("Count posts made in this forum towards user post counts?","countposts",1);
After that add:
//WL 04-JUNE-2001 New Forum Features Hack
maketableheader("Search Engine Options (v1.2 by Wayne Luke)");
maketextareacode("Meta Tag Keywords: ","metakey");
maketextareacode("Meta Tag Description","metadesc");
makeinputcode("Meta Robot Tag","robotext");
maketableheader("Forum Control Options (v1.0 by Wayne Luke)");
makeyesnocode("Show in Active Topics?","showactive",1);
makeyesnocode("Censor Words in this Forum","censor",1);
makeinputcode("Minimum Posts to View","minviewposts");
makeinputcode("Minimum Posts to Start New Thread","minposts");
//WL End Modification
Also in admin/forum.php Look for:
$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch)
VALUES
(NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
'','$allowposting','$cancontainthreads','$daysprun e','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilies','$aallowicons',
'$styleoverride','$allowratings','$countposts','$m oderateattach')");
Replace with:
$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,metakey,metadesc,robotext,
showactive,censor,minviewposts,minposts)
values (NULL,'$styleset','".addslashes($title)."','".addslashes($description)."',
'$isactive','$displayorder','$parentid','','$allow posting','$cancontainthreads',
'$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilies',
'$aallowicons','$styleoverride','$allowratings','$ countposts','$moderateattach',
'".addslashes($metakey)."','".addslashes($metadesc)."','".addslashes($robotext)."',
'$showactive','$censor','$minviewposts','$minposts ')");
After that add:
//WL 04-JUNE-2001 New Forum Features Hack
maketableheader("Search Engine Options (v1.2 by Wayne Luke)");
maketextareacode("Meta Tag Keywords: ","metakey",$forum[metakey]);
maketextareacode("Meta Tag Description","metadesc",$forum[metadesc]);
makeinputcode("Meta Robot Tag","robotext",$forum[robotext]);
maketableheader("Forum Control Options (v1.0 by Wayne Luke)");
makeyesnocode("Show in Active Topics?","showactive",1,$forum[showactive]);
makeyesnocode("Censor Words in this Forum","censor",1,$forum[censor]);
makeinputcode("Minimum Posts to View","minviewposts",$forum[minviewposts]);
makeinputcode("Minimum Posts to Start New Thread","minposts",$forum[minposts]);
//WL End Modification
Last edit in admin/forum.php. Find:
$DB_site->query("UPDATE forum
SET
styleid='$styleset', title='".addslashes($title)."', description='".addslashes($description)."',
active='$isactive', displayorder='$displayorder', parentid='$parentid', parentlist=$parentlist,
allowposting='$allowposting', cancontainthreads='$cancontainthreads', daysprune='$daysprune',
newpostemail='".addslashes($newpostemail)."', newthreademail='".addslashes($newthreademail)."',
moderatenew='$moderatenew', allowhtml='$aallowhtmlcode', allowbbcode='$aallowbbcode',
allowimages='$aallowimgcode', allowsmilies='$aallowsmilies', allowicons='$aallowicons',
styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts',
moderateattach='$moderateattach'
WHERE forumid='$forumid'");
Replace with:
$DB_site->query("UPDATE forum
SET
styleid='$styleset', title='".addslashes($title)."', description='".addslashes($description)."',
active='$isactive', displayorder='$displayorder', parentid='$parentid', parentlist=$parentlist,
allowposting='$allowposting', cancontainthreads='$cancontainthreads', daysprune='$daysprune',
newpostemail='".addslashes($newpostemail)."', newthreademail='".addslashes($newthreademail)."',
moderatenew='$moderatenew', allowhtml='$aallowhtmlcode', allowbbcode='$aallowbbcode',
allowimages='$aallowimgcode', allowsmilies='$aallowsmilies', allowicons='$aallowicons',
styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts',
moderateattach='$moderateattach', metakey='".addslashes($metakey)."',metadesc='".addslashes($metadesc)."',robotext='".addslashes($robotext)."',
showactive='$showactive',censor='$censor',minviewp osts='$minviewposts',minposts='$minposts'
WHERE forumid='$forumid'");
In newthread.php find:
$smilieson=iif($foruminfo[allowsmilies],$ontext,$offtext);
After it add:
//WL 04-June-2001 Forum Features Hack (v1.0 Wayne Luke)
if (($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid])) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
//WL End Modifications
In newthread.php find:
$subject=censortext($subject);
$message=censortext($message);
Replace with:
if ($foruminfo[censor]) {
$subject=censortext($subject);
$message=censortext($message);
}
In Forumdisplay find:
$smilieson=iif($foruminfo['allowsmilies'],$ontext,$offtext);
After that add:
//WL 04-June-2001 Forum Features Hack (v1.0 Wayne Luke)
$keyword=$foruminfo[metakey];
$description=$foruminfo[metadesc];
$robotext=$foruminfo[robotext];
if (($foruminfo[minviewposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnoview")."\");");
exit;
}
//WL End Modifications
Finally add the following to your forumdisplay template:
<META NAME="keyword" content="$keyword">
<META NAME="description" content="$description">
<META name="robots" content="$robotext">
These same instructions are included in the readme.txt located in the zip file.
fastforward
06-05-2001, 04:28 PM
How spooky is that!
I was sat at my PC last night wondering what the easiest way would be to:
a) Set meta tags per forum.
b) Restrict posting and reading individual forums based on posts
Perfect!
Thanks for this :D
RobAC
06-05-2001, 04:36 PM
Whoa! Nice job Wayne!!! Thanks. :)
Wayne Luke
06-06-2001, 12:23 AM
I am glad you like it. Several of the features we have been using at SitePoint so I thought others would like them as well.
Hooper
06-06-2001, 12:33 AM
Thanks Wayne.
Wayne Luke
06-06-2001, 06:08 AM
The code above has been updated with to correct two bugs that I am surprised didn't cause errors in my testing. Sorry for any inconvenience.
Thanks to Fastforward for noticing this.
kitchend
06-06-2001, 08:15 AM
just an idea, something we do at BT is to dynamically generate meta-tags and descriptions using information already available.
as i see it, the information for the meta tags already exists, you just need to use it better.
you already have the meta-description, by using that forum's description.
for example this forum would have the decription:
"Posts your code hack releases for version 2 in here. Please, no requests!"
you already have the meta-keywords, by using the 'breadcrumb' of that forum.
for example this forum would have the keywords:
"vBulletin, Community, Forum, Customising, vBulletin, vBulletin, Code, Hacks, Releases"
i know it's not perfect, but it's pretty damn close to all the information you want, and you could always add an override facility. generally though, we found at BT that meta tags are never maintained properly, but dynamically generating them takes into account when the forum is moved in the hierarchy, etc. or if you re-purpose a board, it just works out the new variables.
again, just a suggestion that doesn't need to be listened to, but thought you'd like to know how other people do this stuff.
cheers
david k
Installed it and it works perfect, But how can they make their first post if they cant get in to the forum, they can only view the board, Have i done something wrong or am I just stupid.
MrLister
06-06-2001, 01:36 PM
Good Job! I love it!
Wayne Luke
06-06-2001, 02:54 PM
Originally posted by Jpp
Installed it and it works perfect, But how can they make their first post if they cant get in to the forum, they can only view the board, Have i done something wrong or am I just stupid.
They can post in other forums. That is handled on a forum by forum basis and the post counts are compared against the user's total.
The reason we do it is because we have an advertising forum where each member can post one ad a month. We made a requirement that they have to have 20 posts minimum so that they contribute to the community in a meaningful way (since posts in the general chat forum don't count) before they post their advertisement.
Ok that make sence, have to figure out how to use it on my board then. Btw very nice work. ;-)
gmtalk
06-06-2001, 07:29 PM
This looks to be a great hack. I just ran into a slight problem on the install
I have followed the instructions and when i run the ff_install.php
I get to the following
Forum Features (version 1.2)
from Wayne Luke
Altering forum table
Installing necessary templates...
it just hangs there.
Does not go any further.
I have seen that it created the following in the forum table:
metakey char(250) Yes None NULL
metadesc char(250) Yes None NULL
robotext char(50) Yes None NULL
showactive smallint(5) No None 1
censor smallint(5) No None 1
minviewposts smallint(5) No None 0
minposts smallint(5) No None 0
No other information was entered that I can see in any of the tables.
Any thoughts. I have removed the above fields.
TIA
john
Wayne Luke
06-06-2001, 09:42 PM
It isn't hanging there.. It is done at that point.
To clarify, I add a phrase saying it was done at the end of the script.
The only table in the database that it touches is the forum table and those fields are the ones it adds. The install script also adds 2 new error templates to handle the minimum post requirements for new threads and viewing a forum.
You can change these options by modifying a particular forum.
gmtalk
06-07-2001, 02:34 AM
WLuke,
I installed and now I get this when I try to add a subforum.
Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,metakey,metadesc,robotext,
showactive,censor,minviewposts,minposts)
values (NULL,'1','testtesttest','',
'1','1','1','','1','1',
'30','','',
'0','0','1','0','1',
'1','0','1','1','0',
'','','',
1,1,,)
mysql error: You have an error in your SQL syntax near ')' at line 13
mysql error number: 1064
Date: Wednesday 06th of June 2001 10:31:10 PM
Script: /forum2/admin/forum.php
Referer: http://www.s-seriesforum.com/forum2/admin/forum.php?action=add&parentid=1
fastforward
06-07-2001, 04:27 AM
You need to put single quotes around the $minviewposts and $minposts in the INSERT statement you edited in admin/forum.php. For some reason MySQL requires quotes for all datatypes except INT. Those two fields are SMALLINT.
Snoozy
06-07-2001, 05:24 AM
If I do all of your code changes, and run upgrade10.php from the newest vbulletin2.zip file that I downloaded from the Member's Area, will I be fully compliant with 2.0.1, becuse I have alot of hacks, and don't want to have to go through them all again....Thanks.
Wayne Luke
06-07-2001, 11:23 AM
Originally posted by Snoozy
If I do all of your code changes, and run upgrade10.php from the newest vbulletin2.zip file that I downloaded from the Member's Area, will I be fully compliant with 2.0.1, becuse I have alot of hacks, and don't want to have to go through them all again....Thanks.
You will have to apply all the hacks to the 2.0.1 code base to be compliant with it. This hack is not part of the official vBulletin distribution.
Snoozy
06-07-2001, 01:25 PM
Is there anywhere I can find a list of changes in 2.0.1? from 2.0.0
kdog316
06-07-2001, 01:40 PM
when i try to run the ff_install.php i get this erorr
Fatal error: Call to undefined function: cpheader() in /home/photo/public_html/tmbps/ff_install.php on line 7 :confused:
Wayne Luke
06-07-2001, 05:02 PM
Put it in your admin directory.
kdog316
06-07-2001, 06:06 PM
ok but now when i try to post a new thread i get this erorr
Parse error: parse error in /home/photo/public_html/tmbps/newthread.php on line 306 :confused:
Wayne Luke
06-07-2001, 09:08 PM
Double check and make sure your code changes match the ones listed in the first post of this thread.
kdog316
06-07-2001, 09:09 PM
could it be because i have version 2.0 not 2.01 it wont work:confused:
Wayne Luke
06-07-2001, 09:10 PM
It will work in both.... And most likely all the betas as well.
kdog316
06-07-2001, 09:35 PM
red di ti and still get the erorr and here is what lines 307-310 look like if (($foruminfo[minposts]>=$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid])) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}[userid])) {
here is line 307 the one it is saying is wrong if (($foruminfo[minposts]>=$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid])) {
oh and add reply works fine
Wayne Luke
06-07-2001, 09:41 PM
You need to add another closing paranthesis ')' before the curly brace '{'.
kdog316
06-07-2001, 09:48 PM
where
Mas*Mind
06-07-2001, 10:06 PM
this is definitely wrong:
}[userid])) {
kdog316
06-07-2001, 10:41 PM
so whwre do i add the (
Wayne Luke
06-08-2001, 01:16 AM
Make it look like:
if (($foruminfo[minposts]>=$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
and replace the line after "exit;" with }
ThomasP
06-16-2001, 04:07 PM
Hi,
sounds to be a great hack,
does it work with php3-servers?
thx,
-Tom
Raptor
06-26-2001, 01:13 AM
very strange
ive installed this to the letter
everything seems perfectly fine BUT
it denies access for new users to EVERY forum (says blah blah you need 0 posts to access)
i have set just one forum to 10 posts to view/new thread and when the newbie gets 10 posts he then has access to ALL the forums with no problems
it also does give the odd few members access to these locked forums when they have only 1 post even though its set to 10
what could possibly be wrong ?
Christian
06-26-2001, 02:36 PM
One question:
In your zip file, which set of files is the right one?
ff_install.php and readme.txt are there each twice!
Once in the root and once in webwork\sitepointforums.com\hacks\forum_features!
AND: they have different file sizes!
Which package is the corect?
KeithMcL
06-26-2001, 03:59 PM
Originally posted by Christian
One question:
In your zip file, which set of files is the right one?
ff_install.php and readme.txt are there each twice!
Once in the root and once in webwork\sitepointforums.com\hacks\forum_features!
AND: they have different file sizes!
Which package is the corect?
I just finished installing great hack and everything went very smoothly. Thanks Wayne.
BTW, Christian the best files to use would be the ones with the latest modified date which is the 06/06/01.
Rgds,
Raptor
06-29-2001, 02:04 PM
Originally posted by Raptor
very strange
ive installed this to the letter
everything seems perfectly fine BUT
it denies access for new users to EVERY forum (says blah blah you need 0 posts to access)
i have set just one forum to 10 posts to view/new thread and when the newbie gets 10 posts he then has access to ALL the forums with no problems
it also does give the odd few members access to these locked forums when they have only 1 post even though its set to 10
what could possibly be wrong ?
*bump*
Morgo
07-01-2001, 03:25 PM
Am I being totally blind, or is the zip file no longer on this thread? Has it been removed?
Christian
07-01-2001, 08:49 PM
You are NOT blind!
It is away!
DeadlyMax
07-01-2001, 08:54 PM
where did the zip file go?
Wayne Luke
07-01-2001, 10:37 PM
Sorry.. The file must have gotten deleted the last time I tried to update it.
Here is the most up to date file.
Pingu
07-02-2001, 03:53 PM
the install txt in the zip file contains errors.
I got a a parse error on /forumdisplay.php and /admin/forum.php
I replaced the code with the code published on the first post in this thread and things are ok now...
butty
07-06-2001, 02:55 AM
great hack :) cheers buddy works a charm, although i had 2 use the instructions off the first page n had 2 ad another ) to the code like in that other post
robertusss
07-06-2001, 06:08 AM
Originally posted by wluke
... have 20 posts minimum so that they contribute to the community in a meaningful way (since posts in the general chat forum don't count) before they ....
erm, do I understand you right? you have a "general chat" subforum and posts in there do not count to the users total number of posts?
Is that a new feature I don't know about (still using beta3 - maybe it has been implemented later)? or is it a hack of yours?
polgas
07-07-2001, 12:59 PM
You can set a forum wherein the user's posts will not count to their total posts. It is in the Control Panel.
MrLister
07-14-2001, 05:15 AM
why do i keep getting this. if somebody is not registered and is trying to view the forum it keeps saying
Sorry you must have at least posts to view threads in this forum
and it is set to 0 views min.
SteveK
07-17-2001, 10:52 PM
I'm experiencing the same with the unregistered Needing "0" Posts to view threads.
fastforward
07-18-2001, 12:38 AM
Originally posted by SteveK
I'm experiencing the same with the unregistered Needing "0" Posts to view threads.
You need to put $foruminfo[minposts] and/or $foruminfo[minviewposts] in your error templates.
MrLister
07-18-2001, 01:08 AM
yea but the problem is, no matter what value i put down it still doesn't let unregistered users view anything
fastforward
07-18-2001, 03:37 AM
Originally posted by mrlister
yea but the problem is, no matter what value i put down it still doesn't let unregistered users view anything
Alter the line that checks for posting permissions in newthread.php to something like this
if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
SteveK
07-18-2001, 05:25 AM
Don't forget to change the same thing in forumdisplay.php also! This worked, Thanks for your reply.
Wayne Luke
07-18-2001, 06:18 AM
I had posted before that this had to be changed and I thought I updated the files appropriately. I will double check them in the morning and if necessary re-upload.
Hello. I am new to all these hacks things so I installed this one and it works great. I have tested it out by registering a new user and seeing what I can view and post etc etc.
I just got one question and maybe this can't be done but I was wondering... can you make a option where users after X amount of days the amount of posts you need increase over time...
i don't know if you know what I mean... but
say you have new and old members, the new members amount of posts before they can view a section is lower than the old members amount before they can view the section...
so if a member is registered say 10 days then they are classified as old and need to post more before they can get access to a forum even if 5 days ago they would have been able to view it because they came under new.
hope that made sense...
Nemesis77
07-19-2001, 10:16 PM
where's the Link for the Zip File. I would really like to have this Hack. Thanks all
MrLister
07-19-2001, 11:23 PM
[QUOTE]Originally posted by fastforward
Alter the line that checks for posting permissions in newthread.php to something like this
if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
Seems I am also having problems (i spoke too soon)
It allows the odd members to get access to forums even though there is a value said that u need 5 posts before you can view this thread but the main problem is now no new members can post in any of the sections even though they are set to having needed 0 posts they get the error they need x amount of posts before they can post.
but its set to 0 so i don't know how to fix it.
can anyone help....
100% working!
I used bits and pecies from everywhere and now this is 100% working. thanks for the great hack!
TripleH
07-21-2001, 03:50 AM
Ok.. this is going to be a dumb question..
I finally got everything to work,..
But now how to I set the forums? I looked in the edit, and I cna't find it anywhere.. thanks
HHH
stile
07-26-2001, 01:33 AM
Once you set the options with this hack, you can't go back and change them... Is there a way to add it so you can modify the posts needed to set a new topic once you initially set it?
otherwise i gotta nuke all my forums and start over ;)
while using searching function.......users can view anything
stile
07-26-2001, 03:49 AM
I have it set so that people under x amount of posts can't post or view in certain forums using the forum hack.
I also have the Last Post thread hack.
Users can totally bypass the "can't post if you don't have x amount of posts" by clicking on the Last Post thread link.
Kind of defeats the purpose :)
look: http://php.stileproject.com/spf
try posting from the forum link then last post to thread link.
Kengan
07-26-2001, 08:54 AM
great hack !! Thanks !
:rolleyes:
Originally posted by stile
I have it set so that people under x amount of posts can't post or view in certain forums using the forum hack.
I also have the Last Post thread hack.
Users can totally bypass the "can't post if you don't have x amount of posts" by clicking on the Last Post thread link.
Kind of defeats the purpose :)
look: http://php.stileproject.com/spf
try posting from the forum link then last post to thread link.
Hey, what ru doing here? In the 2 seconds you posted that message you had approximately 200 million visitors ;)
Care to share any pointers for us slow guys w/ under 1 million users?
amykhar
08-27-2001, 12:25 PM
Does this work for 2.0.3?
Amy
Gutspiller
08-29-2001, 03:41 PM
I installed this hack, but I don't have anything in my admin CP?
I did happen to do the modifications to the files, first and upload, before I ran the ff_install.php
Is this ok? Or do I need to revert to the original php files, then run the ff_install.php and then reupload the new php files?
I don't see any settings in the admin CP for me to change any new features.
Please help. :(
Gutspiller
09-04-2001, 04:29 PM
Originally posted by fastforward
Alter the line that checks for posting permissions in newthread.php to something like this
if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
Im a noobie and I don't know where I put those lines of code. Can somebody help me out on where I put them/what I should search for and replace/put them under. I also read that they need to be put in forumdisplay.php also.
Where do I put them in forumdisplay.php too?
Thanks for any help you can provide. :)
Gutspiller
09-07-2001, 03:23 PM
OK, I know I have bugged you quite a bit on this hack and Im sorry. If you could just help me with one more thing on this post count hack I would be in your dept.
Fastforward states this:
quote:
--------------------------------------------------------------------------------
Alter the line that checks for posting permissions in newthread.php to something like this
if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
--------------------------------------------------------------------------------
and another person says this:
Don't forget to change the same thing in forumdisplay.php also! This worked, Thanks for your reply.
My problem is, I don't know where to put that code that I quoted from Fastforward. Could you please help me with this code. I swear I wont ask another question about this hack.
(in case you are a little lost, I am asking this because my guests are getting the "you must have 0 posts to view this forum." I updated the error templates, but that only sets the post count to check to see what the post count is set to. I just need to get it so that it doesn't give that error message to guests, but instead, lets my guests view the forums that I setup for them to view in the admin CP.)
OK, sorta long but I wanted you to have a clear view of what was wrong.
I appreciated you writing this hack and all the support you have given to me on this. Please don't give up on me now.
The Gutspiller.
What do the features in this hack do? What's the good part about the meta tags?
Also can the options be disabled somewhere?
shadowbreed
09-14-2001, 12:25 PM
where is the ff_install file??
TurboFC3S
09-15-2001, 04:08 PM
Ok, so where do you add keywords/descriptions to forums that already exist? If you can only add keywords when a forum is created, then it's kinda worthless ... no offense, but we need the option to be able to change stuff.
Where is the zip file? I need ff_install.php.
TripleH
09-16-2001, 06:26 PM
it should be on the first or second page...
HHH
shadowbreed
09-16-2001, 08:53 PM
man i'm blind
for the other people looking for it: it's on page three (3) :)
This is a REAL dumb question..I installed this hack...so what does it do? Anything I have to configure? I dont see anything new.
Thanks!
Ray
shadowbreed
09-17-2001, 01:54 PM
try adding or modifying a forum, it's at the bottom
TurboFC3S
09-17-2001, 08:01 PM
I didn't have the option to modify existing forums, and I had the problems others have had with it saying you must have posts to view the forums - if you're uncookied. So I backed this hack out.
UNINSTALLER
Do you have an uninstall for this hack?? It didn't work ... or at least doesn't do what I want it to do ...
I've gone through all the notes here...and it STILL will not limit my new user (with no posts) from posting into my forums...
Thanks for trying .. seems to work for lots of others though
Mr K.
grumpy
11-11-2001, 03:35 AM
Will this work for newer versions, both 2.0.3 and 2.2.0?
amykhar
11-24-2001, 01:22 PM
For any that are interested, I just installed the meta tag portion of this hack with no problems on 2.20.
I did not install the censor words or minimum post count portions of this hack, because I don't need it on my board.
Amy
grumpy
11-24-2001, 02:13 PM
Thanks Amy! That's the part I wanted to, so now I'll go work on it :)
|DarkManX|
11-24-2001, 02:29 PM
anyone have this entire hack installed on 2.2?
thanks
|DarkManX|
11-24-2001, 02:48 PM
ok this does not work on 2.2
i get this error
Parse error: parse error in /home/partylou/public_html/tof/forumdisplay.php on line 75
and here is the code with line 75 being
if (($foruminfo[minviewposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
here is that entire block lines 70-79
//WL 04-June-2001 Forum Features Hack (v1.0 Wayne Luke)
$keyword=$foruminfo[metakey];
$description=$foruminfo[metadesc];
$robotext=$foruminfo[robotext];
if (($foruminfo[minviewposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnoview")."\");");
exit;
}
//WL End Modifications
thanks
|DarkManX|
11-24-2001, 03:11 PM
ok it does work in 2.2 now
i replace the code above with this
if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}
and now it works.....
btw, is it possible to make it so that you can edit exsisting forums....??
|DarkManX|
11-24-2001, 03:16 PM
spoke to soon
Parse error: parse error in /home/partylou/public_html/tof/newthread.php on line 159
159 if ($foruminfo[censor]) {
160 $subject=censortext($subject);
161 $message=censortext($message);
162 }
now what??
|DarkManX|
11-24-2001, 03:20 PM
ok i need to uninstall this.....
how do i remove the tables and all the templates that the ff_install.php added.....
|DarkManX|
11-24-2001, 03:35 PM
Originally posted by Mr K
UNINSTALLER
Do you have an uninstall for this hack?? It didn't work ... or at least doesn't do what I want it to do ...
I've gone through all the notes here...and it STILL will not limit my new user (with no posts) from posting into my forums...
Thanks for trying .. seems to work for lots of others though
Mr K.
Sign me up for one of these too
just can't get it to work
thanks
I love to install this hack too, but after seeing DarkManX problem, I don't dare to :), my version is 2.2.1
Lesane
12-03-2001, 04:01 PM
I use 2.0.3 and i changed
3. Minimum Posts to view Forum.
to:
3. Minimum Posts to view Threads.
Poeple will c the title of the threads inside the forum but once new members will open it they receive a error. :p
Dark Blaze
12-03-2001, 05:45 PM
Great hack, well done Luke :)
winky6
12-03-2001, 08:28 PM
The hack has some problems.
For one, if I try to set the :
Show in Active Topics?
Yes No
Censor Words in this Forum
Yes No
It will go to yes on both no matter what I set it at.
Also, with guests, they can't view any forum, unless I disable the restricked thread view in the scripts themself.
It needs some tweeking for 2.2.1
fonzerelli_79
12-05-2001, 08:54 AM
ive installed this hack word for word just like everone else and mu guests/unregisered still cant read my posts which is obiously reducing my sign up rate
1. how do you fix this 'sorry you need to have posts to view this forum' error.
or
2. How do you uninstall all the stuff that ff_install did
Im sure everyone is on the same boatd as me so any help would be greatly appreciated
fonzerelli_79
12-05-2001, 09:06 AM
this hack is pure evil
Wayne Luke
12-08-2001, 07:56 PM
Hmmm... I don't know why this has a 2.2.1 tag in the forum list. It has never been tested in that version. Also this hack is pretty much unsupported and has been for months.
Recently, I did get asked a question about guests and viewing options....
You have two options to fix this. I used the second option.
1) Set a Guest's postcount to -1 in session.php.
2) Change the fields added to the database for this hack to unsigned and set the value to -1 on a per forum basis. Since a guests post count will be higher at 0, this is the optimal solution.
fonzerelli_79
12-08-2001, 09:50 PM
i have changed the forum permissions to -1 but i dont know how to Change the fields added to the database for this hack to unsigned
SaintDog
12-20-2001, 04:17 AM
Where is the file I am supposed to download?
fonzerelli_79
12-20-2001, 01:45 PM
is anyone else still getting the error where your guests cant view the threads
its driving me nuts
fonzerelli_79
12-25-2001, 10:47 PM
i was really frustrated after installing this hack as it didnt work and i dont enough enough about php to resolve it
I sent a private message to Bira and he has provided an un-installer for everyone to remove this hack
can you believe, he did it on christmas day!
I have attached the files. Its very straight forward and all credit should go to Bira.
I think i speak for a lot of members when i
say 'Muchos Gratius'
:D :D
mondaynightmike
02-17-2002, 04:20 PM
Where is the file for the hack??
mondaynightmike
02-17-2002, 04:23 PM
its ok i found it on page 2
mondaynightmike
02-17-2002, 07:38 PM
hum... when i run the install file i get this:
Database error in vBulletin Control Panel 2.2.1:
Invalid SQL: ALTER TABLE forum
ADD metakey CHAR(250) NULL,
ADD metadesc CHAR(250) NULL,
ADD robotext CHAR(50) NULL,
ADD showactive SMALLINT(5) DEFAULT '1' NOT NULL,
ADD censor SMALLINT(5) DEFAULT '1' NOT NULL,
ADD minviewposts SMALLINT(5) DEFAULT '0' NOT NULL,
ADD minposts SMALLINT(5) DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'minviewposts'
mysql error number: 1060
Can anyone help?
newsguy
07-11-2002, 10:12 PM
I'm sure this is a great hack and it accomplishes a lot of things at once.
But...
I would like to just require that members reach a minimum # of posts to have permission to start a new thread. So, I would rather not run the whole mechanism in wluke's hack, but instead, just do the single feature of requiring a minimum # of posts to start a thread.
Is there a hack on this board that would just accomplish that? Or is there a way that I can just extract that functionality from wluke's hack?
Help would be greatly appreciated!
RiP-Productions
09-14-2002, 11:20 AM
Originally posted by newsguy
I'm sure this is a great hack and it accomplishes a lot of things at once.
But...
I would like to just require that members reach a minimum # of posts to have permission to start a new thread. So, I would rather not run the whole mechanism in wluke's hack, but instead, just do the single feature of requiring a minimum # of posts to start a thread.
Is there a hack on this board that would just accomplish that? Or is there a way that I can just extract that functionality from wluke's hack?
Help would be greatly appreciated!
Believe a hack from DarkSSJ does the trick.
Need xx posts to make an new thread (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41438&highlight=minimum+posts+to+create+thread)
But have a question, Installed the hack partitially (needed only the "you must have x posts to view this forum" hack, but is there a possiblity that a special Usergroup with NOT the amount of posts can bypass the hack. It seems to be only a small adjustment but don't know how... Think it has to do with a small adjustment in the code below.
if (($foruminfo[minviewposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid])) {
eval("standarderror(\"".gettemplate("error_forumnoview")."\");");
exit;
}
Who can help me :D
XFLBret
12-07-2002, 04:28 AM
Parse error: parse error in /usr/local/etc/httpd/htdocs/forums/admin/ff_install.php on line 11
why do I get this error when I try to run the file?????? what do I do to make it go away? I could really use this feature...
XFLBret
12-07-2002, 04:47 AM
well, i tried installing manually, but the line in the forumdisplay template is not in mine. is this compatible with 2.2.8?????
Xyphen
04-20-2003, 11:20 PM
This hack is not compatible with vB2.3.0!
can some one release this for 2.2.X ?
VeoMorphine
12-11-2003, 09:17 PM
i need this for 2.3.0!!
PurpleCow
12-12-2003, 02:52 AM
Even i need this for 2.3.0 ? any help ?
Cheers
VeoMorphine
12-12-2003, 04:33 PM
if somone could get that install file back up, i could convert it....................
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.