Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   ZenTracker (http://www.bvlist.com/forumdisplay.php?f=81)
-   -   ZenTracker 1.0 rev. 38 (http://www.bvlist.com/showthread.php?t=6936)

Optix 1st September 2011 00:45

ZenTracker 1.0 rev. 38
 
3 Attachment(s)
Download: svn://svn.code.sf.net/p/zentracker/code

demo: http://le.zentracker.net
DL: https://sourceforge.net/projects/zentracker/files

Quick Installation Guide:

- Unpack and point Apache to the /web folder (DocumentRoot).
- Check that the directive "AllowOverride" is set to "All".
- Enable URL rewriting: a2enmod rewrite
- Install memcache: apt-get install memcached php5-memcache
- Change "apps / frontend / config / app.yml" and other files with your values ​​to your liking.
- Call install.php

Phogo 1st September 2011 12:33

Looks great, thanks for the post

Fynnon 1st September 2011 15:25

it is very nice indeed, great job :ok:

DARCK 1st September 2011 17:08

hi
 
very nice :ok:

McNaccken 1st September 2011 18:23

hmm interesting. Must test it right now :cool:

Optix 12th September 2011 02:05

Please notice that the ZIP is just here to try the platform.
If you want put it on production, please use the SVN version. There are the same files as the zentracker.net ones.

For this last version, i've added 2 more features.
If you have any question or issue, you can post here (i come every day) or on SourceForge if you've an account there.

DAKz 12th September 2011 02:53

??
 
Quote:

Originally Posted by Optix (Post 29981)
Thanks for creating the topic for me :)

Please notice that the ZIP is just here to try the platform. If you want put it on production, please use the SVN version. There are the same files as the zentracker.net ones. For this last version, i've added 2 more features.

If you have any question or issue, you can post here (i come every day) or on SourceForge if you've an account there.


A link would have been nice to the SVN version :unknown:

Optix 12th September 2011 03:01

Sure.

https://sourceforge.net/p/zentracker/code/

Fynnon 12th September 2011 03:30

is this in english too or just in french?

Optix 12th September 2011 16:37

Yes, the script will be available in English too.

Currently, the translation is not finished and I'm working on it.
But you can switch in English by changing this line in "apps/frontend/lib/layoutFilter.class.php":

PHP Code:

$this->getContext()->getUser()->setCulture('fr_FR'); 

To

PHP Code:

$this->getContext()->getUser()->setCulture('en_US'); 


DAKz 13th September 2011 07:30

Is this??
 
Downloading this and going to give it a try on the server. Is this an original code??

Optix 13th September 2011 11:10

Yes, it's the original version. There are the same files as the version in production.

The best try experience that i can give is the production version. So you can see how the platform handles members posts.

New update available on SVN !
  • CSS improvements : general.css holds directives (sizes, position) and other files holds only colors.
  • Template remodeling of forum and index performance increased
  • Better look&feel (see screenshot)
  • Take into consideration of variables (CDN, uploads) for the BBCode and pictures.
  • Progress of the translation in English
  • Bug : translation mistake in the editor
  • SVN cleanup
http://i54.tinypic.com/r0sbyx.png

lafouine022 14th September 2011 23:15

nice work

DAKz 15th September 2011 14:09

has anyone??
 
anyone try this yet? It is massive took forever to upload ftp. Still waiting....

enoeda 20th September 2011 20:24

Backend not working?
 
hello mate
wonderful job indeed, but...
when I click Administration sub-tab backend.php loads...NOTHING: an empty page full of nothing. any solution?
I did exactly what your windows instalation said and everything worked great
sante!

Optix 20th September 2011 20:30

Quote:

Originally Posted by enoeda (Post 30179)
hello mate
wonderful job indeed, but...
when I click Administration sub-tab backend.php loads...NOTHING: an empty page full of nothing. any solution?
I did exactly what your windows instalation said and everything worked great
sante!

The admin section isn't finished. The most part of the job is concentred on the frontend. But it's functionnal anyway.

If the backend is giving you a blank page, you can turn on the debugging mode which display you every error. Open the backend.php, you have a line with "backend, prod, false);. Just set the false to true. It will giving you the exact error ;)

enoeda 20th September 2011 21:08

did so, still nothing

PHP Code:

<?php

class backendConfiguration extends sfApplicationConfiguration
{
  public function 
configure()
  {
  }
  public function 
configureDoctrine(Doctrine_Manager $manager) {

    
$servers = array(
        
'host' => 'localhost',
        
'port' => 11211,
        
'persistent' => true
    
);


    
$cacheDriver = new Doctrine_Cache_Memcache(array(
        
'servers' => $servers,
        
'compression' => true
        
)
    );
    
//enable Doctrine cache
    
$manager Doctrine_Manager::getInstance();
    
$manager->setAttribute(Doctrine::ATTR_QUERY_CACHE$cacheDriver);
    
$manager->setAttribute(Doctrine::ATTR_RESULT_CACHE$cacheDriver);
    
$manager->setAttribute(Doctrine::ATTR_RESULT_CACHE_LIFESPAN30);
  }

port 11211?

im using xampp, does it matter?

I have a backendConfiguration.class.php but no backend.php

Optix 20th September 2011 21:15

The port 11211 is used for Memcache. It stores SQL request and results, etc. Without a memcache server, Zen will be extremly slow or return slow pages.

The backend.php is in /web/

enoeda 20th September 2011 21:29

still blank.
i'll reinstall tomorrow though im pretty sure ive done nothing more.
any other way to rename/add/modify categories and access to admin functions?

Code:

Notice:  Memcache::get() [memcache.get]:  Server localhost (tcp 11211) failed with: A connection attempt failed
because the connected party did not properly respond after a period of  time,
or established connection failed because connected host has failed  to respond. 
(10060) in C:\zentracker\lib\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Cache\Memcache.php on line 83

Fatal error:  Call to undefined function sys_getloadavg() in C:\zentracker\apps\backend\modules\main\actions\actions.class.php on line 33



that means memcache is not installed? it works very fast still

Optix 20th September 2011 21:34

No, the memcache is only a NOTICE.

The problem is the function "sys_getloadavg" isn't here on Windows env. This is causing your blank page.

I'm currently working on a new admin panel. So you can play with it in a couple of days :)

enoeda 20th September 2011 21:37

thanks mate and outstanding source!

http://php.net/manual/en/function.sys-getloadavg.php

cooly 23rd September 2011 10:38

Quote:

Originally Posted by Optix (Post 30186)
No, the memcache is only a NOTICE.

The problem is the function "sys_getloadavg" isn't here on Windows env. This is causing your blank page.

I'm currently working on a new admin panel. So you can play with it in a couple of days :)

maybe do something similar to this.

Code:

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
ob_start();
passthru('typeperf -sc 1 "\processor(_total)\% processor time"',$status);
$content = ob_get_contents();
ob_end_clean();
if ($status === 0) {
    if (preg_match("/\,\"([0-9]+\.[0-9]+)\"/",$content,$load)) {
        if ($load[1] > get_config('busy_error')) {
            header('HTTP/1.1 503 Too busy, try again later');
            die('Server too busy. Please try again later.');
        }
    }
}
}
else{
//call your sys_getloadavg here
}


Optix 23rd September 2011 13:10

2 Attachment(s)
Thanks, but it's not useful anymore. The admin panel has been completly rewritten to work on every system ;)

It will be pushed on SVN this weekend. See screenshots :ok:

cooly 23rd September 2011 16:07

very nice :)

Optix 24th September 2011 12:50

1 Attachment(s)
Like I said, the new admin panel is available on the SVN.

Many other improvements/refactorings has been made to the share module (which handle bittorrent & megaupload). A new symfony validator has been created to test the torrent file before form saving : less code, more flexibility ;)

cooly 26th September 2011 18:00

I did notice some thing that might confuse people its on your demo if u click a link when not logged in you are sent here http://le.zentracker.net/default/login and there is a link saying proceed to login that links to the same page maybe u should just make that to the index :)

Optix 1st October 2011 17:55

Many optimisations on the SVN allowing a faster deploy ;)

- More than 50% of space saved ! The application weighs now less than 10MB out of the box (it can be more due to SVN overhead).
- sfDoctrineGuard useless : deleted to save memory
- /web/index.php && /web/backend.php are in debug mode by default

@cooly: it's fixed now (see revision 29) :)

cooly 1st October 2011 22:54

1 Attachment(s)
Nice job another suggestion, when i'm in the laptop the online box at the bottom gets cut off so u have to go into full screen to see it. What if the side parts were collapsible so u can close each part up to save having to go into full screen.

Optix 2nd October 2011 14:12

Thanks cooly, it's done !

SVN rev30 : Blocks in sidebar are collapsible now and the browser remembers which blocks are closed by using localStorage (HTML5). :ok:

Fynnon 2nd October 2011 20:42

Quote:

Originally Posted by Optix (Post 30405)
SVN rev30 : Blocks in sidebar are collapsible now and the browser remembers which blocks are closed by using localStorage (HTML5). :ok:

i downloaded the files from SVN and it says rev. 32
anyway i uploaded the rar archive to first post for those who don`t know how to get the latest from svn

P.S. is this still only "french tracker" or did you manage to translate it?

http://img412.imageshack.us/img412/5904/71231699.png

Optix 2nd October 2011 20:54

It's in english by default ;)

cooly 2nd October 2011 23:41

Quote:

Originally Posted by Optix (Post 30405)
Thanks cooly, it's done !

SVN rev30 : Blocks in sidebar are collapsible now and the browser remembers which blocks are closed by using localStorage (HTML5). :ok:

That's spot on m8 nice one :)

DAKz 3rd October 2011 02:15

wow amazing
 
14 revisions in 24 hours, unreal.

Optix 3rd October 2011 08:33

I've been very busy this weekend :whistle:

Bump: Revision 33 :
- Added 2 more tests (CURL & GD2) in install.php
- Fixed routing issue in backend
- Fixed "unknown function format_date()" by calling Date helper

cooly 7th October 2011 00:58

Quote:

Originally Posted by DAKz (Post 30428)
14 revisions in 24 hours, unreal.

Agreed fast work. Wish I knew OOP but that's for another day ;)

daffy 7th October 2011 03:38

1 Attachment(s)
2 secs to install
still some english to translate, what do i change if this is in a sub directory for images to show.....
i have few errors but i believe its because i need to install some apache mods for it

Optix 7th October 2011 09:55

@daffy :
You need to set two variables (app_host_*) with your current hostname. It is set to localhost by default in /apps/frontend/config/app.yml

These variables allows you to parallelize downloads across hostnames and load the website as fastest as you can, because your browser will fetch HTML and images from 3 domains, so 3x faster. You can check that ZenTracker scores the "A" grade on GTMetrix (PageSpeed).

You can set it to your current domain or on different subdomains for reach the same DocumentRoot.

Don't forget to clean the cache after editing :) (delete /cache/ contents).

@cooly : this week i've made a lot of refactoring to reduce code lines with the same features.
Every view file will have only objects and no more arrays which are not flexible at all :)
I will upgraded the Symfony framework : the new version (1.4.14) has many improvements about performances from the cache manager :D
So this time, no bug fix, no features, but a very efficient code for the developers :)

daffy 7th October 2011 13:07

thanks bud, just had to change

host_uploads: localhost
host_cdn: localhost

to

host_uploads: mydomain/zen/web
host_cdn: mydomain/zen/web

and clear my cache.
and all is well upto now, i still need to ad some mod to apache for this, it was late lastnight and i was to high to mess with apache lol

alot admim panel dont work

Optix 11th October 2011 01:07

Quote:

Originally Posted by daffy (Post 30494)
alot admim panel dont work

Check :
- DocumentRoot set to /web/ (very important)
- AllowOverride (httpd.conf or apache2.conf) on "All"

Optix 11th October 2011 01:14

UPDATE : Revision 34
 
Hi guys !:drink:

So many days have left without news, but a lot of work has been done ! :muscle:

First, I want to thank every member who support me and telling me how cool and awesome job I do in this platform. :ok:


- New user profile layout : uploads are displayed like as an iOS device and the ratio of the member is showed

- Registrations : they are handle by sfForm, so it validates alone the form and unicity of information (less code in "Membre" module)

- Registrations : 2 variables allows you to open/close registrations and the needing of a mail confirmation (into "app.yml" config file)

- Registrations : two versions of mail are sent (HTML & text) with differents templates. The text's one has been deleted and to render it, we're taking now the HTML version with a strip_tags(). The template consider the right host now.

- Members : less code in the login process

- Members : IP checking is done once per session and not once each page viewed

- Members : usernames & avatars are given from the model which anonymize these datas when the user isn't auth (less code in templates)

- Sharing module : less code avoiding arrays for the profit of objects (more flexible)

- Sharing module : on index, the module loads only 900 chars from the description, enought from the system to fetch the cover inside it. Less memory footprint and better Memcache hitrate

- Sharing module (cover scanner) : it returns a better result when no image with a good ratio is found (ratio used by movies cover)

- Sharing module : on index, stars are taking in consideration the number of completed, comments and votes, to report a more accurate indicator of an upload popularity

- Sidebar : categories are fetching the right count of uploads (only torrents where fetched, not megaupload)

- Sidebar : with the benefit of i18n, using the right culture's syntax for formatting numbers and currencies

- Sidebar : every member connected are displayed, even they haven't an avatar

- CSS : some look&feel improvements on buttons

- Demo in production : guests can view uploads without registration to try the browsing experience of ZT


WARNING : Users who run ZT in production : set an exception on ".yml" files (these are config files !) to avoid the reset of these files. :fire:

For updating, it's a simple command : svn update

Details :
http://sourceforge.net/p/zentracker/code/34/

Enjoy :) :ok:


All times are GMT +2. The time now is 16:40.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.