This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5 ,054
» Latest member: ayeshakaur
» Forum threads: 3 ,807
» Forum posts: 23 ,139

Full Statistics

Online Users
There are currently 129 online users.
» 0 Member(s) | 129 Guest(s)

Latest Threads
Absolute path to images
Forum: General Discussions (Non-Support Related)
Last Post: Youlat00
Yesterday, 05:05 PM
» Replies: 3
» Views: 5 ,078
Missing mysqld.sock
Forum: General Support Forum v2.x.x
Last Post: TGates
Yesterday, 03:16 PM
» Replies: 7
» Views: 186
Error opening Roundcube
Forum: General Support Forum v2.x.x
Last Post: TGates
Yesterday, 07:12 AM
» Replies: 11
» Views: 1 ,476
Forum Scripts Updated
Forum: Sentora Announcements
Last Post: TGates
06-29-2025, 05:30 PM
» Replies: 0
» Views: 75
¿Cómo puedo abrir el puer...
Forum: DNS Support v2.x.x
Last Post: TGates
06-17-2025, 08:38 AM
» Replies: 1
» Views: 121
Questions regarding insta...
Forum: General Discussions (Non-Support Related)
Last Post: glutinousbelt
06-11-2025, 12:34 PM
» Replies: 5
» Views: 6 ,120
Why is there no support f...
Forum: Sentora Development
Last Post: jeffreestar
06-07-2025, 12:22 PM
» Replies: 4
» Views: 3 ,730
Sentora v2.1.0 sitrep
Forum: Sentora Announcements
Last Post: TGates
06-06-2025, 06:24 AM
» Replies: 8
» Views: 5 ,338
Mettre Sentora en françai...
Forum: Language Support v2.x.x
Last Post: TGates
06-06-2025, 05:58 AM
» Replies: 1
» Views: 363
2.1.0 on riscv architectu...
Forum: General Discussions (Non-Support Related)
Last Post: Lansider
06-05-2025, 12:22 PM
» Replies: 2
» Views: 2 ,133

 
Sentora Forum Suggestion
Posted by: wormsunited - 04-12-2015, 08:11 PM - Forum: General Discussions (Non-Support Related) - Replies (3)

Hi there folks!

To be honnest i didnt know were to post this thread on the forum since i havent found any category for this topic, i have a suggestion for the functions at sentora forum. As you know many posts are long. Since we have to scrool it down, sometimes we have to dragg all up, or click on "return to top" wich call div #top. and jumps up without any animation and we get the link as: http://forums.sentora.org/something#top wich is not so cool, dont get me wrong...

So i suggest a simple ugrade and very simple to integrate wich will make us as members with a more interesting funcionality over this forum. I have created a simple .js file that can be called to any pages by adding one simple line of code and it will bring to top in a more intuitive look and animated. This is very lightweight i use it a lot in some of my webdesign projects. All members are free to copy and use it.

Here is the .js file code (requires jquery wich the forum already have)


Code:
/*
Sentora.org
Scrool to top
@wormsunited contribution
*/

var scrolltotop={
    //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
    //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
    setting: {startline:100, scrollto: 0, scrollduration:500, fadeduration:[500, 100]},
    controlHTML: '<img src="../images/sentora/gotop.png" style="width:50px; height:50px" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
    controlattrs: {offsetx:10, offsety:10}, //offset of control relative to right/ bottom of window corner
    anchorkeyword: '#main', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links

    state: {isvisible:false, shouldvisible:false},

    scrollup:function(){
        if (!this.cssfixedsupport) //if control is positioned using JavaScript
            this.$control.css({opacity:0}) //hide control immediately after clicking it
        var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
        if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
            dest=jQuery('#'+dest).offset().top
        else
            dest=0
        this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
    },

    keepfixed:function(){
        var $window=jQuery(window)
        var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
        var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
        this.$control.css({left:controlx+'px', top:controly+'px'})
    },

    togglecontrol:function(){
        var scrolltop=jQuery(window).scrollTop()
        if (!this.cssfixedsupport)
            this.keepfixed()
        this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
        if (this.state.shouldvisible && !this.state.isvisible){
            this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
            this.state.isvisible=true
        }
        else if (this.state.shouldvisible==false && this.state.isvisible){
            this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
            this.state.isvisible=false
        }
    },
    
    init:function(){
        jQuery(document).ready(function($){
            var mainobj=scrolltotop
            var iebrws=document.all
            mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
            mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
            mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                .attr({title:''})
                .click(function(){mainobj.scrollup(); return false})
                .appendTo('body')
            if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
                mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
            mainobj.togglecontrol()
            $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                mainobj.scrollup()
                return false
            })
            $(window).bind('scroll resize', function(e){
                mainobj.togglecontrol()
            })
        })
    }
}

scrolltotop.init()


Implementation:
- Save the script provided on top as "gotop.js"
- Create and Add a image file called "gotop.png" at -> http://sentora.org/images/sentora/ directory.
- Just add this line of code to call up the script on the index.php file (template file) -> Check bellow!


Code:
<script type="text/javascript" src="http://forums.sentora.org/jscripts/gotop.js"></script>

That's it! Simple and lightweight solution that will bring Sentora Forum a new shine!
I hope this contribution can make members experience better!

Wink

Print this item

Creating a module
Posted by: rafaht - 04-05-2015, 02:12 PM - Forum: General Discussions (Non-Support Related) - Replies (7)

Hey guys!
I'm trying to create a module, but some piece of code doesn't working and I don't know why, because doesn't have error.

See:
module.zpm

Code:
        <h3><: Alerts list :></h3>

        <% if AlertsList %>
            <table class="table table-striped">
                <tr>
                  <th><: ID :></th>               
                  <th><: Title  :></th>
                  <th><: Message :></th>                   
                </tr>
                <% loop AlertsList %>
                <tr>
                    <td><~ alert_id ~></td>
                    <td><~ alert_title ~></td>
                    <td><~ alert_message ~></td>                     
                </tr>
                <% endloop %>
            </table>
            <@ CSFR_Tag @>
        <% else %>
        <p><: There are currently no alerts to display! :></p>
        <% endif %>
I tried replace <~ and ~> for <& and &>, but doesn't worked too.

The module displays until this piece: <h3><: Alerts list :></h3>.

The controller.ext.php corresponding code:

Code:
    /*

     * The 'worker' methods.
     */
    static function ListAlerts() {
        global $zdbh;
        $sql = "SELECT * FROM sentora_alerts";
        $numrows = $zdbh->prepare($sql);
        $numrows->execute();
        if ($numrows->fetchColumn() <> 0) {
            $sql = $zdbh->prepare($sql);
            $res = array();
            $sql->execute();
            while ($rowalerts = $sql->fetch()) {
        array_push($res, array('alert_id' => $rowalerts['alert_id'], 'alert_title' => runtime_xss::xssClean($rowalerts['alert_title']), 'alert_message' =>runtime_xss::xssClean($rowalerts['alert_message'])));
            }
            return $res;
        } else {
            return false;
        }
    }

    /*
     * End 'worker' methods.
     */

    static function getAlertsList() {
        global $zdbh;
        return self::ListAlerts();
    }

The database exists, the table and column names is correct. I verified.

Any ideas? :/
Thanks,

Print this item

Laravel 5 Permissions
Posted by: fitzuk - 04-03-2015, 06:56 PM - Forum: General Discussions (Non-Support Related) - Replies (4)

Hey Guys,
I am using Centos 7 on AWS on an EC2 to work on development for laravel 5. I managed to get composer installed and working and laravel working.

Everything works fine, however any time I run a composer update or any type of command from terminal the files then become owned by root instead instead of apache and my FTP access will then refuse to update files as it no longer has permisson.

In order to make the files writable again through FTP I need to use the following command:

chown -R apache:apache directoryofinstallation

Whilst this is not a major drama it just gets tedius! Is there anyway I can resolve this? Either by running the terminal commands as apache or by allowing apache to edit files created by root.

Any advice would be great.

Mark

Print this item

Thanks Sentora + Suggestion
Posted by: Pirate - 04-03-2015, 01:12 AM - Forum: General Discussions (Non-Support Related) - Replies (2)

Probably the best db manager ever used.


But here is my suggestion, instead of phpmyadmin, maybe you should consider A much better lightweight alternative for sql managing

Print this item

Some CSS for Tgates. :D
Posted by: Ron-e - 03-31-2015, 02:00 AM - Forum: General Discussions (Non-Support Related) - Replies (3)

@[TGates] can you please add the following CSS:

Code:
.tfoot a:visited {
    color: #C0C0C0;
    text-decoration: none;
}

.tfoot a:hover,
.tfoot a:active {
    color: #A3A3A3;
    text-decoration: underline;
}

To the http://forums.sentora.org/cache/themes/t...custom.css file some where around line 110?
My (close to) autistic mind is (already a while) annoyed by this almost unreadable color for visited and hovered links in the footer... Tongue
See:
[Image: Shna1je.jpg]

Print this item

Free and Paid Server For Sentora
Posted by: rajeevrrs - 03-29-2015, 05:37 AM - Forum: General Discussions (Non-Support Related) - Replies (5)

Hello,

Today i like to introduce [link removed] it provide free and cheep web hosting and domain name.
I am using [name removed] services and it really cool and best compare to other like godaddy, hostgator or bluehost.

What they provide

20 GB Free Web Hosting : [link removed]

New Domain name : [link removed]

Unlimited Linux Shared Hosting @ Just $4.82/mon : [link removed]

Unlimited Windows Shared Hosting @ Just $6.65/mon : [link removed]

VPS Server @ just $18.23/mo : [link removed]

Dedicated Server @ just $98.94/mo : [link removed]

Managed Servers @ just $176.47/mo : [link removed]

SSL Certificate [HTTPS] @ Just $24.11/yr : [link removed]

Site Lock @ Just $13.50/yr : [link removed]

CodeGuard @ Just $1.06/mo : [link removed]

Business Email @ Just $1.93/mo : [link removed]

Grab it now, you never seen like this before.

They provide cool and super fast customer support through Live chat, Ticket and mails.

For more information you can mail them at  [link removed] or you can contact at : [link removed]

Good Luck !!

[edit 5050: links removed -> our forum is not intended to become a farm of links.]

Print this item

Sentora vs CentOS Web Panel
Posted by: eduardw - 03-26-2015, 01:26 PM - Forum: General Discussions (Non-Support Related) - Replies (6)

What is the best? Differences?

Print this item

Sentora Reloaded
Posted by: KwiceroLTD - 03-24-2015, 08:44 AM - Forum: General Discussions (Non-Support Related) - Replies (21)

I've been dedicating some time and will continue till I finish this. Sentora Reloaded is a complete recode of Sentora, new framework, more secure, everything.
All code is different, new theme (designed by me and my team).

Previews:
[Image: 1GPqIAo.png]
[Image: oxpRIh0.png]
[Image: FejpR3z.png]
[Image: 9vTdTrp.png]
[Image: 3hdlw3G.png]

That's all I've done for now, time to get some rest, will continue in morning.

Print this item

Feedback about CloudFlare
Posted by: apinto - 03-19-2015, 03:42 AM - Forum: General Discussions (Non-Support Related) - Replies (6)

This is not really a support request, I just want your opinions.

I'm using CF as my DNS (free account for now).
As they do not have a SLA (not even on pro), do you had any critical issues with CloudFlare?

It's all ok and working for now. I just read some random stuff around the internet and wanted to check with someone whose opinion would be more valid.

Than you!

Print this item

Sentora - General Security Warning ?
Posted by: Active8 - 03-19-2015, 02:06 AM - Forum: General Discussions (Non-Support Related) - Replies (37)

I saw this tread, it seems that Sentora devolpers already knowing this?

http://www.webhostingtalk.com/showthread.php?p=9399137

Print this item