Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Disable/Remove parts of Php fusion

Asked Modified Viewed 6,011 times
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

Hey all.

Basically, I kind of think that the default fusion package is overkill.

How, if at all, can I entirely remove the forum, shoutbox and other elements and panels I don't need?

I've just removed references to them in links, for now, but I want to remove them entirely.

Too integrated in to the core?
0 replies

13 posts

H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

You don't need to use it. You can easily remove the links from the menu and and disable related stuff and never create any forums and such.

Whats the problem?
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Well, what about something like the shoutbox for example.

If it's address is known, will people not be able to use it?

Just curious, it doesn't *really* matter as you say.. just figured it wouldn't hurt to clean up, as it were.
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Just make the panel or whatever invisible or unaccessible but to SuperAdmins.

Dang, people keep nagging about adding features and here you want us to remove them or at least to make them easier removable...:P
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Well, would more modular behaviour hurt anything?

I mean, not everyone needs a forum, not everyone needs a download section.

Why not have the base fusion, and then add to that with official "infusions"?
But thanks anyway, it was merely a point of curiosity on my part. I have several fusion sites up and running, and I enjoy them immensely.
Please don't mistake my questions as a veiled attempt at being snide or displeased with anything. :)
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

What's in the core was added because people requested these features. Sure, we can offer information on how to remove specific components. They are not "too integrated in the core".

Let's take the forum for example:
1. Remove the links from the navigation and the sub-header
2. Completely remove the folder /forum/ from your webhost
3. Remove the following files from the /administration/ folder: forum_ranks.php, forums.php, forums_prune.php and settings_forum.php
4. Also remove completely the folders forum_threads_list_panel and forum_threads_panel from the /infusions/ folder
5. Remove the following files from the /includes/search/ folder: search_forums_include.php and search_forums_include_button.php
6. Finally, preview the following code in a custom page:

WARNING! This will erase the forums! Don't execute it unless you really want to remove it.

<?php
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forum_attachments");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forum_ranks");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forum_poll_options");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forum_poll_voters");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forum_polls");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."forums");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."posts");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."threads");
dbquery("DROP TABLE IF EXISTS ".DB_PREFIX."thread_notify");
dbquery("DELETE FROM ".DB_PREFIX."admin WHERE admin_rights IN('F', 'S3', 'FR')");
?>


WARNING! This will erase the forums! Don't execute it unless you really want to remove it.

Note: The warnings are for people who might want to try the script, not for you. I just don't want anyone to come back and roar. :P

OK, if you want more details about removing certain stuff, just ask.
Edited by kneekoo on 15-06-2010 21:38,
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

What about the search options, then?

You won't be able to select "Search forums" when searching, or wll that just always return nothing?

Thanks for being so helpful! :)
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

I forgot about the search options. Now you can find the details in my previous post, that also now includes the necessary info to remove the forum admin pages.
Edited by kneekoo on 15-06-2010 21:38,
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks man :)

It's appreciated!
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Ok, so what if you change opinion in 9 months and want the forums back...?

I prefer my approach.
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

We put the same files back, create the tables again, add the admin pages back and that's it.

Considering it's easier to remove links, you are right that if we might change our minds it's best to keep things as they are because they don't take up resources anyway - only a few KBytes as HDD space. But for those who really don't need that forum, it's actually better to completely remove it because it's just easier to maintain - the backups will be lighter, the time spent on saving and restoring would also decrease and the website woouldn't have strange unused pages to show "We don't have a forum yet" (which in these cases would really mean "and we never will"). :P
Edited by kneekoo on 16-06-2010 07:49,
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Exactly. I think I can adapt this to other parts of fusion now I know how. Thanks a bunch mate. :)
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

You're welcome. Just keep in mind to always backup everything before you perform changes. Or simply test your procedures locally, take notes, check them up as noted, backup your site and then do it online. This way you also learn how the PHPFusion core works but you can also work safe.
0 replies
F
Froberg
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Hm, I just re-read my original post. I kind of look like someone who has never used Fusion before. :P

I have two sites which use all features, and several additions on top of those.
For this latest site though, simplicity is the way forward.
So like you said, why maintain things you don't want, need or will ever need to use? :-)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
K
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
F
F
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet