Archive for the ‘Modifications’ Category
22.Mar.2007

Description: Places a mandatory limit on how long a summary can be. If the summary exceeds the limit, the user is kicked back to the preview screen with the notice that they have to shorten their summary.

Summary length is controlled in your admin settings, under “Submissions.” If a limit is in place, a small notice appears above your summary field on story submissions notifying your users of the limit. If you turn it off, nothing appears.

To turn it on, simply type in a length. (I suggest at least 750 - 1000 characters.) To turn it off, set it to 0.

This was originally a 2.0 mod, but frankly — it’s a much easier, neater, and more sophisticated mod on 3.0.

As usual, my line numbers are only there as a reference to put you in the general ballpark. They will likely change as you progress through the mod.

This always bears repeating: Please be sure to backup your files and database before you begin this or any other mod.

Requirements: eFiction 3.2.1

Difficulty: Easy - Intermediate (Depends on how well you follow my instructions.)

Files Involved:

  • admin/settings.php
  • includes/storyform.php
  • stories.php
  • languages/en.php
  • languages/en_admin.php
  • 1 Database Modification

Modification History:
- 22 March, 2007 — Mod Released

Modification & Support: eFiction.org

Instructions:

1.Mar.2007

Description: Displays the last date your users visited your eFiction site.

As always my line numbers are approximate and meant to put you in the general ballpark. They will likely change as you progress through the mod.

Backup your files and database before you begin this or any other mod!

Requirements: eFiction 3.2 or later

Difficulty: Easy

Mod History:
- 27 February, 2007, Marohi added mod to Test site, bug checking begins
- 1 March, 2007, Posted to eFiction forums
- 2 March, 2007, Fixed cookie issue, added language to en.php, changed mysql_query to dbquery

Files Involved:

  • user/login.php
  • user/profile.php
  • includes/get_session_vars.php
  • languages/en.php
  • skins/YOUR SKIN/profile.tpl
  • database modification

Modification & Support Link: eFiction.org

Instructions:

Description: This will display a “View Profile” link to the account menu in user.php, which will take your users to their author profile page.

Backup your files and database before you begin this or any other mod!

Requirements: eFiction 2.0

Difficulty: Easy

Modification History:
June 23, 2006 — Released Modification
November 30, 2006 — Updated, forgot a step

Files Involved:

  • user.php
  • languages/en.php

Instructions:

6:58 pm
Mood: na

Description: This mod is merely an attempt to discourage spammers from hitting your reviews through logging of IP addresses, adding rel=”nofollow” attributes to links, and a few other, little things.

Please note that this is NOT going to stop everyone and I can’t guarantee this will stop them if they’re currently hitting you. I’m not even sure when the spammers got tired of trying to hit my reviews and moved on.

The general idea behind this mod is that we’re trying to make it difficult enough on them that they decide to move on to easier sites.

As usual, I can’t take total credit for this mod. Tammy, Carissa, and Seiji helped me a lot as these mods were taking shape.

 

 

Also, a note about IP addresses. IP addresses change, especially with dial-up users. They can also be spoofed or the spammer could have a relay set up so they post from an impossible variety of IP addresses. They simply aren’t a good way to control anyone. On my site, we mainly use them for statistical purposes and passive behavior control. However, that being said, one of my worst spammers seemed to be posting from just one ISP out of China. I banned the whole ISP for about six weeks and the spam from that person stopped.

 

 

I should also explain what rel=”nofollow” does. rel=”nofollow” is an attribute you can add to hyperlinks that tells search engines (especially Google — [1] [2]) not to figure the link in when their determine page ranks. Since the spammers are attempting to increase their page rank, this means they aren’t benefiting by spamming your reviews. Again, it doesn’t stop them… it just makes your reviews less appealing.

If you wish, you can skip adding the rel=”nofollow” tags to the links pointing to your reviews. Just make sure you leave the link replace function alone so it can add the nofollow tag to any links anyone attempts to leave.

 

 

For this mod, I used files from the latest release. (2.0.7, 28 Aug 2006 patch) The line numbers are all approximate and will likely change as you progress through this mod. Please consider them simply a guide to put you into the general area.

Requirements: eFiction 2.0.7 — Please make sure you are completely up-to-date

Difficulty: Intermediate - Advanced

Mod History:
12-November-2006 — Released mod to public
13-November-2006 @ 12:28am — Fixed a mistake. For line 97 of reviews.php I wrote chapter.title as title instead of series.title as title.
14-November-2006 @ 6:44pm — Added explanation of what rel=”nofollow” does
01-December-2006 — Solved edit review bug

Demo: http://www.lunaescence.com/fics/search.php?action=tens&list=reviewedstories

Files Involved:

  • viewstory.php
  • series.php
  • reviews.php
  • func.reviewform.php
  • storyblock.php
  • seriesblock.php
  • languages/en.php

Instructions:

29.Sep.2006

Be sure to backup your database and files before you begin this or any other mod.

Description: This mod will put a male, female, or undisclosed icon in the author profile. I’ll let you decide if undisclosed means “Not Telling” or just what. It is up to you to provide your own icons.

This mod was originally created for JanAQ as part of her requested profile mods.

I can’t take full credit for this mod, I spent a lot of time trying to figure out how to get it working before I asked for help. Tammy replied and told me how to get it working.

As usual, my line numbers are approximate and only meant to put you in the general ballpark.

Requirements: eFiction 2.0

Difficulty: Easy

Modification History:
EDIT: Stopped working for some reason, so I changed the MYSQL declarations.
EDIT: Clarified my instructions for the database
EDIT: Changed my instructions so I didn’t overwrite some of my other mods. If it’s confusing, feel free to ask.
EDIT: Trying to fix the error Seiji found
EDIT: Tammy got it working! embarassed
EDIT: Fixed a typo from the instructions for line 389. Sorry!! embarassed
EDIT: Added the tpl tag
EDIT: 29 June 2006 — Updated post format to match post requirements; also began an update to bring the mod up to the current version.
EDIT: 29 June 2006 — Updated the modification to match the current release. Please let me know if you have any difficulties.

Files Involved:

  • user.php
  • viewuser.php
  • languages/en.php
  • user.tpl

Modification & Support Link: eFiction.org

Instructions:

Description: This mod adds a manditory disclaimer field to every story form. If users do not fill in the disclaimer, they’ll receive an error just like if they left the summary or title blank.

This mod is as involved as my story type mod, if not a bit moreso, due to the fact that it has to be made manditory. I strongly suggest you read through my instructions before you actually attempt this modification.

For this mod, I used files from the latest release. (2.0.7, 28 Aug 2006 patch) The line numbers are all approximate and will likely change as you progress through this mod. Please consider them simply a guide to put you into the general area.

This mod is UNTESTED. In theory it should work, but I have not tested it on my own site.

Requirements: eFiction 2.0.7 (28 Aug. 2006 Patch)

Difficulty: Advanced

Mod History:

18 Sept 2006 — Mod created as per request by fanfiction world

Files Involved:

  • Database modification
  • stories.php
  • viewstory.php
  • languages/YOUR LANGUAGE.php
  • skins/YOUR SKIN/viewstory.tpl

Modification & Support Link: eFiction.org

Instructions: