PDA

View Full Version : Miscellaneous Hacks - [OzzModz] Change Forumrow Color On Mouseover


ozzy47
09-12-2014, 10:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

This will change the color of the forumrow when a user mouses over it.

It is a simple installation, just import the product XML, ozzmodz_forumrow_color

You can edit the options under the settings, [OzzModz] Change Forumrow Color On Mouseover Settings

Complete Feature List
Option to disable the mod completely.
Frequently Asked Questions.

Q. Why do I need such a thing, you ask?

A. Some admins might like to have this nice little addition to their site.

Q. Help, why is my hover is red?

A. Change the stylevar in your styles. It's the stylevar, ozzmodz_forumrow_color found under the group, OzzModz.


-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

* History (Changelog) *
-------------------------
v1.0.0 (September 13, 2014)
- Initial public release.

ozzy47
09-13-2014, 08:08 PM
Reserved.

OUTL4W
09-13-2014, 08:25 PM
Nice....stylevar inclusion is nice too...

ozzy47
09-13-2014, 08:32 PM
Nice....stylevar inclusion is nice too...

Don't forget to mark as installed if you are going to use it. :)

Max Taxable
09-13-2014, 08:36 PM
Nice....stylevar inclusion is nice too...Yes makes it easy to customize color for the style. But, it's global, might not be great with all styles.

ozzy47
09-13-2014, 08:42 PM
It it's not global, each style has their own stylevar that can be changed.

Max Taxable
09-13-2014, 08:57 PM
It it's not global, each style has their own stylevar that can be changed.Got'cha.

It made a global change for me on all styles because I changed the stylevar in the parent style, and all other styles are child of that style.

But I see I can still change them individually too.

ozzy47
09-13-2014, 09:05 PM
Yepper. :)

CAG CheechDogg
09-13-2014, 10:56 PM
Nice! Ill see how it looks on my 4rumS ...

OUTL4W
09-14-2014, 01:51 AM
just asking...I know it says 4.x.x but would this work on 3.8.7 also?

ozzy47
09-14-2014, 02:05 AM
No, if it had, I would have released a vB3 version. :)

New Joe
09-14-2014, 11:58 AM
Nice, works just as it should..

ozzy47
09-14-2014, 12:10 PM
Good to hear, and thanks for marking as installed.:)

LLent
09-16-2014, 10:50 PM
Great work Ozzy finally had time to put this in works great

ozzy47
09-16-2014, 10:52 PM
Good to hear. Glad you like it, and thanks for marking as installed. :)

gajinoz
10-11-2014, 06:47 AM
Installed, works fine.

Not too sure what to edit in the stylevar. Possibly I'm looking at the wrong thing. Could you give me a screen shot of what I should be seeing and what to change?

Thanks.

ozzy47
10-11-2014, 09:14 AM
Glad you like it, and thanks for marking as installed. Attached is the screenshot.

Marcin1
10-11-2014, 02:14 PM
Well done. Marked as installed :)

ozzy47
10-11-2014, 02:43 PM
Glad you like it, and thanks for marking as installed. :)

gajinoz
10-12-2014, 12:00 AM
Either I'm doing something wrong or there is something wrong with my system.

When I try to edit the stylevar (see attachment)

I get this error:

Parse error: syntax error, unexpected $end in /home/XXXXXX/public_html/vb4/admincp/stylevar.php on line 1587

Not your problem, I know, but if you have any ideas I'd appreciate your advice.

ozzy47
10-12-2014, 12:01 AM
Do you get that error editing any other stylevars?

gajinoz
10-12-2014, 03:36 AM
That error happens as soon as I try to open the editor. In the screen shot you can see where I try to open it, (clicking on the go button). Soon as I do that the error happens.

Max Taxable
10-12-2014, 04:26 AM
Parse error: syntax error, unexpected $end in /home/XXXXXX/public_html/vb4/admincp/stylevar.php on line 1587

Not your problem, I know, but if you have any ideas I'd appreciate your advice.Open that file using Notepad++ and see what's on the line indicated. Paste it here.

ozzy47
10-12-2014, 08:57 AM
Actually 10 lines before and after that line number, so c/p lines 1577 through 1597

gajinoz
10-12-2014, 10:29 PM
OK guys, here is 1574 to the end of the file 1586. Line 1587 appears to be blank.

print_form_header('stylevar', 'dorevertall');
print_table_header($vbphrase['revert_all_stylevars']);
print_description_row("
<blockquote><br />
" . construct_phrase($vbphrase["revert_all_stylevars_from_style_x"], $style['title'], $stylevarlist) . "
<br /></blockquote>
");
construct_hidden_code('dostyleid', $style['styleid']);
print_submit_row($vbphrase['yes'], 0, 2, $vbphrase['no']);
}
}
else
{

Thanks for your help.

gajinoz
10-12-2014, 10:42 PM
Hmmmmm.... this is interesting, I just looked at the original file and it has this from line 1587 on:

---------------------------------

print_stop_message('invalid_style_specified');
}
}

print_cp_footer();

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 18:32, Fri Oct 21st 2011
|| # CVS: $RCSfile$ - $Revision: 42666 $
|| ################################################## ##################
\*================================================ ======================*/

---------------------------

I have no idea why it would be missing from the currently active one!

Should I simply copy this stuff over and see how it goes, or might that cause other problems?

ozzy47
10-12-2014, 10:50 PM
I would download a copy of the version you are running from vB.com, and upload admincp/stylevar.php and see what happens.

Max Taxable
10-12-2014, 10:51 PM
I would download a copy of the version you are running from vB.com, and upload admincp/stylevar.php and see what happens.Yep, overwrite the file from the original.

gajinoz
10-12-2014, 11:08 PM
OK, great work guys, that seems to have fixed it. No idea how the file got corrupted, I've never fiddled with it.

Thanks very much for your help, greatly appreciated. :up:

ozzy47
10-12-2014, 11:09 PM
Glad to hear it is sorted, and thanks for reporting back. :)

gajinoz
10-12-2014, 11:12 PM
Update: Successfully changed colour.

Great mod!

ozzy47
10-12-2014, 11:21 PM
Glad you like it, and thanks for marking as installed. :)

JacobSuth
11-02-2014, 06:14 AM
Seems like it's not working for me which is odd tried disabling every other plugin and still.

ozzy47
11-02-2014, 06:47 AM
Does it work on a unmodified default style?

JacobSuth
11-04-2014, 07:05 AM
Does it work on a unmodified default style?
After testing it yeah it does, so I guess I am crap outta luck with my custom style.

ozzy47
11-04-2014, 09:08 AM
Well if you pm me a admin account, I can try and see what the issue may be.

JacobSuth
11-04-2014, 06:55 PM
Well if you pm me a admin account, I can try and see what the issue may be.
Alright thanks for the offer I've pmed you :)

ozzy47
11-05-2014, 12:04 AM
Hopefully this has been sorted on your site.

JacobSuth
11-05-2014, 03:30 AM
Hopefully this has been sorted on your site.
Yes it has thank you so much!

ozzy47
11-05-2014, 09:04 AM
Not a problem, glad to help. :)