PDA

View Full Version : [RELEASE V2.0.1] New Forum Features


Wayne Luke
05 Jun 2001, 18:23
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,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
styleoverride,allowratings,countposts,moderateattach)
VALUES
(NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
'','$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilie s','$aallowicons',
'$styleoverride','$allowratings','$countposts','$moderateattach')");


Replace with:

$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
styleoverride,allowratings,countposts,moderateattach,metakey,metadesc,robotext,
showactive,censor,minviewposts,minposts)
values (NULL,'$styleset','".addslashes($title)."','".addslashes($description)."',
'$isactive','$displayorder','$parentid','','$allowposting','$cancontainthreads',
'$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilie s',
'$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',minviewposts='$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
05 Jun 2001, 18:28
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
05 Jun 2001, 18:36
Whoa! Nice job Wayne!!! Thanks. :)

Wayne Luke
06 Jun 2001, 02:23
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 Jun 2001, 02:33
Thanks Wayne.

Wayne Luke
06 Jun 2001, 08:08
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 Jun 2001, 10:15
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

Jpp
06 Jun 2001, 13:34
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 Jun 2001, 15:36
Good Job! I love it!

Wayne Luke
06 Jun 2001, 16:54
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.

Jpp
06 Jun 2001, 17:15
Ok that make sence, have to figure out how to use it on my board then. Btw very nice work. ;-)

gmtalk
06 Jun 2001, 21:29
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 Jun 2001, 23:42
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
07 Jun 2001, 04:34
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,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
styleoverride,allowratings,countposts,moderateattach,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
07 Jun 2001, 06:27
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
07 Jun 2001, 07:24
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
07 Jun 2001, 13:23
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
07 Jun 2001, 15:25
Is there anywhere I can find a list of changes in 2.0.1? from 2.0.0

kdog316
07 Jun 2001, 15:40
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
07 Jun 2001, 19:02
Put it in your admin directory.

kdog316
07 Jun 2001, 20:06
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
07 Jun 2001, 23:08
Double check and make sure your code changes match the ones listed in the first post of this thread.

kdog316
07 Jun 2001, 23:09
could it be because i have version 2.0 not 2.01 it wont work:confused:

Wayne Luke
07 Jun 2001, 23:10
It will work in both.... And most likely all the betas as well.

kdog316
07 Jun 2001, 23:35
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
07 Jun 2001, 23:41
You need to add another closing paranthesis ')' before the curly brace '{'.

kdog316
07 Jun 2001, 23:48
where

Mas*Mind
08 Jun 2001, 00:06
this is definitely wrong:

}[userid])) {

kdog316
08 Jun 2001, 00:41
so whwre do i add the (

Wayne Luke
08 Jun 2001, 03:16
Make it look like:

if (($foruminfo[minposts]>=$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {


and replace the line after "exit;" with }

ThomasP
16 Jun 2001, 18:07
Hi,
sounds to be a great hack,
does it work with php3-servers?
thx,
-Tom

Raptor
26 Jun 2001, 03:13
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
26 Jun 2001, 16:36
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
26 Jun 2001, 17:59
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
29 Jun 2001, 16:04
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
01 Jul 2001, 17:25
Am I being totally blind, or is the zip file no longer on this thread? Has it been removed?

Christian
01 Jul 2001, 22:49
You are NOT blind!
It is away!

DeadlyMax
01 Jul 2001, 22:54
where did the zip file go?

Wayne Luke
02 Jul 2001, 00:37
Sorry.. The file must have gotten deleted the last time I tried to update it.

Here is the most up to date file.

Pingu
02 Jul 2001, 17:53
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
06 Jul 2001, 04:55
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
06 Jul 2001, 08:08
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 Jul 2001, 14:59
You can set a forum wherein the user's posts will not count to their total posts. It is in the Control Panel.

MrLister
14 Jul 2001, 07:15
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
18 Jul 2001, 00:52
I'm experiencing the same with the unregistered Needing "0" Posts to view threads.

fastforward
18 Jul 2001, 02:38
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
18 Jul 2001, 03:08
yea but the problem is, no matter what value i put down it still doesn't let unregistered users view anything

fastforward
18 Jul 2001, 05:37
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
18 Jul 2001, 07:25
Don't forget to change the same thing in forumdisplay.php also! This worked, Thanks for your reply.

Wayne Luke
18 Jul 2001, 08:18
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.

Menx
19 Jul 2001, 09:09
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
20 Jul 2001, 00:16
where's the Link for the Zip File. I would really like to have this Hack. Thanks all

MrLister
20 Jul 2001, 01:23
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;
}
still doesn't work.....

Menx
20 Jul 2001, 03:07
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....

Menx
20 Jul 2001, 04:21
100% working!
I used bits and pecies from everywhere and now this is 100% working. thanks for the great hack!

TripleH
21 Jul 2001, 05:50
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
26 Jul 2001, 03:33
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 ;)

pipi
26 Jul 2001, 05:01
while using searching function.......users can view anything

stile
26 Jul 2001, 05:49
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
26 Jul 2001, 10:54
great hack !! Thanks !
:rolleyes:

dwh
26 Jul 2001, 14:03
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
27 Aug 2001, 14:25
Does this work for 2.0.3?

Amy

Gutspiller
29 Aug 2001, 17:41
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
04 Sep 2001, 18:29
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
07 Sep 2001, 17:23
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.

LuBi
13 Sep 2001, 00:55
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
14 Sep 2001, 14:25
where is the ff_install file??

TurboFC3S
15 Sep 2001, 18:08
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.

ray
16 Sep 2001, 11:25
Where is the zip file? I need ff_install.php.

TripleH
16 Sep 2001, 20:26
it should be on the first or second page...

HHH

shadowbreed
16 Sep 2001, 22:53
man i'm blind

for the other people looking for it: it's on page three (3) :)

ray
17 Sep 2001, 09:17
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
17 Sep 2001, 15:54
try adding or modifying a forum, it's at the bottom

TurboFC3S
17 Sep 2001, 22:01
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.

Mr K
08 Nov 2001, 10:20
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 Nov 2001, 05:35
Will this work for newer versions, both 2.0.3 and 2.2.0?

amykhar
24 Nov 2001, 15:22
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
24 Nov 2001, 16:13
Thanks Amy! That's the part I wanted to, so now I'll go work on it :)

|DarkManX|
24 Nov 2001, 16:29
anyone have this entire hack installed on 2.2?

thanks

|DarkManX|
24 Nov 2001, 16:48
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|
24 Nov 2001, 17:11
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|
24 Nov 2001, 17:16
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|
24 Nov 2001, 17:20
ok i need to uninstall this.....


how do i remove the tables and all the templates that the ff_install.php added.....

|DarkManX|
24 Nov 2001, 17:35
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

Nam
26 Nov 2001, 23:23
I love to install this hack too, but after seeing DarkManX problem, I don't dare to :), my version is 2.2.1

Lesane
03 Dec 2001, 18:01
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
03 Dec 2001, 19:45
Great hack, well done Luke :)

winky6
03 Dec 2001, 22:28
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
05 Dec 2001, 10:54
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
05 Dec 2001, 11:06
this hack is pure evil

Wayne Luke
08 Dec 2001, 21:56
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
08 Dec 2001, 23:50
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
20 Dec 2001, 06:17
Where is the file I am supposed to download?

fonzerelli_79
20 Dec 2001, 15:45
is anyone else still getting the error where your guests cant view the threads

its driving me nuts

fonzerelli_79
26 Dec 2001, 00:47
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
17 Feb 2002, 18:20
Where is the file for the hack??

mondaynightmike
17 Feb 2002, 18:23
its ok i found it on page 2

mondaynightmike
17 Feb 2002, 21:38
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
12 Jul 2002, 00:12
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
14 Sep 2002, 13:20
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 (http://www.vbulletin.org/forum/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
07 Dec 2002, 06:28
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
07 Dec 2002, 06:47
well, i tried installing manually, but the line in the forumdisplay template is not in mine. is this compatible with 2.2.8?????

Xyphen
21 Apr 2003, 01:20
This hack is not compatible with vB2.3.0!

FWF
27 Jul 2003, 22:01
can some one release this for 2.2.X ?

VeoMorphine
11 Dec 2003, 23:17
i need this for 2.3.0!!

PurpleCow
12 Dec 2003, 04:52
Even i need this for 2.3.0 ? any help ?

Cheers

VeoMorphine
12 Dec 2003, 18:33
if somone could get that install file back up, i could convert it....................