First time here? Check out the FAQ!

luckystar1992's profile - activity

2023-12-28 21:33:18 -0500 received badge Notable Question (source)
2023-12-28 21:33:18 -0500 received badge Popular Question (source)
2020-02-18 19:29:16 -0500 received badge Notable Question (source)
2018-03-24 09:16:45 -0500 received badge Popular Question (source)
2018-03-24 09:16:45 -0500 received badge Famous Question (source)
2018-03-24 09:16:45 -0500 received badge Notable Question (source)
2017-10-14 21:33:22 -0500 received badge Popular Question (source)
2016-10-06 06:45:37 -0500 received badge Notable Question (source)
2016-09-05 22:23:40 -0500 received badge Popular Question (source)
2016-09-01 04:17:31 -0500 received badge Famous Question (source)
2016-08-16 16:03:01 -0500 received badge Popular Question (source)
2016-07-29 12:41:32 -0500 received badge Notable Question (source)
2016-07-29 12:41:32 -0500 received badge Famous Question (source)
2016-07-29 12:41:32 -0500 received badge Popular Question (source)
2016-07-29 12:41:23 -0500 received badge Nice Answer ( source )
2016-07-29 01:32:14 -0500 received badge Famous Question (source)
2016-07-23 01:59:23 -0500 received badge Teacher ( source )
2016-07-23 01:59:23 -0500 received badge Necromancer ( source )
2016-07-23 01:30:53 -0500 answered a question View all "community-wiki" questions on an askbot site?

There's not a valued configuration can achieve your target, but you can edit your source code with this method:

the main question query code are in askbot.views.readers.py file and in the questions(request, **kwargs) function , it get the queryset from this line -- qs, meta_data=models.Thread.objects.run_advanced_search(**). so, we can tell some query parameters are set in the run_advanced_search function,  go into this function and you can find the primary_filter dict, add your self configuration to this query dict--may like this:

before

primary_filter = { 'posts__post_type': 'question', 'posts__deleted': False }

after

primary_filter = { 'posts__post_type': 'question', 'posts__deleted': False, 'posts__wiki':True, } be carefully, between the post and wiki , it is a double underline.

I have tested in my development code, and hope it can help you.

2016-07-23 01:06:39 -0500 received badge Scholar ( source )
2016-07-23 01:06:21 -0500 answered a question question reedit bug

it seems not a bug, but I don't know the reason. If you review the askbot.models.post.py about 2132 lines, the function _question__add_revision(), it returns a PostRevision instance, and the parameters title and tagnames from self.thread. so the new edit version's title and

2016-07-21 08:44:35 -0500 commented question question reedit bug

in the post.py source file, about 2085 lines, a function named `apply_edit(self, *args, **kwargs)` is the main code of question revision. it annotation says "the question apply edit function is backwards:" and the ` __apply_edit()` use the thread title and tagnames but the new text.

2016-07-21 02:04:57 -0500 asked a question question reedit bug

I found some unusual when re-editting a question. After clicking the re-edit button, a new page with a <select> will show, and in this <select> list, it contains all the revisions, assuming I have only one history version,the <select> list will have only one version. but I want edit the second version. and when I edit the question, this question have 2 versions and when I edit it for the third time, the second history revision's title and tags shows the first revision's title and tags. In the database table askbot_postrevison, the question's title and tags is really the last one's tags and title. If it is a bug? and how to fix it?


after debug the source code. I found something wrong.

in the post.py source file, about 2085 lines, a function named apply_edit(self, *args, **kwargs) is the main code of question revision. it annotation says "the question apply edit function is backwards:" and the __apply_edit() use the thread title and tagnames but the new text.


in order to everyone can checking this 'bug', I have made this question community wiki, you can change this revision and reedit it

2016-07-21 00:36:00 -0500 asked a question how to start multi sites in one server?

I want to start more than one sites in my server with different sub-domain.

like this:

math.domain.com is a math site for math discussion, and english.domain.com is another domain for english learning. If there is an original configuration in askbot, or I need other way for this.

thx

2016-07-20 23:17:24 -0500 asked a question this is a test, for the question reedit version

verson2verson2verson2verson2verson2verson2verson2

2016-03-08 09:12:12 -0500 received badge Notable Question (source)
2016-01-22 01:27:55 -0500 received badge Famous Question (source)
2016-01-22 01:27:55 -0500 received badge Popular Question (source)
2016-01-17 20:19:51 -0500 received badge Famous Question (source)
2016-01-04 07:38:15 -0500 asked a question how can I test all the module and admin function during my developing

I want to change all the skin and some page can not show or some advance function need a high karm. Is there an easy way that I can test all the pages. thanks!

2016-01-04 07:38:14 -0500 asked a question user-details table may have a small bug

when I browse someone's profile. An update profile link will be showed even I am not a administrator or a moderator. I think I you can cut it down. or tell me why shows in others profile page.

2015-12-16 09:42:25 -0500 received badge Student (source)
2015-12-16 09:41:31 -0500 received badge Popular Question (source)
2015-12-16 09:41:18 -0500 received badge Famous Question (source)
2015-12-16 09:41:16 -0500 received badge Famous Question (source)
2015-10-22 18:20:58 -0500 received badge Notable Question (source)
2015-10-10 06:41:27 -0500 received badge Notable Question (source)
2015-09-16 03:44:49 -0500 received badge Famous Question (source)
2015-09-16 03:44:49 -0500 received badge Popular Question (source)
2015-09-04 09:53:24 -0500 asked a question change cookie path

askbot set the cookie path as ''/", So when I change the path in settings.py using SESSION_COOKIE_PATH="/index"and askbot can not work when i login. I want to develop 2 askbot in different port like this: http://www.example.com:8000 ----this is the math askbot http://www.example.com:8080 ----this is the tex askbot if their cookies can not separate in two different path , one login cookie will be covered by another, so how can I change that. thanks a lot.

2015-07-28 01:48:39 -0500 commented answer virtualenv uwsgi Nginx

but I used virtualenv as a virtual environment.

2015-07-24 09:15:01 -0500 asked a question virtualenv uwsgi Nginx

can askbot develop with virtual uwsgi & Nginx. if it can, does someone teach me how to do. thanks

2015-07-06 00:42:55 -0500 asked a question where is the User model

in the model module init.py file I find some code like this: User.add_to_class('gravatar', models.CharField(max_length=32)) what does this mean.

Where is the real User model. If I want to add some column in the model User, How can I do it?

thx

2015-07-02 09:00:47 -0500 asked a question mathJax can't working at question page

I enable the MathJax and it words very well in the question-asking page , it can preview the rendering math picture. But it can not work at the question page, it presents the original characters.

MathJax enbale link: askbot.org/en/question/2584/does-math-like-f-x-e-x-work-on-askbot/ askbot.org/en/question/6769/best-way-to-customize-the-mathjax-settings-in-askbot/ askbot.org/en/question/6760/how-to-enable-mathjax-on-the-hosted-by-askbotcom-website/

2015-06-22 03:24:22 -0500 asked a question repute karma badge vote points

why we use karma to replace reputation? Is it a traceable record like a log file? repute == karma? and what points is, some action like vote needs at least 5 points, so what point is and the relationship with repute and karma. badges are more like a user levels in some games.