Forum Activity for @michael

michael
@michael
06/17/14 10:51:31PM
7,839 posts

create video error


Jamroom Developers

Here is my /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1
#
# * Fine Tuning
#
key_buffer              = 256M
max_allowed_packet      = 32M
thread_stack            = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
#max_connections        = 100
table_cache             = 1536
tmp_table_size          = 128M
max_heap_table_size     = 128M
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 1M
query_cache_size        = 32M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries       = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id              = 1
#log_bin                        = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
innodb_buffer_pool_size = 512M
innodb_flush_method     = O_DIRECT
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet      = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer              = 16M

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#

updated by @michael: 06/17/14 10:53:13PM
michael
@michael
06/17/14 06:42:09PM
7,839 posts

add the user login form to any page is causing an error


Design and Skin Customization

michael:Try wrapping your code in [ code ]the code in here [ /code ] blocks.

remove the spaces between the bracket and the word 'code'

I'm meaning here in this fourm. so I can read it.
michael
@michael
06/17/14 06:39:48PM
7,839 posts

jrCore_db_search_items and return_count


Suggestions

Cheers @stevex, glad you could understand.

If your just wanting a count, then I'd also add in the 'skip triggers' so you dont make all the other modules add in all the other stuff.
function view_jrBlog_test($_post, $_user, $_conf)
{
  $_sp = array(
    'return_count' => true,
    'skip_triggers'  => true,
    'limit' => 999999
  );
  $_rt = jrCore_db_search_items('jrBlog',$_sp);
  return $_rt;
}
michael
@michael
06/17/14 03:16:11AM
7,839 posts

jrCore_db_search_items and return_count


Suggestions

The return count will show the total number of items in the query you request.

So I suggested to make a query using page and pagebreak instead.

Check out these docs:
"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

jrCore_list is just a wrapper for the search functionality that is available in the templates, so the same rules apply.

If you limit it to 10, you get 10.

If you pagebreak it at 10 then on page 2 you will get 11~20 etc. so if you dont include a pager to move to the next page, then you have all the results but only show 10 of them.

Its just one idea, im sure there are other ways to get there too.
michael
@michael
06/17/14 02:54:34AM
7,839 posts

jrCore_db_search_items and return_count


Suggestions

so dont set the limit to 10.

Set the paginate to 10 and only show the first page.
michael
@michael
06/17/14 01:45:41AM
7,839 posts

create video error


Jamroom Developers

Do you have a way to consistently reproduce the error so that I can try it out here? I've not run into that error yet.
michael
@michael
06/14/14 03:07:55AM
7,839 posts

Google analytics problem


Installation and Configuration

Thats the problem then. It should. Try a different skin.
michael
@michael
06/14/14 01:17:11AM
7,839 posts

Google analytics problem


Installation and Configuration

open the page. See if the code is in there.

Should look something like this:
<script type="text/javascript">
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create','UA-123456-11', { 'clientId': 'bBBBBBB-BBBBB-BBBB-BBB-fBBBBBBBBBBc' });
ga('send','pageview');
    </script>
michael
@michael
06/13/14 10:29:16PM
7,839 posts

Google analytics problem


Installation and Configuration

Fresh install of the module looks like this for me:
screenshot_google_analytics_config.jpg screenshot_google_analytics_config.jpg - 48KB

updated by @michael: 06/13/14 10:29:31PM
michael
@michael
06/13/14 02:40:26AM
7,839 posts

Oneall and custom signup forms


Jamroom Developers

andersda:How would I let someone sign up as a member with social login and then collect additinal information later in order to move them to another quota?

Without presuming to design your module for you, one way could be to get them to fill in a form and then change their quota programatically if its filled in as needed.

andersda:If I don't use the social login, can I still allow users to manage their social accounts, and share their updates?
The networks the user is connected to are decided by that user in their NETWORKS tab under "Account Settings".

andersda:How can they control which items in their feed get shared? I ask because we have some custom actions and want to make sure we can control what gets shared.

All items in their feed get shared.

They can disable sharing by unchecking the checkbox on NETWORKS tab.
  686