New Theme w/ some site changes
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> WebSite Changes

#1: No icon New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Apr 27, 2021 9:19 pm
    —
Hello everyone. Well, depending on how long you have been coming here, you probably have noticed that your site has looked the same for the past 6+ years now. Well, last year, I had purchased a new theme, (Lonestars Black Magic theme), and over the past couple of weeks, I have been modifying it to make it ours. With that said, I am hoping to have the theme mad public within the next couple of weeks.

Along with the theme changes, there will be aspects of the website that will be getting worked on at the same time to improve the overall speed of the site. I am hoping a new module that Lonestar is working on to replace one of my older modules will be done, so I can have that on this site with the rest of the changes. While doing this works on my site here, I was also able to do some additional responsive work to the theme on files of the forums that weren't done.

For most of you that know me, I am not a theme developer, but, this theme I have been working on is coming out pretty damn good, especially that I really don't use images, but CSS tricks to create the illusion of images. When released, if anyone finds any bugs or has suggestions, SPEAK UP, I love hearing criticism, that's how I make it better.

When I do any new updates from here on out, I will post them here since the theme is now live for everyone.

Recent Changes:
Last edited by coRpSE on Tue Jun 01, 2021 11:20 pm; edited 9 times in total

#2: No icon Re: New Theme Coming w/ some site changes Author: Trowbie PostPosted: Sun May 02, 2021 12:44 pm
    —
Hi, Corpse.
Been a while since we spoke and noticed you had gone dark for a while.  Glad to see you back on.

I too have been working with Lonestars BlackMagic.  Great job.  Made a lot of my clients who use phones happy.

So, now to the reason I'm here. (If I should be taking to Lonestar just say so and I'll head back there)


  1. I ran into this during the 2.0.9f update required for the new theme.  After completing the update, the "backtothetop" button no longer works.  On some themes(SimpleBlack2) it will move a single line up and on other themes it has no effect at all.  It shows up on all of them, but just doesn't take you back to the top when you press it. (Worked fine before the 9f update)
  2. I can't get my LM-BlackMagic to use the entire screen like you have here no matter how hard I try.  Now, I think there are a lot of settings that are hard-coded that will probably be in the next release that may make this easier. But, how do I get the theme to use the entire screen width? One difference is that I use both side panels and you are only using the left panel.  Don't know if that is a problem or not.
  3. Periodically(I haven't nailed down exactly what triggers it) the page will take forever to load.  If I'm lucky I can sometimes catch it and see in debug that its loading the same code over and over again.  I think its jscript but I'm not sure and I can't remember right now any of the lines of code to help determine where this may be happening.  So, just wondering if you've heard anything like this mentioned.
  4. (and this one probably is for Lonestart but I'm shotting it out to you anyway) If I use the Unanswered Posts link, the resulting page shows an ALT text of No New Posts and a broken icon link for img src="themes/LM-BlackMagic/forums/images/board/folder.png" width="19" height="18" alt="No new posts" title="No new posts". I went to investigate and after checking my LM-BlackMagis.zip file noticed that there is no themes/LM-BlackMagic/forums/images/board folder that came with the installation of the theme.  Did I miss something or did it just not make it into the file?


Don't mean to dump on you with all this.  I really am excited about the direction you guys are headed.

BTW: If you need to look for yourself,
Please login to see this link
Get registered or Log in
and your username is coRpSE.

So, this is not criticism, but if it helps you make it better, consider it so...

Thanks,
Jeff

#3: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun May 02, 2021 7:59 pm
    —


  1. I ran into this during the 2.0.9f update required for the new theme.  After completing the update, the "backtothetop" button no longer works.  On some themes(SimpleBlack2) it will move a single line up and on other themes it has no effect at all.  It shows up on all of them, but just doesn't take you back to the top when you press it. (Worked fine before the 9f update)
  2. I can't get my LM-BlackMagic to use the entire screen like you have here no matter how hard I try.  Now, I think there are a lot of settings that are hard-coded that will probably be in the next release that may make this easier. But, how do I get the theme to use the entire screen width? One difference is that I use both side panels and you are only using the left panel.  Don't know if that is a problem or not.
  3. Periodically(I haven't nailed down exactly what triggers it) the page will take forever to load.  If I'm lucky I can sometimes catch it and see in debug that its loading the same code over and over again.  I think its jscript but I'm not sure and I can't remember right now any of the lines of code to help determine where this may be happening.  So, just wondering if you've heard anything like this mentioned.
  4. (and this one probably is for Lonestart but I'm shotting it out to you anyway) If I use the Unanswered Posts link, the resulting page shows an ALT text of No New Posts and a broken icon link for img src="themes/LM-BlackMagic/forums/images/board/folder.png" width="19" height="18" alt="No new posts" title="No new posts". I went to investigate and after checking my LM-BlackMagis.zip file noticed that there is no themes/LM-BlackMagic/forums/images/board folder that came with the installation of the theme.  Did I miss something or did it just not make it into the file?


Okay, I will go through this as much as I can.
The LM_BlackMagic theme is a fixed width theme, that is hard coded to be like it is. For the past 2 weeks, I have been rewriting the version on my site to make it different from everyone else that is running that theme. I also have been going through and updating files that were not made responsive like the user profile section, forums search, forum groups, ect... I have been giving the files to Lonstar to make what ever adjustments that is needed then he can repack them into a theme update.

Also, you mentioned the missing icons, this is known. I personally went in and re-coded the core edits, not the theme edits, to now use fontawsome icons instead of images. Using your example, I would go in and find where it was looking for:

Code: [ Select all ]

<img src="themes/LM-BlackMagic/forums/images/board/folder.png" width="19" height="18" alt="No new posts" title="No new posts">

and replace it with html code I would get from the fontawsome website for the icon I want to use.
Basically, I would find an icon like
Found here:
Please login to see this link
Get registered or Log in

and using the code provided:
I would replace the image code with:

Code: [ Select all ]

<i class="far fa-folder" title="No new posts"></i>

You can see I just copied the HTML code from that and replaced the image, but I also put the title to it.

Okay, now onto your question about the to-top script, I am not seeing any errors, so I don't know about that. I will let Lonestar know about this post, and he may have a few different idea's.

Now, for the Slow page loading. That could be anything. Is it happening with all themes, or just certain themes?
I noticed that your site is running 370 DB queries on each page load. I am sure that could lessen by making some of those blocks cache the information, so it doesn't need to call 370 DB queries each time the page loads. Likewise, I am running into the same issue on my site. I have it down to 100 DB queries ATM, but I want to get that as minimum as I can.
Last edited by coRpSE on Sat May 15, 2021 10:05 am; edited 1 time in total

#4: No icon Re: New Theme Coming w/ some site changes Author: Lonestar PostPosted: Mon May 03, 2021 3:16 am
    —
In order to figure out what is causing the conflict with the "Back to Top" script, I will require and temp FTP and Admin login, The admin login is for me to be able to disable the blocks on the homepage until I find the block causing the conflict, and make the necessary change to fix the script.

As for the slow page load times, Using the network tab in the developer console, I can see that your Event calendar mod, take a nearly a full 2 seconds to load, this is one of the main causes of slow loading, Like coRpSE says, It could also be the amount of database connections you are making on the homepage as well, 352 queries is a very large amount for a landing page, This items need to be cached, especially the data that is not updated very often.

Also the screen size checker mod you are using, is causing quite a lot of screen load lag, I am not sure what you are using to find the screensize, but what ever it is, I would disable it to save on load times.

#5: No icon Re: New Theme Coming w/ some site changes Author: Trowbie PostPosted: Mon May 03, 2021 6:43 am
    —
Thank you both for the input.

Will work on the issues you mention over the next several days.

Lonestar, thanks for your offer to look into the button.  I'll PM you on your site as soon as I get you an ID setup.

#6: No icon Re: New Theme Coming w/ some site changes Author: Trowbie PostPosted: Tue May 04, 2021 8:21 pm
    —
[quote="coRpSE";p="7412"]
— Trowbie wrote

Now, for the Slow page loading. That could be anything. Is it happening with all themes, or just certain themes?
I noticed that your site is running 370 DB queries on each page load. I am sure that could lessen by making some of those blocks cache the information, so it doesn't need to call 370 DB queries each time the page loads. Likewise, I am running into the same issue on my site. I have it down to 100 DB queries ATM, but I want to get that as minimum as I can.


Thanks for the idea of caching the pages.  I've been able to halve the number of DB calls on the main page as well as given me some ideas for other places deeper in the site.  Great tip!

I did a fair amount of digging today an I came up completely blank on the btt issue.  I found the javascript that handles that and compared it to the one that was there before 209f and the only differences were in the comments.  The actual code is exactly the same.
If I use the BlackMagic theme with the btt set to true(disable evo button), the icon changes but absolutely nothing happens when you click it.  If I set it to false(use the evo button) then the old button icon comes back but when I press it the page moves towards the top just one line.  Doesn't matter which theme I use, they all behave the same so it's not a BlackMagic issue its a 209f issue.  Still stumped on that.  I think LoneStar has been in looking at it.  I'll keep digging as well and let you know if I come across anything.

Appreciate the info on the missing folder.  At least it wasn't something I missed when I downloaded the theme.  That's mostly cosmetic and is on a page which isn't visited too often.  I'll keep your tips for when I get time to dig into it. (Or, when the next update comes out.)

#7: No icon Re: New Theme Coming w/ some site changes Author: Trowbie PostPosted: Tue May 04, 2021 8:34 pm
    —
— Lonestar wrote
As for the slow page load times, Using the network tab in the developer console, I can see that your Event calendar mod, take a nearly a full 2 seconds to load, this is one of the main causes of slow loading,

Thanks.  My whole race scheduling system is ingrained in that calendar software so I may be stuck with that.  Been running it for years.  However, I will look into it and see if there are some opportunities for improvement.  It runs outside the nuke environment and the calendar is just an iframe display from it.

— Lonestar wrote
Like coRpSE says, It could also be the amount of database connections you are making on the homepage as well, 352 queries is a very large amount for a landing page, This items need to be cached, especially the data that is not updated very often.

See my response to coRpSE above. Big change in those windows loading since cacheing them.

— Lonestar wrote
Also the screen size checker mod you are using, is causing quite a lot of screen load lag, I am not sure what you are using to find the screensize, but what ever it is, I would disable it to save on load times.

I've disabled it on initial page load.  Client can still request if they need to.  It's a simple call back to the site with the screen sizes in the session response.  However, the need for it has changed since 209f.  The changes in 209f have made the screen more responsive and I can now adjust my coding to let html size the data as opposed to me doing it.  
Thanks.

Oh, and BTW: I came across your Easter Egg.  Nice job.  That should be in one of the default theme windows when you first install BlackMagic.  Clever.   lachen

#8: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue May 04, 2021 9:46 pm
    —

Oh, and BTW: I came across your Easter Egg.  Nice job.  That should be in one of the default theme windows when you first install BlackMagic.  Clever.   lachen


Which one?

Also, I still think it's either a corrupt file, or something that wasn't uploaded. I uploaded 2.0.9F on several websites including this one, updating them from 2.0.9D to E to F and have not run into that issue.

It could be even a conflict somewhere with something else that is installed. The way I would go about trying to find the fix, is I would do these steps,
  1. First, I would find all the CSS and js files for the to-top and re-upload them. Heck, I probably just re-upload the includes folder, (of course keeping a backup first). Now, if that didn't work, I would proceed to...

  2. Disabling all blocks on the left since I know that those are the only ones active on the home page and the forums, and it's not working on both. If it works then, reactivate each block one by one till it doesn't, then you know where your issue is. If it still doesn't work...

  3. Go through and disable all custom mods that were installed and check, if it works, reactivate one by one until it stops working, then you know where the issue lies.


Since this issue seems to be plaguing your site, I believe it could be something you missed when updating. When you updated your site, what was your site previously on? Were you running 2.0.9E, or F? Did you upload all the site files, or did you just do the E to F update? There is just so many variables to be able to say, "this is the problem", especially since your the first to have this issue as far as I know.

#9: No icon Re: New Theme Coming w/ some site changes Author: Trowbie PostPosted: Wed May 05, 2021 8:34 am
    —
Thanks, coRpSE. (LoneStar, too).  Appreciate you taking the time to look.
At least you've confirmed it's isolated to my site.  It worked on 209e and failed after the 209f update.  I have a test environment (experiencing the same problem) so I'll restore that back to 209e, make sure it works, then do the 209f upgrade again.  When I figure it out, I'll let you know.

-- Edited -- -- Removed Easter Egg --

#10: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed May 05, 2021 11:42 am
    —
Ah, okay. Yeah, those Easter Egg's came with E I believe. It was the same patch we released the ReCaptcha and removed the old captcha system.

#11: No icon Re: New Theme Coming w/ some site changes Author: Lonestar PostPosted: Wed May 05, 2021 2:01 pm
    —
Sorry, I have not got around to looking at your site yet, I have not been well this past week, So I have not been at my computer that much. I will get around to looking in to the problem in the next few days, If not sooner.

#12: No icon Re: New Theme Coming w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu May 06, 2021 9:21 am
    —
Loved how you MOD Lonestar's Theme to your site. It looks goood, and you said that you're not a Themer, hurh?  lol I think you have a little that in ya!  zwinkern

#13: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 06, 2021 10:48 am
    —
— EmeraldDragon wrote
Loved how you MOD Lonestar's Theme to your site. It looks goood, and you said that you're not a Themer, hurh?  lol I think you have a little that in ya!  zwinkern


I never said I couldn't make a theme look the way I wanted, I've done that with every theme we every used. I just don't do themes from the ground up.
zunge zeigen  zunge zeigen  zunge zeigen  zunge zeigen  zunge zeigen
Ped from ClanThemes tried getting me to make themes for years, heck, we had a couple of stock templates that was available to use, then you would alter from there. He kept trying to get me to do that because he liked my styling taste and thought I would be a good designer, but, I just never wanted to. And with today's standards of making everything using divs and making things responsive, I am still getting use to it. I liked the order of tables, and without bootstrap or other grid systems, I see divs as chaos. What I mean is, I can sit and look at tables, without using a browser or an editor, just looking at the code, I can get a mental picture of what it will look like. CSS and Divs, not so much. But messing with this theme with bootstrap and working on some files that were missed/skipped, I found that I could sort of see the mental pattern, but, it's still not as good as tables.

You can see the many themes over the years here:
Please login to see this link
Get registered or Log in

#14: No icon Re: New Theme Coming w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu May 06, 2021 11:15 am
    —
— coRpSE wrote
And with today's standards of making everything using divs and making things responsive, I am still getting use to it. I liked the order of tables, and without bootstrap or other grid systems, I see divs as chaos. What I mean is, I can sit and look at tables, without using a browser or an editor, just looking at the code, I can get a mental picture of what it will look like. CSS and Divs, not so much. But messing with this theme with bootstrap and working on some files that were missed/skipped, I found that I could sort of see the mental pattern, but, it's still not as good as tables.

Yeah, once you get over the DIVs and CSS shills and bills. It sort of cruse control. I am still trying to get use to the NEW responsiveness theming. Learning as I go looking at every sources I can find on the web, seeing what you did with Lonestar theme even put more ??? on how to on some of the thing that you did. Especially the effects and animate flashing fonts. I guess I will have try to figure out how it works, so I can incorporate it into some of my themes.

— coRpSE wrote
You can see the many themes over the years here:
Please login to see this link
Get registered or Log in

Yep, I remembered you showed me that.

#15: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 06, 2021 11:33 am
    —
— EmeraldDragon wrote
Yeah, once you get over the DIVs and CSS shills and bills. It sort of cruse control. I am still trying to get use to the NEW responsiveness theming. Learning as I go looking at every sources I can find on the web, seeing what you did with Lonestar theme even put more ??? on how to on some of the thing that you did. Especially the effects and animate flashing fonts. I guess I will have try to figure out how it works, so I can incorporate it into some of my themes.


If you want me to do a tutorial on the animations, I can do that. I've been messing with animations for a while now and have fun with them. I did a whole bunch for my timeline module previously, and did a few with the donations blocks with hover effects, to even I had on the old downloads and the honeypot, when you clicked on the search input, it would grow. I didn't do it to Lonestars Repository, but I believe the Honeypot still has it, it is on mine. Like the social icons in the upper right, that there I am running multiple animations sequenced. I could do a whole video tutorial or a written tutorial on them if you like.

#16: No icon Re: New Theme Coming w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu May 06, 2021 12:36 pm
    —
— coRpSE wrote
If you want me to do a tutorial on the animations, I can do that. I've been messing with animations for a while now and have fun with them. I did a whole bunch for my timeline module previously, and did a few with the donations blocks with hover effects, to even I had on the old downloads and the honeypot, when you clicked on the search input, it would grow. I didn't do it to Lonestars Repository, but I believe the Honeypot still has it, it is on mine. Like the social icons in the upper right, that there I am running multiple animations sequenced. I could do a whole video tutorial or a written tutorial on them if you like.

Yes, please. I am a visual person, so video tutorial would be nice. Written tutorial works too, but if it is a long drawn paragraph (or even multiple paragraphs). My eyes gets tired looking at it. I have very bad eyesight.  weinen (I guess I spend way too much time on the screen when I was young. LOL!

So, if I have to pick. It would be video tutorial.  herz

#17: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 06, 2021 12:45 pm
    —
Okay, I will work on a few examples later tonight and hopefully start filming this weekend.

#18: No icon Re: New Theme Coming w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu May 06, 2021 1:53 pm
    —
Thanks a whole bunches. Go HeadShot

#19: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun May 09, 2021 12:51 am
    —
Okay, this topic got side tracked a little. I am still working on the CSS stuff, hopefully will record tomorrow.

Now, back on the subject. I decided to just put this theme on default and remove the other two themes due to a day 1 bug in the CMS, well, as far as I know it's a day 1 bug. There are still things I want to do to the theme and to the forums, so expect some changes. If you come to the site, and it looks a bit funky, generally give it a min and refresh, that might have been me that did that.

Now, if you see any bugs or issues, or have any suggestions, speak up, I am all ears.

#20: No icon Re: New Theme Coming w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon May 10, 2021 2:10 pm
    —
Edited first post. I built in a simple change into the "At a Glance" system to when there is a new unread post, it will flicker the title.

The "At a Glance" system is when you come to the forums here, at the top, you see the latest news, and then there are the last 4 recent post, and you can flip through pages there, well, that's the system I am talking about. On other themes, it would use an image on the left and that image would change depending on if there is unread message or not. Well, I did a slight change to now have the title flicker & go bold when there is a new post that you have not read yet.

This is only a trial and if anyone has any suggestions, let me know.
Last edited by coRpSE on Mon May 10, 2021 5:06 pm; edited 1 time in total

#21: No icon Re: New Theme Coming w/ some site changes Author: zardosLocation: North west of England PostPosted: Mon May 10, 2021 4:55 pm
    —
Nice job coRpSE, well done. zwinkern

#22: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat May 15, 2021 10:01 am
    —
Okay, another update. First post has been updated. I added the quick reply into this theme. Just took the code from posting and put it in the quick reply for the most part. Removed a bunch of the stuff that isn't used and what not. Nothing major since for the most part, most of it was already coded from a different file, just a copy and paste, then liposuction to the code to get rid of the unneeded stuff.

Also, went through and cleaned up the steam button on-hover in the forums a bit to make it cleaner and make it so when you hover on this site, it all lines up, but, I will need to go through and rewrite all the style again soon.

May replace the hover with a click system, we will see.

#23: No icon Re: New Theme w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Mon May 17, 2021 7:40 am
    —
10 von 10

#24: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 20, 2021 7:42 pm
    —
Okay, Small update. I did some work to the navigation of this site. I made it so when you scroll down on the page, the navigation becomes sticky. It was mostly done for when it's shrunk for mobile, but, I decided to put it for everything for now. There is still some work that needs to be done, but I am getting there.

#25: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun May 23, 2021 12:52 pm
    —
Okay, once again, I updated the first post. Added in a new feature for logging in with the use of the social icons.
Expand
Click on image to enlarge.

#26: No icon Re: New Theme w/ some site changes Author: Lonestar PostPosted: Sun May 23, 2021 4:58 pm
    —
Nice job m8, you will have to send me that  I'll add it to my new theme lachen

#27: No icon Re: New Theme w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu May 27, 2021 8:57 am
    —
Man you are going all out for this. Now I am feeling like an amateur now.   lol

#28: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 27, 2021 1:01 pm
    —
— EmeraldDragon wrote
Man you are going all out for this. Now I am feeling like an amateur now.   lol


lol

#29: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat May 29, 2021 1:49 pm
    —
Okay, a small update has been applied to the theme. This one took a bit to get fixed because every solution I found, just didn't work the way I wanted it to. So, I just applied something I thought might work, and it did.

Okay, Now, if you go to a post that has a YouTube video on it, you will now notice that there is no link under it saying [Watch on YouTube], or what ever it said. I removed that for two reasons.

  1. It was in my way.
  2. It's a bit redundant, for there is already a link on the video saying Watch on YouTube. No point having it twice.


The second thing that was done was, there was a gap under the YouTube videos where if you were on a large monitor, it would put up to a, (rough estimate), 350px gap under the video to the text that said "Watch On YouTube". Even removing that text, that gap was still there. So, I was able to fix that with a simple edit that I came up with, because, I just overcomplicated it trying to do something others already have done, and found that their fixes just failed.

If you're wondering, and if you have this theme, and have the same issue, all I did was opened the bbcode.tpl file and removed the:

Code: [ Select all ]

<br />[<a href="https://www.youtube.com/watch?v={YOUTUBE}" target="_blank">{WATCH_YOUTUBE}</a>]

From both instances of the YouTube code.

After that, I modified the class of the div and added a new class and put it AFTER the last class which is embed-responsive-16by9, so the classes are class="embed-responsive embed-responsive-16by9 youtube-max".

Once I did that, saved that file and opened up the style.css file and in their created a new class. I did a search for .embed-responsive-16by9::before and when I found that class, above it, (so I keep everything together), I put:

Code: [ Select all ]

.youtube-max {
   max-height:380px;
}


That's it. Like I said, it was an easy fix that I just over complicated at first.

#30: No icon Re: New Theme w/ some site changes Author: Lonestar PostPosted: Sat May 29, 2021 4:07 pm
    —
This is one of the pitfalls of using BOOTSTRAP, Which is why I have now moved away from using it. I now just use Flexbox and Grid for the layouts.

I will look into why the space is been created, It could be the padding I put on the embed pseudo, I will let you know what I find.

I too have remove the WATCH ON YOUTUBE link, Like you say, it is redundant now.

#31: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat May 29, 2021 5:52 pm
    —
This is one of the pitfalls of using BOOTSTRAP, Which is why I have now moved away from using it. I now just use Flexbox and Grid for the layouts.

I will look into why the space is been created, It could be the padding I put on the embed pseudo, I will let you know what I find.

I too have remove the WATCH ON YOUTUBE link, Like you say, it is redundant now.


I like Bootstrp due to its simplicity. Grid and Flexbox is not as easy to use/follow as using a front-end framework like Bootstrap. Though Bootstrap has its qwerks and sometimes requires odd workarounds, I find the simplicity in which to use it and easier layout to follow more of a pleasure to use the more I work with it, whereas grid, no matter what is a mess. Yes, grid & flex you have more freedom with them, it is however, more of a pain to work with vs using a frontend framework.

I too have been messing with Grid a bit. Been looking at redoing my steam profile. For the forums, here is a demo page I wrote up.
Please login to see this link
Get registered or Log in

Code: [ Select all ]

<!DOCTYPE html>
<html>
<head>
<style>
body{
  background-color:#000;
}
.item1 { grid-area: pic; }
.item2 { grid-area: body; }
.item3 { grid-area: status; }
.item4 { grid-area: mess; }

h1 {
  color:#0F0;
}
.grid-container {
  display: grid;
  grid-template-areas:
    'pic body status'
    'mess mess mess';
  grid-gap: 1px;
  background-color: #777;
  padding: 2px;
  height: 185px;
  width: 310px;
}

.grid-container > div {
  background-color: #252525;
  text-align: center;
  padding: 10px 2px;
  font-size: 30px;
  color: #FFF;
}

.item1 {
  width: 75px;
  height: 115px;
}

.item2 {
  width: 213px;
  height: 115px;
}

.item3 {
 width: 8px;
 height: 115px;
 background-color: #0F0 !important;
}

.item4 {
  height: 30px;
}
</style>
</head>
<body>

<h1>Grid Layout</h1>

<div class="grid-container">
  <div class="item1">pic</div>
  <div class="item2">Menu</div>
  <div class="item3"> </div>  
  <div class="item4">Right</div>
</div>

</body>
</html>


Which this mimics the look of the original, just cleaner.
Last edited by coRpSE on Sun May 30, 2021 10:16 am; edited 1 time in total

#32: No icon Re: New Theme w/ some site changes Author: Lonestar PostPosted: Sun May 30, 2021 5:44 am
    —
Yeah Flex and grid are a little harder to get used too, But once you do, You have more freedom in which to make layouts, I found that 80% of the time I was using BOOTSTRAP, I had to actually force overwrites to correct stupid little issues.

I had just started out using BOOTSTRAP when I made the LM-BlackMagic theme, And yes it was quite easy to use BOOTSTRAP to do the layout, as they had plenty of documentation on how to do everything.

However the new BOOTSTRAP is a lot more complicated to work with, They have removed all jQuery support and went with Vanilla JS instead, So that will take some time to work around, I have started an update for BlackMagic theme, and added some new features, but I am not sure whether to stay with BOOTSTRAP for this theme, or move to Flex & Grid.

I guess if you are starting to learn Grid, I could more this theme away from BOOTSTRAP in the future, however I could also code it in a way that if the base is Flex & Grid, BOOTSRAP can still be added without any conflicts.

@coRpSE: You are the only one I have seen attempt to make changes to this theme as of yet, So I will wait to see your response before making the choice of whether to move from BOOTSTRAP.

#33: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun May 30, 2021 12:10 pm
    —
When it comes to modifying the theme, I believe many are afraid to come out and give it a try because no matter what, it's a lot of work and being new to coding, or even having some knowledge, it's daunting. When I purchased this theme from you, I bought it late last year. Granted, a short time after I purchased it from you, my PC died, and took me a few months to come back, it still took me a few months to finally get moving and start work on the theme. I guess it's like any project I do, it's really hard to start, but once started, I can't stop.

I like to keep this theme the way it is using bootstrap. I did read about that with jQuery, but I also was reading on why.

Sorry, little rant coming, not directed at you @Lonestar, it's just stating for others why I feel the way I feel, especially why I keep saying I will not develop themes.

When it comes to what I prefer to use, I will say this, I actually would like to see a global framework put in that is default with the CMS, that way, blocks, modules, and themes can be universally worked on without a mix match of styles. Granted, others CSS styles can be used, but if made available right out of the gate, its making things easier. I do understand why it may not be wanted, trust me, I've heard the arguments, I just much rather code using a singular framework. Sort of why some like using jQuery over straight JS. (I know jQuery is a Library, however, depending on the interpretation, it also meets all criteria to be classed as a framework.).  All honesty, I don't know how much I really want to code modules using grid and what not. I just personally hate wasting time on the design and rather focus on function, but, I will not release anything I deemed to look like garbage either.

The only reason I have been messing with grid is that I want my Steam system to work with any theme out there, but do I like it, not at all. Reading up on it just makes me hate it even more and how more difficult things are getting that is "supposed to make things easier". I have been an advocate on hating on CSS and the many directions it has gone and been going, that is just going to make maintaining a system more difficult. I've been saying that for over a decade now and pretty much everything I said has come true. Back in the day, (the good old days), designing a layout of a module or a block using a table structure was easy, and fast. I don't care what anyone says, when it comes to grid, flex, and other CSS structures, it's not as fast to make, and certainly harder to look at the code and understand what the intended look is going to be before you view it in browser. With old tables, I could look at a table structure and in my mind, see what it would look like, and with bootstrap and other similar frameworks, I personally find them easier to read, (not as easy as tables), because I can see what I want the to look like in my head before viewing in browser, as-well as I find it easier to work with and alter.

Let me break this down for others that don't really know much about coding, especially from back in the day, so at least they know what I have been going on about. Back in the day, you had 1 layout, that was tables. Later on, came div's, hard to use, and was not simple to get universally to look the same across all browsers, (pre maturness). Now, you can still do tables, (frowned upon), or use CSS and divs like the old style of doing the CSS, or, using grid/flex, or using one of MANY front end frameworks such as Foundation, Skelton, Bootstrap, Susy, ect... We went from 1 way to many. CSS has evolved since the good old days, and I am not saying it was for the worst, quite opposite, for the better in many ways, like responsiveness of websites, it's just terrible to work with compared to the simplicity of the way things were and could be. Granted, the foundations of the frameworks is still CSS and utilizing DIVS, what they accomplish is making it easier for you to make a layout with them already doing the hard stuff and making it easier for you to make it responsive. Sort of make it like how tables were back in the day.

Overall, if I could, from here on out, all my modules/blocks would be designed would be designed with a framework if it was implemented, but, with grid/flex, I don't see much coming out from me anytime soon, because I really hate that headache, hence why it has been taking me so long just to update the Steam module.

#34: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun May 30, 2021 7:53 pm
    —
[UPDATED FIRST POST]

Using Local storage, I put together a system that allows you to have this site as a blue site or a green site. (Default is green).
I am still in the process of working on it and adding too it, but at its current state, I think it is good enough to have available to everyone.

Note: There is a flicker of the default color when the page first loads in if you are using the blue, I am trying to find a way to stop that from happening.
As always, any thought or suggestions is appreciated.

The button is in the upper left of the screen, to the left of the navigation.

#35: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon May 31, 2021 8:36 pm
    —
[UPDATE]

Flicker is fixed and is no longer flickering. I was able to shorten the script as well. Less code the better.

#36: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Jun 01, 2021 11:21 pm
    —
Last update for the color:
I added in a 3rd option for the color choices, now have Red, Green, and Blue as an option.

#37: No icon Re: New Theme w/ some site changes Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Thu Jun 03, 2021 8:23 am
    —
— coRpSE wrote
Last update for the color:
I added in a 3rd option for the color choices, now have Red, Green, and Blue as an option.
2 daumen hoch

#38: No icon Re: New Theme w/ some site changes Author: nextgenLocation: Maryland PostPosted: Fri Jun 04, 2021 1:06 pm
    —
In your Grid how do you tell which component to go to which grid area. For example, where do the forums know where to load ?

#39: No icon Re: New Theme w/ some site changes Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Jun 04, 2021 1:44 pm
    —
— nextgen wrote
In your Grid how do you tell which component to go to which grid area. For example, where do the forums know where to load ?

Which grid are you referring to? The only use of grid that I used was in my example in the post above,
Please login to see this link
Get registered or Log in


If you're talking about that example there, you can see that I define a class called item1, item2, item3, and item4. I set those to show grid areas that I define. Then, under the container, I have grid-template. I have that set so its 3 wide by two high, so with the template, that's why its:

Code: [ Select all ]

grid-template-areas:
    'pic body status'
    'mess mess mess';

First section correlates saying I want the pic on the left top, the body will be the top middle, and the status as the top right. Since I have 3 on top and I want the bottom section to span all 3, that's why I did mess mess mess, which makes the .item4 div span the full width of the top 3 blocks.

This is one technique of using grid and flex, but you can see just by this 1 example of how much more of a pain it is compared to if I just used a framework like bootstrap, and that is not even responsive yet.

This site, with this theme that I am using now, is using Bootstrap which I find easier to use since it shares a lot of similar feelings with tables, (which I am use too), and the one major rule of thumbs is, you need to remember it each row adds up to 12.



HeadShot Extreme -> WebSite Changes


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1