First time here? Check out the FAQ!

DominiCattus's profile - activity

2021-07-25 10:58:52 -0500 received badge Notable Question (source)
2017-02-23 20:01:57 -0500 received badge Popular Question (source)
2016-01-16 17:35:11 -0500 received badge Notable Question (source)
2016-01-08 05:04:38 -0500 received badge Popular Question (source)
2015-10-05 10:58:33 -0500 marked best answer Overlapping heading messages in russian translation

Hi!
First of all I wanna thank you very much for this great software! Really beautiful work!
I have a problem with overlapping messages (javascript?) in the russian translation, you can see it on the picture:
image description

I have shortened "Упорядочить по" to "сортировать", but it doesn't help, you can see that it overlaps with "закладки" and "RSS-канал" with "by votes". Another overlapping is in user profile, "подписки по email | модерация" covering "обновить профиль | управление методами". Can I fix it myself? If so, when to look into? :) And how can I translate "by date" and others sorts, I didn't find it in django.po.
The second question is - if I cloned code from github to update askbot version, should I run startforum again and will it rewrite my configuration files?

P.S. Have you some wiki page? I'm running askbot on nginx-uwsgi-virtualhost-virtualenv-multiple sites and it took a some time to found right configuration, so I'd like to share it.
Thank you very much for askbot!

2015-02-08 15:32:08 -0500 received badge Famous Question (source)
2013-09-10 11:13:15 -0500 received badge Famous Question (source)
2013-08-10 17:01:40 -0500 received badge Famous Question (source)
2013-08-10 17:01:40 -0500 received badge Popular Question (source)
2012-12-03 07:05:15 -0500 received badge Famous Question (source)
2012-06-23 23:16:39 -0500 received badge Famous Question (source)
2011-08-09 13:47:53 -0500 commented answer multiple instances
Is this feature in TODO?
2011-08-09 13:47:53 -0500 received badge Commentator
2011-08-03 06:17:09 -0500 commented answer footer links to social networking sites and link to tags
And h2 seems to be very big for this :) Maybe h3 or just bold?
2011-08-03 06:12:56 -0500 commented answer footer links to social networking sites and link to tags
when using "iriencode" I got a template error "no filter named iriencode". Changing it to urlencode sovles the problem.
2011-07-25 03:57:58 -0500 commented answer FAQ to settings
Thanks! I'll try to merge it to my code.. About hooks - it will be nice, but sure is not critical now. )
2011-07-25 03:56:46 -0500 marked best answer FAQ to settings

Okay, that was easy... not sure if Evgeny will accept the exact solution, but here's what I did for the faq:

  1. moved faq.html to faq_static.html
  2. created new faq.html similar to about.html (i.e. dynamic)
  3. added faq section to settings->flatpages
  4. edit meta.py to check for FORUM_FAQ setting. If doesn't exist, load faq_static, otherwise load FORUM_FAQ content:
if getattr(askbot_settings, 'FORUM_FAQ',''):
    return render_into_skin('faq.html', data, request)
return render_into_skin('faq_static.html', data, request)

next stop, custom header :)

2011-07-23 02:34:52 -0500 received badge Good Question (source)
2011-07-22 10:57:14 -0500 received badge Nice Question (source)
2011-07-21 10:04:26 -0500 asked a question FAQ to settings

Could FAQ be moved to settings?
Sometimes there's need to customize it, some points should be removed, some added. There's possibility to change the source code, but I update the source from git, and would prefer to have it editable in settings.

Another question - how can I add my links to header of template? (Like here: "Home Documentation Contact us"). There's customizable footer in settings, but no header.

2011-07-21 09:57:32 -0500 asked a question Vkontakte authorization

Is it planned support for Vkontakte authorization in future? (Or "odnoklassniki"? :) )

2011-07-20 19:45:37 -0500 commented answer cookie domain-subdomain
Yeah.. Seems that it will be the final solution for this )) If using askbot as app, that's OK.
2011-07-20 07:31:27 -0500 commented answer cookie domain-subdomain
You're right. Looks like sessions conflict each with other. Any clue what can cause it? django_session is uniq table in DB that two sites use. Maybe caching sessions settings break the things here..
2011-07-15 01:40:42 -0500 commented answer cookie domain-subdomain
No, doesn't help unfortunately. I see that both sites have cookie ".maindoman.com", share the same session_id, just askbot site have also askbot_csrf cookie, and csrf_token that points to "maindomain.com" without dot. When I log in to one site, the other doesn't detect it.. When I log in with this user on other site also, he is logged out on the first one. Strange...
2011-07-14 03:36:39 -0500 asked a question cookie domain-subdomain

Hi all!
I've deployed askbot on subdomain and I have another django application (blogs) that runs on main domain. Both share the same database, so users are registered and logged in only with askbot.
But now I want users that logged in on subdomain will be "logged in" on main domain automatically, and vice versa of course.
I added SESSION_COOKIE_DOMAIN = 'maindomain.com' to both askbot and blogs, but it doesn't help. What is common solution for this?
P.S. Tow applications are different django instances that everyone in its own virtualenv with own 'settings.py' file. Thanks!

edit:
Configs are same for two sites:

CACHES = {
'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
        'KEY_PREFIX': 'production'
           }
    }
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

#SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
SESSION_COOKIE_DOMAIN = '.domain.org'
SESSION_COOKIE_NAME = "sesid"

I've tried various session engines, but seems that problem is not here..

2011-06-16 12:43:08 -0500 received badge Nice Question (source)
2011-06-16 04:22:59 -0500 asked a question Unicode error

Hi!
I have an unicode error when using user with Cyrillic name and going to Profile -> Email subscriptions.
The traceback:

Environment:


Request Method: GET
Request URL: http://ask.jungland.org/users/4/reguliator/?sort=email_subscriptions

Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.humanize',
 'django.contrib.sitemaps',
 'askbot',
 'askbot.deps.django_authopenid',
 'south',
 'askbot.deps.livesettings',
 'keyedcache',
 'robots',
 'django_countries',
 'djcelery',
 'djkombu']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
 'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
 'askbot.middleware.cancel.CancelActionMiddleware',
 'askbot.deps.recaptcha_django.middleware.ReCaptchaMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'askbot.middleware.view_log.ViewLogMiddleware',
 'askbot.middleware.spaceless.SpacelessMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/projects/sites/jungland/src/forum/askbot/views/users.py" in user
  963.     return user_view_func(request, profile_owner, context)
File "/home/projects/sites/jungland/src/forum/askbot/views/users.py" in wrapped_func
  64.         return f(request, profile_owner, context)
File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py" in _wrapped_view
  93.                     response = view_func(request, *args, **kwargs)
File "/home/projects/sites/jungland/src/forum/askbot/views/users.py" in user_email_subscriptions
  882.     logging.debug(get_request_info(request))
File "/home/projects/sites/jungland/src/forum/askbot/utils/http.py" in get_request_info
  44.     info += 'user: %s\n' % request.user

Exception Type: UnicodeDecodeError at /users/4/reguliator/
Exception Value: 'ascii' codec can't decode byte 0xd0 in position 6: ordinal not in range(128)

The user is actually named Регулятор. Actually this happens only if you are logged in as Регулятор and go to YOUR subscriptions. if you are logged as other user, it's OK.

2011-06-06 15:59:55 -0500 commented answer No link for user profile
OK, I don't know how to fork only one file, so I've forked all project )) You can find it on https://github.com/xist/askbot-devel-rulocale - there are askbot/locale/ru/LC_MESSAGES/django.* files with russian fixes. I'll continue to update it, cause it lacks some translations.
2011-06-02 01:43:41 -0500 received badge Supporter ( source )
2011-06-02 01:43:37 -0500 marked best answer No link for user profile

Fixed in the repo. It was just an incorrect translation, the url should be taken into a <a> tag.

Now the entry in askbot/locale/ru/LC_MESSAGES/django.po looks like so:

#: skins/default/templates/question.html:322
#, python-format
msgid ""
"You can always adjust frequency of email updates from your "
"%(profile_url)s"
msgstr ""
"(в своем профиле, вы можете настроить частоту оповещений по "
"электронной почте, нажав на кнопку \"<a href=\"%(profile_url)s\">подписка"
" по e-mail</a>\")"

The Russian translation needs some work, if have some time for it, would be super, I'll merge your fork on the github.

2011-06-02 01:36:29 -0500 commented answer No link for user profile
NP. Actually I've changed the translation already. How do you prefer I'll fork it? Beside of this I've removed slug translations (questions-voprosy) and so tags filtering work now in russian.
2011-06-01 12:02:05 -0500 asked a question No link for user profile

When question is asked there's a :

Информировать один раз в день, если есть новые ответы (в своем профиле, вы можете настроить частоту оповещений по электронной почте, нажав на кнопку "подписка по e-mail" - /users/1/lupus/)

Can't turn /users/1/lupus/ to link to this page. Maybe something wrong with settings..? (It doesn't depend on localization, I've checked english version - it's the same)

2011-05-30 17:40:10 -0500 received badge Editor ( source )
2011-05-30 17:39:22 -0500 commented answer How to setup AskBot with virtualenv?
Actually, you can contribute your Apache configs to this wiki article, so there will be various implementations.
2011-05-30 06:20:50 -0500 received badge Teacher ( source )
2011-05-30 02:33:52 -0500 answered a question How to setup AskBot with virtualenv?

I've created wiki page about it, askbot with virtualenv, uwsgi, nginx, everything on single IP with uwsgi and nginx as virtualhosts. Please feel free to add and correct :)

http://askbot.org/wiki/index.php/Askbot_on_VirtualHost

2011-05-16 11:13:06 -0500 marked best answer Overlapping heading messages in russian translation

Thanks, yes this problem exists with a few languages. The words just do not fit into the width of the screen with the default style sheet.

Part of the solution can be to adjust the css file:

askbot/skins/default/media/style/style.css

Maybe it is possible to find shorter words too.

I have just rebuilt the Russian django.po file (and pushed to github), but it does need some cleanup. Here is some help on language translations.

There are some translations in the file askbot/skins/default/media/js/i18n.js, should be transitioned to djangojs.po - on todo list.

2011-05-16 11:13:05 -0500 received badge Scholar ( source )
2011-05-16 01:30:34 -0500 received badge Student (source)