Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 45
User
User
Offline
Joined: Jan 2003
Posts: 45
Hi gurus!

How do I make the line before signature?

Can I make it different than the boring -------?

luuker

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
In showflat/showthreaded.php look for code simular to this:

Code
<br />         if ($Signature) {<br />            $Signature = str_replace("\n","<br />",$Signature);<br />            $Signature = "<br /><br />--------------------<br />$Signature";<br />         }<br />


And modify the dashed line accordingly.

You may want to place a variable in so it can be changed from the admin area.
Example:

Code
<br />         if ($Signature) {<br />            $Signature = str_replace("\n","<br />",$Signature);<br />            $Signature = "<br /><br />{$theme['sig_line']}<br />$Signature";<br />         }<br />


and then in your admin >> edit theme.inc.php add this at the bottom text area:

Code
<br />$theme['sig_line'] = '========================';<br />


Change the value to what ever you want of course.


I believe this will work. I haven't tested it though.

Joined: Jan 2003
Posts: 45
User
User
Offline
Joined: Jan 2003
Posts: 45
Errr, I can't find that code in showflat/threaded.php files..

I'm running ubb.threads 6.0.2.

thanks,

luuker

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Try searching for just this

if ($Signature)


then you can look and match up the rest. if that does not work search for signature. I don't have a copy of 6.02 sitting around.

You will find something like the code above. You note that you are only changing one area in the code.

<br />--------------------<br />

to

<br />{$theme['sig_line']}<br />


Then again if you have a copy of 6.02 there have been alot of enhancements to Threads you might want to go to the member's area and download a copy.

Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
Is it possible to replace that with an image?

like a small 5px high line?

i tried but with no success..

so now im looking for help

Tony

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah... use standard HTML, except you need to put a \ before each quote so it doesn't break the code:

<img src="http://www.yourdomain.com/images/sigline.gif" alt="*" border="0" />

Should work for you.

Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
AH HA, that was my mistake.

Thanks Josh


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, in PHP since you have the value for the signature line inside quotes... when you use quotes within, it "breaks" the string. The \ comments them out so that the "real" quotes on either end contain the string.

Common issue for new hackers.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)