HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Howdy Stranger and bottom description location!
AlbinJakupi
New
in Tutorials
I saw someone asking where is located the Howdy Stranger title ?
The Howdy Stranger title is located in APPLICATIONS/DASHBOARD/VIEWS/MODULES/GUEST.PHP LINE 3
And the bottom howdy stranger description is located in APPLICATIONS/DASHBOARD/MODULES/CLASS.GUESTMODULE.PHP LINE 17
Hope i helped you.
1
Comments
You should use locale definitions rather than modifying core files. In this example, placing the following in your
/conf/locale.php
file will override the guest module text:This is the preferred method for modifying translatable text.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yes, but i shared other method.
Yes but we want to discourage the other method.
grep is your friend.
You can get to France from the UK using the Eurostar train service.
You can also swim there.
They are both methods that achieve the end goal, but I'd only advise using one of them.
If the one who asked the question wanted to look at the source code in order to study it, your answer is the better one.
If he wanted to translate something, he would be thankful for @hgtonight s answer on the long run.
I always dislike it when someone asks"How can I change this?" and the answer is something like "Why do you want to do this? Do that!" So I think your answer is okay, but it is not complete. Adding @hgtonight s advice makes it more helpful.
Yes , it's sure the @hgtonight 's answer is good but i shared another method i said anyone who want just translate it can use @hgtonigt method but and my method is good and simple too.
Sorry you are plain wrong. You not edit core file except if you wish to maintain a fork, and then you can publish documentation for it and host support forum for that rather then on vanillaforums.org
What you can do is copy views to you theme to change, though only if it is really necessary as this has some pitfalls too.
hgtonight provided the correct way to do it, you way is not the correct way as it will be wiped with updates.
grep is your friend.
As @x00 said: your way is okay as long as you will never update to official sources again. I can hardly imagine that this will be the case for anyone.
--
grep is your friend.
Another problem (if I understand this) is that if you update the core, when you update it with a new version of Vanilla, you have to go back and make the changes again.
Absolutely correct!
This is great and works if you just want to change the text, but what if you want to remove it all together? I tired setting the values to
null
, but that still left behind the HTML wrappers, like<h4></h4>
.To remove it simply leave only apostrophe
$Definition['Howdy, Stranger!'] = '';
If you want to remove the guest module all together put this in the config.php
$Configuration['Garden']['Modules['ShowGuestModule']=FALSE;
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Actually, looks like I posted too soon.
I was able to solve my own issue by simply copying the
guest.php
fromapplications/views/modules/guest.php
into my custom theme:themes/mytheme/views/modules/guest.php
Then I was able to simply edit my theme specific
guest.php
file and remove the text from above the buttons. So my local file now looks like:Now this view file overrides the default one.
You could also just add those buttons as a module and not display the guest module.If you are using 2.1 , you can disable the Guest module in config.php and then
The main style is hiding the me box sign in and register links
Add to your custom.css this, if it does not work you will need to change that in the main stye in the applications/dashboard/design/style.css ,by removing the !important from it. Then the links will show.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Good to know, but in my case I want the module, but I'm moving it to a different location in my theme.
Another great idea and I actually tried this first, but I couldn't find good documentation on how to build and implement a custom module for my theme. Do you have a link to a good resource?
wiki
http://vanillaforums.org/discussion/comment/197947#Comment_197947
http://vanillaforums.org/discussion/comment/183549/#Comment_183549
themehooks
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Look at the GuestBigButton plugin. Also the FeedEk plugin would work, just replace the html in the module for the sign in and register. And rename the entire plugin.
You can clone it and call it signinmodule or something and instead of loading the newdiscussion module, you would put the links to sign in and register.
It is very simple as I found out recently and went on a module creation binge. A module is just a widget .
The content you want to echo goes in the class.yourmodule.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
So simple and easy. Thanks
How to change 'Announcement' to some other texts like 'Featured'. Your method is best for beginners like me.