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,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

tp for cms ... a discussion!

Started by ed_m, March 04, 2008, 11:57:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ed_m2

starting to copy selected articles across today.

ed_m2

ok.. afer toying with the text->tables script i figured i best get on with my own.

HELP...

i have it copying an article into TP.
it strips nasty characters out of the title, intro & text and squirts them into the TP articles table ok.

i've manually moved it into the right category for now, it is set as active by default.
but doesnt show in the category listing, or  display from a direct url.
http://www.ultrarunner.co.uk/forum/index.php?cat=22
http://www.ultrarunner.co.uk/forum/index.php?page=16

error given is:
QuoteThe article isn't active, hasn't been approved yet, or simply does not exist.

it IS active..... but i'm not familiar with what field 'approves' an article.
anything else i'm missing ?

cheers, ed.

JPDeni

There's the "approved" field, which has to be set to 1 and the "off" list, which has to be set to 0.

ed_m2

these flags dont seem to exist in the admin interface for articles ?
either on the article view or the options page.

either way in phpmyadmin these are both set correctly.

the copied article seems to have a few empty fields, not sure if this is allowed.

ed_m2

aha bingo.... author id = 0 is not valid... even if author contains a value.

ed_m2

ah ok... looks like author id has to be a valid user id.

JPDeni


ed_m2

hmmmm yes its logical, i guess the check is there to stop broken links to profiles.

but obviously none of my current article's authors exist as users at present, and often i'll be entering the articles and putting somebody else's name as the author.
(which at present means modifying the database).

on the plus side it handles linking a different author's name to my profile ok.

G6Cad

Is this a discussion or support thread for some thing else ?  Im pretty lost right now  ???

ed_m2

just talking to myself really.

somewhere earlier on it was mentioned about sharing the code etc. so i'm just keeping anyone that cares updated.

i did question where this should be now but no one answered so i'm carrying on :)

This website is proudly hosted on Crocweb Cloud Website Hosting.