Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

thegman89

Members
  • Joined

  • Last visited

Everything posted by thegman89

  1. 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!
  2. 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>"; ?>
  3. 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!
  4. 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
  5. 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.
  6. Take a look at www.heartinternet.co.uk
  7. 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
  8. thegman89 replied to Sam G's topic in General Chat
    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!
  9. thegman89 replied to Sam G's topic in General Chat
    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
  10. 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?
  11. thegman89 replied to lee grant's topic in General Chat
    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!
  12. thegman89 posted a topic in Frontend
    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!
  13. 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!
  14. 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.
  15. 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.
  16. thegman89 replied to ReaperWD's topic in General Chat
    If you can fford it, LED TV's are the future! *Drools*
  17. I think this one looks the best!
  18. thegman89 posted a topic in Server Side
    Hi, I'm using the GET method with a form. Is there anyway I can stop it from passing the submit button name and value? All I want is the content from one field (a select list). Thanks
  19. Hi All, I have a database with some events in it - each with a full timestamp (year, month, day, hour, min sec) generated by PHP after the user has input the start date / time. I've then generated a PHP timestamp for today (year, month, day). What I want to do is use an if statement to then increase a counter ($x) if that event is today whilst looping through all events. I know how to work out if a event is in the past using a timestamp for now (year, month, day, hour, min sec) and seeing if it is gerater / less than the timestamp stored for the event. But I need to count the number of events happening today - even if the have already started. What would be the best way to do this? Many Thanks (hope this makes sense!)
  20. DnB, Dub Step, Indie / Light Rock (Blink 182, Sum 41, The Kooks, The Killers, Simple Plan etc), Dance - anything apart from classical and metal really!
  21. thegman89 replied to lee grant's topic in Server Side
    I learnt witht he PHP and MySQL for dummies book - the only "For Dummies" book I've ever got on with and it seemed good! The online PHP mannual is invaluable though!
  22. thegman89 posted a topic in General Chat
    Just treated myself to my first tablet today as an early xmas present to myself Got a Wacom Bamoo Touch and Pen. So far eveythign seems great - going to take a whiel to get used to though! How many people have totally ditched there mouse and just use a tablet? Do you use tocuh or pen more for general use (not playing with graphics / photos!)? Just worried about the pen tips wearing out quickly if I'm using the pen all the time. How long do they tend to last? Cheers
  23. Hey All, Have just brought a new internal SATA HDD (Seagate Baracuda 1TB) - put it, installed OS - and is now making a clicking noise when there is a lot of disc activity. It's not pretty quiet when it's idle. I know old drives tend to make this noise when they're been going for a while and power cords been pulled out without being shut down properly etc - but this is a brand new drive! Should I take it back? Cheers! EDIT- here is a sound file with the noise - recorded on my phone so sorry for quality!might need to turn your volume up a bit! http://www.gbhosted.co.uk/hdd.amr
  24. thegman89 posted a topic in Frontend
    Hey All, I'm trying to make a navigation bar to fit in my wrapper (960px). I want to have say 5 tabs (list elements (li's)) all will be different sizes do the text on them. What I want is for them to all auto size to hit the space available. Is there any easy way to do this using CSS? Thanks!
  25. I'm from Mudeford (Christchurch) just outside Bournemouth - living in Southampton durring term time. Would avoid Boscombe unless you can afford to get along the seafront in which case its not as bad. It's like all large towns really - it's got its nice and its rough parts! Oh, and welcome

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.