VectorLinux
April 24, 2014, 12:22:16 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2] 3 4
  Print  
Author Topic: At long last a facelift!  (Read 47044 times)
Masta
Global Moderator
Vectorian
*****
Posts: 725



« Reply #15 on: January 10, 2008, 12:50:59 am »

This is a big improvement. I'd like to see the screenshot of VL 5.9 Standard Deluxe in place of the sort-of logo on the right. I'd also like to see larger type in the text with more space between the lines.
--GrannyGeek

I'm sure this might come in helpful to you, as I (at most times) can't see very well either. No, I'm not old enough and losing my vision, but try looking through a bowl of running water while reading a newspaper or walking down the street.....

anyways, most good browsers have a Zoom/Increase function for fonts and such. This has come in handy for myself in many web places. In FF it's View/Text Size/Increase, -- in Opera , also in View/Zoom/ pick something...
There's also keyboard shortcuts for these, see browser of question for those.

Hope this was helpful info.

I can agree that the screen shot seems a bit more of a professional appeal than the classic logo.
Logged
newt
Vectorian
****
Posts: 1132



« Reply #16 on: January 10, 2008, 10:36:10 am »

in Opera , also in View/Zoom/ pick something...
You can also press Ctrl in conjunction with the mouse wheel, or press the "glasses" icon (right of address bar) to access alternate View menu.
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #17 on: January 10, 2008, 01:06:04 pm »

The fonts are better legible now, but I think all but all the headers and tables are too big, the size for <p> fonts are correct now.
Also, I noticed the css code for "Uppercase" the headers affected also the Titles in the main column (i.e. "New Release!! VL64-5.9-beta1" ). I like that text "Capitalized" though  Roll Eyes
If you agree, this css code fix it:

Code:
font span.type7 { text-transform: capitalize; }

Do you think a section for announcing new packages as the Arch one is a good idea? If yes, we should remove something, I vote for the "Links" section.

It is looking really good, congratulations for another good job Smiley
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
M0E-lnx
Administrator
Vectorian
*****
Posts: 3134



« Reply #18 on: January 10, 2008, 02:32:10 pm »

The little screenshot image is not a link...
It should be and it should lead to more screenies.
Logged

newt
Vectorian
****
Posts: 1132



« Reply #19 on: January 10, 2008, 02:56:06 pm »

What ever happened with _someones_ idea (rbistolfi, maybe) of creating a php script for easy package searches via the website (web-interface)?  The test script that was posted was nifty and I think it would be an added feature for the website.  I'll see if I can find it.....

edit:
ahhh, yes...

it was rbistolfi.
Here's the original post: http://www.vectorlinux.com/forum2/index.php?topic=3479.msg29113#msg29113
Here's the test: http://www.caleuautopartes.com.ar/temp/vectorlinux/includes/templates/search.php
« Last Edit: January 10, 2008, 02:58:17 pm by newtor » Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #20 on: January 10, 2008, 03:45:19 pm »

If the search tool is wanted I can update it and set it up to fit the new site style, just let me know. I have to add some features as search in a given vl version.
Also, I made some very minor modifications to the smf's SSI.php file to show the latest topics of a given board. We can set it to show the New Packages board.

Here is the code:

vl_SSI.php
Code:
<?php
/**********************************************************************************
* SSI.php                                                                         *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


// Don't do anything if SMF is already loaded.
if (defined('SMF'))
return true;

define('SMF''SSI');

// We're going to want a few globals... these are all set later.
global $time_start$maintenance$msubject$mmessage$mbname$language;
global 
$boardurl$boarddir$sourcedir$webmaster_email$cookiename;
global 
$db_server$db_name$db_user$db_prefix$db_persist$db_error_send$db_last_error;
global 
$db_connection$modSettings$context$sc$user_info$topic$board$txt;

// Remember the current configuration so it can be set back.
$ssi_magic_quotes_runtime get_magic_quotes_runtime();
@
set_magic_quotes_runtime(0);
$time_start microtime();

// Get the forum's settings for database and file paths.
require_once('Settings.php');

$ssi_error_reporting error_reporting(E_ALL);

// Don't do john didley if the forum's been shut down competely.
if ($maintenance == && (!isset($ssi_maintenance_off) || $ssi_maintenance_off !== true))
die($mmessage);

// Fix for using the current directory as a path.
if (substr($sourcedir01) == '.' && substr($sourcedir11) != '.')
$sourcedir dirname(__FILE__) . substr($sourcedir1);

// Load the 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');

if (@
version_compare(PHP_VERSION'4.2.3') != 1)
require_once($sourcedir '/Subs-Compat.php');

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);
if (
$db_connection === false)
return false;

// Add the database onto the prefix to avoid conflicts with other scripts.
if (strpos($db_prefix'.') === false)
$db_prefix is_numeric(substr($db_prefix01)) ? $db_name '.' $db_prefix '`' $db_name '`.' $db_prefix;
else
@mysql_select_db($db_name$db_connection);

// Load installed 'Mods' settings.
reloadSettings();
// Clean the request variables.
cleanRequest();

// Check on any hacking attempts.
if (isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']))
die('Hacking attempt...');
elseif (isset(
$_REQUEST['ssi_theme']) && (int) $_REQUEST['ssi_theme'] == (int) $ssi_theme)
die('Hacking attempt...');
elseif (isset(
$_COOKIE['ssi_theme']) && (int) $_COOKIE['ssi_theme'] == (int) $ssi_theme)
die('Hacking attempt...');
elseif (isset(
$_REQUEST['ssi_layers']))
{
if ((get_magic_quotes_gpc() ? addslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == htmlspecialchars($ssi_layers))
die('Hacking attempt...');
}
if (isset(
$_REQUEST['context']))
die('Hacking attempt...');

// Make sure wireless is always off.
define('WIRELESS'false);

// Gzip output? (because it must be boolean and true, this can't be hacked.)
if (isset($ssi_gzip) && $ssi_gzip === true && @ini_get('zlib.output_compression') != '1' && @ini_get('output_handler') != 'ob_gzhandler' && @version_compare(PHP_VERSION'4.2.0') != -1)
ob_start('ob_gzhandler');
else
$modSettings['enableCompressedOutput'] = '0';

// Primarily, this is to fix the URLs...
ob_start('ob_sessrewrite');

// Start the session... known to scramble SSI includes in cases...
if (!headers_sent())
loadSession();
else
{
if (isset($_COOKIE[session_name()]) || isset($_REQUEST[session_name()]))
{
// Make a stab at it, but ignore the E_WARNINGs generted because we can't send headers.
$temp error_reporting(error_reporting() & !E_WARNING);
loadSession();
error_reporting($temp);
}

if (!isset($_SESSION['rand_code']))
$_SESSION['rand_code'] = '';
$sc = &$_SESSION['rand_code'];
}

// Get rid of $board and $topic... do stuff loadBoard would do.
unset($board);
unset(
$topic);
$user_info['is_mod'] = false;
$context['user']['is_mod'] = false;
$context['linktree'] = array();

// Load the user and their cookie, as well as their settings.
loadUserSettings();
// Load the current or SSI theme. (just ues $ssi_theme = ID_THEME;)
loadTheme(isset($ssi_theme) ? (int) $ssi_theme 0);

// Take care of any banning that needs to be done.
if (isset($_REQUEST['ssi_ban']) || (isset($ssi_ban) && $ssi_ban === true))
is_not_banned();

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

// Load the stuff like the menu bar, etc.
if (isset($ssi_layers))
{
$context['template_layers'] = $ssi_layers;
template_header();
}
else
setupThemeContext();

// Make sure they didn't muss around with the settings... but only if it's not cli.
if (isset($_SERVER['REMOTE_ADDR']) && !isset($_SERVER['is_cli']) && session_id() == '')
trigger_error($txt['ssi_session_broken'], E_USER_NOTICE);

// Without visiting the forum this session variable might not be set on submit.
if (!isset($_SESSION['USER_AGENT']) && (!isset($_GET['ssi_function']) || $_GET['ssi_function'] !== 'pollVote'))
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

// Call a function passed by GET.
if (isset($_GET['ssi_function']) && function_exists('ssi_' $_GET['ssi_function']))
{
call_user_func('ssi_' $_GET['ssi_function']);
exit;
}
if (isset(
$_GET['ssi_function']))
exit;
// You shouldn't just access SSI.php directly by URL!!
elseif (basename($_SERVER['PHP_SELF']) == 'SSI.php')
die(sprintf($txt['ssi_not_direct'], $user_info['is_admin'] ? '\'' addslashes(__FILE__) . '\'' '\'SSI.php\''));

error_reporting($ssi_error_reporting);
@
set_magic_quotes_runtime($ssi_magic_quotes_runtime);

return 
true;

//shows the vl new packages board

function ssi_newPackages($num_recent 8$exclude_boards null$output_method 'echo'$packages_board)
{
global $context$settings$scripturl$txt$db_prefix$ID_MEMBER;
global $user_info$modSettings$func;

if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = empty($exclude_boards) ? array() : $exclude_boards;

$stable_icons = array('xx''thumbup''thumbdown''exclamation''question''lamp''smiley''angry''cheesy''grin''sad''wink''moved''recycled''wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find all the posts in distinct topics.  Newer ones will have higher IDs.
$request db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " 
. ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from'
) . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" 
. (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" 
'') . "
WHERE t.ID_LAST_MSG >= " 
. ($modSettings['maxMsgID'] - 35 min($num_recent5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" 
. (empty($exclude_boards) ? '' "
AND b.ID_BOARD NOT IN (" 
implode(', '$exclude_boards) . ")") . "
AND $user_info[query_see_board]
AND ms.ID_MSG = t.ID_FIRST_MSG
AND t.ID_BOARD = $packages_board
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent"
__FILE____LINE__);
$posts = array();
while ($row mysql_fetch_assoc($request))
{
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '&#38;#10;')));
if ($func['strlen']($row['body']) > 128)
$row['body'] = $func['substr']($row['body'], 0128) . '...';

// Censor the subject.
censorText($row['subject']);
censorText($row['body']);

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' $row['icon'] . '.gif') ? 'images_url' 'default_images_url';

// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl '?board=' $row['ID_BOARD'] . '.0',
'link' => '<a href="' $scripturl '?board=' $row['ID_BOARD'] . '.0">' $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' $scripturl '?action=profile;u=' $row['ID_MEMBER'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' $scripturl '?action=profile;u=' $row['ID_MEMBER'] . '">' $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true$row['posterTime']),
'href' => $scripturl '?topic=' $row['ID_TOPIC'] . '.msg' $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' $scripturl '?topic=' $row['ID_TOPIC'] . '.msg' $row['ID_MSG'] . '#new">' $row['subject'] . '</a>',
'new' => !empty($row['isRead']),
'new_from' => $row['new_from'],
'icon' => '<img src="' $settings[$icon_sources[$row['icon']]] . '/post/' $row['icon'] . '.gif" align="middle" alt="' $row['icon'] . '" border="0" />',
);
}
mysql_free_result($request);

// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;

echo '
<table>'
;
foreach ($posts as $post)
echo '
<tr>
<td valign="top">
<span class="vl_new_pkgs"><a href="'
$post['href'], '">'$post['subject'], '</a></span>
</td>
</tr>'
;
echo '
</table>'
;
}

?>

This file goes in the root of the smf install.
You have to include it in the site theme template adding this code somewhere near of the top:

Code:
<?php include("path/to/smf/root/vl_SSI.php"?>

Then, in the place where you want to show the latest packages news, you have to put:

Code:
<?php 
$limit 
10//this is the numbers of new topics to show
$board_id 5//board_id of the new packages board (it is in the url, you can check the sql database too
ssi_newPackages($limitnull"echo",$board_id);
?>

I tweaked the original code to show just the subject, the original showed poster, etc.
If you want to apply special style to this section, I added a span tag to easy adding of css styles, for example, you can add to the current css:

Code:
span.vl_new_pkgs a { text-transform: capitalize; }
span.vl_new_pkgs a:hover { text-transform: uppercase; }

or whatever, and it will have effect just in the new packages sections.

One note, I dont have access to the vl forum root dir, so there is no way I can test it, so if you are interested in this, you will have to setup a test page before, so we will be not showing a buggy page to our visitors. Let me know if you need modifications or something.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
Dweeberkitty
Packager
Vectorian
****
Posts: 836



WWW
« Reply #21 on: January 10, 2008, 04:23:59 pm »

Wow, that screenshot is one blurred out image.  Shocked
Logged

Registered Linux User #443399
Desktop: Intel Pentium D 3.33Ghz, 320GB hard drive, 2 gigs DDR2 533mhz RAM, NVIDIA Geforce 7800 GS, X2GEN 22" widescreen monitor;
Laptop: Dell Mini 9, Intel Atom 1.6Ghz, 1GB ram
Multimedia Bonus Disc website: http://www.vectorlinuxsolutions.com/
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #22 on: January 10, 2008, 09:35:46 pm »

in Opera , also in View/Zoom/ pick something...
You can also press Ctrl in conjunction with the mouse wheel, or press the "glasses" icon (right of address bar) to access alternate View menu.

And you can press 10 to increase the entire page in 10% increments, press 9 to reduce the entire page in 10% increments, and press 6 to return to 100% zoom.

I do know how to zoom in every browser by menu, keyboard, and mouse. One of my chief irritants on the Web is type that is too small and looks crowded (as in not enough space between lines). I don't know how adjustable line spacing is through HTML. I believe that through Cascading Style Sheets the size of the type can be autoadjusted to be larger when the page is being viewed at a higher resolution. I have adjusted the default type sizes in my browsers, but of course the page coding can override that.

Remember that type that looks good to a young person will most likely look too small to those of us getting up there in years, not to mention people of all ages with less-than-perfect vision.

I'm happy to see the screenshot again, but it's too small. I'd like to see it about one-third larger with a link to a larger image, and I agree with M0E-lnx that there should be links to more screenshots.

With links below the logo and title at the top of the page, the links below MAIN MENU seem superfluous. I really like the Arch updates section, also new packages, and hope we can get something like that on our home page.

It's getting there!
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
Masta
Global Moderator
Vectorian
*****
Posts: 725



« Reply #23 on: January 10, 2008, 10:33:39 pm »

Well, I was just trying to be helpful.  Roll Eyes
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #24 on: January 11, 2008, 04:31:48 am »

Well, I was just trying to be helpful.  Roll Eyes

Ty Masta, that was useful Smiley

I think the better way of organizing the Introduction section is the text on top, and next the screenshot left aligned, and the buttons at the right, one on top of another.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #25 on: January 11, 2008, 09:42:43 am »

I feel the screenshot png's should be optimized.  The file sizes are enormous!  They take a long time to load with my cable connection, I can't imagine what dial up people must go through. I personally like the quality of png's over jpg's, but more often then not you can get a acceptable jpg image with a much smaller file size over a optimized png. So that may be a option as well.

But overall, the main page is looking better every time I look at it.  Nice job  Smiley
Logged
newt
Vectorian
****
Posts: 1132



« Reply #26 on: January 11, 2008, 10:05:37 am »

I feel the screenshot png's should be optimized.  The file sizes are enormous!  They take a long time to load with my cable connection, I can't imagine what dial up people must go through. I personally like the quality of png's over jpg's, but more often then not you can get a acceptable jpg image with a much smaller file size over a optimized png. So that may be a option as well.

But overall, the main page is looking better every time I look at it.  Nice job  Smiley
Absolutely, I agree.  I remember looking through them the other day and noticed that often times that largest resolution images were the smallest filesize - by almost 5x times!
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #27 on: January 11, 2008, 04:08:41 pm »

I wanted to give a spin to the download buttons, this is the first one:



Let me know what you think.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
newt
Vectorian
****
Posts: 1132



« Reply #28 on: January 11, 2008, 04:16:29 pm »

Terrible I say --- BLUGH!!!  Just kidding Grin

I REALLY like it, but I think the text size and position take up too much screen space.  Maybe smaller font size; maybe split to two line; maybe centered under arrow.
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #29 on: January 11, 2008, 04:28:35 pm »

hehe, obviously needs to be scaled down. The disposition of the elements bothers me as well, I needed some input, thanks.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
Pages: 1 [2] 3 4
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!