php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#271846 - 04/27/04 07:33 AM Re: Mouse-over Display [Re: Brandon Long]
Ellen Offline
Member

Registered: 09/15/00
Posts: 146
Loc: Clifton, NJ
I just changed the "26" number in the code to "50" or some other number large enough to get in all the chracters you want.

Top
#271847 - 03/23/05 03:29 PM Re: Mouse-over Display [Re: phatguy88]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
Small revision and my final code...<br /><br />this removes that "Re: " from the subject replies.. and also get rid of the the special charactors such as Quotes and Apostraphies that may mess with html.<br /><br />in ubbthreads.php, find...<br /><br />
Code:
<br />         if ($Poster) {<br />			   $append = "";<br />				if (strlen($Subject) &gt; 26) {<br />				   $append = "...";<br />				}<br />				$Subject = substr($Subject,0,26);<br />				$Subject .= $append;<br />            if (!$Icon) { $Icon = "blank.gif"; }<br />
<br /><br />replace with...<br />
Code:
<br />         if ($Poster) {<br />			   $append = "";<br />				$Subject = str_replace("Re: ", "", $Subject);<br /><br />		   $Subject_full = $Subject;<br />		   $Subject_full = strip_tags($Subject_full); <br />		   $Subject_full = htmlspecialchars($Subject_full); <br /><br />				if (strlen($Subject) &gt; 26) {<br />				   $append = "...";<br />				}<br />				$Subject = substr($Subject,0,26);<br />				$Subject .= $append;<br />            if (!$Icon) { $Icon = "blank.gif"; }<br />
<br /><br /><br />and just under that line, at "$lastpost =", replace...<br />
Code:
<br />&gt; $Subject&lt;/a&gt;";<br />
<br /><br />with...<br />
Code:
<br />title=\"$Subject_full\" alt=\"$Subject_full\"&gt;$Subject&lt;/a&gt;";<br />

Top
Page 2 of 2 < 1 2



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks