vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   HACK REQUEST: customized signature (https://vborg.vbsupport.ru/showthread.php?t=6419)

01-05-2001 06:12 PM

Since I'm not a programmer or PHP guy, I need some help here:

I want the signature that is diplayed at the end of every message (at least, if people add a signature) to be displayed in a different font size & color than the actual message. Since you cannot do that with the provided templates, I guess someone will need to hack some php code for this wish-feature.

Is there anyone out there who wants to help me? It could also be a nice feature for upcoming releases of vBulletin btw.

01-05-2001 06:22 PM

In showthread.php find:
if ($post[showsignature]==1 and $allowsignatures==1 and trim($userinfo[signature])!="") {
$signature= "\n__________________\n$userinfo[signature]";

and put your html tags between the " "

01-05-2001 06:31 PM

I tried that, but the HTML tags are not parsed for forums where the HTML code is not allowed unfortunately :(

And since most of our forums don't allow HTML code, I need another solution :-(

01-05-2001 06:36 PM

im sure you can use a php code to resize the text but I dont know PHP so youl need someone else to help you.

01-05-2001 06:41 PM

We provided a series of custom BBCodes to our users and allow them to use those and smilies to create unique and interesting signatures.

We don't however force the signatures to be a certain size or color.

01-05-2001 06:45 PM

You would add it in this line:

Code:

$signature= "\n__________________\nYour Opening HTML Here$userinfo[signature]Your Closing HTML here";
Just be sure to escape any quotes, so instead of <font color="#000000">, you would put <font color=\"#000000\">.

That should work for you.

-jim

01-05-2001 06:50 PM

JimF: that only works when HTML parsing is turned on, but like I said, we don't allow HTML on most of our forums, so the solution is a bit more complicated than your suggestion.


I think it has something to do with this line @showthread.php:

$message=bbcodeparse($post[pagetext],$forumid,$post[allowsmilie]).bbcodeparse($signature,0,$allowsmilies);

How can I include my two font tags <font size=1> & </font> in there?

----------

BTW, editing this message reminds me: I also want to do the same for the |Edited by ....| line, but that's even more complicated I guess, becaus it's a real part of the message :)



[Edited by Fritzz on 01-05-2001 at 03:58 PM]

01-05-2001 07:29 PM

I don't know why having HTML parsing on or off would have an effect on that code. I didn't try it, but if it didn't work, than no HTML would work without having code parsing on. Which would make it hard to have a forum that is supposed to send HTML to the browser.

:rolleyes:

-jim

01-05-2001 07:43 PM

add a new replacement bbcode/var

replace
Code:

\n__________________\n
with

Code:

begin html goes here\n__________________\nend html goes here
call me lazy, but why hardcode stuff in when you have a nice little string replacement system already in place :)


All times are GMT. The time now is 01:45 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.01001 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_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