|
|
Taza |
|
|
Posts: 193
Posts Per Day: 0.09
Reputation: 81.25%
Reputation Score: +13 / -3
Time Online: 38 days 18 hours 58 minutes
|
I think i found away for the highlight feature to work on the themes but im having trouble getting it to work was wondering if anyone could give me some pointers. Ok this is what i have done.
I have added to the setting.pl, admin2.pl and the themes.pl to extra fields for colour and add to extra lins in the admin2.lng. On the template i have a class and on the boardindex i have the on mouse roll over then instead of the colour i have put the colour variable and class for the highlight.
What im having trouble with is getting the info put in the admin color section to write to the settings.pl (i know im missing somthing im not very exp at this) do i need to edit another script to pass the variable though. I got it half working for the themes but then it will not work for the default one. |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
| danielck |
|
Guest User |
Are you looking for the Cell Highlight onMouseover Mod? It is available at BlahHackz: http://blahhackz.seventytimes.comunder Downloads > Mods You'll need to register and login though. The latest version is made for E-Blah Ver RC3 but it should work for E-Blah RC5. Keep me inform if it can't work and I'll do some tweaking to it. |
|
Logged |
|
|
|
|
Taza |
|
|
Posts: 193
Posts Per Day: 0.09
Reputation: 81.25%
Reputation Score: +13 / -3
Time Online: 38 days 18 hours 58 minutes
|
hehe actually im moderfiying that one to work with themes. In that one is has the colour i want to change that to a varable and class and it will then work in themes which mean i can have my default highlight (purple) and change it in a red theme to a different colour.
what i need to know is were i go to pass the varable from the admin colours section or and the themes seation (which i have added two new fields) to either the settings.pl and other in order for the code to pick up the change and save it. |
|
|
|
|
|
| danielck |
|
Guest User |
I see.
Different theme colours will mean that the color specification at the Mouseover cell MOD have to be dynamic. Colors must be obtain from the theme rather than the code, I think. Cos you want the highlight colors to match the colors on your theme.
If the default forum color setup or the theme color setup uses CSS, perhaps linking to the CSS properties may help? I dunno if it will work but you can give it a try.
For me, I choose a neutral highlight color that will go well with most color combination - Light Gray or silver
Less code to modify and less headache as I know not much about Perl. (ondrugs) |
|
Logged |
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
Taza |
|
|
Posts: 193
Posts Per Day: 0.09
Reputation: 81.25%
Reputation Score: +13 / -3
Time Online: 38 days 18 hours 58 minutes
|
ok im attemping this again. When i put a class in the highlight code it will not pickup the change because it is looking for the colour value. After the backgroundcolour= part you normal put a color or varable in there. I wish to just use the class.
|
Code
onMouseover="this.style.backgroundColor=''" class="hlbi" |
|
I have found that the only way i can get this to work is if i put a varable in it and call it all from the code.eg
|
Code
onMouseover="this.style.backgroundColor='$color{'hlbi'}'" class="hlbi" |
|
Now i have got it to work with the above code but it is fidderly as i had to edit the admin2.pl and add the fields in for the extra colours. Is there an easier way? If not which code do i edit to pull the values into the new text boxes in the admin colours seaction i have added the following to the settings 3 sub of the admin2 file.
|
Code
if(!$FORM{'hlbi'}) { $hlbi = ''; } if(!$FORM{'hlmi'}) { $hlmi = ''; }
|
|
and also
|
Code
$color{'hlbi'} = $FORM{'hlbi'} || $hlbi; $color{'hlmi'} = $FORM{'hlmi'} || $hlmi;
|
|
Now when i enter in the new values for the highlight it saves it ok to the settings.pl file and the highlight works, but when i go back into the admin colours section the text boxes are blank unlike win and win2 which pulled there value from somewhere. Where is it pulling the value for the textbox from when the colours settings pages loads? picture attached.
|
|
|
|
|
|
Taza |
|
|
Posts: 193
Posts Per Day: 0.09
Reputation: 81.25%
Reputation Score: +13 / -3
Time Online: 38 days 18 hours 58 minutes
|
Ok i have the whole thing working with themes now the only prob i have is getting it to pull in the saved values. Every time i open themes part or the colours part the boxes come up blank, like in the pic above. |
|
|
|
|
|
Taza |
|
|
Posts: 193
Posts Per Day: 0.09
Reputation: 81.25%
Reputation Score: +13 / -3
Time Online: 38 days 18 hours 58 minutes
|
OK tis all working now.
If anyone wants this updated highlight mod that works with themes let me know and ill email it to you.
This mod will put two extra fields in the admin colors section and the themes section which will let you charge the highlight effect on both the default and the other themes. |
|
|
|
|
|
|