Page 2 of 3

Re: Aligning signatures: simons way

PostPosted: Fri Apr 14, 2006 9:56 am
Author: Jason Sanborn
Easiest would be to change the signature divider in viewtopic.php

Don't know if it is the BEST way, though. <img>

OPEN: viewtopic.php
FIND:
Code: Select all
    if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )     {         $user_sig = '_________________<br>' . str_replace("n", "n<br>n", $user_sig);     } else $user_sig = '';

REPLACE]     if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )     {         $user_sig = str_replace("n", "n<br>n", $user_sig);     } else $user_sig = '';[/code]

PostPosted: Fri Apr 14, 2006 10:32 am
Author: Eon
I did that one time and it did not change anything.

Also, that code appears in more than one file I have noticed..

PostPosted: Fri Apr 14, 2006 10:37 am
Author: Jason Sanborn
Hmmm. I must have missed some areas, then. The general idea would be to locate the divider line in whatever file it is located in and remove the divider line and the <br> that follows it.

PostPosted: Fri Apr 14, 2006 11:05 am
Author: Eon
Yeah that is what I thought too. lol May work I dunno.. I know I saw it in more than one file though.

PostPosted: Fri Apr 14, 2006 11:13 am
Author: evolver
"Eon";p="1565" wrote:I did that one time and it did not change anything.

Also, that code appears in more than one file I have noticed..

You will also find it for private messages

The modification we are talking about, was about viewtopic only, so you only have to change the divider-line on viewtopic.php...

Personally, I don't really need this modification for private messages.
The signature is always at the bottom there...

Re: Aligning signatures: simons way

PostPosted: Fri Apr 14, 2006 11:29 am
Author: evolver
BTW: I did something different than Jason's instruction
[strike]Just by putting // at the beginning of those lines instead of changing them...[/strike]
[strike]Seems to work just fine...[/strike] (or am I missing something?)

PostPosted: Fri Apr 14, 2006 12:39 pm
Author: Jason Sanborn
I thought of that as well, and that was what I was originally going to post, but it looked like the str_replace() was needed to handle the line breaks in the signature.

PostPosted: Fri Apr 14, 2006 1:17 pm
Author: evolver
"Jason Sanborn";p="1588" wrote:I thought of that as well, and that was what I was originally going to post, but it looked like the str_replace() was needed to handle the line breaks in the signature.
:oops: I will strike-through my previous post... <img>

PostPosted: Fri Apr 14, 2006 2:20 pm
Author: Simon N
Not sure what you guys use to edit files but dreamweaver has an excellent find and replace function. I simply searched for __________ and replaced it with nothing.

Re: Aligning signatures: simons way

PostPosted: Fri Apr 14, 2006 5:28 pm
Author: Mighty07
Great work!!!
I've put this working and it's ok. I've also taken out the black line.
I guess with that white line the black one has no meaning.
Despite i would prefer the black one and not having the white one!
But for now, having the sign on the bottom is excellent.
Thanks to all!

Re: Aligning signatures: simons way

PostPosted: Fri Apr 14, 2006 5:44 pm
Author: Mighty07
Btw, i've found this too mods.

This one is to control the signature, and it includes an option to limit the image:

[url=http]Signatures control[/url]

This other one, control the appearance of the black line:

[url=http]Advanced Signature Divider Control[/url]

Re: Aligning signatures: simons way

PostPosted: Fri Apr 14, 2006 6:10 pm
Author: evolver
Thanks Mighty07,

I was rather thinking of resizing the appearance of external images, without restricting them...

I know this is possible in HTML:
[color=blue]<img src="http]
And I would like that to be automatically applied when an external-image is too wide...

Many users on my site don't even know how to resize a picture, that's why I would really like it to be this way...

...And I don't want to allow HTML... :-?

PostPosted: Fri Apr 14, 2006 6:28 pm
Author: Jason Sanborn
I have Dreamweaver MX. I only use it for initial layout and design, and only when necessary (which tends to be rarely).

I use Microsoft Visual Studio when I'm working with ASP.NET / VB.NET

I use [url=http]Notepad++[/url] for everything else, including as a replacement for Windows Notepad. If you haven't checked it out yet, you should. <img>

Re: Aligning signatures: simons way

PostPosted: Sat Apr 15, 2006 12:25 am
Author: evolver
I also have Dreamweaver MX, use it for pure-HTML only.
Dreamweaver is a heavy package, and I don't like to use it for everything.

I used conTEXT for editing all kinds of text.

I have Notepad++ on a memorystick but never used it <img>
Thanks to Jason, I have taken another look at it...
And yes...it has a 'Search in files' feature, conTEXT doesn't.
(conTEXT has a compare function, didn't find that in Notepad++)

Re: Aligning signatures: simons way

PostPosted: Sat Apr 15, 2006 1:53 am
Author: evolver
Back on topic:
All bits and pieces together for this signature modification:


OPEN: templates/fisubice/ viewtopic_body.tpl

FIND:
Code: Select all
<BEGIN><BEGIN><tbody id="post_{postrow.POST_ID}" style="display]
REPLACE WITH:[code]<BEGIN><BEGIN><tbody id="post_{postrow.POST_ID}" style="display]

OPEN: viewtopic.php

FIND:[code]if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )    {       $user_sig = '_________________<br>' . str_replace("n", "n<br>n", $user_sig);    } else $user_sig = '';[/code]
REPLACE WITH]if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )    {       $user_sig = str_replace("n", "n<br>n", $user_sig);    } else $user_sig = '';