The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Staff Post Gradient codes not working

View previous topic View next topic Go down

Solved Staff Post Gradient codes not working

Post by Mario 2.0 on November 13th 2013, 7:04 am

Hi all,

I'm currently using phpBB 3 and I've tried nearly all of the staff post gradient setups, and so far none have worked for me. Anyone know of any that are known to be working right?


Last edited by Mario 2.0 on November 15th 2013, 3:23 am; edited 1 time in total

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ikerepc on November 13th 2013, 8:38 am

Hello,

you need in place of members rank put this code:

Code:
<span class="modgradient">RANKHERE</span>
And then create JavaScript code and fill that like:

Name: staff gradient
Tag: In topics
Code:
Code:
$(function() {
$('div.post:has(".modgradient")').css('background','#DAE6F0 url(http://i48.servimg.com/u/f48/17/48/49/15/photo10.png) repeat-y');
});
And that need to me all. It works for me.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 13th 2013, 4:26 pm

I just tried that, and it's still not working.

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by SLGray on November 14th 2013, 2:32 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35641
Reputation : 2374
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 14th 2013, 4:28 am

Which code would I try?

http://help.forumotion.com/t109450-staff-gradient-post-code-not-working#716373

I've already tried that one. The code following that is for PunBB, unless I'm reading it wrong.

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ikerepc on November 14th 2013, 6:42 am

Are you shure you are tag in topics, give staffs that rank and tag for display JavaScript codes yes?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 14th 2013, 6:48 am

Zyon wrote:Are you shure you are tag in topics, give staffs that rank and tag for display JavaScript codes yes?
Yes.

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ikerepc on November 14th 2013, 7:13 am

Have you some others codes in JavaScript?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 14th 2013, 5:45 pm

Zyon wrote:Have you some others codes in JavaScript?
Nope.

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ikerepc on November 14th 2013, 7:24 pm

Can you give us your forum url and codes what you using? I really don't know why it don't work, I use same codes on my forum, and it work perfect, only if you have in css different color...

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 14th 2013, 10:25 pm

http://fmadmins.forumotion.com/

<span class="gradiantpost"><b><font color="red">Lead Admin</font>istrator</b></span>


Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ange Tuteur on November 14th 2013, 10:34 pm

You need to change your selector in the script:

.modgradient => .gradiantpost

or you can do it for your rank:

.gradiantpost => .modgradient

do that and it should work.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 14th 2013, 11:44 pm

Hi Seth,

I've tried doing it both ways, and it still won't work for some reason.Confused

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Ange Tuteur on November 14th 2013, 11:58 pm

Does your script have any line breaks? I've noticed It had line break when I copied it. It creates an unterminated string.

Use select content to grab the contents(code tags been acting wonky)

For this try with script tick: "in all the pages"
Code:
$(function() {
$('div.post:has(".YOURSELECTOR")').css('background','#f0f0f0 url(http://i48.servimg.com/u/f48/17/48/49/15/photo10.png) repeat-y');
});
Wrap this around your rank:
Code:
<span class="YOURSELECTOR"></span>

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Mario 2.0 on November 15th 2013, 3:21 am

Thanks Seth! When I looked closely, it was indeed a simple error that I had made, but I give credit to Seth for helping me find it in a way.

Kudos!

Mario 2.0
Forumember

Male Posts : 60
Reputation : 3
Language : English
Location : Virginia

Back to top Go down

Solved Re: Staff Post Gradient codes not working

Post by Sanket on November 15th 2013, 4:45 am

Topic Solved & Locked.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum