vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Signature Backgrounds (https://vborg.vbsupport.ru/showthread.php?t=225823)

smokin1337 10-22-2009 10:00 PM

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

Faizan 10-23-2009 06:29 AM

Nice one

Log on 10-24-2009 07:27 AM

Great

saadessa 10-24-2009 07:40 AM

thank you for this iwill try later

abouahmed 10-24-2009 09:47 PM

very good

fta2k 10-28-2009 10:40 PM

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

fta2k 10-29-2009 12:01 AM

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

ThyElite 11-01-2009 06:41 PM

the only thing is that when the board isn't fixed, the images tile horizontally

fta2k 11-02-2009 01:51 AM

Quote:

Originally Posted by ThyElite (Post 1909093)
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.


All times are GMT. The time now is 07:53 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.01868 seconds
  • Memory Usage 1,731KB
  • 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
  • (9)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