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.

How can I change the staff posts backgrounds on PunBB?

View previous topic View next topic Go down

Solved How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 8:49 am

Hi all,
How can I change the staff posts backgrounds on PunBB?

Best Regards,
Dark-Avenger


Last edited by Dark-Avenger on June 3rd 2014, 10:23 am; edited 1 time in total
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 9:14 am

Hi Mark:),
I follow the tutorial but it changed other parts on post body as you can see here http://prntscr.com/3p772l
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by SLGray on June 3rd 2014, 9:39 am

Please post the codes that you used.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40523
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 9:48 am

Hi SLGray,
I change the rank into this

Code:

<span class="st-rang">Forum Founder</span>

I add to CSS this code:
Code:
.post.online.st-answer {
background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top, url("http://illiweb.com/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.st-answer {
background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top #E5F1F9;[
}
and substitute the image url.

and the javascript:
Code:
$(function() {
$('.st-rang').closest('.post').addClass('st-answer');
});
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by SLGray on June 3rd 2014, 9:54 am

Did you set the JavaScript for in topics?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40523
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 9:58 am

Yes of course.
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Jophy on June 3rd 2014, 10:00 am

Hello,

I think the codes are from the Spanish support forum, did you try asking them?
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by SLGray on June 3rd 2014, 10:01 am

Also the way it looks here will not appear that way on a punBB forum.  It covers only the profile background.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40523
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 10:05 am

Jophy wrote:Hello,

I think the codes are from the Spanish support forum, did you try asking them?
Hello Jophy,
The codes are from this support forum http://help.forumotion.com/t129026-staff-post-gradient-color#864066
.
SLGray is there a way to cover the body of the post and not the profile's background?
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Jophy on June 3rd 2014, 10:19 am

It seems the codes are not for punBB, try this:
CSS:

Code:
.postmain.online.st-answer {
background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top, url("http://illiweb.com/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.postmain.st-answer {
background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top #E5F1F9;[
}

For JS:

Code:
$(function() {
$('.st-rang').closest('.postmain').addClass('st-answer');
});
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Van-Helsing on June 3rd 2014, 10:22 am

Thank you very much these are the correct codes.
Problem solved.

Best Regards,
Dark-Avenger
avatar
Van-Helsing
Hyperactive

Male Posts : 2324
Reputation : 92
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the staff posts backgrounds on PunBB?

Post by Jophy on June 3rd 2014, 10:24 am

Smile

Solved
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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