Filip Ćakić wrote:
Its 8GB now, is it safe to empty it? Do i lose any stats on forums?
/discourse/log
Posts: 6
Participants: 2
Filip Ćakić wrote:
Its 8GB now, is it safe to empty it? Do i lose any stats on forums?
/discourse/log
Posts: 6
Participants: 2
Adrian Nießen wrote:
Despite having enable names and enable names on post options activated, only some of my users' names are shown beneath their user names (everyone has a real name set).
What could be the reason for this, and how to fix it? They are very important for our board.
Posts: 3
Participants: 2
TechnoBear wrote:
Clicking a member's avatar or username, or activating it by keyboard, no longer opens their user card here on Meta.
Firefox and Chromium on Ubuntu Gnome 14.10.
Posts: 8
Participants: 5
Spero Koulouras wrote:
AFAIK the current onebox implementation works with urls of the form: http://www.youtube.com/watch?v=
This form of the URL accepts limited player parameters while alternate forms offer a much bigger parameter list that can come in very handy (better playlist control, branding, looping, etc). I am not competent to modify the existing onebox implementation without help. Any thoughts on how tough it would be to support these alternate forms?
http://www.youtube.com/v/
http://www.youtube.com/embed/
http://www.youtube.com/apiplayer?video_id=Continuing the discussion from Youtube times feature for replies to an embedded youtube video?:
Posts: 14
Participants: 5
Hi there,
Just a small suggestion to improve the search widget. It's really slick how it remembers the search term and even the scroll position in the list when returning to the search results. But it would be better still if it would highlight the last clicked topic in the list, and possibly a little eyeball icon for already-viewed topics within this current search session.
Thanks!
Posts: 1
Participants: 1
Allen - Watchman Monitoring wrote:
Continuing the discussion from Good users Automatically deleted due to being old and unverified:
There is a column in our user export called "Active" and every user was active.
Is there a different column for the activation status, for which a user can be purged?
Is the export just skipping inactive users?
What else can be exported.. how do we get custom fields to be included in that export?
Posts: 2
Participants: 2
In order to avoid the pirate of pictures, how can we make watermark on pictures?
Could you give me some advice? Thanks.
Posts: 5
Participants: 3
Continuing the discussion from How can I implement a onebox myself?:
I have read this post completely and tried that function, but failed, can anyone give me a hand? Thanks.
Posts: 4
Participants: 2
Tobias Eigen wrote:
This is probably not a big priority for you discourse wizards out there, but I struggled a bit today trying to wrap my head around this issue. I think it's a bug - maybe there are ways to clarify how
system
user is treated for those that come after us.My use case
I am setting up a new discourse instance and the organization wants to have a single admin account for managing users and admin settings. So you log out of your usual account for participating in discussions and log back in again as the admin.
I thought this was going to be the system user but it turns out this is impossible, so have now solved my problem by creating a new admin user and given it admin privileges. I also put the email address for this user (which is the same email they use for all their admin tasks throughout the organization) in the app.yml file in
DISCOURSE_DEVELOPER_EMAILS
so it will always get admin privileges.Why I can't use
system
user for this purposeBasically, the system password and email address cannot be changed permanently. To replicate:
- edit
system
user and add email address and password . also add picture.- log in successfully as
system
user- run
./launcher rebuild app
and wait for process to complete.- try to log in as
system
and fail. Log in as another user and you will see the email address and password have been lost.I knew already that the username can't be changed:
Posts: 2
Participants: 2
Peter Lewis wrote:
On November 11 (which I presume corresponds to when I updated discourse - I am currently on 1.1.2), the from address in emails changed from:
From: peternlewis forumaddress@myforum.mysite.com
to
From: Peter N Lewis forumaddress@myforum.mysite.com
That's fine, that's a good change.
But, if the user has not set a name (which the settings say is option) the change went from:
From: username forumaddress@myforum.mysite.com
to
From: forumaddress@myforum.mysite.com
Which is not a good result.
Also, it looks like the name field cannot be edited by the admin (without going through the process of impersonating them and then editing their profile) so I can't even easily fix this up.
Thanks!
Posts: 7
Participants: 3
Tobias Eigen wrote:
I am getting alot of pushback about items on the hamburger menu and would be grateful for pointers on how to customize these.
- FAQ = This item on the menu should read Guidelines and not FAQ
- Help = Would really like to be able to link to a help page, much like this suggestion to provide a usage guide. I disagree with @codinghorror on this - people in my community are clamoring for the kind of info that @riking started collecting. (ooh, pleased to discover that it is possible to change the destination of FAQ - this helps a bit)
- About = this link crept into the code at some point and I never noticed, and while I like the stats it doesn't make sense on our new site to display it. We also have no admins or moderators. So I'd like to remove this item from the menu.
I'd also like to be able to display the links to Guidelines, Help, TOS and Privacy on all four of these pages as they exist partially on Guidelines, TOS and Privacy now. Has anyone succeeded in doing this?
Thanks for any guidance!
Posts: 4
Participants: 4
Allen - Watchman Monitoring wrote:
I'm at:
/admin/logs/staff_action_logs
and clicking Export, in hopes of seeing who was deleted from our community.(I can't scroll down far enough, because the list is cut off).
the export i get is the Screened IPs list, not the Staff actions logs.
Posts: 2
Participants: 2
Yang Flincllck wrote:
Today i am going to install Discourse on a new service,but when i run
sudo ./launcher bootstrap app
it always return
Connection timed out
I do not know what happend
#app.yml templates: - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/web.template.yml" - "templates/sshd.template.yml" - "templates/web.ratelimited.template.yml" - "templates/web.china.template.yml" ## which TCP/IP ports should this container expose? expose: - "5257:80" # fwd host port 80 to container port 80 (http) - "2222:22" # fwd host port 2222 to container port 22 (ssh) env: LANG: en_US.UTF-8 ## TODO: How many concurrent web requests are supported? ## With 2GB we recommend 3-4 workers, with 1GB only 2 UNICORN_WORKERS: 2 ## ## TODO: List of comma delimited emails that will be made admin and developer ## on initial signup example 'user1@example.com,user2@example.com' DISCOURSE_DEVELOPER_EMAILS: 'qingxp9@gmail.com' ## ## TODO: The domain name this Discourse instance will respond to DISCOURSE_HOSTNAME: 'geek.acmclub.cn' ## ## TODO: The mailserver this Discourse instance will use DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org # (mandatory) DISCOURSE_SMTP_PORT: 587 # (optional) DISCOURSE_SMTP_USER_NAME: xxx # (optional) DISCOURSE_SMTP_PASSWORD: xxx # (optional)
error:
I, [2014-12-03T09:37:22.967684 #47] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' [187] 03 Dec 09:37:35.200 * 10 changes in 300 seconds. Saving... [187] 03 Dec 09:37:35.202 * Background saving started by pid 18706 [18706] 03 Dec 09:37:35.217 * DB saved on disk [18706] 03 Dec 09:37:35.218 * RDB: 6 MB of memory used by copy-on-write [187] 03 Dec 09:37:35.302 * Background saving terminated with success rake aborted! Errno::ETIMEDOUT: Connection timed out - connect(2) /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.3/lib/seed-fu/runner.rb:46:in `eval' /var/www/discourse/lib/file_helper.rb:17:in `block in download' /var/www/discourse/lib/file_helper.rb:16:in `open' /var/www/discourse/lib/file_helper.rb:16:in `download' /var/www/discourse/app/models/user_avatar.rb:20:in `update_gravatar!' /var/www/discourse/app/models/user.rb:645:in `refresh_avatar' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:424:in `block in make_lambda' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:221:in `call' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:221:in `block in halting_and_conditional' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:215:in `call' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:215:in `call' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `call' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `run_callbacks' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/callbacks.rb:302:in `create_or_update' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/persistence.rb:103:in `save' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/validations.rb:51:in `save' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/attribute_methods/dirty.rb:21:in `save' /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/transactions.rb:268:in `block (2 levels) in save'
Posts: 7
Participants: 2
As Base64 has different implementation in JAVA and Ruby, so I write my implementation here:
<%@ page contentType="text/html; charset=utf-8" %> <%@ page import="org.apache.commons.codec.binary.Base64" %> <%@ page import="org.apache.commons.codec.binary.Hex" %> <%@ page import="javax.crypto.Mac" %> <%@ page import="javax.crypto.spec.SecretKeySpec" %> <%@ page import="java.io.UnsupportedEncodingException" %> <%@ page import="java.net.URLDecoder" %> <%@ page import="java.net.URLEncoder" %> <%@ page import="java.security.InvalidKeyException" %> <%@ page import="java.security.NoSuchAlgorithmException" %> <% response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires", -1); Info info = (Info) session.getAttribute("Info"); if (info == null) { response.sendRedirect("login.html"); return; } String key = "yourssosecret"; String payload = request.getParameter("sso"); String sig = request.getParameter("sig"); if (payload == null || sig == null) { response.getWriter().println("error parameter"); return; } if (!checksum(key, payload).equals(sig)) { response.getWriter().println("checksum failed"); return; } String urlDecode = URLDecoder.decode(payload, "UTF-8"); String nonce = new String(Base64.decodeBase64(urlDecode)); String urlEncode = nonce + "&name=" + URLEncoder.encode(info.name, "UTF-8") + "&username=" + URLEncoder.encode(info.nickname, "UTF-8") + "&email=" + URLEncoder.encode(info.email, "UTF-8") + "&external_id=" + URLEncoder.encode(info.id + "", "UTF-8"); String urlBase64 = new String(Base64.encodeBase64(urlEncode.getBytes("UTF-8"))); int length = 0; int maxLength = urlBase64.length(); final int STEP = 60; String urlBase64Encode = ""; while (length < maxLength) { urlBase64Encode += urlBase64.substring(length, length + STEP < maxLength ? length + STEP : maxLength) + "\n"; length += STEP; } response.sendRedirect("http://yoursite.com/session/sso_login?sso=" + URLEncoder.encode(urlBase64Encode, "UTF-8") + "&sig=" + checksum(key, urlBase64Encode)); %> <%! String checksum(String macKey, String macData) throws NoSuchAlgorithmException, UnsupportedEncodingException, InvalidKeyException { Mac mac = Mac.getInstance("HmacSHA256"); byte[] keyBytes = macKey.getBytes("UTF-8"); byte[] dataBytes = macData.getBytes("UTF-8"); SecretKeySpec secretKey = new SecretKeySpec(keyBytes, "HmacSHA256"); mac.init(secretKey); byte[] doFinal = mac.doFinal(dataBytes); byte[] hexBytes = new Hex().encode(doFinal); return new String(hexBytes); } %>
Posts: 1
Participants: 1
Daniel Hollands wrote:
I'm in the process of gathering together a collection of prizes that I want to use to help promote activity within my community.
I figured, seeing as I want to reward posts of quality (and not just who can post the most spam) it could be based around the number of likes your posts get. I'm thinking that each like one of your posts get, you get a ticket for the prize draw, or maybe the person with the most liked content wins, etc..
This raises a couple of questions:
- How can I find out who has received likes within a specific time frame? (Or maybe, likes made on posts within a specific time frame?)
- Are there any ways in which such a system could be taken advantage of?
Further to this, I'd be interested in hearing what competitions/other methods forum owners have use to promote activity. Cheers.
Posts: 6
Participants: 4
Christopher Bunting wrote:
I am just wondering what kind of importers there are? Can you import from IPB?
Thanks,
Chris
Posts: 2
Participants: 2
Gerhard Schlager wrote:
Steps to reproduce:
- Go to the "New", "Unread" or "Starred" tab. There have to be topics there.
- Look at the bottom. There's an "undefined" visible that probably shouldn't be there.
Posts: 3
Participants: 3
Khoa Nguyen wrote:
Here is an example with this bug:
- We have a default Staff Category (with staff can Create/Reply/See Permission)
- Create a sub-category under default Staff Category with everyone can Create/Reply/See Permission.When a non-staff user see the topic list on the homepage, he/she can see the topic title but not the Category name
Here is what staff can see
When non-staff user click on that topic name:
- Site logo disappears
- Banner topic shows (I dismissed that banner)
- No thing else on that page
Press F5, a blank page show
Posts: 2
Participants: 2
Khoa Nguyen wrote:
I'm using API to create some automatic posts. But I don't know how to find a catergory ID in Discourse.
I have to view the database dump for catergory id
Posts: 4
Participants: 3
Mike Batech wrote:
Hey Everyone,
I'm hoping you can help me out with a problem I'm having. I'm trying to get our department to adopt Discourse for use as a forum/discussion board between research scientists and research support personnel/statisticians. However, our IT department is pushing the idea of using Sharepoint instead.
From what I've seen of the Sharepoint solution they recommend, I find it to be intimidating and difficult to use. So I'm hoping I can enlist your help to better understand if there are any advantages of Sharepoint over Discourse or vice versa?
Thank you and have a great rest of the day!
-Mike
Note: I reposted this from the trial forums because I thought this might be the better place to ask this question. Apologies if there's any overlap or other issues - I'm not the dev type, so please forgive me!
Posts: 6
Participants: 2