Forum Replies Created
-
Author
-
gm713Participant
Figured it out. Stored it in a variable using this, and then reference it in the replacement string
$hot_login_button = "Please " . "<a class='bp-menu bp-login-nav kleo-show-login' href='#'>Log In</a>" . " to create new topics.";
gm713Participant(Non working) Code in the above comment for Login.
'<a class="bp-menu bp-login-nav kleo-show-login" href="#" '. '">Log In</a>';
gm713ParticipantHi Abe,
Thanks for your inputs.
Rather than making changes to the core files, I added the following code (credit: http://www.viper007bond.com/2011/07/13/changing-core-wordpress-strings/ ) in the child functions.php file to compare and replace. Figured that’ll help with future proofing.
Having said that, I’m planning on using the same string replacement “login” string (commented) below. Can’t figure out the right syntax to get Login to fire the modal.
// Message replacement function
function youruniqueprefix_filter_gettext( $translated, $original, $domain ) {
//get topic title to supress unwated string later
//$topic_title = bp_get_the_topic_title();// This is an array of original strings
// and what they should be replaced with$strings = array(
‘Oh bother! No topics were found here!’ => ‘Select one of the topics above to participate.’,
‘The forum ‘%s’ is closed to new topics and replies.’=>”,
// ‘You must be logged in to create new topics.’ => ‘Please ‘ . ‘Log In‘; . ‘ to create new topics.’,
//Add some more strings here,
);// See if the current string is in the $strings array
// If so, replace it’s translation
if ( isset( $strings[$original] ) ) {
// This accomplishes the same thing as __()
// but without running it through the filter again
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}return $translated;
}add_filter( ‘gettext’, ‘youruniqueprefix_filter_gettext’, 10, 3 );
// message replacement function ends
gm713ParticipantGreat, thanks. That did it.
Before closing this issue out, I have “bp-menu bp-login-nav boton_doi kleo-show-login” in the extra calls field. Do all these need to be in there, or do I need to remove any.
gm713ParticipantThanks Abe. That did the trick. However, can you let me know if these 2 things are possible, and if so, how to go about it:
1) For closed forums threads, customize the “Oh bother! No topics were found here! The forum ‘{forum name}’ is closed to new topics and replies.
I’m housing sub-forums in a forums, so this message is misleading and may confuse website visitors. If it were up to me I’d not display it all or if I had to I’d like to change the copy to be more generic like “Please click on one of the forums above to participate in the discussion”
2) For forums that are open, it displays a message “You must be logged in to create new topics.”
I’d like to make “login” a hyperlink to my login modal/page.
gm713ParticipantThanks for you reply. Please find the “Sign Up” link on the homepage http://greencardez.net within the Forums section (3rd section from top with blue background)
gm713ParticipantThanks, you mentioned that before, but I want to use a button to fire the popup and not a text link. Is that possible?
gm713ParticipantAll right, I’ll go as well.
Still working through some homepage design. Will updated once I updated the home page.
gm713ParticipantNevermind figured it out.
Used this to override the h4 tags for widget titles.
.footer-color#footer
{
font-size:14px !important;
}August 8, 2014 at 08:07 in reply to: (BuddyPress)Friends widget shows up on select pages, not all #25091gm713ParticipantOK thanks. I’ll try to play around some more to see if I can figure it out. This isn’t launch critical item but something I’d like to do for design consistency, so worst-case I should be able to take the site live within a few days and will ping you back.
Do you want me to mark this ticket resolved or leave it open for the time-being?
gm713ParticipantHi Catalin,
I want all text appearing in the footer to be set to 12px. Currently I have the following widgets added in the footer:
Footer Column 1: Text widget (I can manually hard code the text in within the text widget, but want to know the right way to do this)
Footer Column 2: Online Members, and Recently Active Members widgets. I need to set the headline i.e. “Online Members” and “Recently Active Members” to be set to 12px.
Footer Column 3: Have added a Social Media widget. Need to override the headline text to be set to 12px
Footer Column 4: Have added the “Latest Posts” widget. Need to headline text and the dynamically pulled post-titles that widget pulls to be set to 12px.
Attached is the screenshot for visual reference.
Hope this helps. Essentially, trying to set all text that appears in the footer to be set to 12 px.
Attachments:
You must be logged in to view attached files.gm713Participant@loraehmke Thanks for your inputs. For your issue, it’s simply a matter of setting the website landing page to your home page.
Go to Settings>Reading option and then set Static page Front Page to desired page. Screenshot attached for your reference.
PS: The screen grab colors look slightly different since it’s not taken from the Kleo template but a different site. From a functionality/settings point of view, it should be no different.
Attachments:
You must be logged in to view attached files.gm713Participant@loraehmke to answer your question, go to Appearance>Menu and under “select a menu to edit” pull up your top menu. Once loaded, find login and register links under “BuddyPress” options on the left and add to menu, and you should be all set.
PS: if you don’t see BuddyPress on the left, scroll all the way up to the top of the page, and click on “Screen Options” to reveal options and select “BuddyPress”.
Hope that helps!
August 7, 2014 at 06:23 in reply to: (BuddyPress)Friends widget shows up on select pages, not all #24927gm713ParticipantHi Catalin,
Thanks for the link. It works, but the avatars are shown as squares. Where/Which file do I set “border-radius: 100%;” parameter in for them to be rounded
PS: Not sure if this matters or not but I’m displaying the widget in the sidebar.
Thanks much!
gm713ParticipantHi Caitlin,
I’m sorry, I don’t quite follow. Attached are the screenshot of how I’m defining a button. Should I be doing something differently?
Attachments:
You must be logged in to view attached files.gm713ParticipantHi Abe,
I’m having the same issue. It happened after updating it to 1.6.2. I don’t have it live yet, running off of localhost.
To elaborate a little, the initial image loads but as soon as your start scrolling the image disappears.
Thanks!
August 2, 2014 at 22:03 in reply to: Is there a way to display community section numbers dynamically? #24428gm713ParticipantThanks!
July 31, 2014 at 18:40 in reply to: (BuddyPress)Friends widget shows up on select pages, not all #24249gm713ParticipantI realized that it is user-specific after posting my question, but my follow up question is – is there a way to remove restrictions so it can show up on other pages, besides just member/user profile, as well (as long as the user is signed in).
July 31, 2014 at 16:30 in reply to: (BuddyPress)Friends widget shows up on select pages, not all #24233gm713ParticipantHey Catalin,
Unfortunately I’m still running it on my localhost. Attached is the screenshot – it appears in Appearance > Widget.
I just read the note below it. It turns out that it’s doing what it’s suppose to do. Not sure if there is way to display it outside of the member profile section or not.
Attachments:
You must be logged in to view attached files.July 29, 2014 at 22:17 in reply to: Is there a way to display community section numbers dynamically? #24002gm713ParticipantEssentially trying to publicly display the current status of forum activity on page (viz. topics, replies), similar to how it’s include int the attached screen shot (which appears on admin dashboard).
Attachments:
You must be logged in to view attached files.gm713ParticipantHi. I hope I’m posting this in the right thread. The Login modal window as part of v1.6 looks great. Are you planning on implementing it across other instances on the site. E.g. On my site, I allow for only logged in users to comment. Currently, it displays a message on the lines of “You must be logged in to comment”. When the user clicks on the login link, it still takes the user to the old login page and not the modal window. It would be great to see that implemented in that instance as well. Thanks!
gm713ParticipantIf you don’t get a direct answer, here’s a workaround.
1) Use/Create a gmail address, say “worldsbestdog@gmail.com”
2) Appending “+<whatever>” to your primary email address will allow you to furnish distinct addresses without having to create separate accounts. E.g.:1) worldsbestdog@gmail.com
2) worldsbestdog+1@gmail.com
3) worldsbestdog+spot@gmail.com
4) worldsbestdog+profile1@gmail.comEmail sent to any of these email addresses will delivery it to your primary email address viz. worldsbestdog@gmail.com. You can use a logical pattern after “+” to keep a track of which profile is which.
Hope that helps.
gm713ParticipantSorry, the link above got rendered as an HTML element despite of some replacements . This is what I meant:
“[” a href=”example.com” onClick=”ga (‘send’, ‘event’, ‘Anchor Tag’, ‘Menu Click’, ‘About Me’);”]”About”[“/a”]”
PS: Replace “[” (including quotes) by < and “]” by >:
gm713ParticipantHi Catalin,
Thanks for your reply, but let me elaborate. I’m not asking for a generic answer at an HTML level, but for KLOE theme specific method of accomplishing this.
To elaborate, in HTML I would write the following line:
So, the questions is – How do I append GA’s event tracking code with hyperlinks/buttons?
-
AuthorPosts