It's been a while since dabbling in PHP. I'm editing the output of a module in Joomla. The module is a news module and I'm trying to get it to open in a lightbox.
I've got everything functioning as far as the lightbox goes, but in order to output the way I want, I need the link to be changed from index.php to index2.php.
For some reason the str_replace function is replacing the WHOLE string to be the new value instead of just searching and replacing the text within the string.
I think every programmer in any language can empathise with that sentiment
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
Maybe we should a have "programmers memory jogging" section where you can post, not get repies and then re-read the post.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
The problem with the use of the app Settings is that the values of each setting can be achieved by using a key text and returns only the text. It 's much easier than from the developer to use objects as strings and do all kind of results yourself.