Icy Phoenix

     
 

[solved] Current Signature Divider

[solved] Current Signature Divider

Article
Reply with quote    Download Post  
Post [solved] Current Signature Divider 
 
Hi there!

I got nearly the same question. Well, i wonder about ACP > Configuration > Main Settings > Users
There's the point called "Current Signature Divider" (Control what divides the user's signature from their post)!
But i really can't control, because i want an image instead of plain text.
Tried it out with absolute and relative path, but doesn't works.
Any suggestions to add an image w/o editing php files?
Thank you!

Greetings, Ghostsearcher



 
Last edited by Ghostsearcher on Fri 01 Jul, 2011 15:31; edited 1 time in total 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Tue 28 Jun, 2011 13:38 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


[solved] Current Signature Divider

Comments
Reply with quote    Download Post  
Post Re: Current Signature Divider 
 
First of all, the Signature Divider is stored in db ip_config -> sig_line   "______"

You can not insert there image html or BBCode

A quick way to solve this is this (remember it would be for all users)

OPEN viewtopic.php
FIND
Code: [Download] [Hide] [Select]
$user_sig = '<br />' . $config['sig_line'] . '<br />' . $user_sig;

REPLACE WITH
Code: [Download] [Hide] [Select]
$user_sig = '<br />' . '<img src="http://www.pfad.de/sig.png" alt="Signatur" title="Signatur" />' . '<br />' . $user_sig;




 
TheSteffen - View user's profile Send private message  
TheSteffen [ Fri 01 Jul, 2011 13:41 ]
Reply with quote    Download Post  
Post Re: Current Signature Divider 
 
Hi!

Great! Thanks!
Problem solved.

Greetings, Ghostsearcher



 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Fri 01 Jul, 2011 15:30 ]
Reply with quote    Download Post  
Post Re: [solved] Current Signature Divider 
 
Ghostsearcher wrote: [View Post]
Hi!

Great! Thanks!
Problem solved.

Greetings, Ghostsearcher


Open :

Code: [Download] [Hide] [Select]
./template/default/viewtopic_body.tpl


Search :


Code: [Download] [Hide] [Select]
<!-- BEGIN switch_showsignatures -->
            {postrow.SIGNATURE}
            <!-- END switch_showsignatures -->


Replace :

Code: [Download] [Hide] [Select]
<!-- IF postrow.SIGNATURE --><div id="sig{postrow.POST_ID}" ><br><center><img border="0" src="http://www.phonesfera.com/images/firma.png"></center><br />{postrow.SIGNATURE}<br></div><!-- ENDIF -->


Example :

spacer

captura



 
My_PeSePe - View user's profile Send private message  
My_PeSePe [ Sat 02 Jul, 2011 23:40 ]
Reply with quote    Download Post  
Post Re: [solved] Current Signature Divider 
 
Hmm, that's a nicer way. I think it's better because of the IF argument.
Thanks for your help!

Greetings, Ghostsearcher



 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Sun 03 Jul, 2011 15:18 ]
Reply with quote    Download Post  
Post Re: [solved] Current Signature Divider 
 
Thanks My_PeSePe, thats the better way to solve this.  



 
TheSteffen - View user's profile Send private message  
TheSteffen [ Tue 05 Jul, 2011 08:58 ]
Reply with quote    Download Post  
Post Re: [solved] Current Signature Divider 
 
TheSteffen wrote: 
First of all, the Signature Divider is stored in db ip_config -> sig_line   "______"

You can not insert there image html or BBCode


I don't think that's quite correct as you could try this?

In the ACP find:

Current Signature Divider
This is where you control what divides the user's signature from their post

Clear the box and change to this.

__________________________________________________________________<br /><br /><div align="center"><img src="test.gif" alt="" border="0" /></div>


(Image path is the forum root or adjust to suit and maybe add height and width to the image too. - Don't use semi-quotes ( ' ) for anything unless you comment them out like so \' )

Works for me! - And it sure beats editing Core Files.


This does too!

__________________________________________________________________<br /><br /><div align="center"><a href="http://127.0.0.1/kids/"><img src="test.gif" alt="" /></a></div>


 untitled_2



 
mort - View user's profile Send private message  
mort [ Tue 05 Jul, 2011 12:53 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1