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


All times are GMT. The time now is 12:22 AM.

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.01008 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete