nateonawalk
Forum Replies Created
-
Hi there…
Just wanted to follow-up and see if anyone can help me out here!
Thank you!
Hi caimin_nwl,
Yes, through the WordPress admin. As it stated in the other thread, I went:
WordPress Admin -> Plugins -> Login with Ajax (edit) -> Plugin Files (login-with-ajax/widget/default/widget_in.php) -> edited the PHP from here. I believe this edits the file directly instead of overriding the template.
Thank you!
Ok, so I found a previous response… it replaced the link dynamically using:
<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>
Now the issue is that nothing it changing when I apply this change (or any other change) — and when I attempt to edit the .php file through the CMS it tells me:
login-with-ajax/widget/default/widget_in.php (inactive)
Do you have any idea why this would be listed as an “inactive” file? Thank you!
//Admin URL if ( $lwa_data['profile_link'] == '1' ) { if( function_exists('bp_loggedin_user_link') ){ ?> <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/> <?php }else{ ?> <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/> <?php } }
Thanks for the reply caimin_nwl,
Has there been an example of this kind of hook before? I’m happy to write it, just looking for a starting point (not reinventing the wheel and all that jazz). I have no idea what I’d search.
Thanks again for any help!
Forum: Themes and Templates
In reply to: Cannot Get CSS Files to Enqueue CorrectlyUpdate: I’ve tried with and without dashes, spaces, and underscores now — doesn’t seem to be making a difference. If anyone has any ideas or needs other info, I’d really appreciate help :). Thanks!
Forum: Themes and Templates
In reply to: Cannot Get CSS Files to Enqueue CorrectlyThanks for the suggestion gorakh.sth — adding dashes “-” in the places where spaces were did not seems to make a difference in functionality. Any other hunches?
Update: Upon making the PHPMyAdmin alteration, it all worked cleanly! Thanks for your quick help!
Thank you for the tip — is the step I’m missing changing my options row in PHPMyAdmin?
Forum: Plugins
In reply to: [WeShare Buttons] Please Put the Toolbars in Separate DivsBoth single articles and article categories, preferably — at the moment, if I have the toolbar set to display both at the top and bottom of content, it creates the toolbar twice under posts on category pages.
Hi Wen,
Of course — the method I tried actually ended up working (moving the code to the end of the PHP file), I just hadn’t refreshed the correct cache.
Thank you!
Forum: Plugins
In reply to: [Image Refresh] Including Shortcode Within a FigureDear Micah,
I believe the problem ended up being either two extra lines at the end of the file, or a space before a */…whichever it was, the plugin no longer breaks posts, which is great!
Instead, there is another issue — either a) the image that the original plugin was pulling no longer appears [and the two text widgets I’m pulling with the new filter do] or b) an image appears, but it is no longer random.
For the sake of clarity, here is the site. When a visitor clicks the main button, a lightbox activates that renders 1/8 posts randomly. 6/8 of those posts now only render the
widgets_on_pages
text widgets and thefigcaption
; 2/8 of the pages render an image from my bank of random images, but they are no longer random (Jolteon and Espeon). Every time a user gets a Jolteon or Espeon page, it is the same artwork.At its normal functionality (with the new filter plugin disabled), on click the site renders a lightbox with 1/8 of the posts, and that post has mPress shortcode that pulls from a span of relevant random images.
Thanks again Micah! Do you have a donate button on your site?
Best,-Nate
Forum: Plugins
In reply to: [Image Refresh] Including Shortcode Within a FigureHey Micah,
So I went ahead and activated the plugin, I had indeed missed that step — when I tested my page, blog posts showed a blank page with this error:
-
Warning: Cannot modify header information – headers already sent by (output started at
/wp-content/plugins/mpress-filter.php:18
) inwp-includes/pluggable.php
on line 1196which seems to imply an issue in the Loop?
Thanks again for all the help!
-NSForum: Plugins
In reply to: [Image Refresh] Including Shortcode Within a FigureDear Micah, thanks for this! I haven’t yet been able to get the code working…I inserted it character-for-character into a PHP file, which I called “mpress-filter.php,” and put that file in the
wp-content/plugins
directory of my site.To get it to work,
-
Do I need to name it something different?
Do I need to actually place the file in the mpress-image-refresh folder?
Is it that the widgets are just getting sized out by the other figure element in the iFrames? I’m not able to see the widgets_on_pages by digging around in the DOM code.Thanks again for your help!
Best,-NS
Forum: Plugins
In reply to: [Image Refresh] Change image on clickThis might not be the solution you’re looking for, but consider using a link (how to do this is in a previous support question) wrapped around the image and point to the same page you’re on; that way, the page refreshes and a new random image is displayed.
Forum: Themes and Templates
In reply to: Floated Elements: Different Max-Widths on Different ScreensUPDATE: I was able to resolve this with help from SO, I found the breakpoint where things no longer floated correctly, and they used an @media parameter to redefine the slots as 100% only within that parameter. Things seem to be functioning more correctly now!