![]() |
Control User Post Font via Profile Options
This will allow your member's to control their font options like: color, type, size, bold, italic, underline. They can access this by going to their UserCP and selection Edit Options.
Unfortunately without a product, I could not incorporate Usergroup permissions. I tried everything I know. Anyone is more then welcome to introduce some options that could make that work or make a product! This idea was thought from this modification: here Refer to the attached text file for instructions. Please Click Install! |
Wow! can I talk to u in private? ;)
|
Wow!, Thank you very much :)
|
Thanks! One of my members needed this
|
Can't get the color or size to work
|
Quote:
Make sure that you've edited the fieldXX with the correct field numbers. |
WOW, and this would set a default font, size, color in user posts?
This is a must! :D Will test... thanks! |
Thank you
|
Your welcome
|
I'm having some issue installing this. Where in the template? The postbit for all of the templates that are on the site?
Also, with regard to the fields. I have put them into the code as they are (font face, color, etc.) and still not working. |
Quote:
Add the code in the right spot and you should be fine. |
Quote:
I put it in presumably where it is supposed to be, however, it is not working. Could you please be more specific for us code-tarded folks. Thanks.:D Also, can you clarify - the instructions say: FIND: <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> REPLACE WITH: |
Yes, that would be handy!
Searching templates for the code PHP Code:
postbit and postbit_legacy postbit works. I only want members to be able to set font type, color and italic. The field number for this are: font type: 23 color: 24 italic : 25 I have color and italic working, but not font type. My current code is: PHP Code:
Does higher / lower case matter when defining fonts? |
Quote:
Code:
TEMPLATE EDIT: |
Quote:
As for your problem, the way the code works it HAS to have the the size code in there. my suggestion to is leave the code the way it is and change the font size PX to the desired size you want like so: Code:
<span style="font: 15px $post[fieldXX]; color: $post[fieldXX]; font-weight: $post[fieldXX]; font-style: $post[fieldXX]; text-decoration: $post[field17];">$post[message]</strong></span> You can also still make the profile field, but only make 1 option like 15 or whatever. Then set it to default first option and make it so the member can not edit. The first option might be easier. |
Aah. That makes sense. Thanks.
|
Exatcly what I was looking for. I did the same thing as Alph1
So what exactly is the default font px size? I am pretty sure 15 is a tad too large. |
One thing I have found--- when you choose a color--its lighter than the same color you choose in the editor
|
Here is an example. The dull pink is using the hack and the brighter is using the editor when you make a post
|
Quote:
Edit: I've tested it on my forum and it did not happen. I replied to the test thread and edited the post and it stayed the same. Also I don't know the exact size that would work for forum, so it's best to try a few numbers before go LIVE with it. |
Quote:
BTW: the list of fonts is not complete. Here is the complete list: arial arial black arial narrow Book antiqua century gothis comic sans ms courier new fixedsys franklin gothic medium garamond georgia impact helvetica impact lucida console lucida sans unicode microsoft sans serif palatino linotype system tahoma times new roman trebuchet ms verdana |
Also--when a user has there font customly set--and somebody repliess to it--in the quote it reverts back to the standard font
|
Quote:
|
All my posts have turned into the font and colours that I have set in my profile. Should this be?
|
Quote:
yup--its a global setting so to speak.. |
this is driving me crazy , all went fine (font,color,bold,italic,..etc) except font size it is not changing can you tell me what's wrong ?
here is teh code <if condition="$post['field9'] OR $post['field11'] OR $post['field10'] OR $post['field12'] OR $post['field13'] OR $post['field14']"> <span style="font face: $post[field9]; size: $post[field11]; color: $post[field10]; font-weight: $post[field12]; font-style: $post[field13]; text-decoration: $post[field14];">$post[message]</strong></span></font> |
I did change px to size because this didn't work either :S
|
Quote:
|
This is the original I did try this one , every thing worked except the Font Size, So what is wrong here ? my field for font size is 11
Quote:
|
it did work :D man i thought the first field was for font type and the second is for size
now it works just perfect . what a great hack :cool: if you could please change it in Quote as well that would be great. Thanks again |
Quote:
Glad you got it, I planning on working on that when I get the time! Thanks for your feedback. |
Quote:
|
I am having an issue with size.
Here is my code: Code:
<!-- message --> Thanks! |
Also, some of my members can't see the colored fonts. I thought maybe it was because they were on Firefox, but I use that a lot and could still see it. Any ideas?
Thanks! |
Quote:
Quote:
|
The size doesn't work at all. It's the same size no matter what the user chooses in edit options.
For the second part, I have tested in both Firefox and IE, it works for me, just not them. I don't even know what to tell them. Could it be a cookie issue? Should they try to clear their cookies? Thanks for any help you can offer! Cori |
Very nice! Thanks!
I have a question: Can I translate it to Hebrew and post it in an Israeli vBulletin support forum? (vbheb.com) With a credit to you and link to your profile - of course. |
Never mind....I figured it out on my own. Maybe you can elaborate more in the directions, looks like I wasn't the only one having trouble with size.
Either way, great hack! My members love it :D |
Quote:
Quote:
|
Thank you ;)
|
All times are GMT. The time now is 01:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|