php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#271826 - 04/01/04 03:46 PM Mouse-over Display
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
In the "Last Post" column on the "Main Index" page, lengthly topic headers are cut off with "..." trailing the last acceptable character. <br /> <br />Is it possible to make it so that when you hold your mouse over the topic line it will display the full text header in the little box above the pointer for IE users? <br /> <br />Hope this makes sense... worked all day on only 5 hours sleep. <br /> <br />Jason <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />

Top
#271827 - 04/01/04 03:52 PM Re: Mouse-over Display [Re: gingerginger]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
For example, here is a current "Last Post" topic: <br /> <br />Re: Useful MySQL Queries f... <br /> <br />but the full topic header is: <br /> <br />Re: Useful MySQL Queries for UBB.Threads <br />

Top
#271828 - 04/02/04 08:16 PM Re: Mouse-over Display [Re: gingerginger]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
In ubbthreads.php, try changing this:<br />[]<br /> $lastpost = "<img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"*\" /> <a href=\"{$config['phpurl']}/$linker.php?Cat=$Cat&amp;Number=$lastnumber&amp;Main=$lastmain#Post$lastnumber\"> $Subject</a>";<br />[/]<br />to this:<br />[]<br /> $lastpost = "<img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"*\" /> <a href=\"{$config['phpurl']}/$linker.php?Cat=$Cat&amp;Number=$lastnumber&amp;Main=$lastmain#Post$lastnumber\" alt=\"$Subject\"> $Subject</a>";<br />[/]<br /><br />Not tested, but it should work. Should be stock, IMHO. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#271829 - 04/02/04 09:14 PM Re: Mouse-over Display [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Okay, no, that doesn't work. I haven't delved into raw HTML in a while. I put it on the image, but it seems the $Subject variable is being truncated beforehand, so I have to pinpoint that.

Top
#271830 - 04/03/04 01:07 AM Re: Mouse-over Display [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Okay, this WILL work. <br /> <br />In ubbthreads.php find: <br />
Code:
 <br />      // If we have a last post for this board we link to it <br />         $lastpost = ""; <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 />            $imagesize = $images['icons']; <br />            $lastpost = "&lt;img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"*\" /&gt; &lt;a href=\"{$config['phpurl']}/$linker.php?Cat=$Cat&amp;amp;Number=$lastnumber&amp;amp;Main=$lastmain#Post$lastnumber\"&gt; $Subject&lt;/a&gt;"; <br />            $lastposter = "($Poster)"; <br />         } <br />         else { <br />            $lastposter = ""; <br />         } <br />
<br /> <br />and replace it with: <br /> <br />
Code:
 <br />      // If we have a last post for this board we link to it <br />         $lastpost = ""; <br />	   $SubjectLong = "$Subject"; <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 />            $imagesize = $images['icons']; <br />            $lastpost = "&lt;img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"$SubjectLong\" /&gt; &lt;a href=\"{$config['phpurl']}/$linker.php?Cat=$Cat&amp;amp;Number=$lastnumber&amp;amp;Main=$lastmain#Post$lastnumber\"&gt; $Subject&lt;/a&gt;"; <br />            $lastposter = "($Poster)"; <br />         } <br />         else { <br />            $lastposter = ""; <br />         } <br />

Top
#271831 - 04/03/04 07:09 PM Re: Mouse-over Display [Re: eslmix]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
Hi DLW,<br /><br />Thanks for the suggestion! Unfortunately when I made the changes it didn't work. I have Josh's spider code installed and a couple of other mods, maybe that has something to do with it since it seems to work for you. Maybe it will be stock in 6.5 final.<br /><br />Anyway, I appreciate your obvious effort... thank you. <br /><br />Jason <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#271832 - 04/03/04 09:15 PM Re: Mouse-over Display [Re: eslmix]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 344
Loc: NH, USA
Well, I tried it too and it didn't work for me either. What happened when I added the mod was the "Last Post" text changed to: etc...?? and no mouseover text. I too appreciate the effort even though it wouldn't work for me. []http://www.the-highway.com/Smileys/sad02.gif[/]<br /><br />Jeff
_________________________
Artificial Intelligence is no match for natural stupidity!

Top
#271833 - 04/03/04 11:19 PM Re: Mouse-over Display [Re: Tachyon]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Does the stock code I posted look the same as yours? I too have PetJoshs' spider code, but that's not an issue since the code of it is not involved here.

Top
#271834 - 04/03/04 11:37 PM Re: Mouse-over Display [Re: eslmix]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 344
Loc: NH, USA
[]DLWebmaestro said:<br />Does the stock code I posted look the same as yours? I too have PetJoshs' spider code, but that's not an issue since the code of it is not involved here. [/]<br />[]http://www.the-highway.com/Smileys/yep.gif[/] Looks the same as what I have. And, I don't have the "spider code".
_________________________
Artificial Intelligence is no match for natural stupidity!

Top
#271835 - 04/04/04 05:36 AM Re: Mouse-over Display [Re: Tachyon]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
DLW,<br /><br />Yes, stock code is the same... I thought maybe a [modified] dependent php module might depend on ubbthreads.php or something. In any case I do appreciate the effort.<br /><br />Jason <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#271836 - 04/05/04 07:32 PM Re: Mouse-over Display [Re: gingerginger]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Here's how I did it on mine.. <br /> <br /> <br />// If we have a last post for this board we link to it <br /> $lastpost = ""; <br /> if ($Poster) { <br /> $append = ""; <br /> $Subject_full = $Subject; <br /> if (strlen($Subject) > 26) { <br /> $append = "..."; <br /> } <br /> $Subject = substr($Subject,0,26); <br /> $Subject .= $append; <br /> if (!$Icon) { $Icon = "blank.gif"; } <br /> $imagesize = $images['icons']; <br /> $lastpost = "<img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"*\" /> <a href=\"{$config['phpurl']}/$linker.php{$var_start}Cat{$var_eq}$Cat{$var_sep}Number{$var_eq}$lastnumber{$var_sep}Main{$var_eq}$lastmain{$var_extra}#Post$lastnumber\" title=\"$Subject_full\" alt=\"$Subject_full\"> $Subject</a>"; <br /> $lastposter = "($Poster)"; <br /> } <br /> else { <br /> $lastposter = ""; <br /> } <br />
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#271837 - 04/05/04 10:14 PM Re: Mouse-over Display [Re: chrisX]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
Works like a charm, thanks J.C.

Top
#271838 - 04/05/04 10:22 PM Re: Mouse-over Display [Re: chrisX]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 344
Loc: NH, USA
Thanks, J.C.... that mod works perfectly!! []http://www.the-highway.com/Smileys/BigThumbUp.gif[/]<br /><br />Jeff
_________________________
Artificial Intelligence is no match for natural stupidity!

Top
#271839 - 04/05/04 10:33 PM Re: Mouse-over Display [Re: Tachyon]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
Whoops! Not compatible with the spider mod... oh well, maybe it'll be stock in 6.5 since it's supposed to include the spider mod. Thanks anyway, J.C.

Top
#271840 - 04/06/04 12:59 AM Re: Mouse-over Display [Re: gingerginger]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Change this line like this and it should work:<br /><br />href=\"{$config['phpurl']}/$linker.php/Cat/$Cat/Number/$lastnumber/Main/$lastmain/#Post$lastnumber\" title=\"$Subject_full\" alt=\"$Subject_full\"> $Subject</a>"; <br /><br /><img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#271841 - 04/06/04 09:39 AM Re: Mouse-over Display [Re: Daine]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Thanks Josh, feel free to edit my post to make sure there are no more probs..
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#271842 - 04/06/04 05:21 PM Re: Mouse-over Display [Re: chrisX]
Sky YYZ Offline
Junior Member

Registered: 12/07/03
Posts: 131
Loc: Brantford, ON Canada
Beauty... once and for all (w/vs. 6.4.2) I can say it works like a charm! Thanks guys. <br /> <br />J <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />

Top
#271843 - 04/15/04 12:32 PM Re: Mouse-over Display [Re: gingerginger]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 344
Loc: NH, USA
I just got a complaint that when you click on the linked subject in that "Last Post" column, after installing this hack.... (both JC's and Josh's tried) you get a 404 Error Page not Found (w/JC's version) and a Board error, Cannot find the file (w/Josh's version).<br /><br />I don't have the "spider mod" installed, so I'm not surprised that Josh's version didn't work, either in displaying the mouseover etc. But JC's version does fix the mouseover display as I reported earlier, but I never bothered to click on any of the links in that column myself []http://www.the-highway.com/Smileys/duh2.gif[/].<br /><br />So, I'm wondering if anyone else using 6.4.1 who has tried this fix has the same problem?<br /><br />Jeff
_________________________
Artificial Intelligence is no match for natural stupidity!

Top
#271844 - 04/15/04 11:22 PM Re: Mouse-over Display [Re: Tachyon]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Copy the URL that it's trying to go to - make sure that's a valid link. Might be a typo or invalid tag. Looking at what link is producing the 404 error will give you a clue.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#271845 - 04/23/04 03:31 AM Re: Mouse-over Display [Re: chrisX]
PaNTerSan Offline
Journeyman

Registered: 03/19/04
Posts: 122
Loc: EU, Slovenia
[]J.C. said:<br /> $lastpost = "<img src=\"{$config['images']}/icons/$Icon\" $imagesize $imagestyle alt=\"*\" /> <a href=\"{$config['phpurl']}/$linker.php{$var_start}Cat{$var_eq}$Cat{$var_sep}Number{$var_eq}$lastnumber{$var_sep}Main{$var_eq}$lastmain{$var_extra}#Post$lastnumber\" title=\"$Subject_full\" alt=\"$Subject_full\"> $Subject</a>";<br /> [/]<br />I guess we should define $var_eq, $var_sep and $var_extra <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Kind regards,
PaNTerSan

Top
Page 1 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