SimplePortal

Customization => Custom Coding => Topic started by: ccbtimewiz on October 05, 2011, 03:51:32 PM

Title: [SMF 2.0] Hide SimplePortal version
Post by: ccbtimewiz on October 05, 2011, 03:51:32 PM
The following edit will remove the SimplePortal version in your copyright. It does not effect any compat functions or alter the admin center.

SMF version: 2.0 series
SP version: 2.3 series

Open ./Sources/Subs-Portal.php

Find:
Code: [Select]
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version;

$sportal_version = '2.3.3';

Replace with:
Code: [Select]
function sportal_init($standalone = false)
{
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version, $sportal_real_version;

$sportal_version = '';
$sportal_real_version = '2.3.3';


Open ./Sources/PortalAdminMain.php

Find:
Code: [Select]
function sportal_information($in_admin = true)
{
global $context, $scripturl, $txt, $sourcedir, $sportal_version, $user_profile;

Replace with:
Code: [Select]
function sportal_information($in_admin = true)
{
global $context, $scripturl, $txt, $sourcedir, $sportal_real_version, $user_profile;

Find:
Code: [Select]
$context['sp_version'] = $sportal_version;
Replace with:
Code: [Select]
$context['sp_version'] = $sportal_real_version;
$sportal_version should contain the string of what you want to be displayed (blank if you want to remove it, obviously).

$portal_real_version contains your actual software version, for the admin center to use.
SimplePortal 2.3.8 © 2008-2024, SimplePortal