News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Can my "Site Lock" hosting app be applied to my installed forum?

Started by ForumLite1, January 31, 2019, 05:49:54 PM

Previous topic - Next topic

ForumLite1

My SMF version is 2.0.8
My forum is located at: https://forum.perilous-journey.com [nofollow]
My Hosting package includes the app named "Site Lock" - it checks to see if there is Malware; Confirms Website Owner data; etc.
There is code for this app; and the code needs to be placed on my website/forum in order to for the Site Lock symbol (and its function) to appear.

My question:
Is it possible to add this app to my SM forum?
If yes, where and how do I install the code which I have been given, in order for the Site Lock App to function?

LiroyvH

Quote
My SMF version is 2.0.8

According to the copyright line it's 2.0.7 and that is in a dire need of updates... You should install the (security) patches immediately.

Quote
There is code for this app; and the code needs to be placed on my website/forum in order to for the Site Lock symbol (and its function) to appear.

What kind of code is it? Some little HTML to show a badge and perhaps a site ID for tracking purposes or is it for example PHP code that performs certain functions?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Kindred

either way, the answer is yes....  did it for fx-sabers by adding it into the footer in index.template.php

the difference between an image/link and php code is where/how you add it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ForumLite1

Quote from: CoreISP on January 31, 2019, 05:54:32 PM
Quote
My SMF version is 2.0.8

According to the copyright line it's 2.0.7 and that is in a dire need of updates... You should install the (security) patches immediately.

Quote
There is code for this app; and the code needs to be placed on my website/forum in order to for the Site Lock symbol (and its function) to appear.

What kind of code is it? Some little HTML to show a badge and perhaps a site ID for tracking purposes or is it for example PHP code that performs certain functions?

The code:
It is the former you mentioned, e.g., HTML to show a badge and site ID for tracking purposes.

As for the Version of my SMF, I did the install through an automatic install from my Hosting Provider/cPanel
After I installed it, and began looking at the various Admin links, there was a message saying that 2.0.7 needed to have a patch: 2.0.8
So I clicked on the link and it said it was accepted.

UPDATE: I just looked at my forum admin's section, and I noticed I forgot to click on "Install"
So it now shows Version 2.0.8 on my forum.

2nd UPDATE to the above:
I clicked on the link (in main admin section of my forum) and it stated that my Version was out of date. So I clicked on the link provided, and Version 2.0.9 appears now.
But it also says (in the admin section) that this is also out of date - showing the latest Version is 2.0.15.
But in trying to update to that Version (2.0.15) a warning came up saying I should not proceed.

So what is the proper way to update my forum to the latest version???

ForumLite1

Quote from: Kindred on January 31, 2019, 06:00:40 PM
either way, the answer is yes....  did it for fx-sabers by adding it into the footer in index.template.php

the difference between an image/link and php code is where/how you add it.

So in my case, it is an image link.
Thus I add the code given to me where?

Kindred

You would add the code into an echo statement in the footer section

Also, regarding upgrade..  you did the patch from 7 to 8 to 9 to 10 to 11 to 12 to 13 to 14 to 15?

If you are having an error going from 14 to 15, what is the specific error?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ForumLite1

Quote from: Kindred on January 31, 2019, 09:19:57 PM
You would add the code into an echo statement in the footer section

Also, regarding upgrade..  you did the patch from 7 to 8 to 9 to 10 to 11 to 12 to 13 to 14 to 15?

If you are having an error going from 14 to 15, what is the specific error?

In my attempt to upgrade from 2.0.9 TO 2.0.10, this is the error message I got:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Kindred

ok.

So, it sounds like one of your mods has already made changes to some of the code which is targetted.

WHat is the actual error?

what you are going to have to do:
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

drewactual

I have it on mine.. Kindred nailed it. I echo that include across my site... Link in sig at very bottom. 

ForumLite1

Quote from: Kindred on February 01, 2019, 08:45:38 AM
ok.

So, it sounds like one of your mods has already made changes to some of the code which is targetted.

WHat is the actual error?

what you are going to have to do:
https://wiki.simplemachines.org/smf/Error_in_mod_installation

"WHat is the actual error?"

Here is more error message info that I did not previously include in my posts above:


Type   Action   Description
*   1.   Execute Modification   ./index.php   Test successful
*   2.   Execute Modification   ./Themes/default/languages/index.english.php   Test failed
   1.   Replace   ./Themes/default/languages/index.english.php   Test failed
   2.   Replace   ./Themes/default/languages/index.english.php   Test successful
*   3.   Execute Modification   ./Themes/default/scripts/script.js   Test successful
*   4.   Execute Modification   ./Themes/default/Search.template.php   Test successful
*   5.   Execute Modification   ./Sources/ManageServer.php   Test successful
*   6.   Execute Modification   ./Sources/Subs-Post.php   Test successful
*   7.   Execute Modification   ./Sources/ManageAttachments.php   Test successful
*   8.   Execute Modification   ./Sources/Subs-Package.php   Test successful
*   9.   Execute Modification   ./Sources/Post.php   Test successful
*   10.   Execute Modification   ./Themes/default/scripts/fader.js   Test successful
*   11.   Execute Modification   ./Themes/default/Post.template.php   Test successful
*   12.   Execute Modification   ./Sources/Subscriptions-PayPal.php   Test successful
*   13.   Execute Modification   ./Themes/default/languages/ManagePaid.english.php   Test successful
14.   Execute Modification   ./Themes/default/languages/ManagePaid.english-utf8.php   Skipping file
*   15.   Execute Modification   ./Sources/Packages.php   Test successful
*   16.   Execute Modification   ./SSI.php   Test successful
*   17.   Execute Modification   ./Sources/Load.php   Test successful
*   18.   Execute Modification   ./Sources/ManageNews.php   Test successful
*   19.   Execute Modification   ./Sources/DbPackages-postgresql.php   Test successful

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ForumLite1

Quote from: Kindred on February 01, 2019, 09:51:28 PM
So... apply the nod and then make the change manually

OK, I now have my forum updated to Version 2.0.15
Thanks for your help!

However, solving the issue relating to why I started this Subject, still eludes me.

You said: You would add the code into an echo statement in the footer section
But where do I go in my forum admin section to do this?
Or am I supposed to add the Site Lock Code to the 'footer section' of my forum via file manager in my cPanel?

drewactual

make a file in your forums directory called "sitelock.php". 

In that file paste the following:

<div class="sitelock">
<a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site=YOURSITE.com','SiteLock','width=120', 'height=60');" ><img class="img-responsive" alt="SiteLock" title="SiteLock" src="//shield.sitelock.com/shield/YOURSITE.com" /></a>
</div>


^obviously, change YOURSITE to the domain of your site as registered with sitelock. ^

Now, go to your theme and open index.template.php.... find the footersection.. it's near bottom.

Find:

</div></div>
</div>
</body></html>


replace with:

'; include(sitelock.php);
echo'
</div></div>
</div>
</body></html>


NOTICE: I've given you a new .div named 'sitelock' to manage presentation in your CSS file... in my particular use, the rules for that section are:

.sitelock{
           position:relative;
           display:block;
           height:auto;
           width:99%;
           margin:10px auto 10px;
}
.sitelock img{
           max-height:50px;
           max-width:115px;
}


so copy and paste that in your style.css file, at the bottom.  You can use it to address how you present your sitelock image and location.   for instance, i wanted the smaller version of the image which is 50px high and 115px wide- i forced that by only allowing the image to be that big in the CSS, but ALSO allowing the sitelock folks to use the even smaller one when on mobile.  the css 'allows' the smaller, but NOT the larger... tracking?

you DO NOT have to do that if you don't want, BUT i recommend you DO control it in a .div or .span, to make sure it's centered. 

ForumLite1

OK drewactual, I was able to create the file "sitelock.php" in my forum's directory.

Then in my admin panel of the forum, I clicked on Themes and Layout Settings, then clicked on Modify Themes.

That brings up three lines of options to click on: I clicked on the first listed (Browse the templates and files in this theme) - then clicked on that. That brought up the page, File Name. Scrolling down the list, I found "index.template.php"
I clicked on that, and that  brings up 9 different boxed text areas.

I scrolled through each, looking for the footer section, but the only thing I could spot relating to the word "footer" was in "Line 326":
<div id="footer_section"><div class="frame">

I did not see what you told me to locate, e.g.,
Find:
Code:
</div></div>
</div>
</body></html>

Either I missed it, or I am in the wrong area?





drewactual

nope- not in wrong area- but... i'd be careful using the embedded editor to edit the files.

can you open the index.template from your cpanel?

upload it here, and I'll doctor it for you... you'll have to either give me your site name registered with sitelock or simply edit that area after i return the file to you.  just attach it to your post.

ForumLite1

From cPanel: forum.perilous-journey.com.perilous-journey.com [nofollow]
File below copied from: Index.php in cPanel
Site Lock Seal is set up / registered to: https://perilous-journey.com [nofollow]

Additional info: Main Domain is perilous-journey.com [nofollow] but I have my SMF installed on forum.perilous-journey.com [nofollow]
and there is a re-direct set up FROM perilous-journey TO forum.perilous-journey.com [nofollow] because eventually I intend to have another forum on the main domain.

Also, you asked me to open up "index.template" - but there is only "index.php" in my cPanel for forum.perilous-journey.com.perilous-fourney.com [nofollow]

Is the file below what you want?

<?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.15
 */

/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 2.0.15';
@
ini_set('memory_limit''128M');

// Get everything started up...
define('SMF'1);
if (
function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime(0);
error_reporting(defined('E_STRICT') ? E_ALL E_STRICT E_ALL);
$time_start microtime();

// This makes it so headers can be sent!
ob_start();

// Do some cleaning, just in case.
foreach (array('db_character_set''cachedir') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable], $GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// Make absolutely sure the cache directory is defined.
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir '/cache'))
$cachedir $boarddir '/cache';

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');

// Using an pre-PHP 5.1 version?
if (@version_compare(PHP_VERSION'5.1') == -1)
require_once($sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Create a variable to store some SMF specific functions in.
$smcFunc = array();

// Initate the database connection and define some database functions to use.
loadDatabase();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator.
if (empty($modSettings['rand_seed']) || mt_rand(1250) == 69)
smf_seed_generator();

// Before we get carried away, are we doing a scheduled task? If so save CPU cycles by jumping out!
if (isset($_GET['scheduled']))
{
require_once($sourcedir '/ScheduledTasks.php');
AutoTask();
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent())
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
{
ob_end_clean();
ob_start('ob_gzhandler');
}
}

// Emit some headers for some modicum of protection against nasties.
if (!headers_sent())
{
// Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
header('X-Frame-Options: SAMEORIGIN');
header('X-XSS-Protection: 1');
header('X-Content-Type-Options: nosniff');
}

// Register an error handler.
set_error_handler('error_handler');

// Quickly catch random exceptions.
set_exception_handler(function ($e) use ($db_show_debug)
{
if (isset($db_show_debug) && $db_show_debug === true && allowedTo('admin_forum'))
fatal_error(nl2br($e), false);
else
fatal_error($e->getMessage(), false);
});

// Start the session. (assuming it hasn't already been.)
loadSession();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))
unset($_SESSION['nowap']);
elseif (isset(
$_REQUEST['nowap']))
$_SESSION['nowap'] = true;
elseif (!isset(
$_SESSION['nowap']))
{
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
}

if (!
defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST))
{
$_POST $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$board_info$maintenance$sourcedir;

// Special case: session keep-alive, output a transparent pixel.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
{
header('Content-Type: image/gif');
die("\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B");
}

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current user's permissions.
loadPermissions();

// Attachments don't require the entire theme to be loaded.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
detectBrowser();
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// If we are in a topic and don't have permission to approve it then duck out now.
if (!empty($topic) && empty($board_info['cur_topic_approved']) && !allowedTo('approve_posts') && ($user_info['id'] != $board_info['cur_topic_starter'] || $user_info['is_guest']))
fatal_lang_error('not_a_topic'false);

// Do some logging, unless this is an attachment, avatar, toggle of editor buttons, theme option, XML feed etc.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''findmember''jseditor''jsoption''requestmembers''smstats''.xml''xmlhttp''verificationcode''viewquery''viewsmfile')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir '/LogInOut.php');
return $_REQUEST['action'] == 'login2' 'Login2' 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa''login''login2''register''register2''reminder''activate''help''smstats''mailq''verificationcode''openidreturn'))))
{
require_once($sourcedir '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php''Activate'),
'admin' => array('Admin.php''AdminMain'),
'announce' => array('Post.php''AnnounceTopic'),
'attachapprove' => array('ManageAttachments.php''ApproveAttach'),
'buddy' => array('Subs-Members.php''BuddyListToggle'),
'calendar' => array('Calendar.php''CalendarMain'),
'clock' => array('Calendar.php''clock'),
'collapse' => array('BoardIndex.php''CollapseCategory'),
'coppa' => array('Register.php''CoppaForm'),
'credits' => array('Who.php''Credits'),
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
'display' => array('Display.php''Display'),
'dlattach' => array('Display.php''Download'),
'editpoll' => array('Poll.php''EditPoll'),
'editpoll2' => array('Poll.php''EditPoll2'),
'emailuser' => array('SendTopic.php''EmailUser'),
'findmember' => array('Subs-Auth.php''JSMembers'),
'groups' => array('Groups.php''Groups'),
'help' => array('Help.php''ShowHelp'),
'helpadmin' => array('Help.php''ShowAdminHelp'),
'im' => array('PersonalMessage.php''MessageMain'),
'jseditor' => array('Subs-Editor.php''EditorMain'),
'jsmodify' => array('Post.php''JavaScriptModify'),
'jsoption' => array('Themes.php''SetJavaScript'),
'lock' => array('LockTopic.php''LockTopic'),
'lockvoting' => array('Poll.php''LockVoting'),
'login' => array('LogInOut.php''Login'),
'login2' => array('LogInOut.php''Login2'),
'logout' => array('LogInOut.php''Logout'),
'markasread' => array('Subs-Boards.php''MarkRead'),
'mergetopics' => array('SplitTopics.php''MergeTopics'),
'mlist' => array('Memberlist.php''Memberlist'),
'moderate' => array('ModerationCenter.php''ModerationMain'),
'modifycat' => array('ManageBoards.php''ModifyCat'),
'modifykarma' => array('Karma.php''ModifyKarma'),
'movetopic' => array('MoveTopic.php''MoveTopic'),
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
'notify' => array('Notify.php''Notify'),
'notifyboard' => array('Notify.php''BoardNotify'),
'openidreturn' => array('Subs-OpenID.php''smf_openID_return'),
'pm' => array('PersonalMessage.php''MessageMain'),
'post' => array('Post.php''Post'),
'post2' => array('Post.php''Post2'),
'printpage' => array('Printpage.php''PrintTopic'),
'profile' => array('Profile.php''ModifyProfile'),
'quotefast' => array('Post.php''QuoteFast'),
'quickmod' => array('MessageIndex.php''QuickModeration'),
'quickmod2' => array('Display.php''QuickInTopicModeration'),
'recent' => array('Recent.php''RecentPosts'),
'register' => array('Register.php''Register'),
'register2' => array('Register.php''Register2'),
'reminder' => array('Reminder.php''RemindMe'),
'removepoll' => array('Poll.php''RemovePoll'),
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
'reporttm' => array('SendTopic.php''ReportToModerator'),
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
'restoretopic' => array('RemoveTopic.php''RestoreTopic'),
'search' => array('Search.php''PlushSearch1'),
'search2' => array('Search.php''PlushSearch2'),
'sendtopic' => array('SendTopic.php''EmailUser'),
'smstats' => array('Stats.php''SMStats'),
'suggest' => array('Subs-Editor.php''AutoSuggestHandler'),
'spellcheck' => array('Subs-Post.php''SpellCheck'),
'splittopics' => array('SplitTopics.php''SplitTopics'),
'stats' => array('Stats.php''DisplayStats'),
'sticky' => array('LockTopic.php''Sticky'),
'theme' => array('Themes.php''ThemesMain'),
'trackip' => array('Profile-View.php''trackIP'),
'about:mozilla' => array('Karma.php''BookOfUnknown'),
'about:unknown' => array('Karma.php''BookOfUnknown'),
'unread' => array('Recent.php''UnreadTopics'),
'unreadreplies' => array('Recent.php''UnreadTopics'),
'verificationcode' => array('Register.php''VerificationCode'),
'viewprofile' => array('Profile.php''ModifyProfile'),
'vote' => array('Poll.php''Vote'),
'viewquery' => array('ViewQuery.php''ViewQuery'),
'viewsmfile' => array('Admin.php''DisplayAdminFile'),
'who' => array('Who.php''Who'),
'.xml' => array('News.php''ShowXmlFeed'),
'xmlhttp' => array('Xml.php''XMLhttpMain'),
);

// Allow modifying $actionArray easily.
call_integration_hook('integrate_actions', array(&$actionArray));

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>


[edit] code tags for code -Illori

drewactual

i should have been more clear, and because i wasn't it's cost us time.  apologies. 

please copy the contents of index.template.php and paste it here (using the 'code' tags, please).. it's found in your Theme directory and inside the directory of the theme you're using...

i.e. (forums directory)>Themes>default> index.template.php

Illori

actually it is best to attach the file, this way if the contents it too large to fit in a post the whole thing will still be accessible. i really doubt that the index.template.php file of 2 themes will fit in one post.

ForumLite1

Quote from: drewactual on February 03, 2019, 10:34:04 AM
i should have been more clear, and because i wasn't it's cost us time.  apologies. 

please copy the contents of index.template.php and paste it here (using the 'code' tags, please).. it's found in your Theme directory and inside the directory of the theme you're using...

i.e. (forums directory)>Themes>default> index.template.php

I copied everything I found in/under "index.template.php" of the Default Theme
I have included it here by attachment rather than posting the files.
IF THIS IS STILL NOT WHAT YOU NEED, I would suggest I give you the password for you to get into my SMF forum and do wjhat needs to be done, directly.

ForumLite1

TO drewactual:

In order to possibly head off some additional difficulties with the POSITIONING  of the Site Lock Seal, I should emphasize that Site Lock has my forum site registered as: https://perilous-journey.com [nofollow]
and NOT: https://forum.perilous-journey.com [nofollow]

In retrospect, I think it would have made more sense if I had installed my SMF forum on the main domain (https://perilous-journey.com [nofollow])  rather than where it is presently (https://forum.perilous-journey.com [nofollow])
This would have also made it unnecessary for a "re-direct" - FROM the main domain TO a dub-domain (i.e. forum.perilous-journey.com [nofollow])

And then when I was ready to have installed my 2nd forum (a forum which uses a different forum software format from SMF) it could have been installed on a domain that is currently occupied by my SMF forum.

After this "site lock seal" issue is solved, perhaps you (or even someone else reading this) can suggest the best and easiest way for me to CHANGE my SMF forum to my main domain.

drewactual

I'm not about to work on a .docx file and expect it not to inject all kinds of strange MS stuff... so...

open your index.template.php for the theme you're using. 

FIND (use search) :

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>

  </ul>


REPLACE IT WITH:

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>

  </ul>';

include('././sitelock.php');




in the file you created named sitelock.php in the same directory as your forum(where Sources, Themes, ect.. is located) ensure it's contents are (and if not, make them) :

<div class="sitelock">
<a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site= https://perilous-journey.com','SiteLock','width=120', 'height=60');" ><img class="img-responsive" alt="SiteLock" title="SiteLock" src="//shield.sitelock.com/shield/perilous-journey.com" /></a>
</div>


now open your style.css for the theme you're using and add at the bottom:

.sitelock{
           position:relative;
           display:block;
           height:auto;
           width:99%;
           margin:10px auto 10px;
}
.sitelock img{
           max-height:50px;
           max-width:115px;
}


re: subdomains... I don't think sitelock cares about subdomains... it's the domain it covers in it's entirety.

Illori

if the op is using SMF 2.0, they will not have a style.css, they will have index.css instead.

ForumLite1

Thanks for trying to help me with the Site Lock Seal for my website.
However, I can see this issue is going way beyond - in time and in effort - what is logical or worth-while for either of us.





Advertisement: