Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to change default View Discussions and Categories on %site_name% in HomepageTitle
mye
New
Cannot find how to remove and/or alter default way how HomepageTitle is generating. I want to remove ending "on %site_name%" in all titles.
0
Best Answer
-
peregrine MVP
I don't use the SEO plugin, what happens when you disable it.
you have these settings:
$Configuration['Garden']['HomepageTitle'] = 'Aquastaff.com'; $Configuration['Garden']['Description'] = ''; $Configuration['Garden']['Logo'] = 'NHVUNM5RWIGK.jpg'; $Configuration['Garden']['Title'] = 'Aquastaff.com';
if you want to change
$Configuration['Garden']['Title'] = "";
and modify the All Categories title which will appear.
you can change it via conf/locale.php
<?php if (!defined('APPLICATION')) exit(); $Definition['All Categories'] = "My Category Page";
and you can do the same for other pages.
I don't know which plugin is changing behavior, but if you disable all of them and use the default theme.
you should see Aquastaff.com as the ttile by default.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
you need to post a screenshot. or better explain with specific example. realy hard to figure out what you want and where.
as a wild guess of what you are trying to ask.... I guessed this what you want to change......
the home page title in a tpl based themes in vanilla 2.1.1
in themes/yourthemename/views/default.master.tpl
is like this. you can change the href to waht ever you want.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Sorry. Here is screenshoot
test
HomepageTitle is defined in config.php
$Configuration['Garden']['HomepageTitle'] = 'your homepage title Vanilla 2.1.1';
and via dashboard
dashboard/settings/banner
Hompage Title
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I know that. I want to get rid of ending "on localhost" only. Can't find where it's generated.
what theme are you using? do you have the same issue on default theme or bittersweet. It is not default behavior.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I use bootstrap theme. But that string generated not in theme module. Somewhere in the core
do you have the same issue on default theme or bittersweet.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yes. exactly the same.
my point is - it is not default behavior on vanilla 2.1.1
to throw in "on localhost"
it is based on $Configuration['Garden']['HomepageTitle']
it seems you have altered something or I am missing the boat.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It's the default behaviour. "localhost" is my site name in dashboard/settings/banner
what is the exact value in $Configuration['Garden']['HomepageTitle']
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
there are 3 values that show "titles and descriptions
$Configuration['Garden']['Title'] = 'Vanilla 21 Top Title';
$Configuration['Garden']['HomepageTitle'] = 'Vanilla 21 Home Page Title';
$Configuration['Garden']['Description'] = 'here is my description';
if homepagetitle is blank it uses its own Title
"All Categories" on the categories page, which can be altered via definitions.
here's the code
http://vanillaforums.org/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale#latest
so you are going to have display your config values and state exactly what you want to display.
unless a plugin is altering the way things are displaying, bootstrap works exactly the same way, as does bittersweet. and default theme.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Check my new screenshot
and $Configuration setting works but "on" remain
post your config statements (the 3 I asked) and what "exact words you want" you want, otherwise I surrender.
you don't seem to be answering my questions, for me to effectively help you.
since we are going in circles.
and what version of vanilla are you using?
and what plugins you are using?
have you modified any definitions or has a plugin or theme changed definitions.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I'm sure it's not in config. I want to generate my own title line
`<?php if (!defined('APPLICATION')) exit();
// Conversations
$Configuration['Conversations']['Version'] = '2.1.1';
// Database
$Configuration['Database']['Name'] = 'vanilla';
$Configuration['Database']['Host'] = 'localhost';
$Configuration['Database']['User'] = 'root';
$Configuration['Database']['Password'] = 'root';
// EnabledApplications
$Configuration['EnabledApplications']['Conversations'] = 'conversations';
$Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
// EnabledPlugins
$Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
$Configuration['EnabledPlugins']['Facebook'] = TRUE;
$Configuration['EnabledPlugins']['Gravatar'] = TRUE;
$Configuration['EnabledPlugins']['OpenID'] = TRUE;
$Configuration['EnabledPlugins']['GoogleSignIn'] = TRUE;
$Configuration['EnabledPlugins']['QnA'] = TRUE;
$Configuration['EnabledPlugins']['SplitMerge'] = TRUE;
$Configuration['EnabledPlugins']['VanillaSEO'] = TRUE;
$Configuration['EnabledPlugins']['VanillaStats'] = TRUE;
$Configuration['EnabledPlugins']['Tagging'] = TRUE;
$Configuration['EnabledPlugins']['Analytics'] = TRUE;
$Configuration['EnabledPlugins']['DiscussionPolls'] = TRUE;
$Configuration['EnabledPlugins']['SocialButtons'] = TRUE;
$Configuration['EnabledPlugins']['StopForumSpam'] = TRUE;
$Configuration['EnabledPlugins']['ButtonBar'] = TRUE;
$Configuration['EnabledPlugins']['Emotify'] = TRUE;
// Garden
$Configuration['Garden']['Title'] = 'Aquastaff.com';
$Configuration['Garden']['Cookie']['Salt'] = 'Z2HFEIVL28';
$Configuration['Garden']['Cookie']['Domain'] = '';
$Configuration['Garden']['Registration']['ConfirmEmail'] = TRUE;
$Configuration['Garden']['Registration']['SendConnectEmail'] = '1';
$Configuration['Garden']['Email']['SupportName'] = 'Aquastaff';
$Configuration['Garden']['Email']['SupportAddress'] = 'admin@aquastaff.com';
$Configuration['Garden']['Email']['UseSmtp'] = FALSE;
$Configuration['Garden']['Email']['SmtpHost'] = '';
$Configuration['Garden']['Email']['SmtpUser'] = '';
$Configuration['Garden']['Email']['SmtpPassword'] = '';
$Configuration['Garden']['Email']['SmtpPort'] = '25';
$Configuration['Garden']['Email']['SmtpSecurity'] = '';
$Configuration['Garden']['InputFormatter'] = 'Html';
$Configuration['Garden']['Version'] = '2.1.1';
$Configuration['Garden']['RewriteUrls'] = TRUE;
$Configuration['Garden']['Cdns']['Disable'] = FALSE;
$Configuration['Garden']['CanProcessImages'] = TRUE;
$Configuration['Garden']['SystemUserID'] = '2';
$Configuration['Garden']['Installed'] = TRUE;
$Configuration['Garden']['Theme'] = 'Bootstrap';
$Configuration['Garden']['Html']['SafeStyles'] = FALSE;
$Configuration['Garden']['Analytics']['AllowLocal'] = FALSE;
$Configuration['Garden']['InstallationID'] = '6A75-30940932-DA77A634';
$Configuration['Garden']['InstallationSecret'] = '60b0063faab0be124c12c4ed654ae0d94ed9d240';
$Configuration['Garden']['HomepageTitle'] = 'Aquastaff.com';
$Configuration['Garden']['Description'] = '';
$Configuration['Garden']['Logo'] = 'NHVUNM5RWIGK.jpg';
$Configuration['Garden']['ShareImage'] = 'CV2FZTATHNXX.png';
$Configuration['Garden']['Embed']['Allow'] = FALSE;
$Configuration['Garden']['ThemeOptions']['Name'] = 'Bootstrap';
$Configuration['Garden']['ThemeOptions']['Styles']['Key'] = 'Cerulean';
$Configuration['Garden']['ThemeOptions']['Styles']['Value'] = '%s_cerulean';
$Configuration['Garden']['Format']['Hashtags'] = FALSE;
// Plugins
$Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
$Configuration['Plugins']['GettingStarted']['Categories'] = '1';
$Configuration['Plugins']['GettingStarted']['Plugins'] = '1';
$Configuration['Plugins']['Facebook']['ApplicationID'] = '921340517934822';
$Configuration['Plugins']['Facebook']['Secret'] = 'c98c489086535ef914bd38ba7a15d6d5';
$Configuration['Plugins']['Facebook']['UseFacebookNames'] = '1';
$Configuration['Plugins']['Facebook']['SocialReactions'] = '1';
$Configuration['Plugins']['Facebook']['SocialSharing'] = '1';
$Configuration['Plugins']['StopForumSpam']['UserID'] = '3';
$Configuration['Plugins']['SEO']['Enabled'] = TRUE;
$Configuration['Plugins']['DiscussionPolls']['EnableShowResults'] = '1';
$Configuration['Plugins']['DiscussionPolls']['DisablePollTitle'] = FALSE;
// Preferences
$Configuration['Preferences']['Email']['ConversationMessage'] = '1';
$Configuration['Preferences']['Email']['AddedToConversation'] = '1';
$Configuration['Preferences']['Email']['BookmarkComment'] = '1';
$Configuration['Preferences']['Email']['WallComment'] = '1';
$Configuration['Preferences']['Email']['ActivityComment'] = '1';
$Configuration['Preferences']['Email']['DiscussionComment'] = '1';
$Configuration['Preferences']['Email']['Mention'] = '1';
// Routes
$Configuration['Routes']['DefaultController'] = array('categories', 'Internal');
// Vanilla
$Configuration['Vanilla']['Version'] = '2.1.1';
$Configuration['Vanilla']['Categories']['Use'] = TRUE;
$Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3';
$Configuration['Vanilla']['Categories']['DoHeadings'] = '1';
$Configuration['Vanilla']['Categories']['HideModule'] = '1';
$Configuration['Vanilla']['Categories']['Layout'] = 'modern';
$Configuration['Vanilla']['AdminCheckboxes']['Use'] = TRUE;
$Configuration['Vanilla']['Discussions']['Layout'] = 'modern';
$Configuration['Vanilla']['Comments']['AutoOffset'] = TRUE;
// Last edited by mye (127.0.0.1)2014-09-02 16:48:03`
I don't use the SEO plugin, what happens when you disable it.
you have these settings:
if you want to change
$Configuration['Garden']['Title'] = "";
and modify the All Categories title which will appear.
you can change it via conf/locale.php
and you can do the same for other pages.
I don't know which plugin is changing behavior, but if you disable all of them and use the default theme.
you should see Aquastaff.com as the ttile by default.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
THANK! That's it!!!!!!!