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)...
Hi,
And thank you for your replies.
I still have to look into costs, but I doubt that will be a problem. By saying I would use Cat6, I see I caused some confusion. I'd go for Cat6A, just like you would go for Cat 5e, instead of Cat5. Sorry for not being clear enough.
Other then that, the...
I lost you...
Could you give me a code example because I'm unsure what to use and how to us it now.
in my index.php of my Joomla! template I "get" the scripts from the head data by using:
$headerstuff = $this->getHeadData();
$scripts = $headerstuff['scripts'];
Now you tell me to...
Hi jpadie,
Thank you for your reply.
Yes, there are most likely extensions that can do part of this.
However, because I have several different scenario's on which I want to display the right scripts these extensions are no good for to me.
And yes you are right setHeadData is the way to go...
Hi,
I'm trying to dynamically change parts of an array.
This is the array:
Array ( [/components/com_jcomments/js/jcomments-v2.1.js?v=7] => text/javascript [/components/com_jcomments/libraries/joomlatune/ajax.js?v=3] => text/javascript [/media/system/js/mootools.js] => text/javascript...
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.