How to change author's name in CGBlog

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
master3395
Forum Members
Forum Members
Posts: 96
Joined: Mon Mar 30, 2015 7:13 am

How to change author's name in CGBlog

Post by master3395 »

Does anyone know a way to change the author's name in CGBlog? without

1. Changing user
2. Changing tables in database
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: How to change author's name in CGBlog

Post by Rolf »

Add a custom field to the module and use that one for the author name shown in the frontend
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: How to change author's name in CGBlog

Post by paulbaker »

Or: If you want to change the author for all posts, look for this in the summary template (for example):

Code: Select all

{if $entry->author}
	<div class="CGBlogSummaryAuthor">
		{$author_label} {$entry->author}
	</div>
{/if}
and replace {$entry->author} with the new name.

If you want to change for just one person's posts you should be able to do an if-then-else with smarty to display a new name conditionally:
https://www.smarty.net/docsv2/en/langua ... ion.if.tpl
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Locked

Return to “Modules/Add-Ons”