Get in the Hog if you want to live!

 
User avatar
il Duce
Mythic Wheelman
Mythic Wheelman
Posts: 3095
Joined: Wed Jun 04, 2008 7:03 pm
Title: Drinking Coach
Gamertag: HWM il Duce
Location: Denver, CO

Re: Guide / Blog Template

Sat Jan 30, 2016 12:47 pm

Ducke, is there any way to manage the order the guides appear on the Guide page?
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: Guide / Blog Template

Sat Jan 30, 2016 12:53 pm

Mmm.. Right now it just pulls from the database by the date they're made

I can probably modify the BBcode or create a new code (it would ve used as an optional replacement, not in addition to the other codes) to take a priority value and let you use that to manage the ordering

I'll do that when I get home in about an hour
I messed with Duce and got banned. laugh at my expense...
 
User avatar
il Duce
Mythic Wheelman
Mythic Wheelman
Posts: 3095
Joined: Wed Jun 04, 2008 7:03 pm
Title: Drinking Coach
Gamertag: HWM il Duce
Location: Denver, CO

Re: Guide / Blog Template

Sat Jan 30, 2016 12:55 pm

No rush, just something we'll want when we get more weapon guides done, and I'd like to keep "Wheelman Way" and "Squad Leadership" atop the other section.
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: Guide / Blog Template

Sat Jan 30, 2016 12:55 pm

Better I just get it done today while my mind is on it :P
I messed with Duce and got banned. laugh at my expense...
 
User avatar
Jackie
Ground Pounder
Ground Pounder
Posts: 940
Joined: Fri Sep 12, 2008 10:10 pm
Title: Developer
Gamertag: HWM Jackie

Re: Guide / Blog Template

Sat Jan 30, 2016 1:03 pm

Oh also Ducke, this rule in style-metro.css forces any plain images to increase to the entire width of the of the content area on desktop. The content area on mobile is tiny so it doesn't matter there, but it pixelates images on desktop.

img, video {
width: 100%;
height: auto;
}
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: Guide / Blog Template

Sat Jan 30, 2016 1:10 pm

Woops
I'll fix that while im at it
I messed with Duce and got banned. laugh at my expense...
 
User avatar
Jackie
Ground Pounder
Ground Pounder
Posts: 940
Joined: Fri Sep 12, 2008 10:10 pm
Title: Developer
Gamertag: HWM Jackie

Re: Guide / Blog Template

Sat Jan 30, 2016 1:11 pm

Thanks!
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: Guide / Blog Template

Sat Jan 30, 2016 7:28 pm

Fixed the image and video thing

Duce,
So because we're pulling from the forums and how the grids are formatted it's a bit of a pain in the arse to add in functionality for ordering the article preview icons from the BBCode side.

It isn't impossible, just a pain in the ass. I spent a couple hours fiddling and I have a solution in mind but I don't have the time to implement it right now. Maybe in a week or so
I messed with Duce and got banned. laugh at my expense...
 
User avatar
Jackie
Ground Pounder
Ground Pounder
Posts: 940
Joined: Fri Sep 12, 2008 10:10 pm
Title: Developer
Gamertag: HWM Jackie

Re: Guide / Blog Template

Mon Feb 08, 2016 10:21 pm

Jon LH Hart wrote:
Oh also Ducke, this rule in style-metro.css forces any plain images to increase to the entire width of the of the content area on desktop. The content area on mobile is tiny so it doesn't matter there, but it pixelates images on desktop.

img, video {
width: 100%;
height: auto;
}


Okay so now the images don't resize on mobile. haha I think max-width: 100%; would fix this for mobile while not resizing the images on desktop/large screens.

Edit: Adding max-width: 100% to the img class messes with other images, but adding max-width: 100% under postimage should work without messing with anything else.

.postimage {
max-width: 100%;
}

Or adding max-width to the img class and a max-width:none; where needed. Just adding .postimage to the external css should solve it though.

Unrelated, I also noticed the mobile dropdown hamburger menu doesn't appear on individual guide pages.
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: Guide / Blog Template

Mon Feb 08, 2016 10:59 pm

Oh yeah, I saw that on some of the individual pages too
I missed putting the mobile menu on those pages (consequences of "better done than perfect" and the super rushed deadline during development)

These are pretty easy fixes, I'll do them tomorrow morning
I messed with Duce and got banned. laugh at my expense...
 
User avatar
Jackie
Ground Pounder
Ground Pounder
Posts: 940
Joined: Fri Sep 12, 2008 10:10 pm
Title: Developer
Gamertag: HWM Jackie

Re: Guide / Blog Template

Mon Feb 08, 2016 11:00 pm

Cool, thanks Ducke!
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

External Issues - Fixed

Tue Feb 09, 2016 5:54 pm

Moved some posts to here, hold onto your drawers

to note, Duce's issue isn't fixed persay but it's logged and on the list
I messed with Duce and got banned. laugh at my expense...
 
User avatar
brickfungus
Role Unknown
Role Unknown
Posts: 4262
Joined: Tue Mar 25, 2008 9:43 am
Title: Owner
Gamertag: HWM BrickFungus
Location: Denver, CO
Contact:

Re: External Issues - Fixed

Wed Feb 10, 2016 2:59 pm

let me know if you want assistance on that... could do some creative SQL queries to pull this off
Image
THIS SHOULDN'T BE HERE

I'M A LEGEND IN MY SPARE TIME
 
User avatar
RubbrDuckE
Contest Loser
Contest Loser
Posts: 741
Joined: Fri Aug 20, 2010 2:40 pm
Gamertag: HWM RubbrDuckE

Re: External Issues - Fixed

Sat Feb 13, 2016 8:21 am

Thanks for the offer brick! I've been so swamped with work the last few days I hadn't had time to respond or even think about this problem

So, i was planning on doing more PHP / JavaScript bullshit but you're mention of SQL queries pushed me toward that direction and I realized that a simple alphanumeric sort on the post title could solve all of the problems!

I just changed this
ORDER BY t.topic_time DESC";

to this
ORDER BY LEFT(t.topic_title,3), CAST( SUBSTRING(t.topic_title, INSTR(t.topic_title, '-' ) +1 ) AS UNSIGNED),t.topic_title";

and i'll be honest i'm not entirely sure how it works because I found the code already written, but it works!
So now people can just add a number to the front of the thread title to prioritize it
I messed with Duce and got banned. laugh at my expense...

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: Off