Knowledge Base

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - admin

Pages: 1 2
1
Scripts and Tutorials / [Tip/Trick] How to block links in the subject line of posts!
« on: July 13, 2017, 11:57:25 AM »
Spammers deserve a special place in *. They register with random pseudo-names, post one or two spam messages and annoy everyone on the forum. One of the methods they use is to post links to their garbage websites in the subject of the post; that way, the link is prominently displayed in the list of posts.

Here's a simple trick to block links in the subject of a post:

First, open /Themes/default/languages/Errors.english.php and add this at the end (or anywhere):

Add:
Code: [Select]
$txt['error_bad_subject'] = 'You are not allowed to use that subject line.';

Now open /Sources/Post.php

Find:
Code: [Select]
	// You are not!
if (isset($_POST['message']) && strtolower($_POST['message']) == 'i am the administrator.' && !$user_info['is_admin'])
fatal_error('Knave! Masquerader! Charlatan!', false);

Add this after:
Code: [Select]
    // HTTP not allowed!
    if (substr_count(strtolower($_POST['subject']),"http://") > 0 || substr_count(strtolower($_POST['subject']),"https://") > 0)
        {
       $post_errors[] = 'bad_subject';
        }

If you want to also block www. in the subject, use this instead of the above code:
Code: [Select]
// http not allowed!
    if (substr_count(strtolower($_POST['subject']),"http://") > 0 || substr_count(strtolower($_POST['subject']),"https://") > 0 || substr_count(strtolower($_POST['subject']),"www.") > 0)
        {
       $post_errors[] = 'bad_subject';
        }

Now, when they try to post a message with a URL in the subject they will be greeted with a nasty error message:




Feel free to change the error message text to whatever you want and add translations to other language files you use on your forum.   ;)

2
News and Announcements / The Great SPAM Flush!
« on: July 13, 2017, 08:39:28 AM »
I haven't been on here in a while and boy was I surprised to see hundreds of new users! But, it was too good to be true since ALL of them were spammers. So, I had no choice but to make some major changes:

Members with zero posts and who haven't logged in in over a year will be deleted!
No more email registrations - new users must be approved by me!
Installed a few anti-spam measures to slow down spammers
Users who post spam will be banned and deleted!

I really don't understand why these people (or bots) flood forums with their garbage. Nobody clicks on their links, nobody buys the junk they're peddling.

If your account was deleted by accident, re-register and I'll approve your request ASAP.

Thanks for your understanding!
:logo:

3
The Lounge / Re: Hello everyone.
« on: July 12, 2017, 09:33:09 AM »
Hello and welcome to the forum!

4
Modifications and Packages / Re: 25% Off SMF Packs mods!
« on: July 12, 2017, 09:32:39 AM »
The code expired.  :(

5
News and Announcements / Server Upgrade
« on: March 23, 2016, 01:23:58 AM »
"ns"

Good news!

The server has been upgraded to the latest Xeon platform and SSD drives for faster, more responsive access.

Enoy!
:logo:

6
News and Announcements / SMF 2.1 Beta 1 Test Site
« on: April 23, 2015, 07:44:37 PM »
The SMF 2.1 test site has been upgraded to 2.1 Beta. Check it out!

7
Feedback / MOVED: HELP! We are locked out...
« on: July 29, 2014, 02:40:56 AM »

8
News and Announcements / NEW! SMF Package Parser!
« on: June 28, 2014, 07:29:06 AM »
"ns"

Do you have a modification package that you want to install - but need to see what changes the package makes first?

Try our new SMF Package Parser! Updated and tested for use with SMF 2.0.8 and 1.1.19 packages!


>>> CLICK HERE! <<<

Bookmark it and share it with your friends!

:logo:

9
News and Announcements / NEW! CSS Sprite Generator!
« on: June 28, 2014, 04:01:33 AM »


Introducing our BRAND NEW CSS Sprite Generator!

Are you looking for an easy-to-use sprite generator for your project? Try our new generator and see how easy it can be to combine multiple images into one sprite!

Make sure you bookmark the page and share it with your friends!


:logo:

10
News and Announcements / Happy 1st Year Anniversary!
« on: June 27, 2014, 03:36:03 AM »
"ns"

June 20th was the 1 year anniversary of SMF Help!

There's a lot more to come!

Watch for the release of our own home-grown mods, tricks and tips and new tutorials for Simple Machines Forum. If you need help installing mods, customizing SMF or want to learn and share PHP/HTML code - we're here to help!

New to SMF Help? Click the Register button and join the fun!

:logo:

11
News and Announcements / We're back!
« on: March 25, 2014, 05:52:47 PM »
Due to problems with our hosting provider, we were offline for 5 days. The problem was an issue with the SMF cache folder and a configuration issue with the Apache server.

Let us know if you have problems and thanks for your patience and understanding!

The SMF Help Staff

12
Hosting / Hosting Offers!
« on: July 07, 2013, 05:52:29 PM »
Looking for a great deal on a place to host your forum? SMF Help recommends the following hosting companies:

Dreamhost:

Click the banner above and save $50 off! Limited time offer!

Bluehost:


HostGator:

Use HostGator Offer Code:  SMFHELP25OFF    <--- 25% off your total when signing up!


SMF Help is proudly hosted by
and it's the host we recommend.   :beer2:


The SMF Help Team
:logo:

13
SEO and Administration / [Tutorial] How to setup FeedBurner with SMF!
« on: July 01, 2013, 02:10:20 PM »
"ns"

Why use Feedburner? From the website:

Quote
Technology evolution in online publishing has made it really easy to not only publish regular updates to web-based content, but also keep track of a large number of your favorite Web sites or blogs, without having to remember to check each site manually or clutter your email Inbox. You can now streamline your online experience by subscribing to specific content feeds and aggregating this information in one place to be read when you're ready.

Here's a basic RSS link that can be used with FeedBurner:

     http://smfhelp.com/index.php?action=.xml;sa=recent;board=0;limit=10;type=rss

That will pull the last 10 posts on your forum as your feed but suppose you want to only pull posts from a specific category? For example, if you only wanted posts in the 14th category, use this:

     http://smfhelp.com/index.php?action=.xml;sa=recent;board=14;limit=10;type=rss     

That link will pull the 10 most recent posts from board 14 which is the 'Hosting' category here on SMF Help. Remember to change the website URL to your own.  ;)

Once you know how to setup your RSS links, you're ready to add them to FeedBurner and get ready to see a lot of new traffic to your forum!

:logo:

14
SMF Talk / Installing SMF 2.1 Alpha
« on: July 01, 2013, 11:21:01 AM »
1. First, download the latest version here: https://github.com/SimpleMachines/SMF2.1

2. Unzip the files and upload them to your server.

3. Copy the following files to the server root from the '\other\' folder:
  • install.php
  • install_2-1_mysql.sql
  • install_2-1_postgresql.sql
  • install_2-1_sqlite.sql
  • Settings.php
4. Copy 'Settings.php' to a new file called 'Settings_bak.php'. You should have both files in the root.

5. Make sure both 'Settings.php' and 'Settings_bak.php' are set writable, either 777 or at least 755 using CHMOD.   <- Very Important!

6. Login to your MySQL server and create a new, empty database for your forum.

7. Navigate your browser to you website domain and you should see the install page:

5-0

8. Follow the install screens:

19-1    21-2    23-3   25-4

9. Delete the 'install.php' file from the root, if SMF fails to do it.

Login and explore the new SMF 2.1 Alpha!

27-5

:logo:

15
SMF Talk / SMF 2.1 Alpha Test Site
« on: July 01, 2013, 11:04:48 AM »
Want a sneak peek at what SMF 2.1 looks like? Well, now you can! We setup a test site for SMF 2.1 Alpha @ www.21.smfhelp.com.

Stop by and check it out. Registration is turned on, so you can sign up and see how it looks and works.

:logo:


Pages: 1 2