Support Forum
Hey Jean,
(1) You can remove the 'Home' link from the breadcrumbs directly from the theme itself. If you are running a child of default theme, you will need to edit the spHead.php template. I'm guessing you already have this included in your child theme as you were editing the login / register buttons that are part of this template!
Simply add 'homeLink=' with an '&' as an argument. homeLink allows you to modify it in the theme directly, and using nothing after the equals sign will in turn display nothing. It should then look something like:
sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1&homeLink=', __sp('Home'));
See this codex entry for more info on the function. Just for reference - you can always copy a function in this case 'sp_BreadCrumbs' from the template and paste it into the codex search. 95% of the functions are in the codex and it will give you all the optional arguments to customise the function for your needs.
(2) If you open spForumView.php from the theme templates and scroll down to around line 180, you have a column with the first post info. Here you can remove any part of this you wish. If you specifically want to remove the icon and link to the first post, you can do as we did with the breadcrumbs and add '&icon=' so it will then look something like:
sp_TopicIndexFirstPost('iconClass=spIcon spRight&nicedate=1&date=0&time=0&stackdate=0&icon=', __sp('First Post'));
(3) Well this icon simply means 'no access'. I'm not sure without looking into it further how easy it would be to change these instances to text if at all possible, but you can certainly change the icon. See in your forum folder forum-themes > default > images. If you don't have anything in the folder due to the child theme, you can copy the icons you want to change.
Normally you can also give your icon a custom name for a specific function to display something different, and add the custom name to the function using the argument icon. This enables you to create something specific for that area so it doesn't change every single no access icon throughout the forum. Again - if you search the function that calls the lock icon on the codex, it will tell you what you can change, and normally you will see 'icon' as an argument.
(4) For the text, if you use the browsers inspector you can pick out elements you want to add to the change. In this case the forum title is controlled by 'a.spRowName'. Simply copy the pinned topic CSS rule and add it to the end so you will have something like:
#spMainContainer .spForumTopicSection.spOdd.spPinnedTopic a.spRowName { color: red;
}
Hope I have not missed anything, should keep you busy for a while!
no access button??? sorry, not sure what button you are referring to...
Visit Cruise Talk Central and Mr Papa's World
Hello, Mr. Papa,
It's the button I was referring to in Q.3 in my Oct. 16 reply. Here it is again.
(3) When users are not logged in, at the top and bottom of ForumView and TopicView, there’s the icon that tells the user that they cannot post/reply/create topics because they’re not logged in. How can I replace that icon with just text or replace it with another image? Please see
Thanks
oh, you said button... which threw me off...
actually, that icon has nothing directly to do with being logged in... it is solely there to indicate that a user does not have permission to post in the forum (of which not logged in might be one possible cause)...
personally, not a fan of that icon, but my colleagues here like it... removing it requires removing the tooltip from the template tags that use it... namely:
sp_ForumIndexStatusIcons (on group view spGroupView.php template file)
sp_TopicNewButton (on forum view spForumView.php template file)
sp_PostNewButton (on topic view spTopicView.php template file)
in each case, if you remove the $toolTipDenied string/argument passed the to the function (its the 5th argument) it wont output that icon...
Visit Cruise Talk Central and Mr Papa's World
Thanks, Mr. Papa!
I've just encountered three issues.
(1) Parts of Buddypress file cannot be translated. I didn't translate everything, just the ones I need. Out of those ones, three aren't working: 1. Forum Options; 2. %1$s started the topic %2$s in the forum %3$s; and 3. %1$s posted in the topic %2$s in the forum %3$s.
I could change 1. by editing the buddypress plugin file sp-buddypress-components.php, however, no such luck with 2 and 3 in sp-buddypress-activity.php
(2) For the tinyMCE plugin, there's no translation for "blockquote" and "spoiler" in its .po file.
(3) Using the Report Post to Admin plugin, when I tested to send a report, I got the message "Failed to send email" I did set permissions to allow the users to report, I've also set up the email for receiving the report.
Thanks!
Jean
1) they are in the translation file, but only spanish and swedish are complete on translations page.. which one did you download?
2) in tinymce, where do you think there is a translatable blockquote or spoiler? searching the code, we dont use those strings...
3) can you check the message string again? I cannot find the message in any simple press code or wp code... but its likely the wp mail function failed to send the email... wont be down to permissions... its wp throwing an error..
Visit Cruise Talk Central and Mr Papa's World
Hello, Mr. Papa,
(1) I donwloaded sp-buddypress-zh_TW.po
There was no translation in there, so I've translated the ones I need myself. I translated five strings, and the three I mentioned above did not show. The ones did show are "save profile" and "setup your signature".
(2) I didn't actually check the files of the plugins. Just when my mouse hovers over the "blockquote" and the "spoiler" icons, the text that show up are in English, while the other ones are in Chinese. So I assumed they are also translatable.
(3) The message is "Email Notification Failed". I think it's a message from simple press. The message was in Chinese earlier. I've removed all translation files, and now it's in English.
Thanks!
Jean
1 Guest(s)