[MOD] News Author E...
 
Notifications
Clear all

[MOD] News Author Edit

4 Posts
3 Users
0 Reactions
3,121 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I made a small change in my code which is not really needed, but I found it of interest and maybe others would too. This takes away the custom user name input and places in your user name instead. I'm considering adding in the profile url later.

Result:

Change in admin/news.php line 60 on mine

<tr><td>"._AUTHOR.": </td><td><INPUT  type="text" class="textbox=" name="author" value="".stripslashes($newsitem['author']).""></td></tr>

to

<tr><td>"._AUTHOR.":</td><td>$userpenname<INPUT type="hidden" name="author" value="$userpenname"></td></tr>

I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 20/03/2007 4:21 pm
(@soundspretty)
Posts: 65
Trusted Member
 

This is really useful. Thanks!


 
Posted : 07/04/2007 11:29 pm
(@tammy)
Posts: 2577
Member Moderator
 

With this change if you edit a news item by another admin you're going to become the author.


 
Posted : 07/04/2007 11:46 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

Ah, well, hmm so the author's name would change upon the edit to me. Yeh that is a problem x_x guess this need work. Thanks for the heads up.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 08/04/2007 6:04 pm
Share: