Skip to content

u/glossal

In this archive from Nov 2015 to Jan 2017

5
posts
151
comments
3
media
2.1k
score

Here's you'd go about doing that:

Let's tackle the first part: increment by x every day. You'd just need a piece of code for (1) start date (2) base count, and then find the number of days that have passed and multiply them by x and then add it to your base count. You wouldn't really even need to store that information in the database for it to be persistent as you'd just need a block of code that you can pass those two initial components to to output the necessary result (the x count).

Same thing with product count; if you're making your posts with tags as the product then you'd pass a third parameter which looks up and returns the number of posts tagged as y (so you'd wind up with (1) start date (2) base count (3) posts tagged as y) and then output is the same (the x count).

Visitors count is going to hit your database the hardest as you're going to need to log each hit, uniquely, likely by adding a table specifically for IPs and populating it with URLs they are hitting, but then you just plug it back into our first formula (1) start date (2) base count and grab those hits from the DB to come up with (the x count).

If you are wanting the data to be persistent then you'll want a table in the DB specifically for (the x count) for each individual item.

2 points

Hey, you don't know what you're doing and are pretty new to all of this. Here's a blank server and google access: go nuts., said nobody, ever. Some of us can get by because we already have a basic background understanding of things from working with computers; but giving a "noob" access to essentially a blank server and then saying something like "well, there are guides out there, no way you can't fuck this up" is a bit of a misstep.

2 points

DigitalOcean if you're noob

I would definitely recommend staying away from DigitalOcean if you don't know what you're doing. Not a "don't know what you're doing? use this service!" kind of service.

8 points

Well, it's a show called Cougar Town, which, I've never seen the show by the way, if judging by the title, is about older woman going after strapping young lads to beat their aging hymens around like it's 1970-something all over again.

21 points

If it's just a question of showing MOBILES to mobile users only, make a media query rule to hide it (the MOBILES listing) on resolutions larger than (mobile resolution) and show it when the resolution gets down to a certain width (ie: a resolution you'd expect to be viewed mainly from a mobile device).

0 points

Twenty Fifteen has been my favorite thus far as it is incredibly content focused without too much in the way of pointless garbage you don't need.

Child theme for anybody interested; seeks to improve on the original with little changes, like moving meta information to a better place, fixing post thumbnails by allowing for them to conform to the width of their parent container, scriptless share buttons, front page comment preview for latest 2 comments, etc.

1 points

Display a count of posts within specific child category

Like this.

Count the number of posts in a category that contain a specific word

Elaborate on this. Are you wanting x posts in y category where posts contain z word or x posts in y category where category name contains z word?

Count the number of links within a certain area on the page

You'll probably need to resort to jscripting to count x words in location y, otherwise, create a function that counts words in a variable passed to it and then take the output of section a and pass that through said function.

2 points

Speed's not terrible. The text being left aligned with center aligned bullet points is driving me a little bonkers, though. Your trigger for media queries seems to be quite large at 1100px. Twenty Fifteen has some good query widths to go by for handling different screen sizes appropriately.

Magnifying glass for a search box that pops out of the sidebar div is a little oddly placed. Would seem more appropriate just to have a search box there already.

Making Websites Great Again. Can we have a vote for a new slogan?

2 points

The initial load time is a bit lengthy. And so much javascript going on in the footer. You have waypoints, but I can't for the life of me figure out what you're using them for. And then 7 different fonts?

The sidebar seems like it should exist. It seems to exist mainly to house an advertisement (had to disable uBlock to make something was there) and the follow us widget could have been anywhere else.

I'm guessing you're not using categories because I see tags, followed by the separator, followed by a blank space. Should probably conditionally include a separator so it doesn't just show up when it's not needed. (I see that you're using categories, so, I have no clue what the separator is there to separate).

Honestly you'd do better with a single column rather than the two, since the second column seems to be just be wasted. Not terrible, just needs a little polish.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.