BoardHover Mod

Started by butchs, January 28, 2008, 06:03:27 PM

Previous topic - Next topic

gamerhookup

#40
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...


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


This is the line that needs to be executed:


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...

<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...


http://www.mydomainname.com/index.php?action=globalAnnouncementsArray.0


:) Help! Please!

butchs

gamerhookup I do not have SMF 1.1.5 installed anymore so I can not test it but I would try something like:

<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.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

gamerhookup

#42
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...


// 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...


$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..

butchs

#43
Try isolating the semi colin like this:

<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...
  :)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

commandokj

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:
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...

butchs

#45
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".


I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

butchs

#46
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.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Bigguy

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:

QuoteSorry, 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.

butchs

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:)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

F4r4Zm0In

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 >>

QuoteType      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  ???
---------------------
Not Just Another Forum
---------------------

Bigguy

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.

butchs

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
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

TroyG

Quote from: 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 >>

QuoteType      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 ?

butchs

#53
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.   :)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Bigguy

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.

Quote from: butchs on September 24, 2008, 09:32:20 PM
Bigguy please let me know if it works?   :P

butchs

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:)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Kosedragen

#56
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

butchs

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.


I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Bigguy

I did get rid of it from everywhere. After I get things working and if it happens again I will post on this then.

Quote from: 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:)

Final60

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 :)

Advertisement: