Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2002, 01:32 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a hack or will someone write one so that you can see the
signature of a user in his profile??

Greetings

StarBuG
Reply With Quote
  #2  
Old 01-09-2002, 11:28 AM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, this is a start, but it does not do the breaks in the lines. Maybe someone else can figure that part out. .

In your User Info Display Templates.

Open getinfo.
Add this anywhere you want. I added it to the bottom of my profile.

PHP Code:
<tr>
<
td bgcolor="{*firstaltcolor*}"><normalfont><b>Signature:</b></normalfont></td>
    <
td bgcolor="{*firstaltcolor*}"><normalfont>$userinfo[signature]</a></normalfont></td>
</
tr
Remove the * in the Alt colors. .

To put it at the bottom of the profile, add it right below this.

PHP Code:
$referrals
$birthday
$customfields 
Reply With Quote
  #3  
Old 01-09-2002, 11:58 AM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd imaging that you'd want to put in member.php somewhere
Code:
$userinfo['signature'] = nl2br($userinfo['signature']);
nl2br, as the name suggests, take newline character from a string and converts them to HTML &lt;BR&gt; tags.

You can read about it at www.php.net/nl2br

Kathi
Reply With Quote
  #4  
Old 01-09-2002, 06:28 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe! OK!

Thats a Start!

Thx

But i want also the [img] tag working there!

Any suggestions?

Greetings

StarBuG
Reply With Quote
  #5  
Old 01-09-2002, 06:39 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Moonwolf
I'd imaging that you'd want to put in member.php somewhere
Code:
$userinfo['signature'] = nl2br($userinfo['signature']);
nl2br, as the name suggests, take newline character from a string and converts them to HTML &lt;BR&gt; tags.

You can read about it at www.php.net/nl2br

Kathi
*cough* why not using bbcodeparse2() *cough*
Reply With Quote
  #6  
Old 01-09-2002, 06:51 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nasty cough you got there Chen :P

I didn't know bbcodeparse2() would translate nl2br's

I'm still trying to figure out how to make Dane/tubedogg's installer work properly for me

Can I plead extreme blondeness?

Kathi
Reply With Quote
  #7  
Old 01-10-2002, 06:01 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And how can i implement the signature img??

Greetings

StarBuG
Reply With Quote
  #8  
Old 01-10-2002, 08:50 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the modifyoptions template I changed:

<td bgcolor="*secondaltcolor*"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea></td>

to

<td bgcolor="*secondaltcolor*"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea><p><smallfont><b>Example of your signature:</b></smallfont><p>$signature2<p></td>

replace the * with { and }

then in member.php I looked for

$signature=htmlspecialchars($bbuserinfo[signature]);

and then right below this added

$signature2=bbcodeparse($bbuserinfo[signature]);

This will show them them a preview of their signature including images.

Parker
Reply With Quote
  #9  
Old 01-11-2002, 09:19 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Parker Clack
In the modifyoptions template I changed:
This will show them them a preview of their signature including images.

Parker
Sorry but that?s not what I?m looking for (have already installed A Signature Editor )

I want the user Sig shown in there profile including there Sig IMG
(HTML and vB Code for images!)

Greetings

StarBuG
Reply With Quote
  #10  
Old 01-11-2002, 01:28 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in member.php

Find:
Code:
  if ($userinfo['receivepm'] and $usergroupperms['canusepm']) {
Add Above:
Code:
  if($userinfo['showsignatures']) {
	$userinfo['signature'] = bbcodeparse($userinfo['signature'],0,$allowsmilies);
  }
In template getinfo
Figure out where you want the signature to appear, and put there
Code:
$userinfo[signature]
Kathi
Reply With Quote
Reply


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 06:52 PM.


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.04558 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete