Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/en/userrel/planet: admin.xml
Date: Mon, 01 Nov 2010 21:48:58
Message-Id: 20101101214853.052F420051@flycatcher.gentoo.org
1 tampakrap 10/11/01 21:48:52
2
3 Modified: admin.xml
4 Log:
5 Update a few things in the admin guide
6
7 Revision Changes Path
8 1.2 xml/htdocs/proj/en/userrel/planet/admin.xml
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml?rev=1.2&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml?rev=1.2&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml?r1=1.1&r2=1.2
13
14 Index: admin.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml,v
17 retrieving revision 1.1
18 retrieving revision 1.2
19 diff -u -r1.1 -r1.2
20 --- admin.xml 18 Oct 2010 17:19:23 -0000 1.1
21 +++ admin.xml 1 Nov 2010 21:48:52 -0000 1.2
22 @@ -1,5 +1,5 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml,v 1.1 2010/10/18 17:19:23 tampakrap Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/userrel/planet/admin.xml,v 1.2 2010/11/01 21:48:52 tampakrap Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide>
29 @@ -174,13 +174,60 @@
30
31 <p>
32 We NEVER delete content from blogs.g.o. What should be done is to set a new
33 -random password at his account. (Super Admin -> Users)
34 +random password at his account, and disable comments for every post. For the
35 +first go to Super Admin -> Users. Below is a python script that generates
36 +random strings:
37 </p>
38
39 +<pre caption="random password generator in python">
40 +import string
41 +from random import choice
42 +''.join([choice(string.letters + string.digits) for i in range(10)])
43 +</pre>
44 +
45 +<p>
46 +To disable the comments in all posts, ask an infra guy to run the following
47 +SQL command (blog ID can be found under Super Admin -> Sites):
48 +</p>
49 +
50 +<pre caption="Disable comments in all posts of a specific blog">
51 +UPDATE wp_ID_posts SET comment_status='closed', ping_status='closed' WHERE comment_status='open' OR ping_status='open';
52 +</pre>
53 +
54 <impo>The above actions should be taken either by a user request, or when
55 the planet team is CC'd at a developer retirement bug</impo>
56
57 </body>
58 </section>
59 </chapter>
60 -</guide>
61 \ No newline at end of file
62 +<chapter>
63 +<title>Updating plugins/themes in wordpress</title>
64 +<section>
65 +<title>Adding a new plugin/themes</title>
66 +<body>
67 +
68 +<p>
69 +To add a new plugin/theme, first commit it in the blogs-gentoo git repo,
70 +and then ask from an infra guy to run git pull in
71 +<c>/var/www/blogs.gentoo.org/blogs-gentoo</c>. For plugins, go to admin
72 +panel go to Plugins -> Plugins and Network Activate it. For themes, go
73 +to Super Admin -> Themes and Enable it.
74 +</p>
75 +
76 +</body>
77 +</section>
78 +<section>
79 +<title>Removing a plugin/theme</title>
80 +<body>
81 +
82 +<p>
83 +To remove a plugin, go to Plugins -> Plugins and deactivate it. To remove
84 +a theme, go to Super Admin -> Themes and Disable it. Then, remove the
85 +plugin/theme from the git repository and ask from an infra guy to update
86 +the clone on the server. Finally, verify it is removed completely.
87 +</p>
88 +
89 +</body>
90 +</section>
91 +</chapter>
92 +</guide>