Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: butchs on January 28, 2008, 06:03:27 PM

Title: BoardHover Mod
Post by: butchs on January 28, 2008, 06:03:27 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1065)

aka JMod. ;)

Refresh the browser screen after installation.

Clicking underlined text is a thing of the past.  This mod gives you forum navigation mouse over highlights that allows you to select where to go by clicking anywhere in highlighted "hover" area.  Affected areas are forum topics, subjects, child boards, main messages, members list and message boards.  Clicking in the field will take you to the board, first post, first unread post or last post.

Latest version includes a tableless hover linktree hack that allows the user to click anywhere in the linktree box and to navigate the forum.  Hovering the Linktree can be turned off in the "Admin/Modification Settings/BoardHover" panel.  The Linktree on the first page can also be turned off.

Utilizes Janos Horvath's hover emulation java script for Internet Explorer (IE) compatibility.  It is the users responsibility is to check the site for script updates.

Tested with: Firefox, Opera, Internet Explorer and Safari.

Donations accepted to help support this mod and to grant permission to remove link (please specify the name of the mod when donating).
(https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=UJTMMF8FKGLZ6&lc=US&item_name=butchs%2f%20continued%20updates&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)

Live Demo:  http://www.eastcoastrollingthunder.com/smf/index.php?action=forum

Support thread for this mod is here (http://www.simplemachines.org/community/index.php?topic=219428.0).  (Please don't PM me to do the edits for you).

This mod was written for the default theme for SMF versions prior to 2.0 RC 2 and Curve thereafter.  It can be manually installed (http://docs.simplemachines.org/index.php?topic=402) in other themes.

The following languages are supported in the "Modification Settings":
o (http://www.simplemachines.org/site_images/lang/english.gif) - english
o (http://www.simplemachines.org/site_images/lang/english.gif) - english-utf8
o (http://www.simplemachines.org/site_images/lang/arabic.gif) - arabic-utf8
o (http://www.simplemachines.org/site_images/lang/bulgarian.gif) - bulgarian-utf8
o (http://www.simplemachines.org/site_images/lang/chinese-simplified.gif) - chinese-simplified-utf8
o (http://www.simplemachines.org/site_images/lang/chinese-traditional.gif) - chinese-traditional-utf8
o (http://www.simplemachines.org/site_images/lang/croatian.gif) - croatian-utf8
o (http://www.simplemachines.org/site_images/lang/czech.gif) - czech-utf8
o (http://www.simplemachines.org/site_images/lang/dutch.gif) - dutch-utf8
o (http://www.simplemachines.org/site_images/lang/french.gif) - french-utf8
o (http://www.simplemachines.org/site_images/lang/german.gif) - german-utf8
o (http://www.simplemachines.org/site_images/lang/greek.gif) - greek-utf8
o (http://www.simplemachines.org/site_images/lang/hebrew.gif) - hebrew-utf8
o (http://www.simplemachines.org/site_images/lang/hungarian.gif) - hungarian-utf8
o (http://www.simplemachines.org/site_images/lang/indonesian.gif) - indonesian-utf8
o (http://www.simplemachines.org/site_images/lang/italian.gif) - italian-utf8
o (http://www.simplemachines.org/site_images/lang/japanese.gif) - japanese-utf8
o (http://www.simplemachines.org/site_images/lang/persian.gif) - persian-utf8
o (http://www.simplemachines.org/site_images/lang/polish.gif) - polish-utf8
o (http://www.simplemachines.org/site_images/lang/portuguese_brazilian.gif) - portuguese_brazilian-utf8
o (http://www.simplemachines.org/site_images/lang/portuguese_pt.gif) - portuguese_pt-utf8
o (http://www.simplemachines.org/site_images/lang/russian.gif) - russian & russian-utf8 (thanks Bugo)
o (http://www.simplemachines.org/site_images/lang/serbian_latin.gif) - serbian_latin-utf8
o (http://www.simplemachines.org/site_images/lang/spanish_es.gif) - spanish_es-utf8
o (http://www.simplemachines.org/site_images/lang/spanish_latin.gif) - spanish_latin-utf8
o (http://www.simplemachines.org/site_images/lang/swedish.gif) - swedish-utf8
o (http://www.simplemachines.org/site_images/lang/arabic.gif) - thai-utf8
o (http://www.simplemachines.org/site_images/lang/turkish.gif) - turkish-utf8
o (http://www.simplemachines.org/site_images/lang/ukrainian.gif) - ukrainian-utf8
o (http://www.simplemachines.org/site_images/lang/vietnamese.gif) - vietnamese-utf8

Code: [Select]
$txt['boardhover'] = 'BoardHover';
$txt['linktree_hover'] = 'Adjust the Linktree settings';
$txt['enable_linktree_hover'] = 'Enable navigation tree hover for all users:';
$txt['disable_linktree_first_page'] = 'Remove navigation tree from front page:';
New and or corrected translations are welcome.

You can change the rest colors in either "index.css" or "style.css" by changing the color code and/or the background-color:

.windowbg2
{
   color: #000000;
   background-color: #f0f4f7;
}

Another method would be to use both the color code and add a image that you created.  For example:

background: #AB72AC url(./images/windowbg_hoverHover.jpg); /* purple */

The hover colors in "boardhover???.css" are as follows:
"windowbg2_hover" edits the child boards and forum subjects.
"stickybg2_hover" is for the forum subject stickies.
"lockedbg2_hover" changes forum locked post.
"approvebg2_hover" and "approvetbg2_hover"  changes administrator duties.

To change the color of the Linktree text during hover you will need to edit the"boardhover???.css file(s).  Search for "Start of linktree" to find it.  The css file is structured as follows:

.linktree_border? *

.linktree_b

.linktree_? *

.linktree_?_hover:hover, .linktree_?_hoverHover *

* NOTE: ? denotes a number that will change.

The elements are 6 deep.  When this number is exceeded the Linktree reverts back to the standard SMF Linktree.

The forum "current" page must be reloaded in the browser after installation.

Current download version index:
o 1.80 - for all versions (1.1.x through 2RC3).


Change log
1.0 - 1.1.0 - 26th December 2007
o Initial release for SMF 1.1.x.
o Tested by S3NTYN3L @ DemonFly.net (http://forum.demonfly.net/).

1.2 - 29th March 2008
o Streamlined 1.1.x installation by removing excess code.
o Corrected typo in "windowbg3_hover" hover class for version 1.1.x.
o Added install for SMF 2.0 Beta 3 Public
o Tested by seek2501.

1.2.1 - 12th July 2008
o Minor bug fix for SMF 2.0 Beta 3 Public version ONLY.  Fixed Undefined offset error for 'smf88' & '30' strings.  No changes made to 1.1.x version.

1.30 - 14th September 2008
o Updated for use with SMF 2.0  Beta 4 Public.  No changes made to SMF 1.1.x & SMF 2.0  Beta 3 Public.  Added Locked sticky graphic for SMF Beta 4 Public only.

1.3.1 - 24th September 2008
o My attempt to allow the mod to work with SMF 2.0  Beta 4 (not public).

1.4.0 - 3rd May 2009
o Updated for SMF 2.0 RC1 only.  No changes made to SMF 1.1.x & SMF 2.0  Beta 3 & 4 Public.

1.4.1 - 30th Jun 2009
o Updated for SMF 2.0 RC1-1 only.  No changes made to SMF 1.1.x & SMF 2.0  Beta 3 & 4 Public.

1.4.2 - 2nd Aug 2009
o Updated for SMF 2.0 RC1.2 only.  No changes made to SMF 1.1.x & SMF 2.0  Beta 3 & 4 Public.

1.43 - 14nd Sep2009
o Bug fix:  Corrected a bug that prevented hovers from being displayed in 2.0 RC 1.2 in Safari 4.0.3.

1.50 - 10th Nov2009
o Upgraded for SMF 2.0 RC2.   No changes made to older versions.
o Hover added for member list.
o Hover added for linktree for SMF 2.0 RC2 only.  Thanks to ladynada (http://www.simplemachines.org/community/index.php?action=profile;u=92401) for the original concept.  See picture.

1.51 - 12th Nov2009
o Bug fix: Undefined variable error corrected for SMF 2 RC2 - Please clean error log after installation.

1.52 - 15th Nov2009
o Add color change for text on mouseover.  Default is green for all but admin.  Admin items are bold red.

1.53 - 22nd Nov2009
o Bug fix:  For a custom theme during a manual installation some of the MessageIndex and BoardIndex did not link correctly.  Software still only installs in the default and/ or curve theme depending on your version of SMF.  All versions are effected (including 1.1.11).  **  IF 1.52 WORKS YOU DO NOT NEED THIS VERSION **

1.54 - 1st Jan2010
o Changes for SMF 2.0 RC2.   No changes made to older versions.
o Bug fix: "display pop-up messages not working" bug reported by Bugo.
o Broke out Linktree (Sources/Boardhover-linktree.php), css (default/css/boardhover.css) & (default/css/boardhover-ie.css) with better descriptions in separate files for better compatibility.
o Optimized linktree code for speed.
o  Added mod setting to enable/ diable linktree hover.
o  Added mod setting to remove the Linktree from the front page with and without hover.
o  Linktree hover now supports "right to left" languages.
o  Added support for many languages.

1.55 - 25th Jan2010
o Changes for SMF 2.0 RC2.   No changes made to older versions.
o Bug fix: Possible for SSI users (thanks Arantor).
o Added hover to recent post list when "Current Theme/Theme Settings/Number of recent posts to display on board index:" >0.

1.56 - 27th Jan2010
o Changes for SMF 2.0 RC2.   No changes made to older versions.
o Minor color corrections in css for admin and moderator hover only.

1.57 - 4th Feb2010
o Changes for SMF 2.0 RC2.   No changes made to older versions.
o Minor update - Many XHTML 1.0 compatibility issues resolved.

1.60 - 12th Mar2010
o Upgrade to SMF 2.0 RC3 and minor bug fixes for SMF 2.0 RC2.

1.61 - 2nd May2010
o Fixed recent posts display bug for IE8 SMF 2.0 RC2 & SMF 2.0 RC3 (thank you mpolo).
o Improvements to linktree for SMF 2.0 RC3 ONLY.

1.62 - 9th May2010
o Fixed portuguese_brazilian-utf8 translation (thank you Sakae) for SMF 2.0 RC3 ONLY.

1.71 - 7th Nov2010
o Upgrade to SMF 2.0 RC4.
o Corrected Russian

1.80 - 12th Jun2011
o Upgrade to SMF 2.0.

1.81 - September 19, 2011
o Upgrade to SMF 2.0.1.


Terms of use

•   By downloading and/or using this MOD you agree to adhere to the following conditions for all versions of the Boardhover MOD:
•   Copyright info & link must remain intact!  They only can be removed via Author/Creators approval.
•   The Author/Creator is not responsible for any incompatibilities of this mod with your forum.
•   You are FREE to use and customize this MOD on your Forum(s) in any way you see fit, however, in no way can the Author/Creator of this MOD be held responsible under any circumstances.
•   Commercial resale of this mod is prohibited without express written permission from the Author/Creator.
•   You are FREE to redistribute this MOD in its original, released state ONLY!
•   Conversion, transfer or porting any portion of the Authors Creative Work, Ideas, procedures and process to any SMF fork without the Authors explicit written permission is strictly prohibited.
•   These terms can be changed or appended at any time by the Author/Creator without any prior notice.
Title: Re: BoardHover Mod
Post by: perro88 on January 28, 2008, 06:18:17 PM
this is nice :P thanks.
Do you know what  changes to make on the css file so it aplies a filter(a bit darker for example) and not a color when hovering(so it works ok on background that uses more than one color)?
Title: Re: BoardHover Mod
Post by: S3NTYN3L on January 28, 2008, 08:48:10 PM
this is nice :P thanks.
Do you know what  changes to make on the css file so it aplies a filter(a bit darker for example) and not a color when hovering(so it works ok on background that uses more than one color)?


You could just replace the  background: #hex;  property with:

background: url(images/image_name.extension) #hex repeat-x;


You'd need to create a somewhat transparent repeating image/gradient/whatever to be used on mouse-over.

You'd then upload the new image to the images folder...
Title: Re: BoardHover Mod
Post by: butchs on January 28, 2008, 10:17:09 PM
I would keep the color as you want and make a filter image with PhotoShop or something like that.  The code will look something like:

.??_hover:hover, .??_hoverHover
{
background-color: #color;
background-image: url(./images/filter.jpg);
}

I am not sure the above will work with all browsers though...

I have been making both the color and image the same color but a different color than the non hover element.  Something like this:

background: #color url(./images/filter.jpg); /* comment */

It is a little work but seems to work with all browsers.

There is a nice css tutor here (http://www.tizag.com/cssT/background.php).
Title: Re: BoardHover Mod
Post by: perro88 on January 29, 2008, 08:25:24 AM
I would keep the color as you want and make a filter image with PhotoShop or something like that.  The code will look something like:

.??_hover:hover, .??_hoverHover
{
background-color: #color;
background-image: url(./images/filter.jpg);
}

I am not sure the above will work with all browsers though...

I have been making both the color and image the same color but a different color than the non hover element.  Something like this:

background: #color url(./images/filter.jpg); /* comment */

It is a little work but seems to work with all browsers.

There is a nice css tutor here (http://www.tizag.com/cssT/background.php).

big thanks
Title: Re: BoardHover Mod
Post by: S3NTYN3L on January 29, 2008, 05:06:50 PM
I would keep the color as you want and make a filter image with PhotoShop or something like that.  The code will look something like:

.??_hover:hover, .??_hoverHover
{
background-color: #color;
background-image: url(./images/filter.jpg);

You don't need both entries in there...

Just use  background: url(images/image_name.extension) #hex repeat-x;

Notice that both the #hex AND image is in there...
Title: Re: BoardHover Mod
Post by: Fallen Angel on February 03, 2008, 01:31:37 PM
NICE MOD!

BUT
how do I get it to work under a other theme than default?

I'm using DilberMC..

I accached the 3 files i need to change in my theme to get it to work? Can any give the codes and where to put it?? I'm a lil bit newbie in this.. Thanx...

Title: Re: BoardHover Mod
Post by: S3NTYN3L on February 03, 2008, 10:59:32 PM
This mod makes changes to the following files:
index.template.php
MessageIndex.template.php
BoardIndex.template.php
PersonalMessage.template.php
style.css

The above files SHOULD be found in the custom theme's folder.
I say this because some themes are pretty basic and, if they DO NOT have the files mentioned, rely on those contained in the default theme folder. (basically, as I understand it, they call/link to them)...


This mod was written for the default theme but you can edit it for use with any theme you like.
Just follow the instructions below...

First, UNDO any and all changes this mod may have made while trying to install previously...
Download the mod package to your computer to edit...

Open the file entitled "Profile-Info" in your PHP code editor.

On line 12, edit the following to point to your theme:
<require-file name="pseudo-hover.htc" destination="$boarddir/Themes/default" />
Example:
<require-file name="pseudo-hover.htc" destination="$boarddir/Themes/YOUR_THEMES_NAME" />

Do the same for path found on line 18...


Next, open the file entitled "Modification".

On line 24, you'll find:
<file name="$themedir/index.template.php">

Edit it to point to your theme, like so:
<file name="Themes/YOUR_THEMES_NAME/index.template.php">

Do the same for lines 46, 148, 198 & 208...

Line 046: <file name="$themedir/MessageIndex.template.php">
Line 148: <file name="$themedir/BoardIndex.template.php">
Line 198: <file name="$themedir/PersonalMessage.template.php">
Line 208: <file name="$themedir/style.css">

...would become...

Line 046: <file name="Themes/YOUR_THEMES_NAME/MessageIndex.template.php">
Line 148: <file name="Themes/YOUR_THEMES_NAME/BoardIndex.template.php">
Line 198: <file name="Themes/YOUR_THEMES_NAME/PersonalMessage.template.php">
Line 208: <file name="Themes/YOUR_THEMES_NAME/style.css">

Next, you'll need to edit the colors on lines 214, 215, 227, 228, 240 & 241 to MATCH what your theme's stylesheet is using...
(NOTE: you must look at your themes stylesheet to find this data)...

.windowbg
Lines 214 & 215

.windowbg2
Lines 227 & 228

.windowbg3
Lines 240 & 241

Lines 220, 233, 246 & 250 should be set to whichever color you'd like to use for the "hover" color.


Once that's all done, simply zip the package and install as normal...


IF you get errors regarding the changes this mod makes to your stylesheet, edit the modification file as follows...

On line 212, you should see this:

 <search position="

REPLACE IT, AND EVERYTHING AFTER, WITH THIS, (editing the parts in blue to suit your theme):

 <search position="after"><![CDATA[/* The AJAX notifier */
]]></search>
<add><![CDATA[.windowbg_hover:hover,.windowbg_hoverHover
{
   background: #505050;
}

.windowbg2_hover:hover,.windowbg2_hoverHover
{
   background: #505050;
}

.windowbg_hover3:hover,.windowbg3_hoverHover
{
   background: #505050;
}
.mail_hover:hover,.mail_hoverHover
{
   background: #505050;
}
]]></add>   </operation>
</file>

</modification>



If you feel all this is too much for you, kindly attach the files mentioned at the beginning of this post and I'll make the changes for you.
Also tell me what you want the hover color to be. (In HEX format; #xxxxxx)...
Title: 2. Execute Modification ./Themes/default/MessageIndex.template.php Test faile
Post by: lookang on February 10, 2008, 10:48:29 AM
Type     Action     Description
1.    Execute Modification    ./Themes/default/index.template.php    Test successful
2.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/style.css    Test successful
6.    Extract File    ./Themes/default/pseudo-hover.htc

help !
Title: Re: BoardHover Mod
Post by: butchs on February 10, 2008, 07:04:24 PM
If you have version 1.1.4 of SMF then you have a another mod that is interfering with this mod.  For example, a mod like "stickyFirstPost" modifies "MessageIndex.template.php" and works if installed after "BoardHover" mod but not before.

The easy thing would be to find out which mod is interfering and remove it.  Install BoardHover mod and try to reinstall the interfering mod afterwards.  Chances are it will install like  "stickyFirstPost" did.

Or you can try a manual install.

last but not least, if you list the mods you have I can look at them next weekend.  I will not have access to this site until next Saturday.   O:)

Title: Re: BoardHover Mod
Post by: lookang on February 11, 2008, 05:32:01 AM
View and Remove Installed Packages
   Mod Name    Version    
1.    YouTube BBC Tag (XHTML Compliant)    1.0    [ Uninstall ]
2.    Clipfish BBC Tag (XHTML Compliant)    1.3    [ Uninstall ]
3.    Ebaums World BBCode    1.1    [ Uninstall ]
4.    mp3 Flash Player BBC Tag (XHTML Compliant)    1.0    [ Uninstall ]
5.    Mp3Tube BBCode    1.0    [ Uninstall ]
6.    MySpace BBC Tag    1.0    [ Uninstall ]
7.    Snapshot BBCode    1.0    [ Uninstall ]
8.    Wikipedia BBCode    1.2    [ Uninstall ]
9.    Enhanced Forum Statistics    1.0    [ Uninstall ]
10.    Zodiac_13Moon    2.2    [ Uninstall ]
11.    blinkbbc    1.0    [ Uninstall ]
12.    Link Thumbnail    1.0    [ Uninstall ]
13.    Most Popular Topic Today    1.0    [ Uninstall ]
14.    Buy Me A Beer    1.1    [ Uninstall ]
15.    SMF File Manager    2.0    [ Uninstall ]
16.    Related Topics    1.2.0    [ Uninstall ]
17.    Simple Award System    1.2.1    [ Uninstall ]
18.    SMF Sitemap    1.2.1    [ Uninstall ]
19.    SMF Trader System    1.1    [ Uninstall ]
20.    SMF-WoW-TalentCalc ver. 0.2    0.2    [ Uninstall ]
21.    SMF Shoutbox    1.16    [ Uninstall ]
22.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ]
23.    DonationCoder.com SMF Search Enhancement Mod    1.1.9    [ Uninstall ]
24.    User Control Panel By Alan S    1.2    [ Uninstall ]
25.    FontandSizeDropdown_1.2    1.2    [ Uninstall ]
26.    Increase/Decrease Postbox Size    1.0    [ Uninstall ]
27.    Display Age and Location next to posts    1.0    [ Uninstall ]
28.    Profile User Action    1.1    [ Uninstall ]
29.    Auto Embed Video Clips    1.3    [ Uninstall ]
30.    SMF Gallery Lite    1.8.1.1    [ Uninstall ]
31.    Digg Topic    2.0    [ Uninstall ]
32.    Downloads System    1.0.2    [ Uninstall ]
33.    GoogleTagged    1.2    [ Uninstall ]
34.    Pretty URLs - Base    0.7    [ Uninstall ]
35.    Social Bookmarks    1.1    [ Uninstall ]
36.    Topic Ratings    1.03    [ Uninstall ]
37.    Attachments Positioning    1.1    [ Uninstall ]
38.    Fix Message Empty Error For Embed Video Mods    1.0    [ Uninstall ]
39.    iframe BBC Tag by Metal13    1.3    [ Uninstall ]
40.    stage6 BBC Tag by Metal13    1.3    [ Uninstall ]
41.    Colorize Boards    2.0    [ Uninstall ]
42.    Ad Managment    2.3    [ Uninstall ]
43.    MCLegendII    1.1    [ Uninstall ]
44.    Previous and Next Links for Page Index    1.0    [ Uninstall ]
45.    Unique Hit Counter    1.0    [ Uninstall ]
46.    Image Thumbnail BBCode    1.0    [ Uninstall ]
47.    rateTopic    1.0    [ Uninstall ]

sorry i have many mod already but i don't see stickyFirstPost yet.

appreciate your offer and effort. THanks!!
Title: Re: BoardHover Mod
Post by: butchs on February 11, 2008, 12:27:52 PM
I looked at a few of them and was not able to locate the mod.  You will need to find the one that alters the look and/ or positioning of the categories in the default theme.
Title: Re: BoardHover Mod
Post by: weightman on March 05, 2008, 11:13:15 PM
This package appears to be screwed up judging by the strange results when uploaded to the package parsers (brings up info about other mods- gallery lite and Youtube BBC code, corrupted package errors, stuff in other languages, etc- different every time seemingly.)
Title: Re: BoardHover Mod
Post by: bassbass on March 08, 2008, 02:11:36 AM
I found that it conflicts with mod "View Only Board"  i couldn't install the "View Only Board" until i uninstalled the Hover mod, can you look into this and see where the conflict is?

Installing this package will perform the following actions:  Type Action Description
1. Execute Code DB.php 
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test successful
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Modification ./Sources/Recent.php Test successful
8. Execute Modification ./Sources/ModSettings.php Test successful
9. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
10. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
11. Execute Modification ./Themes/default/Recent.template.php Test successful
12. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
13. Execute Modification ./Themes/default/style.css Test successful
14. Execute Modification ./Themes/default/languages/ManageBoards.english.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: BoardHover Mod
Post by: butchs on March 08, 2008, 09:27:20 PM
weightman,
I just checked it and the package on this server is not corrupted.

bassbass,
Making this mod to work with every other mod is impossible.  Your best bet is a manual install.

I will do a small part as an example.  In the "BoardIndex.template.php" you may change...

FROM:
Quote
            </span></td>
            <td class="windowbg2" valign="middle" width="22%">
               <span class="smalltext">';

            /* The board's and children's 'last_post's have:
            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
            link, href, subject, start (where they should go for the first unread post.),
            and member. (which has id, name, link, href, username in it.) */
            if (!empty($board['last_post']['id']))
               echo '
                  <b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
                  ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
                  ', $txt[30], ' ', $board['last_post']['time'];
            echo '
               </span>

TO:
Quote
            </span></td>';
            /* The board's and children's 'last_post's have:
            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
            link, href, subject, start (where they should go for the first unread post.),
            and member. (which has id, name, link, href, username in it.) */

   if (!empty($board['last_post']['id']))
               echo '
               <td class="windowbg2 windowbg2_hover" valign="middle" width="22%" onclick="window.location.href=\'',$board['last_post']['href'],'\'">
<span class="smalltext">

                  <b>', $txt[22], '</b>  ', $txt[525], ' ', ($board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['member']['link']) . '</span>' : $board['last_post']['member']['link']) , '<br />
                  ', $txt['smf88'], ' ', ( $board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['link']) . '</span>' : $board['last_post']['link'] ), '<br />
                  ', $txt[30], ' ', $board['last_post']['time'];

   else
            echo '
               <td class="windowbg2" valign="middle" width="22%">
               <span class="smalltext">';
            echo '
               </span>

The bold letters are from the "View Only Board" mod...
 :o
Title: Re: BoardHover Mod
Post by: weightman on March 09, 2008, 11:41:38 PM
Hmmm, well I need to install the mod manually because of other mods and neither package parser is able to read it properly. Any chance you could post or PM me all the edits I need to make?

Thanks
Title: Re: BoardHover Mod
Post by: butchs on March 12, 2008, 11:42:58 PM
S3NTYN3L gave it a shot in a post above. 

If you need more assistance there is a nice tutor on reading xml files by BigGuy at:  SMF Helper: Reading a .xml file (http://www.smfhelper.info/forum/index.php?topic=590.0)

NOTES:
The thing with my mod is that I change a bunch of code in order to get the hover to work properly.  It may be easier to start with my mod and then add other mods to it.  If another mod has more changes then of course us it as the base.

Some portions of the added mods may have to be duplicated depending on their behavior since I was forced to use two variations of the same section:  One with the links and one without links.

You will be cool if the mod you are adding does not effect the links.  If it does you may need to add it's code in two places.

Of course, I recommend you do this on a test server and review all the edited mods for accuracy before you download to your main server.  My test server has saved me several times.   :o

Title: Re: BoardHover Mod
Post by: 58tbird on March 26, 2008, 05:47:20 PM
Just wanted to let you know that I really like this mod and I highly recommend it! Thank you! :)
Title: Re: BoardHover Mod
Post by: butchs on March 26, 2008, 09:24:59 PM
Ah shucks, you are just saying that because we are both T-Bird lovers.   ;D

Seriously, thank you.  8)

Title: Re: BoardHover Mod
Post by: eNOOBz on March 29, 2008, 01:34:53 AM
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/index.template.php    Test successful
2.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/style.css    Test successful
6.    Extract File    ./Themes/default/pseudo-hover.htc    

What should I do?.. please help.
Title: Re: BoardHover Mod
Post by: S3NTYN3L on March 29, 2008, 09:02:38 AM
What should I do?.. please help.

Reading this thread might be a good start...


Making this mod to work with every other mod is impossible.  Your best bet is a manual install.


I suggest that you uninstall your mods, one at a time, until the install for this mod works...
You can then try reinstalling the unstalled mods...

Although, I've a feeling that you'll need to manually install one or more of them regardless...
Title: Re: BoardHover Mod
Post by: butchs on March 29, 2008, 01:28:17 PM
As usual, thanks S3NTYN3L. :)

Anyhow, version 1.2 was submitted today.  No additional features were added.  But now, it is compatible with both 1.1.4 and 2.0 Beta 3 public.  I streamlined some of the 1.1.4 code, fixed a minor typo.  But I spent more effort streaming code for 2.0 beta 3.  I do not plan to do any further streamlining with 1.1.4 sorry...   :o

If there is another mod that changes the same code it may not be fully functional with BoardHover and will require manual editing.  If you install BoardHover first then install the other mod editing may be required...   Here are the places to look:

MessageIndex.template.php for 2.0 Beta with BoardHover  1.2 installed the code in blue below should be reviewed:

Quote
<td class="windowbg2 windowbg2_hover" valign="middle" width="22%" onclick="window.location.href=\'',$board['last_post']['href'],'\'"><small>
               <b>', $txt['last_post'], '</b> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
               ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
               ', $txt[30], ' ', $board['last_post']['time'];

         else
            echo '
            <td class="windowbg2" valign="middle" width="22%">

In BoardIndex.template.php for 2.0 Beta with BoardHover  1.2 installed the following blue lines need to be reviewed:

Quote
<td class="windowbg2 windowbg2_hover" valign="middle" width="22%" onclick="window.location.href=\'',$board['last_post']['href'],'\'">
               <span class="smalltext">

                  <b>', $txt['last_post'], '</b>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
                  ', $txt['in'], ' ', $board['last_post']['link'], '<br />
                  ', $txt['on'], ' ', $board['last_post']['time'];
            else
               echo '
            <td class="windowbg2" valign="middle" width="22%">


There may be a easier way but I ran out of coding time...  I hope you enjoy the update.  8)
Title: Re: BoardHover Mod
Post by: DASBEAN on April 17, 2008, 09:26:29 PM
Am I supposed to replace "default" in the package-info.xml with the name of the theme, or the file name of theme? For example, the Corto theme is named corto112_tp on the file system.

Please advise.

Thanks
Title: Re: BoardHover Mod
Post by: butchs on April 17, 2008, 10:28:38 PM
I doubt that will work since other themes may be not be the same as default.  I think you are going to have to try a manual install!  O:)

Why don't you try the SMF Package Parser? (http://sleepycode.com/PackageParser/index.php)  I never tried but who knows.... ???
Title: Re: BoardHover Mod
Post by: icon on April 20, 2008, 02:38:43 AM
first of all, thnx for this mod..

got a little problem here,

this was your modified boardindex.template.php (boardhover mod) right?
Code: [Select]
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2 windowbg2_hover" onclick="window.location.href=\'index.php?board=',$board['id'],'.0\'">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */

if (!empty($board['last_post']['id']))
echo '
<td class="windowbg2 windowbg2_hover" valign="middle" width="22%" onclick="window.location.href=\'',$board['last_post']['href'],'\'">
<span class="smalltext">

<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
else
echo '
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';
echo '
</span>
</td>
</tr>';

I installed Neat Board Layout and it camed up with this code.
My problem is how would I apply your board hover to to work on this code?
Code: [Select]
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg', $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';
$first = false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

echo '
', $category['link'], '
</div>';

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;"> 
<tr> 
<td class="windowbg" valign="middle"></td> 
<td class="windowbg2" valign="middle" align="left"><b>', $txt['smf82'], '</b></td> 
<td class="windowbg" valign="middle" align="center"><b>', $txt[22], '</b></td> 
<td class="windowbg2" valign="middle" align="center"><b>', $txt[330], '</b></td> 
<td class="windowbg" valign="middle" align="center"><b>', $txt[21], '</b></td> 
</tr>
 ';

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2 windowbg2_hover" onclick="window.location.href=\'index.php?board=',$board['id'],'.0\'">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';


echo '
</td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))

echo '
<b><img src="', $board['last_post']['icon_url'], '" /> ', $board['last_post']['link'], '</b> <br />
', $txt[525], ' ', $board['last_post']['member']['link'], ' <br />
<div align="right"> ', $board['last_post']['time'] , ' </div>';
echo '
</span>
</td>';

// Show some basic information about the number of posts, etc.
echo '
<td class="windowbg2" valign="middle" align="center" style="width: 6ex;"><span class="smalltext">', $board['topics'], '</span></td>
<td class="windowbg" valign="middle" align="center" style="width: 6ex;"><span class="smalltext">', $board['posts'], '</span></td>
</tr>';
Title: Re: BoardHover Mod
Post by: butchs on April 20, 2008, 05:59:48 PM
It looks like installing "Neat Board Layout" first then manually installing BoardHover (http://www.smfhelper.info/forum/index.php?topic=2694.0) does the trick.  8)
Title: Re: BoardHover Mod
Post by: exxocet on May 01, 2008, 04:14:41 AM
Installed this great mod manually, as I use Dilber theme. Everything's working fine, just it changed the fonts in Internet Explorer. It effects only IE 7, possible the anterior versions too; works OK in Opera and Firefox. It thought is a CSS problem, but I've used back-up CSS and still the fonts remain changed. Some help please?...  O:)

(http://i27.tinypic.com/2akdx84.jpg) (http://i27.tinypic.com/2akdx84.jpg)


(http://i27.tinypic.com/330h69x.jpg) (http://i29.tinypic.com/mmbmtd.jpg)
Title: Re: BoardHover Mod
Post by: butchs on May 03, 2008, 10:40:07 PM
Looks good.

The mod only effects the graphics unless you change the "font-family" for the hovers in css or define the text in the class in php text.

When I was testing my site with IE I noticed that IE can override the fonts.  I would start looking at your IE preferences.

Otherwise I would need more info.  :)
Title: Re: BoardHover Mod
Post by: Jelle Mees on May 26, 2008, 04:21:24 AM
*     1.     Execute Modification     ./Themes/default/index.template.php     Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test successful
      3.    Add Before    ./Themes/default/index.template.php    Test successful
*    2.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test failed
      3.    Add After    ./Themes/default/MessageIndex.template.php    Test successful
      4.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      5.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      6.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test failed
*    4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
      1.    Replace    ./Themes/default/PersonalMessage.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/style.css    Test successful
      1.    Add Before    ./Themes/default/style.css    Test successful
      2.    Add Before    ./Themes/default/style.css    Test successful
      3.    Add After    ./Themes/default/style.css    Test successful
      4.    Add After    ./Themes/default/style.css    Test successful
      5.    Add After    ./Themes/default/style.css    Test successful
   6.    Extract File    ./Themes/default/scripts/pseudo-hover.htc
Title: Re: BoardHover Mod
Post by: butchs on May 26, 2008, 10:57:33 AM
Assuming SMF 2.0 Beta 3.x.  Boardhover mod assumes you have a fresh default theme.   It looks like you have a mod installed that is conflicting.  In some cases you can uninstall the conflicting mod and reinstall boardhover and all will work fine.  Other cases require a manual install.

For example the report shows that in "MessageIndex.template.php" the following default code has been altered:
Code: [Select]
</td>
<td class="windowbg2" valign="middle" width="22%"><small>';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt['last_post'], '</b> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'];

echo '</small>


If it was not edited boardhover mod would replace it with the following:
Code: [Select]
</td>';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<td class="windowbg2 windowbg2_hover" valign="middle" width="22%" onclick="window.location.href=\'',$board['last_post']['href'],'\'"><small>
<b>', $txt['last_post'], '</b> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];

else
echo '
<td class="windowbg2" valign="middle" width="22%"><small>';

echo '</small>

That are so many mods out there that I do not know which one is conflicting.   As a mod author it is impossible for me to guess what other mod authors will do.  Even if I did there is no method for me to incorporate AI into the installation script.  All I can do is minimize the code I search for in the hope of not conflicting.

If you like to try a manual install check out some of the previous topics in this thread.  If you run into a snag post the code in question and I will try to help. But please note that my time is limited so it may take me a few days to respond...
Title: Re: BoardHover Mod
Post by: gianko82 on June 05, 2008, 05:34:41 AM
is it possible apply this mod only to the board index, and only in the left part on the index of the board and not over the right part regarding the latest post?
Also, I have some images on the board description, which change with a hover condition (see them on www.sicilsurf.it/joomla/smf ) is it possible make these change with the hover image when I am over the board index?
thanks
Title: Re: BoardHover Mod
Post by: butchs on June 05, 2008, 10:44:21 AM
is it possible apply this mod only to the board index

Yes.  You will have to manually install the mod and skip the following sections in the xml file:  MessageIndex.template.php & PersonalMessage.template.php.

See an earlier post in this thread on how to do a manual install.

and only in the left part on the index of the board and not over the right part regarding the latest post?


Yes.  Manually install half the code for BoardIndex.template.php  "<td class="windowbg2">
               <b>..".  Ignore the second change in this file.

Also, I have some images on the board description, which change with a hover condition (see them on www.sicilsurf.it/joomla/smf ) is it possible make these change with the hover image when I am over the board index?
thanks

Yes.  In style.css under "#menu ul li a"  you can add a hover image.  For example:

#menu ul li a
{
bla bla...
   background: #8FC1FB url(./images/menubg_current.png) repeat; /* baby blue */

}

Will add the base background image.

"#menu #selected a"  will set the background for the last item that was clicked on.  "#menu ul li a:hover" will set the hover image.

I recommend adding both a solid color and an image since some browsers turn off the image.
Title: Re: BoardHover Mod
Post by: gianko82 on June 05, 2008, 12:05:14 PM
sorry.... but I don't understand very well!
what's "#menu ul li a"??
also, did you see my forum board index?
I wnat to say that the images relative to each section - in the section's description - (on the right) have to change with the related over images that are on my forum - which are different from section to section! - when I am over the section rectangle...
I don't know if I explain good myself! did you understand?
is it possible?
Title: Re: BoardHover Mod
Post by: butchs on June 08, 2008, 04:42:01 PM
what's "#menu ul li a"??

"#menu ul li a" is in the "style.css" file that is in your default directory.

also, did you see my forum board index?

Yes.  It is nice.

I wnat to say that the images relative to each section - in the section's description - (on the right) have to change with the related over images that are on my forum - which are different from section to section! - when I am over the section rectangle...

Boardhover is used to change the background for theboards.  Changing the images on hover is not in the scope of board hover.

I have been tinkering with it on my forum at ECRTcc.com (http://www.eastcoastrollingthunder.com/smf/index.php?action=recent;sa=all)

If you run the mouse over replay and Quote they will change state.  But I have not made it into a mod.  It is Car Show season...

is it possible?

Yes.
Title: Re: BoardHover Mod
Post by: weightman on June 23, 2008, 11:22:16 PM
Hi, I would really like to install this mod but I have many other mods installed and this mod therefore shows errors on install index.template.php and style.css. I looked at the code using the package parser and the code being searched for is simply different. Would anyone be willing to talk me in to inserting the code properly if I post each issue (2-3)?

Thanks
Title: Re: BoardHover Mod
Post by: fangweile on June 23, 2008, 11:39:38 PM
You have to manually edit the index.template.php and style.css. What theme did you used?
Title: Re: BoardHover Mod
Post by: weightman on June 23, 2008, 11:51:28 PM
Yes, I realize I need to make the edits manually. But, for instance, the second edit necessary for index.template php says replace this code:

Code: [Select]
<body>';
But, that code does not appear in my code. Instead, I have this code:

Code: [Select]
<body><table width="100%">
    <tr>
        <td class="mainCell">';
   

Most of the edits are doable, but their are a couple more that don't match up like this one.

Thanks
Title: Re: BoardHover Mod
Post by: fangweile on June 24, 2008, 01:58:19 AM
Find

Code: [Select]
<body>
Replace with

Code: [Select]
<body onload="PreloadFlag = true;">
Title: Re: BoardHover Mod
Post by: butchs on July 12, 2008, 05:57:08 PM
New version bug fix posted for SMF 2.0 beta 3 users only.  This version fixes a minor Undefined Offset that was showing up in the administrator's error log.  See the mod for more info. 

No changes were made for SMF 1.1.x users.

Please uninstall the old version and install the new version.  8)
Title: Re: BoardHover Mod
Post by: edi67 on July 15, 2008, 07:22:34 AM
intersting
Title: Re: BoardHover Mod
Post by: gamerhookup on August 19, 2008, 03:45:45 PM
Hi there...

Well I successfully got the mod to work with over 50 mods already on the board with NO errors.  Now I want to add a few other ON-CLICK areas...

As you can see in this code line below, I added the hover and it works, now I want to add the clickable link. 

This particular line is for the Global Announcements mod, but I have tried all kinds of different permiters and nothing...

Code: [Select]
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg windowbg2_hover"', '>

This is the line that needs to be executed:

Code: [Select]
http://www.mydomainname.com/index.php?action=globalAnnouncements;id=1

And so forth...
And remember each global has a different ID at the end

Can any one help me with the correct perimeters for this line to click on the sectors and ID's ????

This is what I have got working but shows the forum index...
Code: [Select]
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' :
 'class="windowbg windowbg2_hover"', 'onclick="window.location.href=\'index.php?action=globalAnnouncements', $globalAnnouncement['ga'],'.0\'">

And it gives me this line.. Of course it is not correct...

Code: [Select]
http://www.mydomainname.com/index.php?action=globalAnnouncementsArray.0

:) Help! Please!
Title: Re: BoardHover Mod
Post by: butchs on August 21, 2008, 08:30:53 PM
gamerhookup I do not have SMF 1.1.5 installed anymore so I can not test it but I would try something like:

Code: [Select]
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg windowbg2_hover"', 'onclick="window.location.href=\'index.php?action=globalAnnouncements;id=', $row['ID_GA'],'\'"'>;
I hope that gets you in the right direction.

Just so you know I have some more hovers and upgrades ready for SMF Beta.  I am waiting until version 4 before I release them.
Title: Re: BoardHover Mod
Post by: gamerhookup on August 23, 2008, 12:11:02 AM
k, thanks for the line, but it does not work and it crashes the template.. Here is the entire section maybe you can see if we are missing something. This is working now but only to a particular announcement...

Code: [Select]
// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg windowbg2_hover"', 'onclick="window.location.href=\'index.php?action=globalAnnouncements;id=2','\'">
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}

I can up the template file if you need to look at it.. It seems the problem is with your changes in the line below...

Code: [Select]
$row['ID_GA'],

I went ahead and updated the post here with the template file just in case... I think I must be missing something like a '  or a ; or , I have no clue when it comes to close the arguments in the lines..
Title: Re: BoardHover Mod
Post by: butchs on August 23, 2008, 08:53:34 AM
Try isolating the semi colin like this:

Code: [Select]
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg windowbg2_hover"', 'onclick="window.location.href=\'index.php?action=globalAnnouncements',';', 'id=',$row['ID_GA'], '\'">

I am not sure that it works since I have SMF 2.0 or not but it has no php errors.  See attached...
  :)
Title: Re: BoardHover Mod
Post by: commandokj on September 06, 2008, 01:52:50 PM
I have any issue with the board hover mod: I uninstalled it, and the effects are still working--they are not supposted to be (but im fine if they are) but the real issue is that every time my site is loaded, i get an error in the bottom left of the browser. The error is:
Code: [Select]
Error: Access is denied to: http://simplynetbook.com/themes/apollobb/pseudo-hover.htc
The thing is that the pseudo-hover.htc is already uninstalled--literally deleted as well and this appears everytime! im fine if the board hover effect still works, but the error that appears is (1) annoying and (2) it slows the loading of my page!

Any help would be much appreciated! Also, I have the ApolloBB theme if that is neccessary to know...
Title: Re: BoardHover Mod
Post by: butchs on September 07, 2008, 08:27:16 PM
There are no links to "simplynetbook.com" in the mod.  I believe your problem is with the ApolloBB theme.  That theme and boardhover mod are not compatible.  You will need to re-install the theme or part of it.  That theme seems to partially implement a version of "pseudo-hover.htc" and requires the themes version of "pseudo-hover.htc".


Title: Re: BoardHover Mod
Post by: butchs on September 13, 2008, 04:37:30 PM
Today I completed the update for SMF Beta 4 Public.  For the new version of SMF I added a new locked message hover.  This hover puts the word "LOCKED" in red multiple times when the mouse goes over a locked thread.

See the attached picture for an example or see the picture with the update (http://custom.simplemachines.org/mods/index.php?mod=1065).
Title: Re: BoardHover Mod
Post by: Bigguy on September 15, 2008, 07:32:34 PM
Thought I would post this here for ya Butchs. I upgraded my forum the other day to 2.0 beta 4. I have made sure there are NO edits left in any files. The mod is not in the packages folder and that the cache is cleared. When I upload and try to install the new version of your mod I get this error:

Quote
Sorry, but there is no upgrade package from your version. Please uninstall the previous version, and install this version. You won't lose any data.

Any ideas. I know we talked about this problem already but I don't think I mentioned this message at all.
Title: Re: BoardHover Mod
Post by: butchs on September 17, 2008, 06:41:09 AM
I will try to look at it this weekend.  I have changed internet pr and it will take me a few days to get my computers up and running.   O:)
Title: Re: BoardHover Mod
Post by: F4r4Zm0In on September 23, 2008, 01:49:01 PM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing BoardHover Mod       1.3.0

i have got this >>

Quote
Type      Action      Description
1.     Execute Modification     ./Themes/classic/index.template.php     Test successful
2.     Execute Modification     ./Themes/classic/MessageIndex.template.php     Test failed
3.     Execute Modification     ./Themes/classic/BoardIndex.template.php     Test failed
4.     Execute Modification     ./Themes/classic/PersonalMessage.template.php     Test successful
5.     Execute Modification     ./Themes/classic/style.css     Test failed
6.     Extract File     ./Themes/default/pseudo-hover.htc   

any ideas  ???
Title: Re: BoardHover Mod
Post by: Bigguy on September 23, 2008, 05:51:32 PM
Those files it failed on have different code in them then the default theme does. You can still install the mod but those files will have to be edited manually for the mod to work proper.
Title: Re: BoardHover Mod
Post by: butchs on September 24, 2008, 09:32:20 PM
Yes the mod only works withe the "default theme".

I apologize for the time delay but I upgraded my internet access and there were line problems that forced me to be offline for almost a week.  Nevertheless, I have upgraded the mod with my attempt to allow it to work with SMF Beta 4 (not public).

Bigguy please let me know if it works?   :P
Title: Re: BoardHover Mod
Post by: TroyG on September 26, 2008, 11:37:28 AM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing BoardHover Mod       1.3.0

i have got this >>

Quote
Type      Action      Description
1.     Execute Modification     ./Themes/classic/index.template.php     Test successful
2.     Execute Modification     ./Themes/classic/MessageIndex.template.php     Test failed
3.     Execute Modification     ./Themes/classic/BoardIndex.template.php     Test failed
4.     Execute Modification     ./Themes/classic/PersonalMessage.template.php     Test successful
5.     Execute Modification     ./Themes/classic/style.css     Test failed
6.     Extract File     ./Themes/default/pseudo-hover.htc   

any ideas  ???

I am getting the same problem. So this mod won't work with 1.1.6 ?
Title: Re: BoardHover Mod
Post by: butchs on September 26, 2008, 08:30:45 PM
This mod only works with the DEFAULT theme.  It does not work nor is it intended to work with the classic theme.  Sorry but I just do not have the time to make a version for all the core themes.   :)
Title: Re: BoardHover Mod
Post by: Bigguy on September 29, 2008, 08:24:27 PM
I have tried it again and it still asked me to upgrade for some reason. Your mod is the only one that does that. I am having problems with my site right now in a few areas so it might be due to that.

Bigguy please let me know if it works?   :P
Title: Re: BoardHover Mod
Post by: butchs on September 29, 2008, 09:42:43 PM
Can you copy and paste the message if it comes back after you do your thing?

FYI, The mod does not have an upgrade path.  You need to remove the old version and delete it before uploading and installing a newer version.

I have found in testing that SMF does not overwrite a mod when you upload it if the mod is not deleted.  You have to delete the old mod before uploading a new version.  I do not know why but this is what I have seen in testing.

Good luck.   O:)
Title: Re: BoardHover Mod
Post by: Kosedragen on September 30, 2008, 04:25:53 AM
Yes, I like this mod a bunch. It looks great and acts just the same.

However; It seems that people using Opera wont see the color change when hovering a board. I have only checked IE and Opera so far, but it worked when I looked at the forum in IE. Is there anything I can do to make this work?

EDIT: Meep, nevermind this. The error was mine :3 Thanks again for the awesome mod : D
Title: Re: BoardHover Mod
Post by: butchs on September 30, 2008, 06:29:21 AM
When you first use the mod some browsers will not notice the hover unless you reload the web page.  Please try reloading the page a few times.


Title: Re: BoardHover Mod
Post by: Bigguy on September 30, 2008, 09:43:31 AM
I did get rid of it from everywhere. After I get things working and if it happens again I will post on this then.

Can you copy and paste the message if it comes back after you do your thing?

FYI, The mod does not have an upgrade path.  You need to remove the old version and delete it before uploading and installing a newer version.

I have found in testing that SMF does not overwrite a mod when you upload it if the mod is not deleted.  You have to delete the old mod before uploading a new version.  I do not know why but this is what I have seen in testing.

Good luck.   O:)
Title: Re: BoardHover Mod
Post by: Final60 on September 30, 2008, 10:36:37 AM
Hey
I tried a few times to edit the files in my custon theme folder without luck. If you have time could you take a look at my themes files?  would greatly appreciate it!

Also just to add, it works fine with the default theme so there aren't any conflicts with other mods etc. Just can't get my head around modifying my custon theme :)
Title: Re: BoardHover Mod
Post by: butchs on September 30, 2008, 09:01:15 PM
I guess I am a geek after-all.   :P

I do not have SMF 1.1.6 but this is my best guess at it based on what I see in your theme.  This should get you 90% there...
8)

By the way the graphics on your site are utterly awesome!  You have skillz!   :)

Title: Re: BoardHover Mod
Post by: =<|Skary|>= on December 07, 2008, 03:44:56 AM
I was psyched about this mod, but i don't wanna install it because it failed several tests when i went to install it on my non-standard themes.
Title: Re: BoardHover Mod
Post by: butchs on December 08, 2008, 09:01:14 PM
I am sorry but it is made for the default theme.  To make this mod work with all themes will be impossible.  Try installing it first before other mods.  If it shows errors than a manual install is in order.


Title: Re: BoardHover Mod
Post by: butchs on May 03, 2009, 01:26:03 PM
New Version 1.4.0 - Updated for SMF 2.0 RC1 only.

Still only works with default theme.

Title: Re: BoardHover Mod
Post by: Chit-Chat ChatterBox Boss on May 03, 2009, 02:41:55 PM
Great Mod. I love it!!  :D Makes it easier and faster to view things!
Title: Re: BoardHover Mod
Post by: Sudhakar Arjunan on May 06, 2009, 05:40:41 AM
Installed and not worked for me on default theme.

Even after hard refresh.
Title: Re: BoardHover Mod
Post by: butchs on May 06, 2009, 07:49:34 PM
Sorry but, I do not know what to tell you.  It is hard to help you when we have no info.
 :)
Title: Re: BoardHover Mod
Post by: DareDevil1990 on June 09, 2009, 03:02:20 AM
any one who can edit the files for me :-s i tried editing but didnt work i am on a custom theme btw and smf 1.1.9
Title: Re: BoardHover Mod
Post by: Rockz on June 28, 2009, 01:07:55 PM
Hey butchs, do you think you can make this compatible for 2.0 RC1-1?  I just tried to install it with that SMF version and was given the following message in the package manager:

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Thanks a lot!
Title: Re: BoardHover Mod
Post by: butchs on June 29, 2009, 08:03:51 PM
I will look into it.   :o
Title: Re: BoardHover Mod
Post by: butchs on June 30, 2009, 09:15:37 PM
Done.   :)
Title: Re: BoardHover Mod
Post by: Rockz on July 02, 2009, 08:05:33 PM
You rock butchs!
Title: Re: BoardHover Mod
Post by: [Core] on July 02, 2009, 09:36:24 PM
Nice mod
Title: Re: BoardHover Mod
Post by: butchs on July 09, 2009, 09:41:31 PM
Thank you.  :)
Title: Re: BoardHover Mod
Post by: jorgen on August 01, 2009, 05:46:21 PM
Great mod.

-But is it possible to also change the color of the font when hovering over a category?
Title: Re: BoardHover Mod
Post by: butchs on August 02, 2009, 04:25:43 PM
In style.css you can modify:
a:hover
{
   text-decoration: underline;
}

to something like:
a:hover
{
        color:  red;
   text-decoration: underline;
}

This will change the color of the text when the cursor goes over it.
Title: Re: BoardHover Mod
Post by: butchs on August 02, 2009, 04:26:19 PM
New version to support SMF 2 RC1.2.
Title: Re: BoardHover Mod
Post by: jorgen on August 05, 2009, 09:47:08 AM
Thanks, but this will only change the color of the text when I hover over the text, will it not?

I was hoping to change the color of the text together with the category color, when I vover anywhere in the category.



In style.css you can modify:
a:hover
{
   text-decoration: underline;
}

to something like:
a:hover
{
        color:  red;
   text-decoration: underline;
}

This will change the color of the text when the cursor goes over it.
Title: Re: BoardHover Mod
Post by: butchs on August 11, 2009, 08:52:11 PM
Yes, I gave you the easy way.  Problem is it is only a partial implementation since the standard text is used in many places.

To do what you are looking at, you will need to define at least two new text styles.  One for hover and one not.  Assign the styles to the forum text and then apply the other during the hover.

That is something I can look at when I do my winter snow storm programming.   ;)
Title: Re: BoardHover Mod
Post by: butchs on September 14, 2009, 05:04:13 PM
New version was posted today:

Bug fix:  Corrected a bug that prevented hovers from being displayed in 2.0 RC 1.2 in Safari 4.0.3.
Title: Re: BoardHover Mod
Post by: sportin3 on November 08, 2009, 12:48:57 AM
I am new to this but I have a question.
Does anyone have a problem with the fact that this mod adds a copyright that is not only a copyright but a link to an active forum that has nothing to do with smf or mods?

I know that I am going to get mixed responses on this one so I will step up and answer a few on the front end. I did uninstall the mod because I do have a problem with that. I also believe that the authors should get credit but I do not like the fact that he is using the bottom of my forum for link backs.

I have seen some comments from the SMF staff that agrees with this as well. I am not trying to start any trouble and I hope that some day I can contribute good mods like this one. I just know that until it was brought to my attention, I never looked at the bottom of my page. I'm just passing on information and each of you can decide what to do.

Thanks for the mods.
Title: Re: BoardHover Mod
Post by: butchs on November 10, 2009, 02:21:19 PM
Many mods and themes do the same.  It is funny some love the mod and others do not.  Sorry...  But if you want to edit it, all you had to do is ask.
Title: Re: BoardHover Mod
Post by: butchs on November 10, 2009, 04:53:41 PM
New version released today for SMF 2.0 RC2.  Add member list hover and tableless linktree hover.

Attached is a screen shot of the linktree hover.

Due to all the changes in SMF this version was a total re-write.  I tested it the best I can for several months.  Please let me know if there are any bugs.

I did everything I can to make this code as fast as possible.  I hope you like it???

Do not forget to refresh your browser after installation.   ;)
Title: Re: BoardHover Mod
Post by: butchs on November 13, 2009, 08:35:08 PM
A bug fix was released today.  There was an undefined variable error that I missed in testing that went nuts on the error log.  Sorry about that, but now it is fixed.  While I was at it I cleaned up some code for freeing memory.  8)
Title: Re: BoardHover Mod
Post by: butchs on November 13, 2009, 09:06:42 PM
The latest feature added to boardhover is the tableless hover linktree.  I have been playing with this for years now and the code was way too long.  So one day I decided to write a linktree generator and eliminated many lines of code.

If you manually install the mod all you will need to do is copy the code in the "linktree-2RC2.xml" file and add the first "OPERATION" in "modification-2RC2.xml".

The data you will want to change to match your theme is in the "index.css" file.  Search for "Start of linktree" to find it.  The css file is structured as follows:

.linktree_border? *

.linktree_b

.linktree_? *

.linktree_?_hover:hover, .linktree_?_hoverHover *

* NOTE: ? denotes a number that will change.

The elements can be expandable to infinity.  But currently the mod goes 6 deep.  There are some changes that can be made to allow it to go deeper but as far as I understand most forums do not.

I hope this helps.

Title: Re: BoardHover Mod
Post by: butchs on November 13, 2009, 09:12:45 PM
One final note.  That is text size.  Changing the text size is a pain in the neck.  You have to change the "height" in the border and placeholder elements and change the "line-height" in the rest and hover elements.  This will vary from browser to browser and is a pain in the neck to get right.  You have been warned, change text at your own risk.   :o
Title: Re: BoardHover Mod
Post by: gwuix2 on November 13, 2009, 09:38:56 PM
Installed!

1 question, I liked more the old linktree, is there an easy way to change that back? ( maybe the next version could include an option for this :) )

thx
Title: Re: BoardHover Mod
Post by: butchs on November 13, 2009, 11:12:16 PM
I was wondering if people would want to do that but I was not sure.  I was thinking about adding a check box.  But for now try the attached.  If it works I will add it to the mod section.

You will need to uninstall and delete the old version, then install this one, clear cache and refresh your browser.  The "wo" on the end of the file stands for "wit out" that is Philly speak for with out.  Good to know if you want to order a steak at Pats and do not like cheese wiz.  :)

By the way I can only help people with the latest public version of 2 SMF RC2 since that is what I have loaded on my test forum...

attachment was moved...
Title: Re: BoardHover Mod
Post by: gwuix2 on November 14, 2009, 02:57:12 PM
Thank you for the fast reply. _wo installed!
Title: Re: BoardHover Mod
Post by: butchs on November 15, 2009, 09:02:15 AM
New revision today.  I finally worked out how to change the text color on mouseover.  Thanks for the request Jorgden.

Instead of changing the text in the admin section I did it in css.  Changing it in the admin section will slow things down a little and I like speed.  The default text color is green for normal items and bold red for admin/ moderator items. 

Therefore to edit the text colors during hover you will need to edit the default/css/index.css file.

You can search the file for "hover background & text colors" and "Linktree hover text colors" if you install the linktree.

For example if I wanted to change the text color of a sticky during hover from green to blue I will search for...
Quote
/* Boardhover hover background & text colors. */
.stickybg2_hover:hover,.stickybg2_hoverHover
{
   color: green;
   background: #decec9;
}
.stickybg2_hover:hover a, .stickybg2_hoverHover a, td.subject.stickybg2.stickybg2_hover:hover, td.subject.stickybg2.stickybg2_hoverHover, td.lastpost.stickybg2.stickybg2_hover:hover, td.lastpost.stickybg2.stickybg2_hoverHover
{
   color: green;
}

and replace it with...
Quote
/* Boardhover hover background & text colors. */
.stickybg2_hover:hover,.stickybg2_hoverHover
{
   color: blue;
   background: #decec9;
}
.stickybg2_hover:hover a, .stickybg2_hoverHover a, td.subject.stickybg2.stickybg2_hover:hover, td.subject.stickybg2.stickybg2_hoverHover, td.lastpost.stickybg2.stickybg2_hover:hover, td.lastpost.stickybg2.stickybg2_hoverHover
{
   color: blue;
}

if I wanted to change the default linktree hover text from green to blue I will search for...
Quote
/* Linktree hover text colors. */
div.linktree_0.linktree_0_hover:hover a, div.linktree_0.linktree_0_hoverHover a
{
   color: green;
}
div.linktree_1.linktree_1_hover:hover a, div.linktree_1.linktree_1_hoverHover a
{
   color: green;
}
div.linktree_2.linktree_2_hover:hover a, div.linktree_2.linktree_2_hoverHover a
{
   color: green;
}
div.linktree_3.linktree_3_hover:hover a, div.linktree_3.linktree_3_hoverHover a
{
   color: green;
}
div.linktree_4.linktree_4_hover:hover a, div.linktree_4.linktree_4_hoverHover a
{
   color: green;
}
div.linktree_5.linktree_5_hover:hover a, div.linktree_5.linktree_5_hoverHover a
{
   color: green;
}
div.linktree_6.linktree_6_hover:hover a, div.linktree_6.linktree_6_hoverHover a
{
   color: green;
}

and replace with..
Quote
/* Linktree hover text colors. */
div.linktree_0.linktree_0_hover:hover a, div.linktree_0.linktree_0_hoverHover a
{
   color: blue;
}
div.linktree_1.linktree_1_hover:hover a, div.linktree_1.linktree_1_hoverHover a
{
   color: blue;
}
div.linktree_2.linktree_2_hover:hover a, div.linktree_2.linktree_2_hoverHover a
{
   color: blue;
}
div.linktree_3.linktree_3_hover:hover a, div.linktree_3.linktree_3_hoverHover a
{
   color: blue;
}
div.linktree_4.linktree_4_hover:hover a, div.linktree_4.linktree_4_hoverHover a
{
   color: blue;
}
div.linktree_5.linktree_5_hover:hover a, div.linktree_5.linktree_5_hoverHover a
{
   color: blue;
}
div.linktree_6.linktree_6_hover:hover a, div.linktree_6.linktree_6_hoverHover a
{
   color: blue;
}

Unless there is a bug I am done making changes for a while.  :)
Title: Re: BoardHover Mod
Post by: butchs on November 23, 2009, 09:11:23 AM
Bug fix was released today.  It was discovered with some SMF installations that manually installed the mod that the board and child board did not link during hover.  This bug was fixed.

If the mod works with version 1.5.2 you do not need this update!
Title: Re: BoardHover Mod
Post by: Vyache on November 24, 2009, 11:07:36 PM
Hello,

I'm having trouble installing this thing because it cannot find most of the syntax. I have many packages installed that are conflicting with this mod.

Successes for the following!
./Themes/default/index.template.php    
./Themes/default/PersonalMessage.template.php

If I look through all the rest that don't work. I'd have to move a lot of syntax around.

Possible fix please?
Thank You!
Title: Re: BoardHover Mod
Post by: butchs on November 25, 2009, 07:36:18 AM
I can only guess at the issue since the information is limited.

With older versions of SMF like 1.1.10 the amount of code changed is much larger than 2 RC2.  I found it best to install boardhover among the first several mods to minimize conflict.

There are several mods that use the same code.  For those mods a manual install of the smallest one will be the easiest.
Title: Re: BoardHover Mod
Post by: butchs on December 01, 2009, 09:12:49 PM
So Vyache did I answer your question?
Title: Re: BoardHover Mod
Post by: butchs on December 04, 2009, 01:13:44 PM
Here is a little tip.


If you want to remove the linktree from the first page where you have the tableless hover linktree option installed.


in Index.template.php search for:

Code: [Select]
echo '
<div class="navigate_section">
<ul>';

replace with:
Code: [Select]
// Remove the linktree from the first page.
if ($myCtr == 1)
return;

echo '
<div class="navigate_section">
<ul>';


Attached is a quickie mod.  This change will not work work if you do not have the hover linktree installed.
 ;D
Title: Re: BoardHover Mod
Post by: butchs on December 08, 2009, 03:08:41 PM
It seems that several people have requested support in this thread but have provided insufficient information.  If you have a question, please provide the following information:


1.  SMF version.
2.  Boardhover version.
3.  Theme version.
4.  List of other mods that are installed.
5.  List of errors in error log (if any).
6.  Show changes you have made to the theme (if any)


If you do not provide the above it is virtually impossible for me to know what you are asking.
Title: Re: BoardHover Mod
Post by: butchs on December 27, 2009, 10:21:26 AM
I have been working on an update where the linktree hover can be enabled and disabled via settings.  I am working on adding code that will turn off the linktree on the front page with or without hover.

Now that I have settings I will need some help with translations.  If anyone knows how to translate a specific language please feel free to translate the following in your language of choice:

Modifications.english.php:
$txt['boardhover'] = 'BoardHover';
$txt['linktree_hover'] = 'Adjust the Linktree settings';
$txt['enable_linktree_hover'] = 'Enable navigation tree hover for all users:';
$txt['disable_linktree_first_page'] = 'Remove navigation tree from front page:';

I expect to be done Jan 1st.
 :o
Title: Re: BoardHover Mod
Post by: Bugo on December 31, 2009, 01:57:11 AM
After installing the mod no longer display pop-up messages on the new personal messages. Experimentally found out that the blame for this line:
Code: [Select]
<body onload="PreloadFlag = true;">
After returning to the form:
Code: [Select]
<body>all to work, how to, pop-up back.
Title: Re: BoardHover Mod
Post by: butchs on December 31, 2009, 08:34:14 PM
I need that with the first version for IE and have not looked at it since.  Turning it off may remove support for some browsers.  Can you please give me more info so I can find a solution that will work with everything?

1. What is your SMF version?
2.  Are you using a pop up mod or the SMF popup.
3.  What other mods do you have installed?
4.  Please give me a brief description on what you do so I can duplicate what you did?  ;)

I am done testing a faster and improved version for multiple languages and etc and will hold back on release until this issue is resolved.   8)

Oh, I noticed you know Russian?  I tried a translation today for a section and I am not sure it is good.  This is what I did:
BoardHover = 'ДоскаПлавать'
Adjust the Linktree settings = 'Приводить в порядок грамматический определенный член Звено дерево музыка на слова'
Enable navigation tree hover for all users: = 'Поверните на дереве плавать:';
'Remove navigation tree from front page: = 'Вычеркивать дерево от титульный лист:'

Close?  8) :o
Title: Re: BoardHover Mod
Post by: Bugo on December 31, 2009, 11:54:13 PM
1. What is your SMF version?
2.  Are you using a pop up mod or the SMF popup.
3.  What other mods do you have installed?
4.  Please give me a brief description on what you do so I can duplicate what you did?  ;)
1. SMF 2.0 RC2
2. No
3. There are many, but none of them does not affect the pop-up
4. Pop-ups on new personal messages stopped appearing immediately after installing your mod. The whole problem was solved when I removed the line:
Code: [Select]
onload="PreloadFlag = true;"from the tag body. After that, everything was working normally — in Firefox (3.5.6), and in Opera (10.x), and in Google Chrome (4.x), and IE (8.0).

I am done testing a faster and improved version for multiple languages and etc and will hold back on release until this issue is resolved.   8)

Oh, I noticed you know Russian?  I tried a translation today for a section and I am not sure it is good.  This is what I did:
BoardHover = 'ДоскаПлавать'
Adjust the Linktree settings = 'Приводить в порядок грамматический определенный член Звено дерево музыка на слова'
Enable navigation tree hover for all users: = 'Поверните на дереве плавать:';
'Remove navigation tree from front page: = 'Вычеркивать дерево от титульный лист:'

Close?  8) :o
BoardHover = 'BoardHover' (better and leave)
Adjust the Linktree settings = 'Регулировка установок дерева ссылок'
Enable navigation tree hover for all users: = 'Включить подсветку навигации для всех пользователей:';
'Remove navigation tree from front page: = 'Удалить дерево навигации с титульной страницы:'
Title: Re: BoardHover Mod
Post by: butchs on January 01, 2010, 01:37:24 PM
Bugo thank you.  I believe I fixed the bug.

I just updated to version 1.54 for SMF 2.0 RC2 ONLY.  Changes are as follows:
o Bug fix: "display pop-up messages not working" bug reported by Bugo.  The "onload="PreloadFlag = true;"" code has been removed the the functionality was moved to css files.  Selection of the correct css file has been added to the code.  This actually eliminates several conflicts with other mods.   IE:  Reglinks is now compatible.
o Verbose descriptions were added to the css files to allow for easier color change.
o Verbose descriptions were added to the "package-info.xml" file to allow for easier manual installation.
o Broke out Linktree (Sources/Boardhover-linktree.php) into another file to reduce the overall size of the code, be more compatible with other mods and easier for manual installations.
o Optimized linktree code for speed.  It is faster than ever!
o  Added mod setting to enable/ diable linktree hover and to remove the Linktree from the front page with and without hover.
o  Linktree hover now supports "right to left" languages.
o  Added support for many languages.

Please remove the old version before installation, delete your cache and refresh you browser to see the hovers.

I hope you enjoy this version.  It was fun to make.
 8)
Title: Re: BoardHover Mod
Post by: butchs on January 02, 2010, 10:01:04 AM
I finally updated the mod pictures to show hovering in action with SMF 2.0 RC2.

See below.   :)

Title: Re: BoardHover Mod
Post by: neo2504 on January 02, 2010, 02:14:34 PM
I have some problems while trying to install this mod...

1.  SMF version.   -----> RC2.0
2.  Boardhover version. -----> 1.5.4
3.  Theme version. ----> SMF - Default (2.0 RC2)
4.  List of other mods that are installed.
Code: [Select]
1.  AutoKeywords  1.1
2. Remove Reply Prefix 1.0
3. Display Signatures Only Once Per Page 1.0.3
4. Advanced Reputation System 1.8
5. RulesOnPost 0.1
6. ResizeImagesToFitScreen 0.1.5
7. Google Verification META Tag 1.0
8. cbi, 1.0 1.5.7
9. Yet Another Global Announcements Mod 2.2
10. Sitemap 2.1.0
11. Download and Password bbc 3.0
12. Topic Count in Profile 1.2
13. Registered Links 2.0.1
14. Tidy Child Boards 1.1
15. Topics list support [Taby] 1.05
16. Member Color Link 3.0.7
17. Global Headers Footers 2.0
18. Skype Integration 2.0
19. Spoiler Tag 0.7
5.  List of errors in error log (if any). ---- NO ERRORS
6.  Show changes you have made to the theme (if any) ---- NO manual changes

My FIRST problem:
In my MessageIndex.template.php  there aren't this strings:
Quote
<td class="info">  <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>
I only found manualy these strings:
Quote
<td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';
but I don't know if I have to modify them and don't even know how to do it.

My SECOND problem is:
In my BoardIndex.template.php there aren't this strings:
Quote
<td class="info">
but I think that I have to modify the folowing strings instead but I don't know how:
Quote
<td class="windowbg2 info">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

Can someone help me?

Sorry for my english  :(
Title: Re: BoardHover Mod
Post by: butchs on January 02, 2010, 04:05:26 PM
The best way to find out where it goes when you have a boat load of mods is to look for the changes in a virgin version of SMF then compare that to what you want to modify.  This will get you to the "sweet spot" or placeholder.

I believe you found the sweet spots.  Try:

Changing "MessageIndex.template.php" from:
Code: [Select]
<td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

to:
Code: [Select]
<td class="windowbg2 onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '"">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

and "BoardIndex.template.php" from:
Code: [Select]
<td class="windowbg2 info">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

to:
Code: [Select]
<td class="windowbg2 info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

One of the mods you have installed is stuck in 2.0RC1.x land.  The code is not up to RC2 snuff.  So if the above code does not work try changing it as follows:

Changing "MessageIndex.template.php" from:
Code: [Select]
<td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

to:
Code: [Select]
<td class="info onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '"">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

and "BoardIndex.template.php" from:
Code: [Select]
<td class="windowbg2 info">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

to:
Code: [Select]
<td class="info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

Problem is that the other mod that is using the old code will not uninstall...  But it may fix an error you may be having?  Personally I would track down that other mod and uninstall it if I were you.  Then wait for an update.  This possible problem is not related to BoardHover.
 :o
Title: Re: BoardHover Mod
Post by: XtcruleZ on January 18, 2010, 10:03:23 PM
For some reason, this mod has no effect in the "Recent Posts) section...any ideas?
Title: Re: BoardHover Mod
Post by: butchs on January 18, 2010, 10:54:00 PM
Maybe I do not understand.  When you select recent posts the list does not have links so I can not hover it.
Title: Re: BoardHover Mod
Post by: XtcruleZ on January 18, 2010, 11:55:56 PM
"Show recent posts" takes me to a forum page with links to the most recent posts. What do you mean there arent links?
Title: Re: BoardHover Mod
Post by: Matthew K. on January 19, 2010, 12:03:53 AM
XtcruleZ - Take a peak at how this mod works, it simply adds a second class with a different background color for mouseover and applies that additional class to the specific places it needs to be added.

An old site of mine, I used this mod, only I globalized it to almost every single section, so it's very possible to apply this mod to other places.
Title: Re: BoardHover Mod
Post by: butchs on January 19, 2010, 07:11:06 AM
I do not see it at my site with 2 RC2.  You can try the above or get me more info.
Title: Re: BoardHover Mod
Post by: XtcruleZ on January 19, 2010, 07:20:16 AM
XtcruleZ - Take a peak at how this mod works, it simply adds a second class with a different background color for mouseover and applies that additional class to the specific places it needs to be added.

An old site of mine, I used this mod, only I globalized it to almost every single section, so it's very possible to apply this mod to other places.

Maybe its an issue with my Theme as it does not change color like you described.
Title: Re: BoardHover Mod
Post by: XtcruleZ on January 19, 2010, 05:32:39 PM
I do not see it at my site with 2 RC2.  You can try the above or get me more info.

Im confused...you dont have a "Show Recent Posts" link on your site?
Title: Re: BoardHover Mod
Post by: butchs on January 19, 2010, 07:02:51 PM
I made a bunch of changes to curve.  I turned my "Show Recent Posts" link into a menu button option up top called "most recent".

I am going to know SMF version, BH version, theme and possibly a picture of what you need.
Title: Re: BoardHover Mod
Post by: butchs on January 22, 2010, 05:06:49 PM
Best guess:  I still do not kow what you want but with SMF 2.0 RC2 assuming  "Themes and Layout Settings/Theme Settings/Number of recent posts to display on board index:"  is greater than zero a list will appear.  To make that list hoverable do the following:

Search "BoardIndex.template.php" for:
Code: [Select]
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>

and replace with:
Code: [Select]
<div class="windowbg2_hover" onclick="window.location.href=\'', $post['href'], '\'" rel="nofollow" \'">
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd></div>

The above will hover the list of recent posts on the front page.  If that is what you want I can put it in the next release.
Title: Re: BoardHover Mod
Post by: butchs on January 28, 2010, 05:23:48 PM
Version 1.56 released.  See 1st post for details.
Title: Re: BoardHover Mod
Post by: curlin on January 28, 2010, 06:17:12 PM
     Great Mod  8)     

                       Thanks
Title: Re: BoardHover Mod
Post by: Vyache on January 31, 2010, 12:55:04 AM
Hello,

I cannot install this mod because it conflicts with "Yet Another Global Announcements Mod"
./Themes/default/MessageIndex.template.php
Code: [Select]
if ($context['can_approve_posts'] && $topic['unapproved_posts'])


$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';


// We start with locked and sticky topics.


elseif ($topic['is_sticky'] && $topic['is_locked'])


$color_class = 'stickybg locked_sticky';


// Sticky topics should get a different color, too.


elseif ($topic['is_sticky'])


$color_class = 'stickybg';


// Locked topics get special treatment as well.


elseif ($topic['is_locked'])


$color_class = 'lockedbg';


// Last, but not least: regular topics.


else


$color_class = 'windowbg';





// Some columns require a different shade of the color class.


$alternate_class = $color_class . '2'

Thank you for looking at this, I appreciate any help you can provide.

Title: Re: BoardHover Mod
Post by: butchs on January 31, 2010, 04:39:37 PM
I did not find a mod conflict.  Apparently someone optimized your messageIndex by deleting extra carriage returns and adding unnecessary comment commands (//).

I cleaned up your file just enough to install my mod.  However, I suggest you start over with a fresh copy of the file from your SMF file that does not have all the edits.  Otherwise other mods may not install.
Title: Re: BoardHover Mod
Post by: Vyache on January 31, 2010, 10:07:03 PM
Thanks for working on that...

The edits did come from other mods, I was wondering if were possible that your code be somewhere else?
Title: Re: BoardHover Mod
Post by: butchs on February 01, 2010, 10:41:55 AM
I just made it so you can install my mod in it through package manager.
Title: Re: BoardHover Mod
Post by: Vyache on February 02, 2010, 11:18:45 AM
I just made it so you can install my mod in it through package manager.

You mean the file? or The install script ?
Title: Re: BoardHover Mod
Post by: butchs on February 02, 2010, 12:00:35 PM
The file.
Title: Re: BoardHover Mod
Post by: butchs on February 04, 2010, 07:11:11 PM
A new version was posted today.  Fixed many issues found by W3C Validators (http://validator.w3.org)

Only one random error remains
Code: [Select]
href='index.php?board=3.0'" name="b.  This code is required for some users and was part of a bug fix.  If " name="b..." is removed some forums will not transfer.

I do not think I can do a thing about this error because it is an internal SMF bad word selection.  When SMF changes the word "name" to something different the error should go away.
 8)
Title: Re: BoardHover Mod
Post by: tonnybarros on February 06, 2010, 08:43:03 PM
Hello, I love the mod, but I need help to add to my core theme in the forum, see the mistakes that happen:

. / Themes / core / index.template.php
. / Themes / core / MessageIndex.template.php
. / Themes / core / BoardIndex.template.php


They succeeded in the test:
. / Themes / core / PersonalMessage.template.php
. / Themes / core / Memberlist.template.php


So I'm leaving here the files attached to when you have time, add me.

I thank you!

Traduzinto from Portuguese to English by Google
List my MODs

1.   Auto Email Inactive Users   1.7   [ Desinstalar ]
2.   Display Name On Registration   2.0   [ Desinstalar ]
3.   Custom Action Mod   3.0   [ Desinstalar ]
4.   Pretty URLs   1.0RC   [ Desinstalar ]
5.   Team Page   3.5.1   [ Desinstalar ]
6.   Aeva ~ Auto-Embed Video & Audio   7.0   [ Desinstalar ]
7.   Computer Avatars   1.0   [ Desinstalar ]
8.   PECL Memcached Support   1.0   [ Desinstalar ]
9.   Wysiwyg Quick Reply RC2   RC2   [ Desinstalar ]
10.   Topic Solved   1.1   [ Desinstalar ]
11.   Share this topic - SMF Mod   1.3   [ Desinstalar ]
12.   eNinja - Custom Pages   1.0.12   [ Desinstalar ]
13.   Highslide Image Viewer   1.6   [ Desinstalar ]
14.   PM to New Members   1.2   [ Desinstalar ]
15.   Google Analytics Code   1.1   [ Desinstalar ]
16.   Registered Links   2.0   [ Desinstalar ]
17.   Look But No Read   1.3   [ Desinstalar ]
18.   Users Online Today   1.5.4   [ Desinstalar ]
19.   EmailValidator   1.0   [ Desinstalar ]
20.   Member Color Link   3.0.7   [ Desinstalar ]
21.   Ad Managment   2.3.5   [ Desinstalar ]
22.   Custom Form Mod   1.6   [ Desinstalar ]
23.   Global Headers Footers   2.0   [ Desinstalar
Title: Re: BoardHover Mod
Post by: tfs on February 07, 2010, 01:17:36 AM
Nice looking mod.  Just discovered it today.  Thanks!
Title: Re: BoardHover Mod
Post by: butchs on February 07, 2010, 12:45:12 PM
Hello, I love the mod, but I need help to add to my core theme in the forum, see the mistakes that happen:

. / Themes / core / index.template.php
. / Themes / core / MessageIndex.template.php
. / Themes / core / BoardIndex.template.php


They succeeded in the test:
. / Themes / core / PersonalMessage.template.php
. / Themes / core / Memberlist.template.php


I really do not have the time to re-write the mod for the core theme.

Tray starting with a manual install with the "modification-2RC.xml" file.  It was for the old core theme.  That should get you 90% there.

The ones that do not match are:

"index.template.php" search for
Code: [Select]
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc2" media="print" />';
replace with
Code: [Select]
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" media="print" />

   <!--[if IE]>
   <style type="text/css">
   /* IE hack to emulate the :hover & :focus pseudo-classes
      Add the selectors below that required the extra attributes */
   .approvebg_hover, .approvetbg_hover, .windowbg_hover, .windowbg2_hover, .windowbg3_hover, .mail_hover, .windowbg_locked_hover { behavior: url("', $settings['theme_url'], '/scripts/pseudo-hover.htc"); }
   </style>
   <![endif]-->';

"MessageIndex.template.php" search for
Code: [Select]
</td>
<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'];
echo '

replace with
Code: [Select]
</td>';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<td class="windowbg2 windowbg2_hover smalltext lastpost" onclick="window.location.href=\'',$board['last_post']['href'],'\'">
<strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'];
else
echo '
<td class="windowbg2 smalltext lastpost">';
echo '

"Indextemplate.php" search for
Code: [Select]
elseif ($topic['is_sticky'] && !empty($settings['separate_sticky_lock']))
$color_class = 'windowbg3';
// Last, but not least: regular topics.
else
$color_class = 'windowbg';

replace with
Code: [Select]
$color_class = !empty($settings['separate_sticky_lock']) && $topic['is_sticky'] ? ($topic['is_locked'] ? 'windowbg3 windowbg_locked_hover' : 'windowbg3') : ($topic['is_locked'] ? 'windowbg windowbg_locked_hover' : 'windowbg');

if($topic['new'] && $context['user']['is_logged'])
$boardhover_loc=$topic['new_href'];
else
$boardhover_loc=$topic['first_post']['href'];

"Indextemplate.php" search for
Code: [Select]
<td class="', $alternate_class, ' lastpost">
<a href="', $topic['last_post']['href'], '">

replace with
Code: [Select]
<td class="', $topic['is_locked'] ? 'windowbg2 windowbg_locked_hover lastpost' : 'windowbg2 windowbg2_hover lastpost', '" onclick="window.location.href=\'' ,$topic['last_post']['href'],'\'">
<a href="', $topic['last_post']['href'], '">

Minor tweeks may be required.
Title: Re: BoardHover Mod
Post by: tonnybarros on February 07, 2010, 01:32:00 PM
Edited as reported, but did not change anything, it was as if they were installed.
Title: Re: BoardHover Mod
Post by: butchs on February 07, 2010, 02:06:32 PM
Did you put "pseudo-hover.htc" in the default scripts folder and "windowbg_locked.gif" in the theme images folder?
Title: Re: BoardHover Mod
Post by: tfs on February 26, 2010, 03:33:45 AM
I noticed that there appears to be a duplicate line in my /Themes/default/index.template.php

Code: [Select]
// Show the load time?
if ($context['show_load_time'])// Show the load time?
if ($context['show_load_time'])

It doesn't seem to be harming anything.  Is that a problem?
Title: Re: BoardHover Mod
Post by: butchs on February 26, 2010, 11:34:34 AM
I do not think it will harm anything.  I will put it in the next version.
 

Thank you.  :)
Title: Re: BoardHover Mod
Post by: sherwinaval on February 28, 2010, 02:00:18 PM
This doesn't seem to work with YAGAM (http://custom.simplemachines.org/mods/index.php?mod=1617). Hope it could work with it too :)

Nice mod.. thanks
Title: Re: BoardHover Mod
Post by: butchs on February 28, 2010, 04:57:20 PM
It will if you install  YAGAM first.  :o
Title: Re: BoardHover Mod
Post by: tfs on March 11, 2010, 11:49:57 PM
Any hope of seeing this updated for RC3?  I love the way this mod makes my forum look.
Title: Re: BoardHover Mod
Post by: butchs on March 12, 2010, 12:12:39 AM
It has been done for a few days.  I was debugging it on my test forum.  No errors, so you can have it now.
 :o
Title: Re: BoardHover Mod
Post by: PURETRUCK.com on March 30, 2010, 06:09:50 PM
I'm getting a "Test Failed" trying to install on Raven theme for 2.0 RC3.

Here are details, (if they help out al atll):

Find

 echo ' <div class="navigate_section">  <ul>'; // Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { echo ' <li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>'; // Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before']; // Show the link, including a URL if it should have one. echo $settings['linktree_link'] && isset($tree['url']) ? ' <a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>'; // Show something after the link...? if (isset($tree['extra_after'])) echo $tree['extra_after']; // Don't show a separator for the last one. if ($link_num != count($context['linktree']) - 1) echo ' »'; echo ' </li>'; } echo ' </ul>  </div>'; $shown_linktree = true; } 

Replace
 // Show the navigation tree with or without hovers. LinktrhMain(); $shown_linktree = true; } function SMFLinkTree() { global $context, $settings, $options; // Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { echo ' <li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>'; // Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before']; // Show the link, including a URL if it should have one. echo $settings['linktree_link'] && isset($tree['url']) ? ' <a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>'; // Show something after the link...? if (isset($tree['extra_after'])) echo $tree['extra_after']; // Don't show a separator for the last one. if ($link_num != count($context['linktree']) - 1) echo ' »'; echo ' </li>'; } } 
Title: Re: BoardHover Mod
Post by: Matthew K. on March 30, 2010, 06:11:12 PM
Please, to help him assist you, wrap your code with the code tags, for find and replace make it code=find and code=replace in brackets.
Title: Re: BoardHover Mod
Post by: butchs on March 31, 2010, 09:39:37 AM
Themes besides default need to be installed manually.
Title: Re: BoardHover Mod
Post by: derby on April 10, 2010, 07:50:07 AM
i dont get the use of this mod
Title: Re: BoardHover Mod
Post by: butchs on April 10, 2010, 08:24:54 AM
It is a graphical navigation system for SMF.  Instead if finding and clicking small links a large area changes color where you can click anywhere within the color change to navigate the forum.

To see some pictures look at the Mod (http://custom.simplemachines.org/mods/index.php?mod=1065) page.
Title: Re: BoardHover Mod
Post by: mpolo on April 29, 2010, 08:55:24 PM
Hi butchs,
thank you for your nice mod.

I have a problem with IE8: the Info Center doesn't appear (see screenshot attached).
Everything works fine with Firefox
Any idea?
I have RC3 and your last release. Basic curve theme not changed in any way. just 2 mods installed, ILA (inline attachments) and AjaxChat.

thank you.
Title: Re: BoardHover Mod
Post by: butchs on April 29, 2010, 09:27:57 PM
The words "post recenti" are not part of my mod?  Sure some one did not edit the section?  :o
Title: Re: BoardHover Mod
Post by: mpolo on April 29, 2010, 10:00:20 PM
The words "post recenti" are not part of my mod?  Sure some one did not edit the section?  :o

yes i din't touch anything; in fact it works in firefox, and deinstalling the mod everything works fine again.

I looked into the HTML source and there is everything, recent posts events stats everything, but IE8 doesn't display anything that is under
Code: [Select]
<a rel="feedurl" href="http://www.spaziotrader.it/forum/index.php?action=.xml;type=webslice">Iscriviti a Webslice</a>
that is the webslice code.
The webslice activation works on the page (the green area and webslice icon appears passing the mouse over) but after it nothing comes displayed.

does this can be of any help?
Title: Re: BoardHover Mod
Post by: butchs on April 30, 2010, 08:41:48 AM
Not sure but the error is new.  It worked fine with an older version of ie8.  I tried several variations and none seem to work with IE8.

For now you can disable it by going to:
Current Theme -> Theme Settings -> Number of recent posts to display on board index:

and setting it to zero.
Title: Re: BoardHover Mod
Post by: butchs on April 30, 2010, 06:14:32 PM
It seems that even though ie8 claims to do so it does not support onclick too well.  &$$# ie!!!  I have to work on re-writing that section.  Please bear with me.   8)
Title: Re: BoardHover Mod
Post by: mpolo on April 30, 2010, 08:42:00 PM
It seems that even though ie8 claims to do so it does not support onclick too well.  &$$# ie!!!  I have to work on re-writing that section.  Please bear with me.   8)

Thank you butchs for your attention and your work,
I agree with that hate for crappy IE, but you know, a lot of people still use it.

of course I stay tuned ;)
bye
Title: Re: BoardHover Mod
Post by: butchs on May 02, 2010, 09:39:49 AM
I think it is fixed.
 ;D
Title: Re: BoardHover Mod
Post by: Sakae on May 08, 2010, 11:33:18 PM
Who translated this mod to portuguese_brazilian-utf8?

I haven't understand a thing.
Title: Re: BoardHover Mod
Post by: Sakae on May 08, 2010, 11:54:41 PM
Following the fixed portuguese_brazilian-utf8

Code: [Select]
// Begin BoardHover
$txt['boardhover'] = 'BoardHover';
$txt['linktree_hover'] = 'Ajustar as configura&ccedil;&otilde;es da &aacute;rvore de links';
$txt['enable_linktree_hover'] = 'Ativar &aacute;rvore de navega&ccedil;&atilde;o para todos os usu&aacute;rios:';
$txt['disable_linktree_first_page'] = 'Remover &aacute;rvore de navega&ccedil;&atilde;o da capa do f&oacute;rum:';
// End BoardHover
Title: Re: BoardHover Mod
Post by: butchs on May 09, 2010, 12:07:46 AM
Who translated this mod to portuguese_brazilian-utf8?

I haven't understand a thing.

What do I know?  :-[

I will update it next week.
Title: Re: BoardHover Mod
Post by: butchs on May 10, 2010, 07:16:02 PM
Done.
Title: Re: BoardHover Mod
Post by: gbsothere on June 04, 2010, 10:19:14 PM
I suppose it's frowned upon to spam support threads with useless, redundant comments like "Great mod!"  But, dammit, I am so proud of myself for getting this thing installed and then finding that it works beautifully, that I'm going to stop by to say "Great mod!"

(I already had an "onload" event called for in the <body> tag and wasn't sure how to allow for more than one event.  Other mods had either completely replaced or edited almost every "find" string in every single template.  You name it; I encountered it.  But, clueless novice that I am, I duct-taped it together and not one single template parse error, so I'm heading off to bed feeling pretty good about the whole thing.)

All that to say "Great mod".   ;)
Title: Re: BoardHover Mod
Post by: Sabre™ on June 04, 2010, 11:10:06 PM
LOL  Congrats buddy :)
Title: Re: BoardHover Mod
Post by: shade3134 on August 06, 2010, 09:19:52 PM
I'm using SMF 2.0 RC3 and I am getting a 'test failed' :

(http://img84.imageshack.us/img84/4562/helpx.jpg)

How do I fix this? Thanks.  ???
Title: Re: BoardHover Mod
Post by: butchs on August 07, 2010, 04:14:41 AM
The mod is designed for the default theme.  If you are using the default theme try installing it before other mods.  A manual installation may be required if the theme is custom.
Title: Re: BoardHover Mod
Post by: shade3134 on August 07, 2010, 06:30:57 AM
My theme is based on default..
Title: Re: BoardHover Mod
Post by: butchs on August 07, 2010, 01:59:44 PM
There is a mod conflict.  Try uninstalling some older mods and installing this mod in it's place.  Then reinstall the old mod(s).
Title: Re: BoardHover Mod
Post by: THE BRA1N on September 04, 2010, 01:20:39 AM
I have been struggling for hours to get this to work again after updating from RC2 to RC3. First, I got a fatal error having something to do with the linktree. I managed to get rid of the error and display the linktree again but now the border of my index page is messed up and looks like this:

(http://a.imageshack.us/img31/1443/image1byo.jpg)

When it should look like this:

(http://a.imageshack.us/img832/7296/image2tt.jpg)

I am at the point where either I can display a linktree along with a messed up index page or fix the index page but not have a link tree. Please help!

Title: Re: BoardHover Mod
Post by: butchs on September 04, 2010, 08:53:40 AM
Humm...  Looks like a custom theme.

There are styles in your css folder for the linktree.  Check out the "boardhover.css" & "boardhover-ie.css" for the border code.  I would try to change the color of the offending blue border to match the background.  ie change it from #69b1e8 to #373737 (my best guess at your colors).

A little of trial and error may be in order.
Title: Re: BoardHover Mod
Post by: THE BRA1N on September 04, 2010, 02:47:25 PM
Since I had a hunch that something in the index.template.php file was messing it up, i took a backup file prior to updating the mod and to RC3 (when it displayed fine) and compared it with the current file. I changed this bit of code from this

Code: [Select]
// Show the navigation tree.
theme_linktree();
    if (count($context['linktree'])<2)
        return;

to this..

Code: [Select]
// Show the navigation tree.
theme_linktree();

..and somehow that worked to make everything right again. Lucky for me.


 
Title: Re: BoardHover Mod
Post by: butchs on October 02, 2010, 10:39:02 PM
Thats using your Brain.
Title: Re: BoardHover Mod
Post by: Alex' Manson on October 28, 2010, 04:21:01 PM
can anyone correct this to work with the theme "Surf&Turf" ?
Title: Re: BoardHover Mod
Post by: Matthew K. on October 28, 2010, 04:23:51 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0) and do the edits in your custom themes' folder.
Title: Re: BoardHover Mod
Post by: Alex' Manson on October 28, 2010, 04:26:22 PM
the real problem is..
I SUCK AT PHP :o
Title: Re: BoardHover Mod
Post by: butchs on October 28, 2010, 04:45:56 PM
Never heard of that theme.  This mod will work with most standard SMF installations using the default theme out of the box with no modification of any files required.

edit reason:  clarifications
Title: Re: BoardHover Mod
Post by: Bugo on November 07, 2010, 12:20:44 PM
Please update russian translation:
Code: [Select]
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin BoardHover
$txt['boardhover'] = 'BoardHover';
$txt['linktree_hover'] = '&laquo;Хлебные крошки&raquo;';
$txt['enable_linktree_hover'] = 'Подсвечивать кнопки в дереве ссылок при наведении указателя мышки';
$txt['disable_linktree_first_page'] = 'Убрать дерево ссылок с главной страницы';
// End BoardHover
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin BoardHover
$txt['boardhover'] = 'BoardHover';
$txt['linktree_hover'] = '&laquo;Хлебные крошки&raquo;';
$txt['enable_linktree_hover'] = 'Подсвечивать кнопки в дереве ссылок при наведении указателя мышки';
$txt['disable_linktree_first_page'] = 'Убрать дерево ссылок с главной страницы';
// End BoardHover
]]></add>
</operation>
</file>
Title: Re: BoardHover Mod
Post by: NanoSector on November 07, 2010, 12:30:54 PM
Wow! Works great! Exactly the way I wanted it!

Thank you!
Title: Re: BoardHover Mod
Post by: sharks on November 07, 2010, 12:44:29 PM
The live demo link gives this error: HTTP Error 403 Forbidden and it doesn't work. Could you please fix it?
Title: Re: BoardHover Mod
Post by: Alex' Manson on November 07, 2010, 01:01:21 PM
looks like he is blocking connections from some countries.. example (mine) by getting this message after the 403 forbidden : Un-approved Country: QA!
Title: Re: BoardHover Mod
Post by: butchs on November 07, 2010, 02:08:33 PM
The live demo link gives this error: HTTP Error 403 Forbidden and it doesn't work. Could you please fix it?

That may be my other program blocking countries.  I will turn it off for a few hours...
Title: Re: BoardHover Mod
Post by: lMl on November 18, 2010, 09:47:09 PM
can someone help me out please? i have installed this mod on my forum. It is working great but I cant seem to find boardhover.css anywhere. I would like to change the color of the locked topics. It is a greenish sort of color at the moment.

I am using smf 1.1.12 with a custom theme. I tried to use the package parse to see what file have been edited but no luck. anyway, the hover colors are working great, only need to change the locked topic colors.

board hover version using. 1.7.0

any sort of help is appreciated. thank you!
Title: Re: BoardHover Mod
Post by: butchs on November 19, 2010, 09:13:42 PM
For 1.1.x the hover colors are set in ""$themedir/style.css" in the following areas:

.windowbg_hover:hover,.windowbg_hoverHover
.windowbg2_hover:hover,.windowbg2_hoverHover
.windowbg_hover3:hover,.windowbg_hover3Hover
.mail_hover:hover,.mail_hoverHover
Title: Re: BoardHover Mod
Post by: WhipMan on January 13, 2011, 04:09:13 PM
It would be awesome if this mod was xhtml compliant. ;)
Title: Re: BoardHover Mod
Post by: butchs on January 13, 2011, 07:27:30 PM
It was xhtml compliant the last time I checked...  Sure you were in compliance before you installed the mod?  O:)
Title: Re: BoardHover Mod
Post by: WhipMan on January 14, 2011, 07:11:19 AM
Yes, in fact, I can uninstall it and pass validation and the install it and fail, back and forth. ;)
Title: Re: BoardHover Mod
Post by: butchs on January 14, 2011, 07:31:48 PM
I disagree!  This mod has been xhtml compliant since 10th Nov2009!

There was only one issue (I forgot what it was) and that was due to code in SMF that have nothing to do with the mod but more to do with how things are managed.  I am sure what it is but I mentioned it in this thread somewhere...  If you care then find it in this thread.

I have absolutely no intentions whatsoever to re-write SMF code to make my mod 100% xhtml compatible.  Please do not ask me to fix someone else's code.
Title: Re: BoardHover Mod
Post by: WhipMan on January 14, 2011, 07:35:48 PM
Sure, I'm no expert. I uninstall the mod, and my forum passes validation. Install it and it fails. But, yes, it could be something else causing it in combination I suppose. Not asking for anything, only a request. No worries whatsoever.

Cheers
Title: Re: BoardHover Mod
Post by: butchs on January 14, 2011, 07:56:13 PM
again... This mod has been xhtml compliant since 10th Nov2009!

There was only one issue (I forgot what it was) and that was due to code in SMF that have nothing to do with the mod but more to do with how things are managed.  I am not sure what it is but I mentioned it in this thread somewhere...  If you care then find it in this thread.

I have absolutely no intentions whatsoever to re-write SMF code to make my mod 100% xhtml compatible.  Please do not ask me to fix someone else's code.
Title: Re: BoardHover Mod
Post by: PS4DEV on April 11, 2011, 02:35:31 PM
Will this Mod work on RC5 ?
I´d like to install it , but then, i had to do it manually , because i ´m getting to many error messages :/


Is there someone trusted , who want to do this job for me ?

~Thanks in Advanced~
Title: Re: BoardHover Mod
Post by: butchs on April 11, 2011, 05:58:55 PM
Yes.  Simulate RC5 with the "Advanced" option in the lower right corner.
Title: Re: BoardHover Mod
Post by: PS4DEV on April 11, 2011, 06:03:19 PM
That was actually clear for me, but
the problem is, that i get so many errors on installation.
i have to install it manually, but i am not good in that activity...
Title: Re: BoardHover Mod
Post by: butchs on April 11, 2011, 06:04:59 PM
Then you must have a custom theme.
Title: Re: BoardHover Mod
Post by: Paolo Bitta on April 15, 2011, 06:34:04 AM
again... This mod has been xhtml compliant since 10th Nov2009!

There was only one issue (I forgot what it was) and that was due to code in SMF that have nothing to do with the mod but more to do with how things are managed.  I am not sure what it is but I mentioned it in this thread somewhere...  If you care then find it in this thread.

I have absolutely no intentions whatsoever to re-write SMF code to make my mod 100% xhtml compatible.  Please do not ask me to fix someone else's code.

This mod is not 100% xhtml compliant because of a simple error.
in the file ./Themes/default/BoardIndex.template.php

Quote
<td class="info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">

the red part should be removed.
bye!
Title: Re: BoardHover Mod
Post by: butchs on April 15, 2011, 07:24:53 PM
Not recommended.  Part of the mod will NOT work!

As per reply 175:

again... This mod has been xhtml compliant since 10th Nov2009!

There was only one issue (I forgot what it was) and that was due to code in SMF that have nothing to do with the mod but more to do with how things are managed.  I am not sure what it is but I mentioned it in this thread somewhere...  If you care then find it in this thread.

I have absolutely no intentions whatsoever to re-write SMF code to make my mod 100% xhtml compatible.  Please do not ask me to fix someone else's code.
Title: Re: BoardHover Mod
Post by: butchs on April 15, 2011, 08:09:18 PM
Arantor ???  Sometimes me thinks you post jut to argue for the sake of arguing.

Now you know and maybe it will go on a list?
 O:)
Title: Re: BoardHover Mod
Post by: Arantor on April 16, 2011, 02:37:44 PM
Sorry for trying to help again, posts removed.
Title: Re: BoardHover Mod
Post by: PS4DEV on April 17, 2011, 10:19:34 AM
Is there a nice guy, who installs this mod for me manually ?
You ´ll get all files you need from me ^^

Would be really great :)
Title: Re: BoardHover Mod
Post by: butchs on April 18, 2011, 09:00:01 PM
Quote
<td class="info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">

Now I thought about it I believe of SMF changed the "name=" code to "id=" it should work without errors.  But this will require additional changes to make it just like the other urls.  It will require changes elsewhere in the software.

Title: Re: BoardHover Mod
Post by: Roark on August 03, 2011, 06:58:14 PM
Hey, anyone.
I uninstalled this mod on SMF 2.0, and now I am getting this message on my main webpage of the forum:

Warning: require_once(/home/content/32/8080832/html/forum/Sources/Boardhover-linktree.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/32/8080832/html/forum/index.php on line 58

Fatal error: require_once() [function.require]: Failed opening required '/home/content/32/8080832/html/forum/Sources/Boardhover-linktree.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/32/8080832/html/forum/index.php on line 58

I cannot access anything, and I have tried using "repair_settings.php" with no change.
Anyone know how I can fix this?

thanks in advance
Title: Re: BoardHover Mod
Post by: butchs on August 03, 2011, 07:28:03 PM
Sound like you may have accidently double installed then mod.

Un-zip and put "Boardhover-linktree.php" in your sources directory and place a copy of the downloaded mod zip file in the "Packages" folder and try to uninstall via package manager.  If that does not work place "Boardhover-linktree.php" in sources directory as stated above and manually uninstall.

Sorry...
 :-X
Title: Re: BoardHover Mod
Post by: Roark on August 07, 2011, 06:50:04 PM
Appreciate the help. I got impatient and manually installed it.... that was not fun
Title: Re: BoardHover Mod
Post by: MiY4Gi on August 12, 2011, 11:17:22 AM
Is there a live demo?
Title: Re: BoardHover Mod
Post by: butchs on August 12, 2011, 05:51:36 PM
My website but I block your country.   :o
Title: Re: BoardHover Mod
Post by: butchs on August 12, 2011, 06:06:37 PM
Appreciate the help. I got impatient and manually installed it.... that was not fun

The first version of the mod was more complex.  At least twice as many code changes as now.  Then SMF caught up and corrected many of the errors I worked around.  So I created the menu hover.  That was fun to program...  :) I apologize, but there are still many changes to make the mod work.  ;) 
Title: Re: BoardHover Mod
Post by: MiY4Gi on August 12, 2011, 06:57:05 PM
My website but I block your country.   :o

That's why I asked.  :P
Title: Re: BoardHover Mod
Post by: bruce86 on September 20, 2011, 03:24:32 AM
After the installation.. :o
Title: Re: BoardHover Mod
Post by: butchs on September 20, 2011, 05:39:36 AM
Sorry but I can not read your mind,.  I need more information if you want help.

Did you refresh the browser?

What version SMF?  Are you using the default theme?
Title: Re: BoardHover Mod
Post by: bruce86 on September 20, 2011, 05:45:32 AM
Use the version 2.01.
My site is http://www.passiongames.it/forum/index.php.
Use the theme Bad Company 3.
Thank you.
Title: Re: BoardHover Mod
Post by: butchs on September 20, 2011, 05:52:47 AM
Sorry but your theme's core is not based on the default theme.  So you will need to do a manual installation to use this mod.
Title: Re: BoardHover Mod
Post by: bruce86 on September 20, 2011, 06:06:39 AM
Ah ok thanks..:)
Title: Re: BoardHover Mod
Post by: powaserv on November 06, 2011, 03:46:50 PM
Hi,

I just installed the mod.
After refreshments I no longer access my forum. (error http 500)
Could you tell me how I can uninstall it now?
Can you help me?

I have version smf 2.0.1
Title: Re: BoardHover Mod
Post by: butchs on November 06, 2011, 07:08:05 PM
Why did you send me an PM???

HTTP Error 500 is an Internal server error.  It is a generic error message, given when no more specific message is suitable.  I bet it was a mere coincidence.  You should ask your host what happened.

I doubt your problem is board hover since it does nothing but hover effects but to uninstall it use package manager or manually uninstall it manually by reversing the package-info.xml instructions via php.
Title: Re: BoardHover Mod
Post by: natasa (NT) on March 24, 2012, 06:34:45 AM

Great mod, thanks.

I installed it on outline_20 theme (SMF 2.0.1) and it is working;
just needed to copy boardhover.css and boardhover-ie.css to outline_20/css.
Title: Re: BoardHover Mod
Post by: butchs on March 25, 2012, 09:12:10 AM
You-re welcome!    :)
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 02, 2012, 07:54:06 PM
Question:  Is it possible to apply this mod to the SHOW UNREAD POSTS SINCE LAST VISIT and SHOW NEW REPLIES TO YOUR POSTS lists?  Is it possible to apply this mod to the RECENT POSTS lists in the info center?

THANKS!  Great mod!
Title: Re: BoardHover Mod
Post by: TheListener on May 02, 2012, 08:12:21 PM
Was it necessary to SHOUT?

Frizzle have a look at the Nice Tooltips mod which may be suitable for what you are asking.

This mod is more for the actual boards.
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 02, 2012, 10:27:35 PM
Was it necessary to SHOUT?

Frizzle have a look at the Nice Tooltips mod which may be suitable for what you are asking.

This mod is more for the actual boards.

Do people really still associate caps with shouting?  I thought that silliness stopped in about 2006?

In any case... I have the mod installed... it has nothing to do with TOOLTIPS (which I also have installed).  I think you're getting mods confused.

:)

Title: Re: BoardHover Mod
Post by: TheListener on May 02, 2012, 10:30:40 PM
Was it necessary to SHOUT?

Frizzle have a look at the Nice Tooltips mod which may be suitable for what you are asking.

This mod is more for the actual boards.

Do people really still associate caps with shouting?  I thought that silliness stopped in about 2006?

In any case... I have the mod installed... it has nothing to do with TOOLTIPS (which I also have installed).  I think you're getting mods confused.

:)

Sorry I thought ya wanted it to do a different job to what it does.

 :-X
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 02, 2012, 10:36:06 PM
Was it necessary to SHOUT?

Frizzle have a look at the Nice Tooltips mod which may be suitable for what you are asking.

This mod is more for the actual boards.

Do people really still associate caps with shouting?  I thought that silliness stopped in about 2006?

In any case... I have the mod installed... it has nothing to do with TOOLTIPS (which I also have installed).  I think you're getting mods confused.

:)

Sorry I thought ya wanted it to do a different job to what it does.

 :-X

And after I re-read my post it come off pretty dickish... sorry about that... it wasn't intended.

:)

This mod highlights the whole "cell" and makes each "cell" in an index clickable.  I'd love to have that functionality with the new posts/replies lists...which currently isn't supported that I can see.
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 03, 2012, 12:33:11 PM
Also... while this mod works with the recent topics in the info center of a stock SMF installation... it does not work with the tabbed/upgraded recent posts I have running in the info center at my forum.  I'm posting the code for that section of my forum below.  Can anyone give me a suggestion on what I could do to implement this mod for my upgraded recent topics tab?  I am attempting to make my forum appear as "uniform" as possible.  Any/all help is greatly appreciated.

Title: Re: BoardHover Mod
Post by: butchs on May 03, 2012, 07:40:36 PM
The mod is for the default theme.  If you want to use another theme you have to do a custom install.

The mod read me lists where it does what.

Functionality in other areas can be done.
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 03, 2012, 07:59:01 PM
The mod is for the default theme.  If you want to use another theme you have to do a custom install.

The mod read me lists where it does what.

Functionality in other areas can be done.

I am using the default theme... and I am looking at the README but I'm not seeing where it lists "where it does what"... but I'll keep diggin.

Thanks
Title: Re: BoardHover Mod
Post by: Robert. on May 04, 2012, 06:38:45 AM
Nice mod :) I do think the copyright is pretty funny, though :P :P :P
Title: Re: BoardHover Mod
Post by: NanoSector on May 04, 2012, 06:39:07 AM
FrizzleFried: Try the mod site, parse the mod for your version of SMF.

Dr. Deejay: Yeah, especially when you're Dutch lol.
Title: Re: BoardHover Mod
Post by: butchs on May 06, 2012, 10:10:33 AM
He he...  :o

There is a parser here (http://www.bigguysweb.info/parser.php) too.
 :)
Title: Re: BoardHover Mod
Post by: Abhay Trivedi on May 06, 2012, 02:32:14 PM
Awesome mod
Tried to use in my forum
http://forum.scubix.com
but many test failed errors in theme
and after installing it gives many bugs :\
lagusta theme by DS
Title: Re: BoardHover Mod
Post by: TheListener on May 06, 2012, 02:36:03 PM
Awesome mod
Tried to use in my forum
http://forum.scubix.com
but many test failed errors in theme
and after installing it gives many bugs :\
lagusta theme by DS

Can you give us more information on the test failed errors please.

Is the version the correct one for your smf version?
Title: Re: BoardHover Mod
Post by: FrizzleFried on May 06, 2012, 02:55:20 PM
I have been trying ... unsuccessfully ... to add this mod to the RECENT POST list in my modded default layout (I have the Statistics and Jquery mod installed which changes how the RECENT POSTS work from the default theme)...

Here is the code:

Code: [Select]
// This is the "Recent Posts" bar.

if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
echo '
<div id="tab1" class="tab_content">
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="1" width="100%" border="0">
           <tr>
               <td class="catbg2" style="text-align:left;" colspan="2">',$txt['recent_title'],'</td>
               <td class="catbg2" style="text-align:center;">',$txt['recent_replies'],'</td>
               <td class="catbg2" style="text-align:center;">',$txt['recent_views'],'</td>
               <td class="catbg2" style="text-align:center;">',$txt['recent_boardname'],'</td>
               <td class="catbg2" style="text-align:center;">',$txt['recent_by'],'</td>
               <td class="catbg2" style="text-align:right;">',$txt['recent_time'],'</td>
             </tr>';


/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */

$cnt = 0;
foreach ($context['latest_posts'] as $post){
         $cnt++;         
         $class = ($cnt % 2) ? 'windowbg' : 'windowbg2';
         
        echo '
<tr>
<td></td>
<td class="', $class, '" title="', $post['preview'] ,'">', $post['link'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['replies'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['views'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['board']['link'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['poster']['link'], '</td>
<td class="', $class, '" style="text-align:right;" nowrap="nowrap">', $post['time'], '</td>

</tr>';
       }

echo '
</table>';
}
echo '
</div></div>';
}

Can someone please point to me where I am supposed to put the

Code: [Select]
<div class="windowbg2_hover" onclick="window.location.href=\'', $post['href'], '\'"> </div>
line that I think is necessary to get this to work?   I am also trying (unsuccessfully) to add this mod to the "show unread posts since last visit" and "show new replies" lists...  Any/all help is greatly appreciated.  I know enough about PHP to get me in trouble... barely.

Title: Re: BoardHover Mod
Post by: butchs on May 06, 2012, 09:26:11 PM
The mod is tested to work flawlessly with the default theme.  The mod uses it's own JS "pseudo-hover.htc" in the "/Themes/default/scripts" directory.  It will not work without "pseudo-hover.htc" in the "/Themes/default/scripts" directory. Try installing the mod before you install the jquery mod.


Title: Re: BoardHover Mod
Post by: kbrookes on December 18, 2012, 07:06:17 AM
Hi there,

I've inherited a forum with this mod installed - it's a nice addition to the forum.

The one complaint I get however is that when people use command/control-click or middle click to open in a new tab, it also loads the original window with the link, which isn't really expected behaviour.

Is there any way to fix that?
Title: Re: BoardHover Mod
Post by: butchs on December 22, 2012, 10:07:59 AM
Sounds lime a computer specific mouse click setting.
Title: Re: BoardHover Mod
Post by: kbrookes on December 22, 2012, 04:00:50 PM
No, it's not.

Every single member has this issue and looking at the code I think I can see why - I just don't know how to fix it.

Any attempt to open links to sub forums or threads in a new window or tab (not just middle-click methods) results in both a new window/tab being created AND the original page being refreshed with the target of the link.
Title: Re: BoardHover Mod
Post by: butchs on December 23, 2012, 10:38:54 AM
The mod does not look for keystrokes.

I just tested the mod with 5 different browsers both Windows and Mac and I can not duplicate the issue.  Center click, ctrl click and links work fine.

Maybe the manual installation is not correct or another mod is contributing to the problem.

What version of SMF are you using?
What version of the mod?
Attach the php file and show me the code you do not like.
Title: Re: BoardHover Mod
Post by: kbrookes on December 23, 2012, 04:36:42 PM
Here's the code I'm seeing:

Code: [Select]
<td class="info" onclick="window.location.href='http://www.bestcafes.com.au/forum/index.php?board=8.0'" name="b8">
<a class="subject" href="http://www.bestcafes.com.au/forum/have-your-say/" name="b8">Have your say</a>&nbsp;<a href="http://www.bestcafes.com.au/forum/have-your-say/?action=.xml;type=rss">
<img src="http://www.bestcafes.com.au/forum/Themes/Crema2.0/images/rss.png" alt="rss" /></a>
<p>General comments, questions or opinions about coffee</p>
</td>

I've refined my understanding of how this is interacting with users click events:


Version 2.0.3 of SMF
Version 1.8.1 of BoardHover



Title: Re: BoardHover Mod
Post by: butchs on December 23, 2012, 06:19:48 PM
The mod has over 1,186 downloads and you are the only one with this issue.  I can not duplicate your problem.   Me thinks it is a typo.  I need to see your php files.   O:)

That code you report is repeated in Boardindex.template.php and Messageindex.template.php.  Both are located in the Theme folder.  I need to see the files.

Please attach the one or both of the php file(s) for me to review.  Please advise where you found the files.
 :-X
Title: Re: BoardHover Mod
Post by: pastorvictor on February 14, 2013, 12:35:28 AM
Hello. Would you please help me with the *current* process to install this mod on custom themes? I cannot find the files that I'm supposed to edit. The tutorial says to find a file named modification.xml, but there are 8 of those in the download. I also read somewhere in the first posts that I needed to find a profile-info file, but that post was from years ago and that file is no longer in the download.
Thanks in advance.
Title: Re: BoardHover Mod
Post by: butchs on February 14, 2013, 07:15:33 PM
I would start with the SMF Mod parser in the mod site here.  Or you can use the SMF Helpers (http://community.smfhelpers.com/parser.php) mod parser.  Both are designed to guide you through installing mods in custom themes.

Title: Re: BoardHover Mod
Post by: pastorvictor on February 14, 2013, 08:43:51 PM
Thank you, butchs, that's a nice step-by-step guide. Just one question, though: should I do all of those code edits before or after I install the mod via package manager?
Title: Re: BoardHover Mod
Post by: butchs on February 14, 2013, 08:56:20 PM
The instructions tell you how to manually install the mod.  If you follow them you do not need to install the mod in package manager.

Title: Re: BoardHover Mod
Post by: pastorvictor on February 14, 2013, 08:57:38 PM
Oh okay, thank you, butchs, I'll give it a try now.
Title: Re: BoardHover Mod
Post by: pastorvictor on February 14, 2013, 10:14:00 PM
Something's wrong...the hover links work okay (you can go to a board by clicking anywhere on it), but I have no clue how to change the hover color. By reading some previous posts I can see that index.css needs editing. My problem is that I'm using a custom theme and the Package Parser gave me no instructions for that file whatsoever.

If it helps, here's how I installed it: I first tried using all of the instructions on Package Parser; however, that screwed up my board. I noticed that the only file from my custom theme that needed editing was index.template.php. Everything else was in the default folder. So....I had the Package Manager install the mod and then I manually modified index.template.php for my custom theme. And that's where I am.

What should I do/edit?
Title: Re: BoardHover Mod
Post by: butchs on February 15, 2013, 08:26:10 PM
There are two files that belong in your css folder:

I commented the text in the files between "/*" and "*/" so that it will be easier to identify and change colors.  You will need to make the same color changes in both files.

Please make sure that "pseudo-hover.htc" is in  your scripts folder.
Title: Re: BoardHover Mod
Post by: pastorvictor on February 15, 2013, 09:35:01 PM
That might be the problem....I can't find a file named "pseudo-hover.htc" anywhere. Usually my scripts are in the "Sources" folder but I don't see it. Could it be somewhere else?

I figured it out....I just copied the two .css files you mentioned to my theme folder. Now I have one last question: is there a way to *not* have the font colors change on hover? I do want the background to change but not the text. I already tried removing the "color: #0071b7;               /* hover text color */" line, but it still changes the color.

Thanks!
Title: Re: BoardHover Mod
Post by: butchs on February 16, 2013, 07:42:37 AM
Make the color the same color as your theme background color ie "index.css/ body/ background". Then reset your cache.

If you change the color in both files and it does not change you need did not rest all cache's.
Title: Re: BoardHover Mod
Post by: pastorvictor on February 16, 2013, 03:19:16 PM
I changed it to #FFFFFF (body background) and now when you hover over the boards, the text turns white.
Title: Re: BoardHover Mod
Post by: pastorvictor on February 16, 2013, 07:58:40 PM
I fixed it....well, I just removed all the lines that modified the text. I guess I could've figured that out...

By the way, do you know how to make it so the cursor changes from an arrow to a hand when hovering over the boards/topics? It only changes when it's over links, so I'm not sure if my users will know that they can actually click on the boards or topics.
Title: Re: BoardHover Mod
Post by: butchs on February 17, 2013, 08:40:16 AM
I changed it to #FFFFFF (body background) and now when you hover over the boards, the text turns white.

Did you forget the semi-colin?
Code: [Select]
#FFFFFF;
Here is a link to change the cursor in css (http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor).  Based on this information, you can try adding
Code: [Select]
style="cursor:pointer"; to the main board hovers and borders around the linktree elements/ background behind hover items.  Maybe you will prefer another attribute like move?

Please let me know how it works out.  That may be a cool addition to a future release.  :)
Title: Re: BoardHover Mod
Post by: pastorvictor on February 17, 2013, 08:29:47 PM
Hmmm....I might've done it wrong. Here's how I added it:

/* main board hovers */
.windowbg2_hover:hover,.windowbg2_hoverHover
{

   background: #e7eaef;         /* hover background color */
   style="cursor:pointer";
}

And it still doesn't change. Is that how it's supposed to look?
Title: Re: BoardHover Mod
Post by: butchs on February 18, 2013, 08:06:20 AM
try
Code: [Select]
/* main board hovers */
.windowbg2_hover:hover,.windowbg2_hoverHover
{

   background: #e7eaef;         /* hover background color */
   cursor: pointer;
}

and etc...
Title: Re: BoardHover Mod
Post by: pastorvictor on February 18, 2013, 05:32:53 PM
Perfect, that worked!

Thanks :)
Title: Re: BoardHover Mod
Post by: overdue on January 09, 2019, 01:34:31 PM
Will this be updated for 2.0.15?
Title: Re: BoardHover Mod
Post by: Rock Lee on January 09, 2019, 02:18:32 PM
Will this be updated for 2.0.15?

This topic can help you: How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)


Regards!
Title: Re: BoardHover Mod
Post by: overdue on January 09, 2019, 03:46:42 PM
Will this be updated for 2.0.15?

This topic can help you: How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)


Regards!

This fix worked for this mod. Thanks!
Title: Re: BoardHover Mod
Post by: butchs on January 12, 2019, 10:43:40 AM
It should work on 2.0.15 default theme with no issues as it is running on my site.