There is a guy who is trying to make a modification to this hack. The problem is that doesn´t speak english, and I don´t know Pearl so as to help him. So what I will do is translate his problem here and then translate back to him the replies.
What he wants to do:He wants to make the Cosmetic Link´s images CP configurable. This way, the images can have any name, not profile.gif, register.gif, etc. With this feature and together with MyStyle (LK), you can have many templates all with different set of images for Cosmetic Links. (For example, one template would use profile.gif, another one profile2.gif, etc)
The problem:He can´t make the following code in ubb_lib.cgi work:
quote:
if ($vars_registration{DisplayRegistration} ne 'NO') { $MyProfileLink = qq( ; $ifmyreg = "|"; $ifregsearch = "|" unless $vars_registration{SuspendRegister} eq "true"; $RegisterLink = qq( unless $vars_registration{SuspendRegister} eq "true"; } if ($vars_search{AllowSearch} ne 'FALSE') { $ifsearchrest = "|"; $SearchLink = qq( ; } $MainButtons = qq!$MyProfileLink $ifmyreg $RegisterLink $ifregsearch $SearchLink $ifsearchrest !;
He says that $vars_style{NOMBRE DEL BOTON} should change the image to the one chosen via CP, but only the first style changes. The others keep the buttons of the first.
Well, I hope this is not too confusing. It is to me. Thanks a lot.