vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - [XGFX] Default Post Colour (https://vborg.vbsupport.ru/showthread.php?t=214147)

Pt1994 05-19-2009 10:00 PM

[XGFX] Default Post Colour
 
1 Attachment(s)
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
Quote:

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:
Code:

        <!-- message -->
        <div id="post_message_$post[postid]">
            $ad_location[ad_showthread_firstpost_start]
            $post[message]
        </div>
        <!-- / message -->

Replace With:
Code:

        <!-- message -->
        <div style="color:$post[field5];" id="post_message_$post[postid]">
            $ad_location[ad_showthread_firstpost_start]
            $post[message]
        </div>
        <!-- / message -->


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

goxy63 05-22-2009 06:37 AM

Nice one, can you add font style and maybe font size/bold option !?
Cheers
Quote:

Originally Posted by Internetcafe (Post 1814329)
Been using this version for quite a while .. :D
Default Font

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

1 Attachment(s)
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

Quote:

Originally Posted by lebmedia (Post 1815581)
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/attachmen...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/showthrea...=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


All times are GMT. The time now is 04:48 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
  • Page Generation 0.01175 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete