jayant
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Advanced customization of category archive pagesAre we allowed to do something like:
query_post("cat=1,-2,-3")
So I get back results which belong to atleast cat1 among other but do not belong to cat2 or cat3.
Forum: Fixing WordPress
In reply to: Limit what ‘Contributor’ users see in the admin areaWell the article does not talk about what I said and neither do the plugins listed achieve it. Quote from your article:
Contributers are authors on probation. They can write their own posts and edit them before they are published. When a contributer is done writing and editing their post they can submit it for review. At this point an Editor or Administrator would need to publish the post before it appears on the blog. Once published the contributer looses all privileges with regards to the published post. Contributers cannot manage their own comments. Like Authors, contributers are able to see the titles of all posts including scheduled ones. Contributors can see all comments, including unmoderated ones, but cannot edit any of them.
Just to make it clear again:
Like Authors, contributers are able to see the titles of all posts including scheduled ones. Contributors can see all comments, including unmoderated ones, but cannot edit any of them.
I do not want them to see title of all posts. In the admin area they should only see titles of posts which belong to them. They also not be able to see unmoderated comments.
The article/ plugin do not help in this.
Forum: Plugins
In reply to: New Plugin: Role ScoperI wish to allow registered users to contribute some articles on my blog. The problem is if a contributor user logs in, he presently sees the title of all the drafts, future posts from all the users.
I will want the contributing user to know the count of only his drafts or future posts and not of any other user. I will not want him to even see the title of such posts.
Can this be achieved by this plugin?
This error basically occurs when you have a line like the following in your XML file:
<category domain="tag"><![CDATA[ ]]></category>
Note that all we have in cdata is space(s).
Immediate workaround to this will be to open your XML file in the text editor and to remove that line. (Hint: most text editors have a replace all functionality)
How that line came in the exported file is something to be investigated. I do not have access to the place where I exported my blog posts from, so I cannot investigate further on this.
I just got some time to do some debugging:
Basically in one line before we have a call to ‘wp_insert_term’.
This method returns either an array or WP_Error. The return value of this method is being assumed as array only.
I did a var_dump on the object and here is what I got in return:
object(WP_Error)#108006 (2) { ["errors"]=> array(1) { ["db_insert_error"]=> array(1) { [0]=> string(39) "Could not insert term into the database" } } ["error_data"]=> array(1) { ["db_insert_error"]=> string(28) "Duplicate entry '' for key 2" } }
I am investigating further for the bug-fix.
Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] Feature Request: Split Sitemapsthats actually quite easy to achieve…
we can use a bucket scheme:-
suppose i have a setting that each sitemap should contain only atmost 2000 posts.
we decide which sitemap the post goes to based on its post-id:
int($post->id/2000)there maybe some posts that dont exist and hence the sitemap may contain less than 2000 urls, but that should be fine i think.. as it makes things/ calculations easier,
when the user changes the setting for the max number of url per sitemap, we rebuild all the sitemaps.
one of the blogs i have is since 1999 (one of the earliest blogs) and has more than 200,000 blog posts.
if you need help implementing this feature, i will be happy to help.
Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] BUG: Sitemap Generator stops in betweenno errors in debug mode.. it just stops..
Forum: Fixing WordPress
In reply to: Auto approve self pings, no limit on self pingsany one knows of any plugins/ hacks that do this?
i am also getting the same error..
Forum: Themes and Templates
In reply to: Advanced customization of category archive pagesYes the AND operation. Thanks.
I think we need to document this. I cannot find documentation on “get_query_var” or on “category__and”.
Forum: Plugins
In reply to: New plugin – UserextraCannot download this plugin. The SVN for the plugin has no files. Could someone please provide the same?