Sub Menu
Links Menu
Online Users

In total there are 307 users online :: 2 registered, 0 hidden and 305 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

Aligning signatures: simons way

Mods etc.

Moderator: Integra Moderator

Re: Aligning signatures: simons way

PostAuthor: Jason Sanborn » Fri Apr 14, 2006 8:56 am

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]
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Eon » Fri Apr 14, 2006 9:32 am

I did that one time and it did not change anything.

Also, that code appears in more than one file I have noticed..
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri Apr 14, 2006 9:37 am

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.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Eon » Fri Apr 14, 2006 10:05 am

Yeah that is what I thought too. lol May work I dunno.. I know I saw it in more than one file though.
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: evolver » Fri Apr 14, 2006 10:13 am

"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...
Last edited by evolver on Fri Apr 14, 2006 12:02 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Aligning signatures: simons way

PostAuthor: evolver » Fri Apr 14, 2006 10:29 am

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?)
Last edited by evolver on Fri Apr 14, 2006 12:20 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Jason Sanborn » Fri Apr 14, 2006 11:39 am

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.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: evolver » Fri Apr 14, 2006 12:17 pm

"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>
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Simon N » Fri Apr 14, 2006 1:20 pm

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.
Last edited by Simon N on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:43 pm
Cash on hand: 0.00

Re: Aligning signatures: simons way

PostAuthor: Mighty07 » Fri Apr 14, 2006 4:28 pm

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!
Last edited by Mighty07 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Mighty07
Newbie
Newbie
 
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 11:38 pm
Cash on hand: 0.00

Re: Aligning signatures: simons way

PostAuthor: Mighty07 » Fri Apr 14, 2006 4:44 pm

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]
Last edited by Mighty07 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Mighty07
Newbie
Newbie
 
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 11:38 pm
Cash on hand: 0.00

Re: Aligning signatures: simons way

PostAuthor: evolver » Fri Apr 14, 2006 5:10 pm

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... :-?
Last edited by evolver on Fri Apr 14, 2006 5:31 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Jason Sanborn » Fri Apr 14, 2006 5:28 pm

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>
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Aligning signatures: simons way

PostAuthor: evolver » Fri Apr 14, 2006 11:25 pm

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++)
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Aligning signatures: simons way

PostAuthor: evolver » Sat Apr 15, 2006 12:53 am

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 = '';
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PreviousNext

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot]

cron