Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Remove username showing in news

Asked Modified Viewed 1,383 times
Q
quiki
Q
quiki 10
  • Member, joined since
  • Contributed 171 posts on the community forums.
  • Started 41 threads in the forums
  • Started this discussions
asked
Member

I want to remove who posted news like: quiki on September....
How can I change that?
0 replies

5 posts

F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Check your theme´s theme.php in the function render_news(
most often it is in the newsposter($info," ·")
simply remove it.
0 replies
Q
quiki
Q
quiki 10
  • Member, joined since
  • Contributed 171 posts on the community forums.
  • Started 41 threads in the forums
  • Started this discussions
answered
Member

Ok, nice, thx Domi :)
0 replies
— 1 month later —
N
nic
N
nic 10
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
answered
Newbie

Found this thread in a search. Removing it removes the name and the date/time. Is it possible just to remove the name?
0 replies
R
Rimelek
R
  • Senior Member, joined since
  • Contributed 301 posts on the community forums.
  • Started 23 threads in the forums
answered
Senior Member

Everything is possible :) You can copy the newsposter function from includes/theme_functions_include.php into theme.php. Rename it to newsdate and remove the username related parts

The new function:
function newsdate($info, $sep = "") {
   $res = showdate("newsdate", $info['news_date']);
   $res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
   return "<!--news_poster-->".$res;
}


Then replace the line in render_news which contains the newsposter.

from
echo newsposter($info," &middot;").newscat($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);

to
echo newsdate($info," &middot;").newscat($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
Edited by Rimelek on 08-11-2014 00:46,
0 replies
N
nic
N
nic 10
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
answered
Newbie

thanks :G , will try that

(edit)
worked great I also did similar for articleposter and that works too.


(its all for a local cemetery friends group as we post news and newsletter articles so there is only me adding content that others email me. The site's been running Mambo but opted for php-fusion over Joomla)
Edited by nic on 08-11-2014 14:36,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
Q
Q
quiki 10
  • Member, joined since
  • Contributed 171 posts on the community forums.
  • Started 41 threads in the forums
  • Started this discussions
R
R
  • Senior Member, joined since
  • Contributed 301 posts on the community forums.
  • Started 23 threads in the forums
N
N
nic 10
  • Newbie, joined since
  • Contributed 2 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet