![]() |
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
<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. |
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 |
Whoa! Nice job Wayne!!! Thanks. :)
|
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.
|
Thanks Wayne.
|
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. |
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.
|
Good Job! I love it!
|
Quote:
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. ;-)
|
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 |
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. |
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/...add&parentid=1 |
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.
|
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.
|
Quote:
|
Is there anywhere I can find a list of changes in 2.0.1? from 2.0.0
|
when i try to run the ff_install.php i get this erorr
Quote:
|
Put it in your admin directory.
|
ok but now when i try to post a new thread i get this erorr
Quote:
|
Double check and make sure your code changes match the ones listed in the first post of this thread.
|
could it be because i have version 2.0 not 2.01 it wont work:confused:
|
It will work in both.... And most likely all the betas as well.
|
red di ti and still get the erorr and here is what lines 307-310 look like
PHP Code:
PHP Code:
|
You need to add another closing paranthesis ')' before the curly brace '{'.
|
where
|
this is definitely wrong:
PHP Code:
|
so whwre do i add the (
|
Make it look like:
PHP Code:
|
Hi,
sounds to be a great hack, does it work with php3-servers? thx, -Tom |
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 ? |
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? |
Quote:
BTW, Christian the best files to use would be the ones with the latest modified date which is the 06/06/01. Rgds, |
Quote:
|
Am I being totally blind, or is the zip file no longer on this thread? Has it been removed?
|
You are NOT blind!
It is away! |
where did the zip file go?
|
Sorry.. The file must have gotten deleted the last time I tried to update it.
Here is the most up to date file. |
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... |
All times are GMT. The time now is 03:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|