TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 340
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 228
  • Total: 228

changing Author in Articles

Started by daneth, May 07, 2009, 12:40:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daneth

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

JPDeni

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.

Ianedres

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...

daneth

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

This website is proudly hosted on Crocweb Cloud Website Hosting.