Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Modification Archive  ›  Theme highlights Mod Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Theme highlights Mod  This thread currently has 270 views. Print
1 Pages 1 Recommend Thread
Taza
February 1, 2004, 5:26am Report to Moderator Report to Moderator
E-Blah Member
Posts: 193
Posts Per Day: 0.06
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.
Logged Offline
Site Site Private Message Private message ICQ ICQ AIM AIM
Justin
February 1, 2004, 9:16am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,196
Gender: Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
I don't get exactly what you're doing. 


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 1 - 8
danielck
February 1, 2004, 6:43pm Report to Moderator Report to Moderator
Guest User
Are you looking for the Cell Highlight onMouseover Mod?

It is available at BlahHackz: http://blahhackz.seventytimes.com
under 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
E-mail E-mail Reply: 2 - 8
Taza
February 3, 2004, 3:13am Report to Moderator Report to Moderator
E-Blah Member
Posts: 193
Posts Per Day: 0.06
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.
Logged Offline
Site Site Private Message Private message ICQ ICQ AIM AIM Reply: 3 - 8
danielck
February 3, 2004, 5:56am Report to Moderator Report to Moderator
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
E-mail E-mail Reply: 4 - 8
Justin
February 3, 2004, 7:02am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,196
Gender: Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
Just put a class in the highlight code.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 5 - 8
Taza
May 17, 2004, 5:17am Report to Moderator Report to Moderator
E-Blah Member
Posts: 193
Posts Per Day: 0.06
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.



Logged Offline
Site Site Private Message Private message ICQ ICQ AIM AIM Reply: 6 - 8
Taza
May 19, 2004, 10:20pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 193
Posts Per Day: 0.06
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.
Logged Offline
Site Site Private Message Private message ICQ ICQ AIM AIM Reply: 7 - 8
Taza
June 6, 2004, 6:59pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 193
Posts Per Day: 0.06
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.
Logged Offline
Site Site Private Message Private message ICQ ICQ AIM AIM Reply: 8 - 8
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Modification Archive  ›  Theme highlights Mod