Hermes Gray

All 3.0.x styles released in our Styles Database can be found here. All discussion or support regarding an individual style should take place in that style's own area in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of releases and/or updates for styles. Any style support should be obtained through the Customisations Database in the support area designated for each style.

A direct link to support for each Style is in the first post of the respective topic.
Locked
Styles Robot
Styles Queue Bot
Styles Queue Bot
Posts: 5380
Joined: Sat Nov 29, 2003 12:21 pm

Hermes Gray

Post by Styles Robot »

Style name: Hermes Gray
Author: stsoftware
Style description: A solid dark theme.
Style version: 2.0.5
Tested on phpBB version: 3.0.8

Download file: hermes_gray_2.0.5.zip
File size: 194709 Bytes

Style overview page: View

The phpBB Team is not responsible nor required to provide support for this Style. By installing this Style, you acknowledge that the phpBB Support Team or phpBB Styles Team may not be able to provide support.

-->Style support<--
Last edited by Styles Robot on Tue Nov 01, 2011 10:37 pm, edited 10 times in total.
(this is a non-active account manager for the phpBB Styles Team)
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Hermes Gray

Post by prototech »

Style validated/released

Notes:
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
stsoftware
Registered User
Posts: 17
Joined: Fri Oct 09, 2009 7:59 pm
Contact:

Hermes Gray

Post by stsoftware »

This post has been reserved for the Style author.
User avatar
Lowered
Registered User
Posts: 166
Joined: Sun May 10, 2009 10:55 pm

Re: Hermes Gray

Post by Lowered »

One satisfied user here.
:mrgreen:

As i do not like ColorizeIt to tweak themes up ill post questions here if you dont mind. :ugeek:

Topic listing colors, where to change them?
Image
:mrgreen:
.v0id
Registered User
Posts: 19
Joined: Mon Apr 26, 2010 8:55 am

Re: Hermes Gray

Post by .v0id »

how i can change code bbc, and set "Select All" next to "Code:"? like on this forum..
User avatar
Mad-Mod
Registered User
Posts: 65
Joined: Thu Apr 02, 2009 3:11 pm

Re: Hermes Gray

Post by Mad-Mod »

Hey peeps, duno if this is the right forum for this, but I need help with my hermes theme... need to add a few changes to it but not too sure how to :(

Recently added a facebook mod and it works perfectly with the prosilver theme but not on the hermes theme (which is my default theme..)

One of the errors I get is this

Code: Select all

General Error
template->_tpl_load_file(): File ./styles/hermes_gray/template/ucp_fbconnect_fbsettings.html does not exist or is empty
Also different icons/buttons dont show up, eg the facebook connect one

Please help
User avatar
Mad-Mod
Registered User
Posts: 65
Joined: Thu Apr 02, 2009 3:11 pm

Re: Hermes Gray

Post by Mad-Mod »

These are the edits on the prosilver theme done by the install, I need to do them for the hermes theme, but some of the codes dont match...

Code: Select all

File edits
memberlist.php
Find

		$member = $db->sql_fetchrow($result);
		$db->sql_freeresult($result);

Add After

        // Facebook Connect
        @inject_fb_data($member);

Success
Find

				$id_cache[$row['user_id']] = $row;

Add Before

                // Facebook Connect
                @inject_fb_data($row);

Success
ucp.php
Find

    case 'logout':

Add After

        // Facebook Connect
        if($config['fbconnect_dologout'] == "0")
        {
            $_GET['nofb'] = true;
        }
        
        if(!isset($_GET['nofb']))
        {
            require_once($phpbb_root_path . 'includes/facebook-platform/php/facebook.'.$phpEx);
            $facebook = new Facebook($config['fbconnect_apikey'], $config['fbconnect_appsecret']);
            try {
                $fbid = (int) $facebook->get_loggedin_user();
            }
            catch(FacebookRestClientException $e)
            {
                // Error occured. Let's ignore.
                $fbid = 0;
            }
            //$facebook->kill_cookies(); // Remove any cookies set by Facebook Connect
            
            if($fbid > 0)
            {
                try {
                    $url = "http://www.facebook.com/logout.php?app_key=" . $config['fbconnect_apikey'] . "&session_key=" . $facebook->api_client->session_key . "&next=" . urlencode("http://".$config['server_name'] . $config['script_path'] . "/ucp.php?mode=logout&nofb=1&sid=".$_GET['sid']);
                }catch(FacebookRestClientException $e)
                {
                    $url = "http://".$config['server_name'] . $config['script_path'] . "/ucp.php?mode=logout&nofb=1&sid=".$_GET['sid'];
                }
                header("Location: $url");
                die();
            }
        }

Success
viewtopic.php
Find

	// Set max_post_time
	if ($row['post_time'] > $max_post_time)
	{
		$max_post_time = $row['post_time'];
	}

Add After

    // Facebook Connect
    @inject_fb_data($row);

Success
includes/constants.php
Find

// Additional tables

Add After

define('FBIDS_TABLE',                $table_prefix . 'fbids');  // Facebook Connect by DeViAnThans3

Success
includes/functions.php
Find

if (!defined('IN_PHPBB'))
{
    exit;
}

Add After

require_once('functions_fbconnect.php'); // Facebook Connect

Success
Find

		'SITENAME'						=> $config['sitename'],

Add After

		// Facebook Connect
		'FBCONNECT_APIKEY'				=> $config['fbconnect_apikey'],
		'ENABLE_FBCONNECT'				=> (trim($config['fbconnect_apikey']) != "") ? true : false,
        'FBLANG'                        => get_fb_lang(),

Success
includes/functions_user.php
Find

// Remove reports
	$db->sql_query('DELETE FROM ' . REPORTS_TABLE . ' WHERE user_id = ' . $user_id);

Add After

// Remove facebook links
	$db->sql_query('DELETE FROM ' . FBIDS_TABLE . ' WHERE user_id = ' . $user_id);

Success
includes/ucp/ucp_pm_viewmessage.php
Find

	// Some standard values
	$user_row['online'] = false;

Add Before

    // Facebook Connect
    @inject_fb_data($user_row);

Success
includes/ucp/ucp_prefs.php
Find

'user_style'			=> $data['style'],
						);

Add After

						// Facebook Connect
						// This ensures that an user can not choose to show is e-mail, as this is in violation with Facebook Connect terms!
						if(strstr($user->data['user_email'], "@proxymail.facebook.com"))
						{
							unset($sql_ary['user_allow_viewemail']);
						}

Success
includes/ucp/ucp_profile.php
Find

			case 'reg_details':

Add After

                // Facebook Connect
                $sql = 'SELECT COUNT(*) AS total FROM ' . FBIDS_TABLE . ' WHERE user_id = \'' . $user->data['user_id'] . '\' AND edit = \'0\'';
                $result = $db->sql_query($sql);
                $c = (int) $db->sql_fetchfield('total');
                $new_fbuser = ($c>0) ? true : false;

Success
Find

						'email'				=> array(
							array('string', false, 6, 60),
							array('email')),
						'email_confirm'		=> array('string', true, 6, 60),

Replace With

						'email'				=> array(
							array('string', false, 6, 90),
							array('email')),
						'email_confirm'		=> array('string', true, 6, 90),

Success
Find

					if (($data['new_password'] || ($auth->acl_get('u_chgemail') && $data['email'] != $user->data['user_email']) || ($data['username'] != $user->data['username'] && $auth->acl_get('u_chgname') && $config['allow_namechange'])) && !phpbb_check_hash($data['cur_password'], $user->data['user_password']))

Replace With

					if (!$new_fbuser && ($data['new_password'] || ($auth->acl_get('u_chgemail') && $data['email'] != $user->data['user_email']) || ($data['username'] != $user->data['username'] && $auth->acl_get('u_chgname') && $config['allow_namechange'])) && !phpbb_check_hash($data['cur_password'], $user->data['user_password']))

Success
Find

							$sql = 'UPDATE ' . USERS_TABLE . '
								SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
								WHERE user_id = ' . $user->data['user_id'];
							$db->sql_query($sql);

Add After

                            // Facebook Connect 
                            if(trim($data['new_password']) != "")
                            {
                                $new_ary = array('edit' => 1);
                                
                                $sql = 'UPDATE ' . FBIDS_TABLE . '
                                    SET ' . $db->sql_build_array('UPDATE', $new_ary) . '
                                    WHERE user_id = ' . $user->data['user_id'];
                                $db->sql_query($sql);
                            }

Success
Find

					'CUR_PASSWORD'		=> '',

Add After

					'IS_NEW_FBUSER'		=> $new_fbuser, 	// Facebook Connect

Success
styles/prosilver/template/index_body.html
Find

<input type="submit" name="login" value="{L_LOGIN}" class="button2" />

Add After

		<!-- IF ENABLE_FBCONNECT -->
		<a onclick="javascript:fbSession(); return false;" href="#"><img src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_short.gif" style="vertical-align: middle;" alt="Login with your Facebook account!" /></a>
        
        <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/{FBLANG}" type="text/javascript"></script>
        <script type="text/javascript">  
            FB.init("{FBCONNECT_APIKEY}", "xd_receiver.htm"); 
        </script>
		<!-- ENDIF -->

Success
styles/prosilver/template/login_body.html
Find

		<dl>
			<dt>&nbsp;</dt>
			<dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd>
		</dl>

Add After

<!-- IF S_DISPLAY_FULL_LOGIN -->
	<!-- IF ENABLE_FBCONNECT -->
        <dl>
            <dt>&nbsp;</dt>
            <dd><a onclick="javascript:fbSession(); return false;" href="#"><img src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" alt="Login with your Facebook account!" /></a></dd>
        </dl>
        
        <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/{FBLANG}" type="text/javascript"></script>
        <script type="text/javascript">  
            FB.init("{FBCONNECT_APIKEY}", "xd_receiver.htm"); 
        </script>
	<!-- ENDIF -->
	<!-- ENDIF -->

Success
styles/prosilver/template/overall_header.html
Find

<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">

Replace With

<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}" xmlns:fb="http://www.facebook.com/2008/fbml">

Success
Find

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

Add After

    /**
    * Get FaceBook session
    */
    function fbSession()
    {
	 var url = "";
	
	try{
	 if(document.getElementById('login').redirect.value != "")
	 {
	 	url = 'fbconnect.php?redir='+escape(document.getElementById('login').redirect.value);
	 }else{
	 	url = 'fbconnect.php';
	 }
	}catch(err){
	 url = 'fbconnect.php';
	}

    // Auto-login
    var x = document.getElementsByName('autologin').length;
    if(x>0)
    {
        if(document.getElementsByName('autologin')[0].checked == true)
        {
            url += "&autologin=1";
        }
    }
    
    // Hide session
    var x = document.getElementsByName('viewonline').length;
    if(x>0)
    {
        if(document.getElementsByName('viewonline')[0].checked == true)
        {
            url += "&viewonline=1";
        }
    }
	
     FB.ensureInit(function()
     {
        FB.Connect.ifUserConnected(url, function ()
        {
            FB.Connect.requireSession(function ()
            {
				document.location = url;
            });
        });
     });
    }

Success
styles/prosilver/template/ucp_profile_reg_details.html
Find

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<fieldset>
	<dl>
		<dt><label for="cur_password">{L_CURRENT_PASSWORD}:</label><br /><span>{L_CURRENT_PASSWORD_EXPLAIN}</span></dt>
		<dd><input type="password" name="cur_password" id="cur_password" maxlength="255" value="{CUR_PASSWORD}" class="inputbox" title="{L_CURRENT_PASSWORD}" /></dd>
	</dl>
	</fieldset>

	<span class="corners-bottom"><span></span></span></div>
</div>

Replace With

<!-- IF not IS_NEW_FBUSER -->
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<fieldset>
	<dl>
		<dt><label for="cur_password">{L_CURRENT_PASSWORD}:</label><br /><span>{L_CURRENT_PASSWORD_EXPLAIN}</span></dt>
		<dd><input type="password" name="cur_password" id="cur_password" maxlength="255" value="{CUR_PASSWORD}" class="inputbox" title="{L_CURRENT_PASSWORD}" /></dd>
	</dl>
	</fieldset>

	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

Success
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Hermes Gray

Post by prototech »

Style Updated to version 2.0.4
See first post for Download Link
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Hermes Gray

Post by Raimon »

Style Updated to version 2.0.5
See first post for Download Link
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Locked

Return to “[3.0.x] Styles Database Releases”