Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
PT6A
Jan 5, 2006

Public school teachers are callous dictators who won't lift a finger to stop children from peeing in my plane

kedo posted:

My standard reply for folks like that is something along the lines of, "It's been a pleasure helping you out with X. If you have a budget for further work in the future, please don't hesitate to contact me!" and then I stop replying to them unless they mention having a budget. I'm all for being polite in correspondence, but at a certain point coming up with new and unique ways to politely tell people to gently caress off starts costing you money.

Yeah. Despite my gruff shitposting persona, I actually don't like disappointing people IRL even when they really deserve it, but I've just got to get over it and do it, gently caress their feelings.

EDIT: I always wonder if I've somehow led them on, or if they're all just basically con artists trying to get something for nothing. I'm leaning towards the latter, but there's always the nagging doubt that it could be the former.

PT6A fucked around with this message at 03:51 on Feb 21, 2018

Adbot
ADBOT LOVES YOU

Omits-Bagels
Feb 13, 2001
Does anyone know of a Google Map plugin that's similar to the one Thrillist uses? See here (it's at the bottom of the page): https://www.thrillist.com/eat/paris/best-restaurants-paris

Screenshot: https://imgur.com/a/M7FKS

I'm looking for something similar. If a plugin doesn't exist, does anyone have an idea how much it would cost to have someone make one?

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

I don't know if you even need a plugin, other than the styling. You can instantiate a map with multiple bugs very easily:
https://gist.github.com/parth1020/4481893

This guy seems pretty feature rich:
https://en-ca.wordpress.org/plugins/map-multi-marker/

The weird/hard part is going to be linking the numbers to the descriptions to the map locations I'd guess.

PT6A
Jan 5, 2006

Public school teachers are callous dictators who won't lift a finger to stop children from peeing in my plane
Update from crazy person: It turns out I "misunderstood" and she's fine with paying my normal rate (it was just confusing, because at no time prior did she agree to that in any way, before asking me to start doing poo poo), and she wanted me to start transferring poo poo from her Instagram account, but now she's stopped responding to emails and her Instagram is set to private.

What the gently caress is in the water here? loving millennials, man... :v:

fuf
Sep 12, 2004

haha

PT6A posted:

Yeah. Despite my gruff shitposting persona, I actually don't like disappointing people IRL even when they really deserve it, but I've just got to get over it and do it, gently caress their feelings.

EDIT: I always wonder if I've somehow led them on, or if they're all just basically con artists trying to get something for nothing. I'm leaning towards the latter, but there's always the nagging doubt that it could be the former.

man I know that feeling. When they are too clueless to understand that helping them register a domain and helping them set up a site are totally different things, and you imagine how confused and hurt they must feel because from their perspective you've abandoned them right in the middle of something... And you know you could help them relatively easily, and you feel a sense of obligation because you've helped or suggested something already. But you also know that if you don't draw a line somewhere you will spend all day helping people for free... gently caress...

fuf fucked around with this message at 22:27 on Feb 28, 2018

PT6A
Jan 5, 2006

Public school teachers are callous dictators who won't lift a finger to stop children from peeing in my plane

fuf posted:

man I know that feeling. When they are too clueless to understand that helping them register a domain and helping them set up a site are totally different things, and you imagine how confused and hurt they must because from their perspective you've abandoned them right in the middle of something... And you know you could help them relatively easily, and you feel a sense of obligation because you've helped or suggested something already. But you also know that if you don't draw a line somewhere you will spend all day helping people for free... gently caress...

Yes, christ, this whole thing exactly.

clockworkjoe
May 31, 2000

Rolled a 1 on the random encounter table, didn't you?
Are there any guidelines on how big a RSS feed can be? I have a podcast and some people want to be able to download every episode we have ever done via RSS, even though we have 500+ episodes.

melon cat
Jan 21, 2010

Nap Ghost
.

melon cat fucked around with this message at 07:02 on Mar 16, 2019

fuf
Sep 12, 2004

haha
probably obvious but the theme's single.php (or whatever template file is used for blog posts) definitely has "comments_template();" somewhere in it?

kedo
Nov 27, 2007

fuf posted:

probably obvious but the theme's single.php (or whatever template file is used for blog posts) definitely has "comments_template();" somewhere in it?

Yeah, the comments aren't appearing in the markup so there's probably something broken in code-land that's preventing them from showing up. Did you make any big changes to the site recently?

the heat goes wrong
Dec 31, 2005
I´m watching you...
For a moment, switch theme to one of the Twenty.. default themes. If comments appear, then there is something wrong with your current theme.

melon cat
Jan 21, 2010

Nap Ghost
I found out what the problem was- the "Better Disqus Comments" plugin. Someone on Reddit pointed out to me:

quote:

Discus looks for

<?php comments_template( '', true ); ?>

to parse its comment system. Sometimes it glitches and this line is moved or merged into another line and Discus couldn't inject itself to create the comment form, so the whole comment section disappears.

So I just deactivated the plugin and the comments section seems to be working normally. I guess the plugin isn't compatible with the newest version of WP (my theme hasn't seen a major update in a very long time). So fuf you were getting pretty close to the main issue.

melon cat fucked around with this message at 16:13 on Mar 25, 2018

clockworkjoe
May 31, 2000

Rolled a 1 on the random encounter table, didn't you?
Does anyone know of a plugin or code snippet or something that would let me create a RSS feed from a wordpress site in reverse chronological order, i.e. oldest post first?

PT6A
Jan 5, 2006

Public school teachers are callous dictators who won't lift a finger to stop children from peeing in my plane

clockworkjoe posted:

Does anyone know of a plugin or code snippet or something that would let me create a RSS feed from a wordpress site in reverse chronological order, i.e. oldest post first?

From a random Wordpress site, or from one that you can install plugins on?

clockworkjoe
May 31, 2000

Rolled a 1 on the random encounter table, didn't you?

PT6A posted:

From a random Wordpress site, or from one that you can install plugins on?

A site I control. It has over 500 posts now so the RSS feed doesn't show them all and I want to create an archive feed with the oldest posts so people can download those. It's a podcast site btw.

Data Graham
Dec 28, 2009

📈📊🍪😋



Why not use one of these? https://themeisle.com/blog/wordpress-podcast-plugins/

clockworkjoe
May 31, 2000

Rolled a 1 on the random encounter table, didn't you?

I already use Blubrry PowerPress. It does not have the ability to create a second RSS feed in reverse order.

Sulla Faex
May 14, 2010

No man ever did me so much good, or enemy so much harm, but I repaid him with ENDLESS SHITPOSTING
I'm not sure if there's a more specific Wordpress thread but I'm struggling a bit trying to get my site in https. The admin dashboard sticks on https, the SSL certificates all seem fine (including for https://www. and so on), the main site urls are https://www.blah.com so in theory it should all be gravy, but whenever I go to my site it always redirects to [url]http://[/url] and says site insecure. What am I missing? Half an hour ago I started off by changing the base site address from https://blah.com to https://www.blah.com which now works but the SSL certificate isn't being applied correctly. Does anyone have any ideas?

e: If it helps, the *.domain.com SSL certificate 'needed resolving', so autoSSL managed to somehow resolve that apparently, and now it shows a green tick. But i don't know if it takes time for that to propagate..?

Sulla Faex fucked around with this message at 11:06 on Apr 1, 2018

Misc
Sep 19, 2008

Just because you're offering https doesn't mean you're requiring it. There are numerous ways to redirect http traffic to https, like an .htaccess file, plugins, and a switch in cloudflare if you're using that.

Be ready to undo it if you've created a redirect loop.

Sulla Faex
May 14, 2010

No man ever did me so much good, or enemy so much harm, but I repaid him with ENDLESS SHITPOSTING
Ah yeah, that makes sense. I guess I was assuming Wordpress had permissions to do it and would handle it, but I just added an http->https redirect in my .htaccess and it looks to be working now, no redirect loop. Thank you!

Capri Sun Tzu
Oct 24, 2017

by Reene

Sulla-Marius 88 posted:

I'm not sure if there's a more specific Wordpress thread but I'm struggling a bit trying to get my site in https. The admin dashboard sticks on https, the SSL certificates all seem fine (including for https://www. and so on), the main site urls are https://www.blah.com so in theory it should all be gravy, but whenever I go to my site it always redirects to [url]http://[/url] and says site insecure. What am I missing? Half an hour ago I started off by changing the base site address from https://blah.com to https://www.blah.com which now works but the SSL certificate isn't being applied correctly. Does anyone have any ideas?

e: If it helps, the *.domain.com SSL certificate 'needed resolving', so autoSSL managed to somehow resolve that apparently, and now it shows a green tick. But i don't know if it takes time for that to propagate..?
Make sure your content is scrubbed of any non-secured (http:*) references. Scripts, images, stylesheets, anything will cause the browser to throw mixed content warnings.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice
I am part of a startup that is starting to do outreach / marketing, and we have a social media intern who will be doing blogging, twitter, and all that other stuff people do. I set up a WordPress instance for this person to use, and now seek advice on doing a few things in WP that I know are possible, but have too many options to choose from! I am very :tinfoil: about using plugins for a few reasons (security, becoming dependent on a plugin that then breaks when WP itself updates, etc.) so I am hoping you fine folks can suggest things you have used, or things I should avoid at all costs.

What we would like to do are these three things:

1. Have "share" buttons / links on each of our posts so visitors can share links to articles easily.
2. Make it so when we post a new article, our Twitter and Facebook accounts automagically tweet / post about it.
3. Show our latest X tweets / FB posts / Instagram posts in sidebar blocks.

Thanks!

kedo
Nov 27, 2007

Lumpy posted:

1. Have "share" buttons / links on each of our posts so visitors can share links to articles easily.

I always use AddThis for this purpose. It's brainlessly simple to setup and it has a nice dashboard with lots of stats that helps marketing people get their rocks off. Just stick the embed code into whichever template files you need.

Lumpy posted:

2. Make it so when we post a new article, our Twitter and Facebook accounts automagically tweet / post about it.
There are a ton of plugins out there that'll help you with this, some more legit than others. If I remember correctly, Jetpack does this along with a slew of other helpful things, and it's written by Automattic so it's about as legit as you can get. However if you don't want to use plugins at all A) you're kind of on the wrong platform, and B) you'll need to write your own to interface with those two services. Or I suppose you could use some weird third party service like Zapier or something... I don't know if they'd do this.

Lumpy posted:

3. Show our latest X tweets / FB posts / Instagram posts in sidebar blocks.
Whenever I have a client ask for this, I ask them the last time they engaged with a tweet or Facebook post on a website rather than through the apps themselves. Literally 100% of the time after asking this question I don't have to do this work because the client realizes how dumb it is.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

kedo posted:

I always use AddThis for this purpose. It's brainlessly simple to setup and it has a nice dashboard with lots of stats that helps marketing people get their rocks off. Just stick the embed code into whichever template files you need.

There are a ton of plugins out there that'll help you with this, some more legit than others. If I remember correctly, Jetpack does this along with a slew of other helpful things, and it's written by Automattic so it's about as legit as you can get. However if you don't want to use plugins at all A) you're kind of on the wrong platform, and B) you'll need to write your own to interface with those two services. Or I suppose you could use some weird third party service like Zapier or something... I don't know if they'd do this.

Whenever I have a client ask for this, I ask them the last time they engaged with a tweet or Facebook post on a website rather than through the apps themselves. Literally 100% of the time after asking this question I don't have to do this work because the client realizes how dumb it is.

Thanks for the info! JetPack seems like waaaaaaayyyyy overkill, but it's pretty cool. We'd only use that one tiny feature (posting to social media when we post on the blog) Do you think it's still worth it to install it just for that?

kedo
Nov 27, 2007

Lumpy posted:

Thanks for the info! JetPack seems like waaaaaaayyyyy overkill, but it's pretty cool. We'd only use that one tiny feature (posting to social media when we post on the blog) Do you think it's still worth it to install it just for that?

Probably not, though you can enable/disable different pieces of it at will. I mainly suggested t because the author is probably the most trustworthy plugin author out there since they’re the folks who made WordPress in the first place. There are definitely other plugins out there that do the same thing.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

kedo posted:

Probably not, though you can enable/disable different pieces of it at will. I mainly suggested t because the author is probably the most trustworthy plugin author out there since they’re the folks who made WordPress in the first place. There are definitely other plugins out there that do the same thing.

That's good to know. My biggest "thing" with plugins is security / waiting for updates. I know WP lives and dies by it's plugins, so I'm trying to make this as easy for the person running it to do what they need to do w/o opening the site up to becoming a bitcoin miner / not being able to do security updates because plugin X will break....

fuf
Sep 12, 2004

haha
Is anyone up to speed with the new GDPR regulations that come into effect next month?

Do I really have to install a cookie consent plugin on every site that uses google analytics?

Anyone got a good plugin they can recommend?

e: what about contact forms? If the form just sends an email somewhere is that still "collecting user data"?

And server access logs with IP addresses?

I don't get this poo poo at all. I can't find a good guide that's geared towards basic sites that don't have users / subscribers but which do have analytics cookies and contact forms...

fuf fucked around with this message at 15:30 on Apr 16, 2018

fuf
Sep 12, 2004

haha
Anyone got a good migration plugin they've used recently? I always used to use Duplicator but the free version only lets you download locally (can't transfer via FTP to the target server) so it's a lot of hassle. Ideally I want to set up a blank target WordPress install and then transfer everything from the source via FTP.

my bony fealty
Oct 1, 2008

fuf posted:

Anyone got a good migration plugin they've used recently? I always used to use Duplicator but the free version only lets you download locally (can't transfer via FTP to the target server) so it's a lot of hassle. Ideally I want to set up a blank target WordPress install and then transfer everything from the source via FTP.

I started using All-in-One WP Migration a few years ago and haven't looked back since. Never had a any problems with the free version. You don't need to use FTP either, it exports one file containing your entire site (including DB) that can then be uploaded to a new WP install - just install the plugin on both sites.

I think the free version may have a file size limit on the generated export but I've never hit it and I've used it on some decently large sites.

fuf
Sep 12, 2004

haha
Thanks but downloading and uploading site packages is what I want to avoid. FTP is an advantage because it can just go server > server without using my local machine as the middle man. I did look at that plugin this morning and they have an FTP extension but they want $100 for it.

I ended up trying https://www.migrateguru.com/ and it worked suspiciously well for a totally free plugin. But I tried it on a really simple site and I still have ~30 other sites to migrate, some of which are monsters. We'll see how it goes.

Agrikk
Oct 17, 2003

Take care with that! We have not fully ascertained its function, and the ticking is accelerating.
I'm not sure if this is the right place to talk about setting up WP infrastructure, but here's my problem:

I am building a wordpress site on AWS that has an Application Load Balancer (ALB) receiving HTTPS traffic from the internet and then redirecting it to HTTP traffic on an EC2 instance running wordpress and the pages are loading broken, basically because of "mixed content" errors.

I am offloading encrypted traffic on the ALB because the Amazon Certificate Authority provides SSL certificates for free and handles all certificate management, but they only work on their load balancers and are not exportable to EC2 instances (or anywhere else).

So I am trying to figure out how to get all traffic passing though the ALB to be sent back to the client as HTTPS while originating at the EC2 as HTTP. Google shows me zillions of web sites that talk about forcing WP to only use HTTPS, but that only works if there is a local certificate installed directly on the box.


check out http://test.rainwalk.net and https://test.rainwalk.net

Misc
Sep 19, 2008

Are users accessing the EC2 directly? You could self sign there if users will only see the cert at the WordPress install.

Agrikk
Oct 17, 2003

Take care with that! We have not fully ascertained its function, and the ticking is accelerating.

Misc posted:

Are users accessing the EC2 directly? You could self sign there if users will only see the cert at the WordPress install.

No, the only access to the WP site will be through the ALB.

Peggle Fever
Sep 21, 2005

shake it

Agrikk posted:

I'm not sure if this is the right place to talk about setting up WP infrastructure, but here's my problem:

I am building a wordpress site on AWS that has an Application Load Balancer (ALB) receiving HTTPS traffic from the internet and then redirecting it to HTTP traffic on an EC2 instance running wordpress and the pages are loading broken, basically because of "mixed content" errors.

I am offloading encrypted traffic on the ALB because the Amazon Certificate Authority provides SSL certificates for free and handles all certificate management, but they only work on their load balancers and are not exportable to EC2 instances (or anywhere else).

So I am trying to figure out how to get all traffic passing though the ALB to be sent back to the client as HTTPS while originating at the EC2 as HTTP. Google shows me zillions of web sites that talk about forcing WP to only use HTTPS, but that only works if there is a local certificate installed directly on the box.


check out http://test.rainwalk.net and https://test.rainwalk.net

Add CloudFront to act as a CDN? Would simplify the SSL cert process, and you would likely save a bit of processing costs by implementing the cache layer. Price it out but it'll probably be the most direct option without adding a VPC and an ELB, or any reverse proxies.

Agrikk
Oct 17, 2003

Take care with that! We have not fully ascertained its function, and the ticking is accelerating.

Peggle Fever posted:

Add CloudFront to act as a CDN? Would simplify the SSL cert process, and you would likely save a bit of processing costs by implementing the cache layer. Price it out but it'll probably be the most direct option without adding a VPC and an ELB, or any reverse proxies.

How do you configure that, then? Pull all references to SSL except for at the CF distribution layer? To what do I set the Web site URL within WP? Is it http://example.com or HTTPS?

I'm going to use a load balancer anyways since I'm looking for redundancy in addition to scalability. Do I install a cert on the LB as well?

tankadillo
Aug 15, 2006

I’m new to the world of WordPress, and I keep noticing on forums and blogs people will post rules-of-thumb for how many plugins you “should” have, like 10, 15, or whatever. Am I right for guessing this just bullshit? Wouldn’t it depend on each individual plugin? Obviously you don’t want tons of clutter on your site, but the numbers seem arbitrary. If I installed 50 different versions of “Hello Dolly” then surely it wouldn’t make any difference than if I had 1 or even zero.

And speaking of plugins, is there no way to use Jetpack without a WordPress.com account? I like a few of the features but I really don’t want WP.com embedding their tracking codes and stuff on my site.

Misc
Sep 19, 2008

tankadillo posted:

I’m new to the world of WordPress, and I keep noticing on forums and blogs people will post rules-of-thumb for how many plugins you “should” have, like 10, 15, or whatever. Am I right for guessing this just bullshit? Wouldn’t it depend on each individual plugin? Obviously you don’t want tons of clutter on your site, but the numbers seem arbitrary. If I installed 50 different versions of “Hello Dolly” then surely it wouldn’t make any difference than if I had 1 or even zero.

And speaking of plugins, is there no way to use Jetpack without a WordPress.com account? I like a few of the features but I really don’t want WP.com embedding their tracking codes and stuff on my site.

not all plugins are created equal, ya. it's a rule of thumb because there are many people using wordpress without any sort of technical expertise, coming in as writers, editors, photographers, etc. who don't understand the nuance of resource usage but understand "don't use more than 15 of these things."

yeah, there's no way to use jetpack stuff without an account. depending on what features you're interested in there may be some dedicated solution, and lighter-weight than having all of jetpack's suite activated while only using a few features.

Weird Uncle Dave
Sep 2, 2003

I could do this all day.

Buglord
Some features of Jetpack can be used independent of a connection to dotcom, by adding a constant to your config file. https://jetpack.com/support/development-mode/

It'll put big ugly messages about how you're using development mode in the Jetpack admin pages, so if you're building a site for someone else it might look weird. But it works fine for about half of the features in Jetpack.

RadiRoot
Feb 3, 2007
Would anyone know how I'd use pre_get_posts to fix my pagination to allow it to show the nav link for the last remaining page?

My setup is Wordpress 4.9.6, Timber 1.7.1, PHP 7.2.1

blog.php:

code:
<?php
/* Template Name: Blog */
global $paged;
if (!isset($paged) || !$paged) {
    $paged = 1;
}

if ($paged == 1) {
    $posts_per_page = 3;
} else {
    $posts_per_page = 6;
}

add_action('pre_get_posts', 'myprefix_query_offset', 1 );
function myprefix_query_offset(&$query) {
    //Before anything else, make sure this is the right query...
    if ( ! $query->is_home() ) {
        return;
    }

    //First, define your desired offset...
    if (!isset($paged) || !$paged) {
        $paged = 1;
    }
    if ($paged == 1) {
        $offset = 0;
    } else {
        $offset = 3;
    }

    //Next, determine how many posts per page you want (we'll use WordPress's settings)
    if ($paged == 1) {
        $ppp = 3;
    } else {
        $ppp = 6;
    }

    //Next, detect and handle pagination...
    if ( $query->is_paged ) {
        //Manually determine page query offset (offset + current page (minus one) x posts per page)
        $page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );
        //Apply adjust page offset
        $query->set('offset', $page_offset );
    }
    else {
        //This is the first page. Just use the offset...
        $query->set('offset',$offset);
    }
}

add_filter('found_posts', 'myprefix_adjust_offset_pagination', 1, 2 );
function myprefix_adjust_offset_pagination($found_posts, $query) {
    //Define our offset again...
    if (!isset($paged) || !$paged) {
        $paged = 1;
    }
    if ($paged == 1) {
        $offset = 0;
    } else {
        $offset = 3;
    }

    //Ensure we're modifying the right query object...
    if ( $query->is_home() ) {
        //Reduce WordPress's found_posts count by the offset... 
        return $found_posts - $offset;
    }
    return $found_posts;
}

$context = Timber::get_context();
$context['posts'] = new Timber\PostQuery(array(
    'post_type' => 'post',
    'posts_per_page' => $posts_per_page,
    'paged' => $paged
));
$context['paged'] = $paged;
Timber::render('pages/blog.twig',$context);
?>
blog.twig:

code:
{% extends 'base.twig' %}

{% block main %}
{% for post in posts %}
    <article>
        <a href="{{ post.link }}">
            <div class="text">
                <h1>{{ post.title }}</h1>
                <div class="excerpt">{{ post.content|truncate(40) }}</div>
            </div>
        </a>
    </article>
{% endfor %}

<section class="pagination">
    {% if posts.pagination.next %}
        <a href="{{ posts.pagination.next.link }}" class="prev"><span></span>older</a>
    {% endif %}
    {% if posts.pagination.prev %}
        <a href="{{ posts.pagination.prev.link }}" class="next">newer<span></span></a>
    {% endif %}
</section>
{% endblock %}
https://stackoverflow.com/questions/50809144/use-different-post-per-page-after-first-page-using-timber

Adbot
ADBOT LOVES YOU

fuf
Sep 12, 2004

haha
Anyone used a nice-looking flexible WooCommerce theme recently they can recommend?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply