Solved it.. sort off...
I made a nasty hack to solve this. Get the URL in a file where the URL is correct, write it to a text file and read that output in the location where I need it. It seems to be working, but it's an ugly hack.
Cheers for the provided help.
If anyone has a better...
The user visits the website.
We look at the browser language and for UK/US difference we look at the IP (they both get en-GB) but we look at it to serve location based banners/links.
When the user visits the website we set the Joomla language accordingly. The user can't really change it's...
Hi,
I'm running a Joomla! website and I'm experiencing some performance issues.
I ran into this problem a while ago and after extensive testing the host figured out it was an issue with the hard-drive combined with a CPU that couldn't cope and to low memory. So they gave me a new server with a...
Hi ingresman,
That's the whole point. I don't want to get the language by browser language but by where the visitor is on the website AKA, the URL the visitor is on.
Cheers for the reply's, yeah it is illogical.
I do know however which file does "get" the right SEF URL and appending something to it's URL isn't possible + I'd still need to know what to append so I can for instance, append the language tag code so I can use that.
Hi Vacunita,
All valid questions.
I'll know it's a weird request and I might be taking a wrong approach to fixing my "problem". I'll try to explain what I want to achieve and in what situation this is.
On my Joomla! website I'm using an extension JComments. This extension changes the button...
Hi,
This may sound like a silly request... but here goes. I want to get the current URL from the address bar. The right side of the URL to be more precise. This is done by $_SERVER['REQUEST_URI']. However I need to "get" the url in a PHP file, but the URL that I get when I get it in that php...
With help I managed to solve it in the end:
$headerstuff =& $this->getHeadData();
$scripts =& $headerstuff['scripts'];
$nscripts = array();
$matches = array(
"mootools.js" => "http://localhost",
"caption.js" => "http://localhost",
);
foreach($scripts as $k => $v){...
Hi jpadie,
Thank you for putting in the time and effort to help me out. If I try the above code (I had to add 2 closing ")" after the unset lines, otherwise it wouldn't work) I get the following errors:
Notice: Undefined property: JDocumentHTML::$scripts in index.php on line 81
Warning...
jpadie,
If I try that I get the following result:
Fatal error: Key element cannot be a reference in /home/adminyu5/public_html/myfolder/templates/thistemplate/index.php on line 73
I Googled the error, but I have no idea what it means.
Hi jpadie,
I hate to sound like a complete novice, but you've lost me here:
I'm trying the following code now:
$headerstuff = $this->getHeadData();
foreach ($this->_scripts as &$url=>$type):
$url = 'http://www.mydomain.com' . $url;
endforeach;
foreach($this->_links as &$url=>$ignore)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.