Re: edit Blog-Author

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 3.10.2005 15:48 Uhr, Matthias Dieke wrote:
> Hi,
> 
> Christian Stocker wrote:
> 
>>
>> On 29.9.2005 22:56 Uhr, Matthias Dieke wrote:
>>
>>> Hi,
>>>
>>> when I make a blog post I like to use text-field for the author. Some
>>> times I want to use a authorname which isn't a user in Flux CMS.
>>>
>>> I edit "blogpost.xml" and replaced the author-dbform-element with a
>>> dbform-text-element  <dbform:field name="post_author" type="text"
>>> descr="Author" />
>>>
>>> I cleared the cache. When I "Make a new Blog post" I didn't get a
>>> text-field for the author. There is still the logedin user shown.
>>
>>
>>
>> This (blogpost.xml) is for the blogposts editor available over
>> "Bookmarks" -> Blogposts. There you should be able to change the author.
>> That's the normal dbforms(1) interface
>>
>> For the "normal" blog editor you have to change bx/editors/blog/post.xsl
>> (and maybe others stuff, didn't look deeply into it :) )
>>
> 
> The post.xsl is the right place to build up a input-field. I didn't know
> much about your blog-implementation. In wich file the sql-insert-query
> is send???
> 
> The problem is, when I enter a username always so the name of the
> logged-in user will be stored to the db. I had a look to
> "inc/bx/editors/blog.php", it seams that there a xml-file is builded
> with all data of the blog-entry. But I didn't find the right place where
> the authorsname is stored.
> 
> As you see I need some more infos ;)

Yeah, the blog code is quite scattered around. It's actually set in
bx/streams/blog.php in the function  insertEntry line 227.

$post->author = bx_permm::getInstance()->getUsername();

And it's totally missing in updateEntry, you'd have to add it there, as
well.

HTH

chregu

> 
> Thanks.
> 
> Matthias
> 
> 
> 
> 
>> chregu
>>
>>
>>
>>> How can I use a text-field for the author?
>>>
>>> Thanks for help.
>>>
>>> Matthias
>>
>>
>>

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.