Author Topic: Site Suggestions  (Read 314825 times)

Offline mmgfarb

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2015
  • Posts: 8355
  • Total likes: 1110
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Site Suggestions
« Reply #820 on: February 21, 2018, 12:18:37 AM »
For yourself?

Install the Chrome extension called Stylish: https://chrome.google.com/webstore/detail/stylish-custom-themes-for/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en

Create a new script that looks like this:



(Copy and paste the code from my post upthread)

For the entire DDF community, you'll have to ask someone who knows how SMF works.
Thanks!
"JS [is] a fetid cesspool of unvarnished linguistic manure, with lots of useless drivel and post-padding." -Moishebatchy

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5020
  • Total likes: 2237
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #821 on: February 21, 2018, 01:27:51 AM »
http://forums.dansdeals.com/index.php?action=admin;area=theme;th=1;;sa=edit;filename=css/index.css


before
Code: [Select]
/* Styles for print media.add
Got it!
Code: [Select]
.subject.windowbg2 div{
    position: relative;
    padding-left: 50px;
}

a[id^="newicon"] {
    position: absolute;
    left: 6px;
    top: 10px;
}

a[id^="newicon"] img {
   height:14px;
}


["-"]

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5020
  • Total likes: 2237
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #822 on: February 21, 2018, 01:29:40 AM »
the document would end with

#helpmain ul
{
   line-height: 1.5em;
}

.subject.windowbg2 div{
    position: relative;
    padding-left: 50px;
}

a[id^="newicon"] {
    position: absolute;
    left: 6px;
    top: 10px;
}

a[id^="newicon"] img {
   height:14px;
}


/* Styles for print media.
------------------------------------------------------- */
@media print
{
   #headerarea
   {
      display: none;
   }

   .tborder
   {
      border: none;
   }
}
["-"]

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #823 on: February 21, 2018, 12:18:20 PM »
Code: [Select]
.subject.windowbg2 div{
    position: relative;
    padding-left: 50px;
}

a[id^="newicon"] img {
   height:14px;
}

I would do this a bit different.

.subject.windowbg2 { .... }
instead of
.subject.windowbg2 div { ...}

and
a[id^="newicon"] > img { .... }
instead of
a[id^="newicon"] img { ...}

With modern browsers it shouldn't make any real difference but this is more efficient.
The way you have it, for each img and div on the page it would go all the way up the DOM looking for a .subject.windowbg2 or a[id^="newicon"] ancestor. (and each page here has like 6000 imgs) This way the extraneous div is removed and the img only looks one level up.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • Total likes: 3316
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Site Suggestions
« Reply #824 on: February 21, 2018, 12:21:48 PM »
I would do this a bit different....
I don't totally follow, but here's my new code, which seems to work the same:

Code: [Select]
.subject.windowbg2 {
    position: relative;
    padding-left: 50px;
}

a[id^="newicon"] {
    position: absolute;
    left: 6px;
    top: 10px;
}

a[id^="newicon"] > img {
   height:14px;
}
Workflowy. You won't know what you're missing until you try it.

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #825 on: February 21, 2018, 12:44:19 PM »
I don't totally follow
Basically, CSS works right to left. It starts with the rightmost part of the rule and works its way back
So for
Code: [Select]
.subject.windowbg2 divwhich basically says "a div which is a descendant of an element with the classes subject and windowbg2," every time it encounters a div it looks all the way up the DOM to see if it has an ancestor with those classes. Adding the ">" tells it to look at the direct parent only.


One change to make it work for stickied posts
Code: [Select]
.subject.windowbg2, .subject.stickybg2 {
    position: relative;
    padding-left: 50px;
}

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • Total likes: 3316
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Site Suggestions
« Reply #826 on: February 21, 2018, 01:02:45 PM »
Basically, CSS works right to left. It starts with the rightmost part of the rule and works its way back
So for
Code: [Select]
.subject.windowbg2 divwhich basically says "a div which is a descendant of an element with the classes subject and windowbg2," every time it encounters a div it looks all the way up the DOM to see if it has an ancestor with those classes. Adding the ">" tells it to look at the direct parent only.


One change to make it work for stickied posts
Code: [Select]
.subject.windowbg2, .subject.stickybg2 {
    position: relative;
    padding-left: 50px;
}
Aha! I just didn't realize that
Code: [Select]
.subject.windowbg2 div would work the same as
Code: [Select]
.subject.windowbg2 since you're not referring to the same element.
Workflowy. You won't know what you're missing until you try it.

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #827 on: February 21, 2018, 01:39:27 PM »
Aha! I just didn't realize that
Code: [Select]
.subject.windowbg2 div would work the same as
Code: [Select]
.subject.windowbg2 since you're not referring to the same element.
It's not exactly the same, it's a few pixels off.
An absolutely positioned element is positioned based on its closest ancestor with a non-static position.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • Total likes: 3316
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Site Suggestions
« Reply #828 on: February 21, 2018, 01:53:42 PM »
It's not exactly the same, it's a few pixels off.
An absolutely positioned element is positioned based on its closest ancestor with a non-static position.
I think that's a little over my head :) what does non-static position mean?
Workflowy. You won't know what you're missing until you try it.

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #829 on: February 21, 2018, 02:09:05 PM »
I think that's a little over my head :) what does non-static position mean?
I was going to try and explain it but I figure why re-invent the wheel?
From a quick glance here it seems this is a good explanation:
https://www.thoughtco.com/absolute-vs-relative-3466208

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • Total likes: 3316
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Site Suggestions
« Reply #830 on: February 21, 2018, 02:16:30 PM »
I was going to try and explain it but I figure why re-invent the wheel?
From a quick glance here it seems this is a good explanation:
https://www.thoughtco.com/absolute-vs-relative-3466208
Thanks, that was a great read! So by "non-static" you refer to  absolute, relative, or fixed?
Workflowy. You won't know what you're missing until you try it.

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #831 on: February 21, 2018, 02:22:49 PM »
Thanks, that was a great read! So by "non-static" you refer to  absolute, relative, or fixed?
Yes

Offline whYME

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 3213
  • Total likes: 1240
  • DansDeals.com Hat Tips 3
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #832 on: February 21, 2018, 03:46:33 PM »
Gonna need @BAHayman or @whYME to figure out where to stick that.

Hmmm, I seem to have found a bug with this plugin. Apparently when there's more than 1 member mentioned the subject line of the 1st member's email overwrites the subject line of the relevant post

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8611
  • Total likes: 3999
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Site Suggestions
« Reply #833 on: March 12, 2018, 05:57:21 PM »
Don’t know if it’s just me, but I’m getting a scammy pop up on DDF on my brand new iPhone.

Visibly Jewish

Offline Dan

  • Administrator
  • Dansdeals Lifetime 50K Diamond Elite
  • **********
  • Join Date: May 2008
  • Posts: 67598
  • Total likes: 16909
  • DansDeals.com Hat Tips 16442
  • Gender: Male
    • View Profile
  • Location: CLE
  • Programs: UA GS, AA EXP, DL Dirt, Hyatt Glob, Fairmont Lifetime Plat, DD Diamond, Blocked By @NeriaKraus
Re: Site Suggestions
« Reply #834 on: March 12, 2018, 06:00:57 PM »
Don’t know if it’s just me, but I’m getting a scammy pop up on DDF on my brand new iPhone.
Anyone else?
Save your time, I don't answer PM. Post it in the forum and a dedicated DDF'er will get back to you as soon as possible.

Online TimT

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Dec 2013
  • Posts: 22077
  • Total likes: 7130
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Site Suggestions
« Reply #835 on: March 12, 2018, 06:02:39 PM »
Yes. It’s a common problem on many sites, not just DDF. Google it

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5020
  • Total likes: 2237
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Site Suggestions
« Reply #836 on: March 12, 2018, 06:02:52 PM »
Don’t know if it’s just me, but I’m getting a scammy pop up on DDF on my brand new iPhone.


perfect timing for spring cleaning, clean your pc.

its only on dansdeals or on other sites as well?
["-"]

Offline yuneeq

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2013
  • Posts: 8611
  • Total likes: 3999
  • DansDeals.com Hat Tips 10
  • Gender: Male
    • View Profile
  • Location: NJ
Re: Site Suggestions
« Reply #837 on: March 12, 2018, 06:05:52 PM »
Yes. It’s a common problem on many sites, not just DDF. Google it

Will do. Thanks

perfect timing for spring cleaning, clean your pc.

its only on dansdeals or on other sites as well?

It’s a brand new iPhone that i just started using.
Visibly Jewish

Offline Dan

  • Administrator
  • Dansdeals Lifetime 50K Diamond Elite
  • **********
  • Join Date: May 2008
  • Posts: 67598
  • Total likes: 16909
  • DansDeals.com Hat Tips 16442
  • Gender: Male
    • View Profile
  • Location: CLE
  • Programs: UA GS, AA EXP, DL Dirt, Hyatt Glob, Fairmont Lifetime Plat, DD Diamond, Blocked By @NeriaKraus
Re: Site Suggestions
« Reply #838 on: March 12, 2018, 06:09:16 PM »
Yes. It’s a common problem on many sites, not just DDF. Google it
You have had it on DDF? When?
Save your time, I don't answer PM. Post it in the forum and a dedicated DDF'er will get back to you as soon as possible.

Online TimT

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Dec 2013
  • Posts: 22077
  • Total likes: 7130
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Site Suggestions
« Reply #839 on: March 12, 2018, 06:12:16 PM »
Just started recently. I’ve had it in the past on other sites. Gotta delete (cookies or cache etc.)
It’s very annoying as it takes you away from DDF to their scammy sites.