Topic: Adding some data to my news

Hello,

I want to add some additional data to my news with new fields at the backend - e.g. under the title-field.

I tried to modify the "Add News" and "Editing News" Page with this https://cutephp.com/forum/index.php?showtopic=32318  hack.
But its not really working since the data don't apear on my news. At least a new field apeard on the "adding" and "editing" page.

Do you have an idea how to add data to my news with additional fields?

Thank you
Sanny

Re: Adding some data to my news

make sure to have edited the templates with the new tags as well.

Re: Adding some data to my news

Hello,

I want to add some additional data to my news with new fields at the backend - e.g. under the title-field.

I tried to modify the "Add News" and "Editing News" Page with this https://cutephp.com/forum/index.php?showtopic=32318  hack.
But its not really working since the data don't apear on my news. At least a new field apeard on the "adding" and "editing" page.

Do you have an idea how to add data to my news with additional fields?

Thank you
Sanny

I have used that hack alot. There are 4 main files that need editing, all can be located within the /inc/ folder. addnews.mdu, editnews.mdu, massactions.mdu & shows.inc.php
Make sure you have edited all 4 of those, with the info stated within the hack. If you miss one bit it won't work.

If you need anymore help, gimme a shout - I'm available! https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Adding some data to my news

okay, thank you. Imma try it again.
If it doesn't work, I'll try to make some screenshots https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Adding some data to my news

Hey guys,
just tried again to do this with the help of my boyfriend.
He managed to edit the files and he added the fields to my cutenews administration.
So whenever I write a new post or want to edit an existing one, the fields are there.
Problem: They don't save their content.

When I type something in and press "add" it doesn't save. Instead of my text "-title" or "-source" is standing there. The two new datas are called "game-title" and "news-source".
is there a problem with the names or can it be something differrent?

We asked ourselves if it's right so delete the slashes at the end for example in step 1:

fwrite($news_file, "$added_time|$member_db[2]|$title|$short_story|$full_story|$manual_avatar|$nice_category||\n");


to

fwrite($news_file, "$added_time|$member_db[2]|$title|$short_story|$full_story|$manual_avatar|$nice_category|$newdata|\n");


So there would be one missing.
Our code looks like this:

fwrite($news_file, "$added_time|$member_db[2]|$title|$short_story|$full_story|$manual_avatar|$nice_category|$game-title|$news-source|\n");



Hope you can help me.
Thank you!

Re: Adding some data to my news

did nobody this tutorial?
please I really need it QQ