PDA

View Full Version : Forum Display Enhancements - [XGFX] Default Post Colour


Pt1994
05-19-2009, 10:00 PM
This is my first ever mod that i have published :D

This modification will allow users to selct a defualt post colour that will automatically be allpied to all their posts

1. Make a New Profile Field
Admin CP > User Profile Fields > Add New Profile Field
Title: Post Colour
Description: Please use a colour code like the one below including the "#"
Eg. #FF0909
Default Value: <set this as you defualt font colour>
Max Length: 7
Field Length: 7
Type: Single Line Text Box
2.Apply these template edits to your Postbit Template
Find:
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->Replace With:
<!-- message -->
<div style="color:$post[field5];" id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->
[Remember to Click Installed] (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=214147)

Radjedef
05-20-2009, 05:01 PM
thanks, great mod!

installed :)

eTiKeT?
05-20-2009, 05:27 PM
Nice Mod :) Thanks İnstalled

Pt1994
05-20-2009, 05:39 PM
Thanks for all your encouragement guys! it means alot seeing as this is my first mod

Internetcafe
05-20-2009, 09:58 PM
Been using this version for quite a while .. :D
Default Font (https://vborg.vbsupport.ru/showthread.php?t=171870)

goxy63
05-22-2009, 06:37 AM
Nice one, can you add font style and maybe font size/bold option !?
Cheers
Been using this version for quite a while .. :D
Default Font (https://vborg.vbsupport.ru/showthread.php?t=171870)

Its not working quite good for all of us for some reason, developer there is not active...

Pt1994
05-22-2009, 03:36 PM
You can just edit the code accordingly and ad new feilds to select style and font i will update this for it though

goxy63
05-22-2009, 07:35 PM
Well its just not working on my live forums, but on my test ones is just fine
@Pt1994
Can you be so kind to have a look, I checked everything but I just dont get it!?

Cheers

Pt1994
05-22-2009, 08:11 PM
change $post[field5] to the corrent feild id eg. if post colour is feild id 7 it would be $post[field7]

goxy63
05-22-2009, 08:19 PM
Thanks for your reply
Shure I did that but something else is problem, on my test forums it is working just fine, on live one for some reason it just cant
I started to disable all installed mods one by one to see can I find is some of other hacks bugging me
Also tried another modifications similar to yours, all of them are working on test site but none of them on my live one so it must be some ... whatever huuuhh

HMBeaty
05-22-2009, 08:22 PM
Just a suggestion, how about a clickable box that lets users look at all the colors and get their color code from there. Especially if they have no idea how to do go about getting one, or one they want

Pt1994
05-22-2009, 08:42 PM
on my website i haev a page of codes
http://www.x-gfx.com/index.php?pageid=ccodes

i can uplaod the code for it if you wish

HMBeaty
05-22-2009, 08:44 PM
I think you should. I might use it in the future, but not right now

lebmedia
05-23-2009, 02:58 AM
it's not working on my forum :(
i follow the instruction and it's not working
so any help
Ps : i change : "Title: Post Colour" To Color does it effect on in ?

and i have a question in the vb we can only use these color

https://vborg.vbsupport.ru/external/2009/05/45.jpg

so can we use all the HTML Color in this modification ?

lm3a.net
05-23-2009, 08:03 AM
Great mod

thank u

Pt1994
05-25-2009, 09:32 PM
it's not working on my forum :(
i follow the instruction and it's not working
so any help
Ps : i change : "Title: Post Colour" To Color does it effect on in ?

and i have a question in the vb we can only use these color

https://vborg.vbsupport.ru/attachment.php?attachmentid=99481&stc=1&d=1243050971

so can we use all the HTML Color in this modification ?

In vb you can use any colour its just the the colour selector is limited to the ones on display also colour change isnt reflected until the post is made

goxy63
06-01-2009, 10:20 AM
@Pt1994
These template edits are not working if you are using this hack
Chief First Post - Every Page [Forum Based]
https://vborg.vbsupport.ru/showthread.php?t=194832&page=3
If you setup within mentioned hack "no comment type" or postbit flipped" option these templates will not work
Was hitting at the wall my noobish head last two ours util I found what was the problem
LOL
Does anyone know way around this !?

Will post at "Chief First Post" thread too about this problem

LisaJH
06-05-2009, 07:30 AM
ive installed it but the color wont show up?

Pt1994
06-08-2009, 09:30 PM
could be a css issue check your css

profanitytalker
06-22-2009, 06:00 AM
reserved.

Tilly
06-27-2009, 10:58 AM
Great mod!

Question though, or suggestion.

Could you make it usergroup determined? So maybe only paid subscribers and admins / mods can change their default font color?

Pt1994
07-27-2009, 03:58 PM
you could do this with an if statement i havent done much work with vbulletin lately but if you look through some code its easy to understand

i will take a look and send you a PM