-
Best way to use Google Analytics
Hi, I'm running around 40 sites - some for clients, some personal projects, some experiments, some adsense sites. Whilst I aready use the bare basics Google Analytics to keep track on the major sites (currently setup each site with a seperate account within my analytics account) - I want to start tracking all my sites - and adsense revenue soruces. What is the best way to do this with multiple sites (obcously across multiple domains)? Is there anyway of having once piece of JS I can reuse across multiple sites that I don't need to change each time - but will still give me seperate profiles in my Analytics account? Or should I categorise my sites into accounts in my analytics account, then add a profile each time for each site within the account? I guess what would be ideal would be a good, semi in-depth book / article about Analytics and the best way to use it across multiple sites - but any help / advice / comments are much appreciated!
-
-
RSS, XML & PHP Issue
Hey All, I have a little issue with my RSS feed. Currently, the feed is generated by PHP (with a header to output as RSS+XML) from a database and stored in a file called feeds/rss.php. I then have a seperate PHP file which I want to parse the feed with to display nicely on a page (eventually a Facebook App) however, am getting the following error when trying to parse the feed: "Warning: DOMDocument::load() [domdocument.load]: Start tag expected, '<' not found in /home/sites/radiosonar.co.uk/public_html/feeds/rss.php, line: 19 in /home/sites/radiosonar.co.uk/public_html/facebookapps/news/content/content1.php on line 24". I'm guessing it's reading the PHP file that generates my RSS feed as a PHP file and not an XML file. Any ideas of a way around this? Any tips / advice? RSS Feed Link Parser Output PHP File Generating RSS <?php // Set Output To XML header("Content-Type: application/rss+xml; charset=ISO-8859-1"); // Include Feeds Config include_once("feedsconfig.php"); // Start Building Feed $feed = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; $feed .= "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n"; $feed .= "<channel>\n"; $feed .= "<atom:link href=\"http://www.radiosonar.co.uk/feeds/rss\" rel=\"self\" type=\"application/rss+xml\" />\n"; $feed .= "<title>".htmlspecialchars($config['rss_title'])."</title>\n"; $feed .= "<link>".htmlspecialchars($config['site_url'])."</link>\n"; $feed .= "<image>\n"; $feed .= "<url>".htmlspecialchars($config['site_logo'])."</url>\n"; $feed .= "<title>".htmlspecialchars($config['rss_title'])."</title>\n"; $feed .= "<link>".htmlspecialchars($config['site_url'])."</link>\n"; $feed .= "</image>\n"; $feed .= "<description>".htmlspecialchars($config['rss_description'])."</description>\n"; $feed .= "<language>".htmlspecialchars($config['rss_language'])."</language>\n"; $feed .= "<copyright>".htmlspecialchars($config['rss_copyright'])."</copyright>\n"; $feed .= "<webMaster>".htmlspecialchars($config['rss_webmaster'])."</webMaster>\n"; $feed .= "<category>".htmlspecialchars($config['rss_category'])."</category>\n"; $feed .= "<generator>".htmlspecialchars($config['rss_generator'])."</generator>\n"; // Load News Stories $load_news_sql = mysql_query("SELECT id, date, link, title, story FROM rss_feed ORDER BY id DESC LIMIT 0,30"); if($load_news=mysql_fetch_array($load_news_sql)) { do { $feed .= "<item>\n"; $feed .= "<title>".htmlspecialchars(strip_tags($load_news['title']))."</title>\n"; $feed .= "<description>".htmlspecialchars(strip_tags($load_news['story'], '<a>'))."</description>\n"; $feed .= "<link>".htmlspecialchars($load_news['link'])."</link>\n"; $feed .= "<pubDate>".date('r', $load_news['date'])."</pubDate>\n"; $feed .= "</item>\n"; } while($load_news=mysql_fetch_array($load_news_sql)); } // Finish Building Feed $feed .= "</channel>\n"; $feed .= "</rss>"; // Output Feed echo $feed; ?> PHP Parser <?php $doc = new DOMDocument(); $doc->load('../../../feeds/rss.php'); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue ); array_push($arrFeeds, $itemRSS); } echo "<h1>Using foreach loop to display elements</h1>"; echo "<ol>"; for ($row = 0; $row < 5; $row++) { echo "<li><b>The row number $row</b>"; echo "<ul>"; foreach($arrFeeds[$row] as $key => $value) { echo "<li>".$value."</li>"; } echo "</ul>"; echo "</li>"; } echo "</ol>"; ?>
-
Student Radio Website
Hey All, I've spent the past two months developing a new website for the stduent radio station at my uni. I've built it from the ground up with a large, custom CMS. Please take a look and let me know what you think! http://www.radiosonar.co.uk/ I know there is the odd layout issue when using a Mac - will have this sorted next week when I get access to one!
-
Javascript Question (jQuery)
Hey All, I haven't got much experience with jQuery other than "installing" plug-ins to use with it. At the moment I have the Fancybox plugin running. I've got a link to a photo with then pops up on page. What I'm looking to do is refresh this image whilst it's open in Fancybox (it's a webcam). Any suggestions? Thanks
-
Email addresses for clients
Have a look into Google Apps - just started using it for clients. It's very easy to setup and free for up to 50 users.
-
Hosting Querie
Take a look at www.heartinternet.co.uk
-
Business Card Advice
Hey All, First off, sorry if this is the wrong forum! Quick question - I'm looking to get some business cards sorted - wil lthis background have too much detail to print well? I'm been told to keep things simple and bold as detailed items don't print well. Any advice? Also - any feedback on Moo and Solopress as business card printers? Cheers
-
Freeview HD
Unlikely - HD Ffreeview is only available in limited areas at the moment as part of trials as far as I'm aware. Your box is oprobably upsclaing standard def channels. SKY offers more HD channels than Virgin - so stick with sky if you want HD channels!
-
Freeview HD
Freesat isn't freeview. Freesat is braodcast via satelliete and freeview is broadcast use transmitters here on the ground. As for if you will need a new receiver box it sounds like you may well do unless your TV was branded as Freewview check this Ofcom link: HD http://www.ofcom.org.uk/media/news/2008/04/nr_20080403b
-
Awesome Browser Size Tool
Not sure if anyone has seen this yet: http://browsersize.googlelabs.com/ Little feature in gogole labs to see how your site will look on different screen resolutions. I think it's deffinately got potential! Thoughts?
-
facebook
Again, I use Facebook - but only for social things - not business - although I have managed to find a few clients through Facebook. Having moved around a lot when I was younger it's been great finding old friends I'd left behing and seeing how they're getting on in life! fb.me/thegman89 is me!
-
BBC Homepage Box
Hi All, I'm looking for a jQuery plugin that has a similar effect to that of the boxes on the right of the bbc home page where you click on one of four buttons and the content above it changes. I'd liek one that changes on hover rather click if possible. Any ideas? Thanks!
-
What title do you go by?
At the moment I do a bit of designing and a bit of serverside coding - although more coding than design as thats what I'm lookin to get into after uni. So kind of the same as Jmz above - depends who I'm speaking to - not all non-techy people know what a developer is!
-
Age you started with web design?
I was about 13 / 14 when I first started playing with online site builders using odd bits of HTML (good 'ol <marquee> tag!) Must have been about 14 / 15 when I first started playing in Notepad with HTML! Been going on and off until I started uni in September '08 where this is pretty much all I do with my time! Developed my first database driven site when I was 18.
-
FCKeditor and blank lines
In one of the config files (maybe config.js in the root folder - it's been a while since I used it!) you can configure what the enter button does - if it inserts a <p> tag or <br /> tag. If you change it to <br /> it will insert one blank line rather than a new paragraph.