Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
Signature Backgrounds Details »»
Signature Backgrounds
Version: 1.00, by smokin1337 smokin1337 is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 10-22-2009 Last Update: Never Installs: 6
Template Edits
 
No support by the author.

This mod will allow users to add backgrounds to their signatures. It requires 3 new fields and 1 template edit. This mod requires some experience in editing templates.

First field is X-1:

Type: Single-Line Textbox
Name: Signature Background
Details: Choose a color or image for your background
The rest is default. On this field color names, hex values or links can be used. ie., black, white, #000000, #FFFFFF, http://yourimagelink.com/yourimage.png, http://yourimagelink.com/yourimage.gif

Second field is X-2:

Type: Single-Line Textbox
Name: Signature Background Border Color
Details: Choose a color for the border if any
The rest is default.

The third is X-3:

Type: Multiple-Selection Checkbox
Name: Signature Background Link ?
Details: If you used a link to an image check yes here.
Options: Yes
The rest is default. This field tells it if it's a link or not and switches the codes accordingly.

Now for the templates open postbit/postbit_legacy and find:

Code:
<!-- sig -->
Then replace from <!-- sig --> to <--/ sig --> with:

Code:
<!-- Signature Background -->
			
                      <if condition="$post['fieldX-1']">
				<div style="<if condition="$post['fieldX-2']">border:$post[fieldX-2] 1px solid;</if> background:<if condition="$post['fieldX-3']">url($post[fieldX-1]);<else />$post[fieldX-1]; </if> align:center"><br /> <br />			
                  $post[signature]
		<else />

                  <div>________________<br />
                       $post[signature]
</if>

</div>
		<!-- / Signature Background -->
Replace the X's with your fields and that's it.

I am just learning all of this stuff so if i did something wrong in my coding please for give me. But this works great on my board.

Screenshots

File Type: png sig_bg_example.png (263.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-23-2009, 06:29 AM
Faizan Faizan is offline
 
Join Date: Mar 2008
Location: fullmaza.com
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one
Reply With Quote
  #3  
Old 10-24-2009, 07:27 AM
Log on Log on is offline
 
Join Date: Aug 2009
Location: KSA
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great
Reply With Quote
  #4  
Old 10-24-2009, 07:40 AM
saadessa saadessa is offline
 
Join Date: Jan 2008
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for this iwill try later
Reply With Quote
  #5  
Old 10-24-2009, 09:47 PM
abouahmed's Avatar
abouahmed abouahmed is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very good
Reply With Quote
  #6  
Old 10-28-2009, 10:40 PM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, got the fields made but I'm obviously doing something wrong here.

Instruction says:

Quote:
Replace the X's with your fields and that's it.
Do I replace just the X or the X-* within the ( )?

Like this
['field10-1']

Or this:
['field10']


Any help would be appreciated.

Thanks
Reply With Quote
  #7  
Old 10-29-2009, 12:01 AM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Or this:
['field10']
That is the setting and I've gotten it to work. I'd show a pic but it's not fit for an open forum...

Thanks for the mod
Reply With Quote
  #8  
Old 11-01-2009, 06:41 PM
ThyElite ThyElite is offline
 
Join Date: Jan 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the only thing is that when the board isn't fixed, the images tile horizontally
Reply With Quote
  #9  
Old 11-02-2009, 01:51 AM
fta2k fta2k is offline
 
Join Date: Feb 2008
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThyElite View Post
the only thing is that when the board isn't fixed, the images tile horizontally
It's not the forum width that makes it tile, it's your screen resolution. What look right to you may or may not look right to others with a different resolution.

You'll need to enlarge your picture in Paint or Photoshop to fit your space. Even then it might not look right to other. Only took me 5 or 6 adjustments to get mine right.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08161 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete