|
|
Joined: Jan 2003
Posts: 45
User
|
User
Joined: Jan 2003
Posts: 45 |
Hi gurus!  How do I make the line before signature? Can I make it different than the boring -------? luuker
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
In showflat/showthreaded.php look for code simular to this: <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: <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: <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
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
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
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
|
|
|
|
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
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. 
|
|
|
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.
|
|
Posts: 5,835
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|