TinyPortal

Development => Support => Topic started by: daneth on May 07, 2009, 12:40:28 PM

Title: changing Author in Articles
Post by: daneth on May 07, 2009, 12:40:28 PM
I am running on
TinyPortal v1.0 beta 3
SMF 1.1.8

I know that their is a bug with the articles submission in TP 1 B3 and I have not been abul to find a fix for it yet so I am doing it the old fashion way and using a email form to have users submit articles

what I would like to know is if their is a way to change who the author is with TP with out having to delve into the depths of the code/database
and if not is this a planed feature for the next release?

thanks for any help
Title: Re: changing Author in Articles
Post by: JPDeni on May 07, 2009, 01:33:53 PM
Quote
what I would like to know is if their is a way to change who the author is with TP with out having to delve into the depths of the code/database
and if not is this a planed feature for the next release?

In answer to your questions, No and Yes.

It was listed by several people in the "What do you want to see in TP" topic and Bloc specifically mentioned it in his plans for the future.
Title: Re: changing Author in Articles
Post by: Ianedres on May 07, 2009, 05:59:18 PM
You could enter this query directly into SQL utilities:
UPDATE smf_tp_articles SET authorID = '2' WHERE id = '25';

The 'smf_tp_articles' is your articles table, using the SMF default table name prefix of 'smf'. Substitute your prefix in front of 'articles' if you didn't use the defaults.

The query changes the 'authorID' to member ID #2 but only for the article with the 'id' of 25. Change out the respective numbers accordingly for your site.

If you were to use something such as phpFlashMyAdmin as an interface, you could view rows of articles and make the changes easily. It is a great utility to have on hand for such things, as well as provides other features that make interaction with the database much more easy and not so scary. ;)

You will still have to turn on displaying the author in the article's options.

This is a quick and dirty way to change the authors around; more than a few may become tedious. It doesn't check whether the new author's ID is valid either...
Title: Re: changing Author in Articles
Post by: daneth on May 07, 2009, 10:48:06 PM
thanks for the info JP

@ Ianedres: I will try that out with my test site I use phpmyadmin for all my DB editing needs but I will look in to phpFlashMyAdmin. I dont mind rooting around in the DB to much but as you said it can become tedious.

my curant means of giveing credit is to just add a sumbited by line to the articles