Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.6.x Thread, User Color/Font In Posts Editable Via Profile in Mods; User Color/Font In Posts Editable Via Profile Whats Up, I was looking for something like this and couldnt find it ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3721


Reply
LinkBack Thread Tools Display Modes
User Color/Font In Posts Editable Via Profile
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
22-09-2008, 09:20 PM
 
User Color/Font In Posts Editable Via Profile

Whats Up,
I was looking for something like this and couldnt find it for 3.6. But i do give most of the credit to gio~logist for the idea even though i knew how to do this, dont wanna look like im taking credit for something i didnt do.Its like his for 3.5 except i added a color wheel link pop up. I dont have alot of coding experience, but template mods are not hard. Just wanted to kinda share this.

Details: Allows users to edit their font color and their font type for when they post. It also puts a link where your users can find a colorwheel next to the description!

Installation: 5 Mins

First Thing You Need To Do:
Code:
PHP Code:
Go to User Profile Fields > Add New User Profile Field

Choose
:  Single-Line Text Box

Title
: Font Color In Posts

Description
: This will be your font color when posting.  (Ex: #000000 is black)<br /> <a href="http://html-color-codes.info/" onclick="window.open('http://html-color-codes.info/');
return false;" rel="nofollow" target="newWin"><b>Click Here For Color Codes</b></a>

Max length of allowed user input: 7

Click Save!

Second Thing You Need To Do:
Code:
PHP Code:
Go to User Profile Fields > Add New User Profile Field

Choose
: Single-Line Text Box

Title
: Font In Posts

Description
: This font will appear when posting. (Example: Verdana)

Max length of allowed user input: 15

Click Save
!
Last Edit your postbit or postbit legacy Template whichever one you use.
Find this code:
Code:
PHP Code:
$post[message]
Replace it with this code:
Code:
PHP Code:
<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">

<
font style="font-family:$post[fieldX]; color:$post[fieldX];">$post[message]</font>

<else />

$post[message]

</if>
Be sure to edit the X's with whatever field these are or this will not work! To edit, go to:
Profile > Edit Profile and it will probably be somewhere towards the bottom.
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.6.x Thread, User Color/Font In Posts Editable Via Profile in Mods; User Color/Font In Posts Editable Via Profile Whats Up, I was looking for something like this and couldnt find it ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3721


Bookmarks

Tags
color or font, editable, posts, profile, user


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User selected default posting font and color Developer Mods for 3.7.x 0 20-09-2008 10:42 PM
Blog block instead of tab in user profile Developer Mods for 3.7.x 0 20-09-2008 10:14 PM
Help others by rating How To Set Username 'Color/Font/Style' Per Usergroup. Developer Articles 0 13-09-2008 01:24 AM
'Text to Speech' user posts Developer Mods for 3.7.x 0 10-09-2008 07:21 PM
How To Set Username 'Color/Font/Style' Per Usergroup Developer Articles 0 08-09-2008 07:05 PM