[PC-BSD Commits] r3324 - in websites/pbidir.com/bibivu: bin etc slib tpl/css tpl/js tpl/pbidir
svn at pcbsd.org
svn at pcbsd.org
Sun Jan 25 10:05:44 PST 2009
Author: fabry
Date: 2009-01-25 10:05:44 -0800 (Sun, 25 Jan 2009)
New Revision: 3324
Modified:
websites/pbidir.com/bibivu/bin/start.php
websites/pbidir.com/bibivu/etc/display.conf.php
websites/pbidir.com/bibivu/slib/bbcode.php
websites/pbidir.com/bibivu/tpl/css/pbidir.css
websites/pbidir.com/bibivu/tpl/js/functions.js
websites/pbidir.com/bibivu/tpl/pbidir/header.php
websites/pbidir.com/bibivu/tpl/pbidir/home.php
websites/pbidir.com/bibivu/tpl/pbidir/most_popular.php
websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
websites/pbidir.com/bibivu/tpl/pbidir/search.php
Log:
PBIdir: more changes to the way the webste looks and small functionalities fixes
Modified: websites/pbidir.com/bibivu/bin/start.php
===================================================================
--- websites/pbidir.com/bibivu/bin/start.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/bin/start.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -130,7 +130,7 @@
$filters[] = array('field'=>'current_status_id', 'operator'=>'=', 'value'=>'100');
$group = array();
$order = array('date_added DESC');
- $limit = 20;
+ $limit = 10;
$this->display->assign('latest', $this->pbi->get_raw($filters, $order, $group, $limit));
$filters = array();
@@ -138,7 +138,7 @@
$filters[] = array('field'=>'current_status_id', 'operator'=>'=', 'value'=>'100');
$group = array();
$order = array('total_download DESC');
- $limit = 20;
+ $limit = 10;
$this->display->assign('most_download', $this->pbi->get_raw($filters, $order, $group, $limit));
$this->display->assign('can_write',$this->permissions->can('category', 'write'));
Modified: websites/pbidir.com/bibivu/etc/display.conf.php
===================================================================
--- websites/pbidir.com/bibivu/etc/display.conf.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/etc/display.conf.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -56,29 +56,26 @@
$display['link'][2]['href'] = TPLWEBPATH.'css/jquery/ui.tabs.css';
$display['link'][2]['media'] = 'all';
+$display['link'][3]['type'] = 'text/css';
+$display['link'][3]['rel'] = 'stylesheet';
+$display['link'][3]['title'] = 'default';
+$display['link'][3]['href'] = TPLWEBPATH.'css/jquery/jquery.lightbox-0.5.css';
+$display['link'][3]['media'] = 'screen';
$display['script'][0]['type'] = 'text/javascript';
$display['script'][0]['language'] = 'javascript';
-$display['script'][0]['src'] = 'http://code.jquery.com/jquery-latest.js';
+//$display['script'][0]['src'] = 'http://code.jquery.com/jquery-latest.js';
//$display['script'][0]['src'] = 'http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js';
-//$display['script'][0]['src'] = TPLWEBPATH.'js/jquery-1.2.1.pack.js';
+$display['script'][0]['src'] = TPLWEBPATH.'js/jquery-1.3.1.min.js';
//$display['script'][0]['src'] = 'http://code.jquery.com/nightlies/jquery-nightly.pack.js';
$display['script'][1]['type'] = 'text/javascript';
$display['script'][1]['language'] = 'javascript';
-$display['script'][1]['src'] = TPLWEBPATH.'js/jquery-ui-1.5b3.packed.js';
+$display['script'][1]['src'] = TPLWEBPATH.'js/jquery-ui-1.5.3.packed.js';
-/*
-$display['script'][1]['type'] = 'text/javascript';
-$display['script'][1]['language'] = 'javascript';
-$display['script'][1]['src'] = TPLWEBPATH.'js/jquery.tablesorter.pack.js';
-*/
-
-/*
$display['script'][2]['type'] = 'text/javascript';
$display['script'][2]['language'] = 'javascript';
-$display['script'][2]['src'] = TPLWEBPATH.'js/jquery.tablesorter.pager.js';
-*/
+$display['script'][2]['src'] = TPLWEBPATH.'js/lightbox/js/jquery.lightbox-0.5.pack.js';
$display['script'][99]['type'] = 'text/javascript';
$display['script'][99]['language'] = 'javascript';
Modified: websites/pbidir.com/bibivu/slib/bbcode.php
===================================================================
--- websites/pbidir.com/bibivu/slib/bbcode.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/slib/bbcode.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -213,7 +213,7 @@
'/\[quote\]/i','/\[\/quote\]/i', //quote
'/\[q1\]/i','/\[\/q1\]/i', //quote
'/\[q2\]/i','/\[\/q2\]/i', //quote
- '/\[q2\]/i','/\[\/q3\]/i', //quote
+ '/\[q3\]/i','/\[\/q3\]/i', //quote
'/\[url\]/i','/\[\/url\]/i', //url
'/\[img\]/i','/\[\/img\]/i', //img
'/\[\*\]/i',
@@ -221,14 +221,14 @@
'/\[u\]/i','/\[\/u\]/i', //underline
'/\[i\]/i','/\[\/i\]/i', //italic
'/\[HR\]/i',
- '/\[font=([0-9A-Fa-z\-]+)\]/si','/\[\/font\]/i', //font
+ '/\[font=([0-9A-Fa-z\-]+)\]/si','/\[\/font\]/i', //font
'/\[color=(#[0-9A-F]{6}|[a-z]+)\]/si','/\[\/color\]/i', //color
'/\[bgcolor=(#[0-9A-F]{6}|[a-z]+)\]/si','/\[\/bgcolor\]/i', //bgcolor
- '/\[size=([\-\+]?[1-2]?[0-9])\]/si','/\[\/size\]/i', //size
- '/\[t_left\]/i','/\[\/t_left\]/i',
- '/\[t_center\]/i','/\[\/t_center\]/i',
- '/\[t_right\]/i','/\[\/t_right\]/i',
- '/\[t_justify\]/i','/\[\/t_justify\]/i'
+ '/\[size=([\-\+]?[1-2]?[0-9])\]/si','/\[\/size\]/i', //size
+ '/\[t_left\]/i','/\[\/t_left\]/i', //left align
+ '/\[t_center\]/i','/\[\/t_center\]/i', //left center
+ '/\[t_right\]/i','/\[\/t_right\]/i', //left right
+ '/\[t_justify\]/i','/\[\/t_justify\]/i' //left justify
);
$replacements[] = '';
Modified: websites/pbidir.com/bibivu/tpl/css/pbidir.css
===================================================================
--- websites/pbidir.com/bibivu/tpl/css/pbidir.css 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/css/pbidir.css 2009-01-25 18:05:44 UTC (rev 3324)
@@ -3,6 +3,7 @@
background: #f2f2f2;
margin: 0;
padding: 0;
+/* font-size: 12px; */
}
a:link, a:visited {
@@ -162,23 +163,33 @@
width: 100%;
}
+/* stats column */
#stats {
float: right;
- width: 20%;
+ width: 22%;
padding-left: 10px;
}
-#stats ol {
+#stats .box {
+ border:1px solid #CCC;
+}
+#stats .box h2 {
+ margin:0;
+ border-bottom:1px solid #CCC;
+ padding:4px;
+ background-color:#DFDFDF;
+}
+#stats .box ol {
margin: 0;
- padding: 0;
+ padding:4px;
font-size: 0.9em;
+ list-style:none;
}
-#stats li {
+#stats .box li {
padding: 0;
margin: 0;
}
-
/* Home page: List of categs */
#cats {
@@ -349,11 +360,11 @@
padding: 0 0 0.2em 15px;
margin: 0;
background: url(/bibivu/tpl/pbidir/images/bullet.png) 0 65% no-repeat;
- font-size: 0.9em;
+/* font-size: 0.9em; */
}
table.packages .quickdesc {
- font-size: 11px;
+/* font-size: 11px; */
}
table.packages h1 a {
@@ -364,7 +375,7 @@
/* Details */
tr.highlight {
- background: #eee;
+ background: #CCC;
}
div.downlinks {
@@ -405,11 +416,11 @@
}
.search_text{
- height:18px;
+ height:20px;
background-image: url(/bibivu/tpl/pbidir/images/search.gif);
background-position: 2px;
background-repeat: no-repeat;
- padding-left:20px;
+ padding:4px 0px 0px 20px;
}
.search_button{
height:24px;
@@ -484,6 +495,7 @@
border:1px solid #EBEBEB;
background-color:#F5F5F5;
text-decoration:none;
+ padding:2px;
}
.button:hover{
color:#000000;
@@ -563,6 +575,7 @@
margin:0px;
padding:0px;
border-spacing:0px;
+ font-size:12px;
}
.list .row{
@@ -692,18 +705,19 @@
.pbi_images{
float:right;
width:102px;
- border:1px solid #EBEBEB;
- height:125px;
+/* border:1px solid #CCC; */
+ height:145px;
overflow:hidden;
padding:1px;
float:left;
+ padding:2px;
}
.pbi_image{
border:none;
max-width:100px;
max-height:100px;
vertical-align:baseline;
- border:1px solid #EBEBEB;
+ border:1px solid #CCC;
}
.pbi_description{
margin-bottom:20px;
@@ -716,9 +730,21 @@
.pbi_info{
float:right;
margin:5px;
- border:1px solid #EBEBEB;
+ border:1px solid #CCC;
+ padding:0;
+}
+
+.pbi_info .table_info{
+ font-size:10px;
+ float:right;
padding:2px;
}
+
+.pbi_info .table_info th{
+ text-align:left;
+ padding:4px;
+}
+
.pbi_icon{
float:left;
margin:2px;
Modified: websites/pbidir.com/bibivu/tpl/js/functions.js
===================================================================
--- websites/pbidir.com/bibivu/tpl/js/functions.js 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/js/functions.js 2009-01-25 18:05:44 UTC (rev 3324)
@@ -2,6 +2,20 @@
var voted = 0;
var filter_using = 0;
$(function(){
+ //create lighbox elements
+ $('.pbi_images a').lightBox({
+ overlayBgColor: '#000',
+ overlayOpacity: 0.6,
+ imageLoading: '/bibivu/tpl/js/lightbox/images/lightbox-ico-loading.gif',
+ imageBtnClose: '/bibivu/tpl/js/lightbox/images/lightbox-btn-close.gif',
+ imageBtnPrev: '/bibivu/tpl/js/lightbox/images/lightbox-btn-prev.gif',
+ imageBtnNext: '/bibivu/tpl/js/lightbox/images/lightbox-btn-next.gif',
+ imageBlank: '/bibivu/tpl/js/lightbox/images/lightbox-blank.gif',
+ containerResizeSpeed: 350,
+ txtImage: 'PBIDir - ',
+ txtOf: 'of'
+ });
+
//toggle rows in a table
$('.tab_head').click(function() {
$('.tab_body_' + $(this).attr('id').substring(9)).toggle();
@@ -11,7 +25,7 @@
$('.pbi_releases > ul').tabs();
//images scroller for pbi page
- imageScroller("viewerFrame");
+// imageScroller("viewerFrame");
// Document is ready
imgLoader = new Image();// preload image
@@ -25,6 +39,7 @@
divBox();
$('#divBox_load').hide().trigger("unload").unbind().remove();
});
+
init();
});
function init(){
Modified: websites/pbidir.com/bibivu/tpl/pbidir/header.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/header.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/pbidir/header.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -1,6 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="<?=load_library('lang')->get_lang()?>" dir="ltr" xml:lang="<?=load_library('lang')->get_lang()?>" xmlns="http://www.w3.org/1999/xhtml">
<head>
+ <link rel="alternate" type="application/rss+xml" title="PBIdir - <?=load_library('lang')->get('home_latest_software');?>" href="/bt/rss/pbi.rss">
+ <link rel="alternate" type="application/rss+xml" title="PBIdir - <?=load_library('lang')->get('home_latest_releases');?>" href="/bt/rss/release.rss">
+ <link rel="alternate" type="application/rss+xml" title="PBIdir - <?=load_library('lang')->get('home_most_downloaded_software');?>" href="/bt/rss/download.rss">
+
+
<?php
foreach($link as $key=>$v1){
?><link <?php
Modified: websites/pbidir.com/bibivu/tpl/pbidir/home.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/home.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/pbidir/home.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -3,9 +3,9 @@
<div id="softlist">
<div id="stats">
- <?=$this->show('pbidir/latest_releases')?><br /><br />
- <?=$this->show('pbidir/latest')?><br /><br />
- <?=$this->show('pbidir/most_download')?><br /><br />
+ <?=$this->show('pbidir/stats/latest_releases')?><br /><br />
+ <?=$this->show('pbidir/stats/latest')?><br /><br />
+ <?=$this->show('pbidir/stats/most_download')?><br /><br />
</div>
<div id="cats">
<ul><?php
Modified: websites/pbidir.com/bibivu/tpl/pbidir/most_popular.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/most_popular.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/pbidir/most_popular.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -9,4 +9,4 @@
<li><a href="/warcraft"><img src="/bibivu/tpl/pbidir/images/wow.jpg" width="150" height="75" /></a></li>
</ul>
</div>
-</div>
+</div>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -19,61 +19,7 @@
<li><a href="<?=$category_uri?>/<?=$category['web_alias']?>"><?=$category['name']?></a></li>
<li><?=$pbi['name']?></li>
</ul>
-<div class="pbi_info">
-<?=$this->show('/pbidir/pbi_images');?>
-<table>
- <tbody>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_vendor')?>:</strong></td>
- <td><a target="_blank" href="<?=$pbi['vendor_url']?>"><?=$pbi['vendor_name']?></a></td>
- </tr>
- <tr>
- <td><strong><?=load_library('lang')->get('pbi_avg_rate')?>:</strong></td>
- <td><div class="container_rating_bar"><div class="rating_bar" style="width: <?=$pbi['rating']*10?>px;"><?=$pbi['rating']?></div></div></td>
- </tr>
- <tr><?php
- if($can_vote){
- ?><td><strong><?=load_library('lang')->get('pbi_your_rate')?>:</strong></td><td>
- <div class="vote_box" onmouseout="updateVote(0);"><?php
- for($i=1; $i<=10; $i++){
- ?><div onmouseover="updateVote(<?=$i?>)" class="vote_vote <?=$i<=$prev_vote?'vote_selected_back':''?> <?=$i==$prev_vote?'vote_selected':''?>" id="vote_<?=$i?>" ><a href="javascript:void(0);" onclick="saveVote(<?=$pbi['id']?>,<?=$i?>)" ><?=$i==10 && $prev_vote>0?$prev_vote:' '?></a></div><?php
- }
- ?>
- </div>
- </td><?php
- } elseif($is_logged){
- ?><td colspan="2"><?=load_library('lang')->get('pbi_cannot_vote')?></td><?php
- } else {
- ?><td colspan="2"><?=sprintf(load_library('lang')->get('pbi_login_to_vote'),$login_uri)?></td><?php
- } ?>
- </tr>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_downloads')?>:</strong></td>
- <td><?=load_library('format')->number_format($pbi['total_download'])?></td>
- </tr>
- <tr>
- <td><strong><?=load_library('lang')->get('pbi_added')?>:</strong></td>
- <td><?=load_library('format')->date($pbi['date_added'])?></td>
- </tr>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_licence')?>:</strong></td>
- <td><?=$pbi['licence']?></td>
- </tr><?php
- if($pbi['contributor_email'].$pbi['contributor_name']!=''){
- ?><tr>
- <td><strong><?=load_library('lang')->get('pbi_maintainer')?>:</strong></td>
- <td><script type="text/javascript" language="javascript">mailprotect ('<?=strtok($pbi['contributor_email'],'@')?>', '<?=strtok('.')?>', '<?=strtok('')?>', '<?=htmlentities($pbi['contributor_name'])?>')</script></td>
- </tr><?php
- } ?>
- </tbody>
-</table><?php
- if($pbi['alternative_for']!=''){
- ?><hr /><div id="alternative_pbi"><?=load_library('lang')->get('pbi_alternative')?>: <?=$pbi['alternative_for']?></div><?php
- }
- if($is_logged){
- ?><hr /><div id="subscribe_pbi"><a href="javascript:void(0);" onclick="subscribe_pbi('<?=$subscribe_uri?>');"><?=load_library('lang')->get($is_subscribed?'pbi_unsubscribe':'pbi_subscribe')?></a></div><?php
- } ?>
-</div>
+<?=$this->show('pbidir/pbi/info')?>
<div class="pbi_title">
<h1><?php
if($pbi['icon']!=''){
@@ -87,7 +33,7 @@
?><a href="<?=load_class('uri')->create_uri(array(CLASS_KEY=>'admin', TASK_KEY=>'pbi_translation','list'=>'','ajax'=>'', 'pbi_id'=>$pbi['id']))?>" class="divBox"><input type="button" value=" Translate This PBI " class="button edit divBox" /></a><?php
}
?></div>
-<?=$this->show('pbidir/pbi_icons')?>
+<?=$this->show('pbidir/pbi/icons')?>
<div class="pbi_description">
<h2><?=load_library('lang')->get('pbi_description')?></h2>
<?=nl2br(load_library('bbcode')->parse($pbi['description']))?>
@@ -96,7 +42,7 @@
?><br /><br /><h2><a href="<?=$download_uri?>/<?=$pbi['id']?>"><?=load_library('lang')->get('pbi_offsite_download')?> <?=$pbi['name']?></a></h2><?php
}
?></div>
-<?=$this->show('pbidir/pbi_versions')?>
+<?=$this->show('pbidir/pbi/versions')?>
<div class="separ_comment">
<hr/></div>
<?php
Modified: websites/pbidir.com/bibivu/tpl/pbidir/search.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/search.php 2009-01-24 05:19:46 UTC (rev 3323)
+++ websites/pbidir.com/bibivu/tpl/pbidir/search.php 2009-01-25 18:05:44 UTC (rev 3324)
@@ -31,11 +31,10 @@
?><a href="<?=$pbi_uri?>/<?=$pbi['id']?>"><img src="<?=$pbi['icon']?>" alt="icon" title="icon" class="pbi_main_icon" /></a><?php
}
?>
- <?=$this->show('pbidir/pbi_icons')?>
+ <?=$this->show('pbidir/pbi/icons')?>
</div>
<div class="quickdesc">
<h1><a href="<?=$pbi_uri?>/<?=$pbi['id']?>/<?=strtolower(preg_replace('/[^0-9a-z]/i','_',$pbi['name']))?>"><?=$pbi['name']?></a></h1>
- <br />
<div class="infos">
<strong><?=load_library('lang')->get('search_licence')?>:</strong> <?=$pbi['licence']?><br /><?php
if($pbi['summary']!=''){
More information about the Commits
mailing list