Announcements
: K-Meleon Forum
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JohnHell] [quote kko][quote JohnHell]Kko, another thing, what means now that a var (that wasn't the previous) should be initialited, I mean, where and how. I created the variable at the beginning of the macro file text and it displayed the same error.[/quote] What JujuLand says above. You just have to assign a value to a variable before you can use (=read) it.[/quote] JujuLand is talking about global variables (for me those are the default as $URL, $LinkURL, etc), I'm just talking of a simple variable. Ok, used in more than one macro, but not global, I mean that the variable is totally independent inside each macro and in some macros I directly reset any possible value in the var. But, it must have a value, yes or yes?. Because I created the variable like: [code]$changed = "";[/code] It hasn't any value beyond nothing (0 or not text), but the variable is being created, right? Or it should be like: [code]$changed = " "; #note the space or $changed = "x"; or $changed = 1;[/code] Nothing, I already did the above and still the same error: [img]http://img501.imageshack.us/img501/4285/km15changedvarerrordl6.png[/img] Ok, going back to the previous problem, the macro I posted (yahooimage), is fixed, but the case of the $LinkURL wasn't the problem. The problem came for the texts and not being between quotes "" ('' for you). Like this work, but with $LinkURL, I think it would be better ;) yahooimage{ $conteoimgurl = index($linkurl, [b]"[/b]imgurl[b]"[/b])+7; $conteosize = index($linkurl, "\%".[b]"[/b]26rurl[b]"[/b])-$conteoimgurl; $urllimpia = substr($linkurl,$conteoimgurl,$conteosize); } In bold the changes and with no reports for problems on those lines. EDIT EDIT EDIT SOLVED SOLVED SOLVED Ok, finally the case sensitive of the global variables was needed so fixed. I also fixed the $changed variable mistake that was because it was inside a macro with the name "blabla-bla" with a minus sign inside, removed and disappeared the error.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development