Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-05-2001 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 01-05-2001, 06:22 PM
Guest
 
Posts: n/a
Default

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 " "
Reply With Quote
  #3  
Old 01-05-2001, 06:31 PM
Guest
 
Posts: n/a
Default

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 :-(
Reply With Quote
  #4  
Old 01-05-2001, 06:36 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 01-05-2001, 06:41 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #6  
Old 01-05-2001, 06:45 PM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #7  
Old 01-05-2001, 06:50 PM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
  #8  
Old 01-05-2001, 07:29 PM
Guest
 
Posts: n/a
Default

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.



-jim
Reply With Quote
  #9  
Old 01-05-2001, 07:43 PM
Guest
 
Posts: n/a
Default

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
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 02:23 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.03974 seconds
  • Memory Usage 2,248KB
  • Queries Executed 22 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete