Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
scz
Newbie
Newbie



Joined: Nov 22, 2005
Posts: 2

PostPosted: Tue Nov 22, 2005 10:46 pm Reply with quote

hi guys first of all i loved the the newsletter module nice work! i have a question though on how do i change the {AUTHOR} placeholder because i would prefer to show in my newsletter the name of informant that submitted the news rather than the admin that approved it. thanks in advance guys. Smile

_________________
free articles and submissions 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Nov 23, 2005 9:25 am Reply with quote

Very interesting that I never noticed that before! Scary, isn't it? Laughing

Open up file NW_HNL_MakeNewsletter.php and find around line 112 the following statement:

Code:

$sql = "SELECT sid, aid, title, topic, counter FROM ".$prefix."_stories ORDER BY time DESC LIMIT 0, ". $_POST['news'] ."";


All you need to do is change the "aid" reference to "informant" so that it looks like this:

Code:

$sql = "SELECT sid, informant, title, topic, counter FROM ".$prefix."_stories ORDER BY time DESC LIMIT 0, ". $_POST['news'] ."";


Very good catch and thanks for asking the question. I now have another good fix to make to version 1.3 (currently under development - as soon as I can get my development environment back up and running...)

Regards,
montego

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
scz
Newbie
Newbie



Joined: Nov 22, 2005
Posts: 2

PostPosted: Wed Nov 23, 2005 10:10 am Reply with quote

ill be waiting for that version. Glad to be able to contribute. Very Happy

_________________
free articles and submissions 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Mar 18, 2006 3:02 pm Reply with quote

BTW, this has been fixed in 1.3.x.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch