Advertisement:

Author Topic: Sticky post  (Read 528 times)

Offline bwceo

  • Newbie
  • *
  • Posts: 6
Sticky post
« on: January 29, 2019, 10:39:05 AM »
Hello guys!

I'm using Zone99 and I have a problem.

I changed some things for Sticky posts. When I go and press on Make this a Sticky post i want the post in the board to change a color (like on the second picture) . IDK how to explain. Look at the pictures

This is  the color
Code: [Select]
rgba(189, 189, 189, 0.2)
Here are the codes
Code: [Select]
$stickybar = false;
$normalbar = false;
foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg" height="20"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '">Vazne teme</td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg" height="20"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '">Obicne teme</td></tr>';
$normalbar = true;
}

Thanks

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,027
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Sticky post
« Reply #1 on: January 29, 2019, 10:41:52 AM »
In most themes, there is already a defined separate css for a sticky, so you should be able to do this a whole lot easier if you took a look at the existing code, and your existing css.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Gwenwyfar

  • Pirate valkyrie neko-chan
  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 2,082
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Sticky post
« Reply #2 on: January 29, 2019, 10:43:33 AM »
In most themes, there is already a defined separate css for a sticky, so you should be able to do this a whole lot easier if you took a look at the existing code, and your existing css.
It's actually curious that many themes seem to completely forget about it. And the locked topic background. But the class and default code for it should still be there for most of them, either way. You just have to change the colors in the css.
What can you bring down from the realm of dreams?

Be mindful of your flaws, but never forget your strengths.                                                                                                                                                       
                                                                                                                                 

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,027
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Sticky post
« Reply #3 on: January 29, 2019, 10:44:49 AM »
I've noticed - and fixed many of those for my own forum. It's irritating that theme authors just "forget" about them.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,791
  • Gender: Male
    • Kindred-999 on GitHub
Re: Sticky post
« Reply #4 on: January 29, 2019, 10:53:08 AM »
That theme appears to have hard-coded text as well.... naughty author.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 931
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Sticky post
« Reply #5 on: January 29, 2019, 10:54:49 AM »
I've noticed - and fixed many of those for my own forum. It's irritating that theme authors just "forget" about them.

that's due to lack of testing, the software is full of options and settings, one has to try everything to make sure all is good however I've noticed that most themes only customize the obvious and general parts and leave the details untouched.

Imazighen

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,027
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Sticky post
« Reply #6 on: January 29, 2019, 11:05:44 AM »
Oh, now that I remembered where that name was so familiar from - I'm fairly sure that theme is not available anymore, and hasn't been in ages. I hope you bought it legit when it was...
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline bwceo

  • Newbie
  • *
  • Posts: 6
Re: Sticky post
« Reply #7 on: January 29, 2019, 11:17:56 AM »
In most themes, there is already a defined separate css for a sticky, so you should be able to do this a whole lot easier if you took a look at the existing code, and your existing css.

Well, I went to the CSS file, found the sticky class, changed the color but its not working :(

Code: [Select]
/* Sticky topics get a different background */
.stickybg
{
background: rgba(189, 189, 189, 0.2);
}
.stickybg2
{
background: rgba(189, 189, 189, 0.2);
}

Offline SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 931
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Sticky post
« Reply #8 on: January 29, 2019, 11:18:43 AM »
you have to hard refresh your page to clear the browser cache (CTRL+F5)

Imazighen

Offline bwceo

  • Newbie
  • *
  • Posts: 6
Re: Sticky post
« Reply #9 on: January 29, 2019, 11:21:18 AM »
you have to hard refresh your page to clear the browser cache (CTRL+F5)

Yep. Still not working :3

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,944
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Sticky post
« Reply #10 on: January 29, 2019, 11:23:22 AM »
you have to hard refresh your page to clear the browser cache (CTRL+F5)

Yep. Still not working :3
  You need to clear your browser cookies if F5 doesnt work.

Offline bwceo

  • Newbie
  • *
  • Posts: 6
Re: Sticky post
« Reply #11 on: January 29, 2019, 11:25:45 AM »
you have to hard refresh your page to clear the browser cache (CTRL+F5)

Yep. Still not working :3
  You need to clear your browser cookies if F5 doesnt work.

Already tried, incognito and on my other laptop,   :(

Offline Gwenwyfar

  • Pirate valkyrie neko-chan
  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 2,082
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Sticky post
« Reply #12 on: January 29, 2019, 11:30:52 AM »
The theme might be overriding these colors somewhere else. Try adding an !important before the semicolon. If that still doesn't work it is likely something else that it has changed, you'll need to find out what.
What can you bring down from the realm of dreams?

Be mindful of your flaws, but never forget your strengths.                                                                                                                                                       
                                                                                                                                 

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,944
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Sticky post
« Reply #13 on: January 29, 2019, 11:31:25 AM »
On IE, use F5. On iMac, use Command + R. In Chrome, under more tools, use Clear browsing data. If that doesnt work, there may be a chance you made the edit in the wrong css.file

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,944
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Sticky post
« Reply #14 on: January 29, 2019, 11:33:17 AM »
Yup, like this.... background: rgba(189, 189, 189, 0.2) !important;

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,027
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Sticky post
« Reply #15 on: January 29, 2019, 11:36:07 AM »
Just a quick FYI, as this is a Dziner Studio premium theme - I will no longer provide support on issues related to the theme, unless the OP can show me they obtained it legally from Dziner Studio.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,492
    • StoryBB/StoryBB on GitHub
Re: Sticky post
« Reply #16 on: January 29, 2019, 11:37:34 AM »
Which would be unlikely as DS closed some time ago.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,027
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Sticky post
« Reply #17 on: January 29, 2019, 11:38:14 AM »
Which would be unlikely as DS closed some time ago.
Exactly.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas