Forum Replies Created

Viewing 15 replies - 46 through 60 (of 118 total)
  • If you send the link to your site and specify which area you want to modify, I can help

    Thread Starter kosmicbird

    (@kosmicbird)

    Issue resolved. I had to add a simple a href to a different .php file (with code different than shown here).

    Thread Starter kosmicbird

    (@kosmicbird)

    Yea, I just didn’t want to call-out the author/plugin for not replying publicly. 🙂 I will repost again in their forums – figured after 2 weeks without a response there that the plugin author is not planning on responding to it (this particular one is really bad about helping with “freemium” user questions)… But I shall try again there.

    • This reply was modified 9 years, 8 months ago by kosmicbird.
    Thread Starter kosmicbird

    (@kosmicbird)

    I posted in the author’s forums 2 weeks ago without a reply, so I posted here incase someone here could help.

    Thread Starter kosmicbird

    (@kosmicbird)

    Oh! I was looking in the completely wrong file content-single.php. I inserted orderby property in the correct file you mentioned and it worked. Thank you very much @shobhit2412!!

    Thread Starter kosmicbird

    (@kosmicbird)

    Nevermind. Resolved this by making simple adjustments to the padding + margin of the two modules in question.

    Thread Starter kosmicbird

    (@kosmicbird)

    Ah ok, that makes sense why I wasn’t seeing any then. 🙂 I just assumed there would be settings at least to control the level of access for user roles. I did not have any buttons available to use on my front-end – I do have my WPadmin bar disabled and hidden from all users except admin (that could explain why I didn’t see any buttons/links to allow any post modifications) If the plugin requires the admin bar visible for users to be able to modify posts, I guess I won’t be able to use it.

    Thread Starter kosmicbird

    (@kosmicbird)

    Update – since posting I’ve learned that I can do (cmd + a) to select all and it works (even though rightclick > select all doesn’t work). Will submit to the contact form about cmd + f now. Thank you!

    Thread Starter kosmicbird

    (@kosmicbird)

    But hacking is fun!…..except when you are bad at it like me. 🙂

    So, it turns out I needed to go to my Yoast SEO settings and enable Author Archives (I disabled this setting before I implemented user profiles since I was the only “author” of my site).

    Weird thing is that even with it disabled, dynamic linking to user profiles was still working with bbPress. But apparently the archives must be enabled in order for USP to redirect to the user profiles (I’m guessing since USP involves actual blog-type “archive” posts while bbPress does not). I don’t understand it, but it is what it is!

    I tried the “User Profile URL” setting before trying the Yoast thing. It seems to not have an effect on what URL is displayed or where it links to (at least in my situation, probably has something to do with which settings I have enabled and disabled).

    The USP username url when hovering over the link still displays mysite.com/author/username, but at least now it is redirecting to user/username. Yay!

    Another several hours wasted due to my compulsion to overcomplicate things. LOL. Oh well. If you hadn’t recommended that I stop trying to hack the plugin, I would probably still be messing around with the files right now 😅 Leaving you a 5* review now since your plugin is awesome and you def deserve it – great support. Thanks again for your superquick replies!

    • This reply was modified 9 years, 8 months ago by kosmicbird.
    • This reply was modified 9 years, 8 months ago by kosmicbird.
    Thread Starter kosmicbird

    (@kosmicbird)

    Hi 🙂

    The user profiles are generated via Ultimate Member plugin.

    Currently the USP username url is linking to the standard WP author page, but it is the member’s profile that I need to link it to.

    Linking to the user’s profile is working automatically with bbPress, as well as when users make comments on posts (did not need to make any modifications). For instance, if user A makes a comment on user B’s USP, I am able to click the commenter’s name and it takes me to users/commenterdisplayname – so I went to check the files to see how it’s working.

    For comments, it looks like this code is what’s displaying the comment author username + linking to their profile:

    <?php printf( __( '<cite class="fn">%s</cite>', 'profitmag' ), get_comment_author_link() ); ?>

    (profitmag is the theme I’m using)

    For bbPress, this line of code is getting the user link & displaying it on front-end in a particular area (single forum replies):

    <php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_rule' => true ) ); ?>

    and in another area of bbPress (where it shows who a topic is started by) this is the code that gets the username + links to their profile:

    <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    <span class="bbp-topic-started-by"><>php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>

    I am really bad with php as I haven’t had time to get into learning it deeply. I think I need to change some variables, create some new ID or something like that. Thinking I need to modify this section in template-tags.php

    
    /*	For public-submitted posts, this tag displays the author's name as a link (if URL provided) or plain text (if URL not provided)
    	For normal posts, this tag displays the author's name as a link to their author's post page
    	Usage: <?php if (function_exists('usp_author_link')) usp_author_link(); ?>
    */
    function usp_author_link() {
    	global $post, $usp_post_meta_IsSubmission, $usp_post_meta_Submitter, $usp_post_meta_SubmitterUrl;
    
    	$isSubmission     = get_post_meta($post->ID, $usp_post_meta_IsSubmission, true);
    	$submissionAuthor = get_post_meta($post->ID, $usp_post_meta_Submitter, true);
    	$submissionLink   = get_post_meta($post->ID, $usp_post_meta_SubmitterUrl, true);
    
    	if ($isSubmission && !empty($submissionAuthor)) {
    		if (empty($submissionLink)) {
    			echo '<span class="usp-author-link">' . $submissionAuthor . '</span>';
    		} else {
    			echo '<span class="usp-author-link"><a href="' . $submissionLink . '">' . $submissionAuthor . '</a></span>';
    		}
    	} else {
    		the_author_posts_link();
    	}
    }
    
    • This reply was modified 9 years, 8 months ago by kosmicbird.
    Thread Starter kosmicbird

    (@kosmicbird)

    You are absolutely right. I checked and the CSS stylesheet editor I’m referring to actually is Jetpack’s Custom CSS module. I’ve had it the entire time I’ve been using WP so I guess that’s why I thought it was a built-in WP feature. Ok. heading over to Jetpack forums now 🙂

    Thread Starter kosmicbird

    (@kosmicbird)

    I only use the built-in WP editor for CSS edits, which I backup externally in a .txt file (copy & paste style) since, as you mentioned, there’s no direct option to streamline backups. I make all PHP mods directly in the backend core files (with a child theme of course) but I should probably be more careful with that too 🙂 Great advice for staying on the safe side @sterndata.

    Thread Starter kosmicbird

    (@kosmicbird)

    Ah well, just installed + tried that plugin but it doesn’t seem to work with the CSS Stylesheet editor in Appearance >> Edit CSS. I’ll keep searching and see if there’s another one available. But yea, hopefully still someday WP will implement these features anyways.

    Thread Starter kosmicbird

    (@kosmicbird)

    Which part sounds like a bug? All I know is that I spend a ton of time scrolling up and down my Editor. I will check out the plugin and see if it works with the Stylesheet editor. Didn’t think to try a plugin for the search issue. Thanks!

    • This reply was modified 9 years, 8 months ago by kosmicbird.

    Here is what you can target to change the color of the parent menu link when you’re hovering over a subitem.

    .menu-toggle:focus, a {
        color: #ffffff!important;
    }

    You have a ton of !important tags… I’m not sure if you are the one who added them or if it was hard coded into the theme. I would advise you to use !important tags sparingly as they can make it difficult to modify styles in some situations (as you are experiencing now).

    You will have to use an important tag in the code above for it to work. If/when you have time maybe try to organize the code a bit and get rid of important tags where they aren’t absolutely necessary. This may include you needing to change settings such as that default link color (change it to the proper color you need for most of your links so you don’t have to keep using the !important tags everywhere).

    • This reply was modified 9 years, 8 months ago by kosmicbird.
Viewing 15 replies - 46 through 60 (of 118 total)