Jump to content

Friends and Enemies 1.0.0

$6.00

   (0 reviews)
Sign in to follow this  

10 Screenshots

About This File

What is Friends and Enemies

Friends and Enemies allows players to create friends and Enemies list. 

Features

  • Able to view your friends and Enemies list via links on your profile
  • Add friend from another players profile page.
  • Add enemies from another players profile page
  • Remove friend from another players profile page
  • Remove enemy from another players profile page
  • Receive notification when someone adds you as a friend 
  • Receive notification when someone adds you as a enemy 
  • Players can add the player as a friend or enemy from quick links in the notification they receive 

Versions

This mod will work with the latest and previos versions of GL.

How to Install:

Both Mods use the same table. Only need to run schema SQL once for both mods to work 

There is multiple ways to install this mod. Download the friends and enemy ZIP. This package includes both the friend mod and the enemy mod.

How to Install

  • Extract friends and enemies zip
  • Upload both folders to modules/installed directory
  • Run the schema.sql file FROM 1 folder. Both mods use the same schema file.

 (OR)

Download each mod individually. friends.zip and enemy.zip. Complete the steps below for each zip. 

  • Open up your game
  • Go to the admin Panel
  • Go to Modules & Themes
  • Open the Module Manager
  • Click on Install Module
  • Upload the ZIP file
  • Follow the instructions

Since I released both mods as a package. There may be a someone who don't want both mods. If this is the case. There is a few additional steps one must do to remove the link from notifications.

 

 If you are choosing to only use only one of the mods at one time:

 

 If you choose to only use the friends mod

To remove the add to enemy link in notifications

  • Open friends.inc.php
  • On line 105
  • Find
$msg = $msg . '<br>[<a href="?page=enemy&action=add&user=' .  $this->user->info->U_id  . '"> Add as a Enemy</a> ]';
  • Replace with
//$msg = $msg . '<br>[<a href="?page=enemy&action=add&user=' .  $this->user->info->U_id  . '"> Add as a Enemy</a> ]';

 

 If you choose to only use the enemies mod.

To remove the add to friend link in notifications

  • Open enemy.inc.php
  • On line 105
  • Find
$msg = $msg . '<br>[<a href="?page=friends&action=add&user=' .  $this->user->info->U_id  . '"> Add as a friend</a> ]';
  • Replace with
//$msg = $msg . '<br>[<a href="?page=friends&action=add&user=' .  $this->user->info->U_id  . '"> Add as a friend</a> ]';


Other Files from Sim



User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
×
×
  • Create New...