
sphinx
Members-
Posts
206 -
Joined
-
Last visited
Everything posted by sphinx
-
Hi all, Does anyone know much about laravel regarding an error like this: Warning: Missing argument 1 for Illuminate\Foundation\Application::detectEnvironment(), called in /var/sites/m/meet.relatable.co.uk/public_html/bootstrap/start.php on line 27 and defined in /var/sites/m/meet.relatable.co.uk/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 258 Warning: Invalid argument supplied for foreach() in /var/sites/m/meet.relatable.co.uk/public_html/vendor/laravel/framework/src/Illuminate/Foundation/EnvironmentDetector.php on line 42 Ta
-
Hi. Please see this PDF: https://dl.dropboxusercontent.com/u/196843290/mobbill%20integration%20guide-1.2.pdf I need help with page 9. How can I detect a validated session which the user has come through on? I need to either accept the visitor, or redirect them if a valid session key isn't matched? Cheers
-
Hello. How would I print the following: So that I can set a button containing site2.com. Example: <a href="site2.com"></a> And so forth: Would print: <a href="site3.com"></a>
-
Hi, I'm using an example below regarding a whole URL. I'm looking for some conditional PHP that will display certain content depending on if the URL contains the word 'liz' if not, display else. $host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if($host == 'liz-4.website.com') { echo $this->__('The domain contains the word liz.'); } else { echo $this->__('The domain does not contain the word liz.'); }
-
Hi. I'm trying to use this code: <?php previous_post_link('%link', '<img src="http://localhost/website.gif" alt="Previous" />' true) ?> But I get the error: Parse error: syntax error, unexpected T_STRING Will this be related to the code incorrect for wordpress or a general error? Thanks
-
Hello. I'm not sure whether this would come under PHP or HTML, but some sites display how many shares an article has had in a font, like this: https://dl.dropboxusercontent.com/u/196843290/DBUpload/20140726.183853.png What would the best way of doing this be? Thanks.
-
This doesn't seem to address the issue. Thank you for trying anyhow.
-
Hello. My site mobile theme has a overall padding of 10px, however, this isn't displaying my mobile ads correctly. I have the advert codes wrapped like this: <div class="googlead"> <!-- ad code here --> </div> This is the @media main css: .content-wrap{ line-height: 150%; font-size: 15px; padding: 10px; background-color: #ffffff; } Is it possible to make ".content-wrap{" ignore the googlead class so that I can specify a 0% padding as required. Could I use :not in this instance? Cheers.
-
Thank you sir, I'll look to implement that! Thank you so much the feedback, I've worked hard to keep it looking slick and fast yet maintain a perfect mobile theme also. Cheers.
-
Hello. On my site, the logo located here: http://viraltrend.co.uk/ Displays OK on Chrome but when I try and view it on internet explorer, it looks like this: Is there a reason why this is happening and what is the best way to fix it? Thank you.
-
This works perfectly. <?php $url = '<a href="/cashback.aspx?linkauth=MATCHEVERYrtyTHINGHERE&mpurl=test&usr=test">'; if(preg_match('~=([A-Za-z]+)&~', $url, $match)) { echo '<pre>'.print_r($match[1], true).'</pre>';} else { echo 'No match'; } ?> However, I need it to grab the content from a specific URL in the exact same format.
-
Hello. Is there a way to make preg_match match all content such as: <a href="/cashback.aspx?linkauth=MATCHEVERYTHINGHERE&mpurl=test&usr=test"> The linkauth has a random string on numbers and characters on a webpage that I want to grab based on that format. Thanks.
-
Hello. I want to use .htaccess to redirect to eBay items When I use test.co.uk/12345 as an example It is outputting: test.co.uk/test=/12345/go I need it to output: test.co.uk/test=12345/go Thank you RewriteEngine on RewriteCond %{HTTP_HOST} =test.co.uk [OR] RewriteCond %{HTTP_HOST} =www.test.co.uk RewriteCond %{REQUEST_URI} !^/?$ [NC] RewriteRule ^ http://www.ebay.co.uk/test=%{REQUEST_URI}/go [R=301,L]
-
Literally loads of issets in the same layout, I would use !isset but I'd rather not have to add an exclusion every time. Thanks
-
On my page, I have multiple 'isset' functions to pull up different content based on URL, but I want a message to display if there is no content matching the relevant URL. I've tried: if(isset($_GET['video'])){ //VIDEO TITLE $title="page title"; //VIDEO URL $url='url details here'; //VIDEO DESCRIPTION $desc="video description here"; //HEADER $header="more video description here"; } else { $header="No content found here"; }
-
I've tried using this: RewriteEngine on RewriteCond %{HTTP_HOST} =example.co.uk [OR] RewriteCond %{HTTP_HOST} =www.example.co.uk RewriteCond %{REQUEST_URI} !^/?$ [NC] RewriteRule ^ http://example.co.uk?%{REQUEST_URI} [R=301,L] However, if I do: http://example.co.uk/test It redirects to: http://example.co.uk/?/test/ I need it to redirect like: http://example.co.uk/?test Thanks
-
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_HOST} ^website\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.co\.uk$ RewriteRule ^/?$ "http\:\/\/website\.co\.uk\/\?1" [R=301,L]
-
Hello. I'm currently using isset. So my links look like: http://site.com/?1 http://site.com/?2 etc etc.. Instead of a layout like that, can .htaccess be used to make the same link load but have the URL as: http://site.com/1 http://site.com/2 etc etc.. Thanks
-
Hi thanks for assistance. However, it seems to redirect all of my links to ?1. Thanks
-
Hi, I'm using the 'isset' functions for my pages. I want to redirect. http://website.co.uk to http://website.co.uk/?1 I'm using this: RewriteEngine on RewriteCond %{HTTP_HOST} ^website\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.co\.uk$ RewriteRule ^/?$ "http\:\/\/website\.co\.uk\/\?1" [R=301,L] I'm getting a redirect loop error. Is there a way to bypass this? Thank you.
-
Hello, I'm looking to preg_match a link from another website, I want to match it because the actual link changes at random times, so I want to header redirect the returned link so it works regardless of any changes, In the source of the website, the block I need to copy is: <a style="margin: 5px 5px 5px 5px; background: url(/images/buttons/continue2.png) no-repeat; display: block; text-indent: -40000px; width: 110px; height: 37px;" href="i need to copy the link found in this box" target="_blank" >Continue</a> This area of the source seems to be unique so it wouldn't collide with any other code. Thank you
-
.htaccess isn't redirecting as I want it too.
sphinx replied to sphinx's topic in Apache HTTP Server
I've put on my site: Try it: http://harrisnetwork.co.uk http://harrisnetwork.co.uk/1212 http://harrisnetwork.co.uk/12122 with .htaccess Seems to put weird symbols in. Thanks -
.htaccess isn't redirecting as I want it too.
sphinx replied to sphinx's topic in Apache HTTP Server
I'll explain it more clearly with more simple URL's: RewriteEngine on RewriteCond %{HTTP_HOST} =oldwebsite.co.uk [OR] <<-- for this example, the entered URL will be: oldwebsite.co.uk/12345 RewriteCond %{HTTP_HOST} =www.oldwebsite.co.uk RewriteRule ^ http://anotherwebsitetrack.com&url=http://www.newsite.com/12345 [R=301,L] <<-- I need it to go there, which '%{REQUEST_URI}' achieves but I need it to work with the '?' symbol as well, for example 12345?1 etc... Hope that's easier. Thanks -
.htaccess isn't redirecting as I want it too.
sphinx replied to sphinx's topic in Apache HTTP Server
Hi. Replaced with that code, but for example it still does this: http://oldsite.co.uk/basket.html?cdid=1234 Will translate to: http://newsite.co.uk/basket.html Thank you