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.

PeterBooker

Members
  • Joined

  • Last visited

  1. No, I want help creating a tool for the games community using information I have permission to use, if I can find a way to get it. That is what I want help with.
  2. Hi guys, I am creating a community site for a PC game and want to include a dev tracker that combines info from various twitter feeds and tracks forum posts made on the official forums. I have successfully pulled all the twitter feeds into my database but I am struggling with the forum posts. The problem is that I am not really sure how I should be going about the task. I can use the forum search feature to get pages that contain each developers latest posts. I then copy this html into a php variable. Then I am stuck. How can I get post titles, post content, links, for each of the posts? The list of posts is in a container <div id="ipbwrapper"></div> and each post is in a container called <table class="ipbtable"></table>, if I could at least seperate these parts out from the entire pages html I would be well on my way. Could anyone point me in the right direction for how I should be achieving this?
  3. I just did this on a site of mine, ns2hub.com I currently only support twitch.tv as that seems to be used most frequently, by far. The important thing you need with twitch is this: http://api.justin.tv...mit=100channel= You can then add the channel usernames, seperated by commas upto a limit of 100. This will turned an xml file with data for any streams that are online. I use whether or not data is returned to check the online status of streams. This is a basic version of what I use: $url = "http://api.justin.tv/api/stream/list.xml?limit=100&channel=$names"; $xml = simplexml_load_file($url); foreach($xml as $item) { //example usage $current_viewers = $item->channel_count; } I hope this gets you started in the right direction, if you have any specific questions just shout!
  4. Looking at some of my old code, you could try: header('Content-Type: application/force-download'); Might need a more experienced eye if it is some other problem though. Good luck getting it working!
  5. You could store the information in an XML file and use: $xml = simplexml_load_file('http://domain.com/folder/links.xml'); I do something similar to restrict access to the WP admin CP but allow full access to a Whitelist of IPs. To make this more useful you would ideally then store a local copy on successful fetch and only attempt to update it occasionally, relying on the local copy any time a connection to the external file cannot be made.
  6.    Vulcan reacted to a post in a topic: Members login connected to a forum
  7. Ok, so before we begin there is some preperation to do, which will make this a lot smoother. Splitting Your Current Design So the first challenge is to split your current design HTML into the two parts. The part you want above the forum and the part you want below the forum. Creating Your Own Theme If you have not already, next you need to create your own theme for your forum (or select/install one to use). If you have not already, you can simply copy whatever default theme you are already using (we will cover editing your theme so it fits in with the rest of your site another time). Adding Layers to Your Theme Then we need to create two extra layers inside SMF (one above the current page and one below it). Tonight we will prepare the way and cover some of this. The first step is to find out the 'id' of your chosen theme. To find this id you will need to check the link to "preview" it in your profile. You'll see it say "theme=xyz". Optionally you can view the 'id' in your database if you are happy searching through that. Next we need to run an SQL Query in your database, so login with phpMyAdmin or HeidiSQL, etc. Then process this query (put your id and db prefix into it first): REPLACE INTO [i][b]yourprefix_[/b][/i]themes (ID_THEME, variable, value) VALUES ([i][b]insert id here[/b][/i], 'theme_layers', 'site,main'); Again, please replace insert id here with the 'id' of your theme and replace yourprefix_ with the database prefix you set when you installed SMF. If you can get to this stage you are well on your way to integrating SMF into your website. If you have any problems with stages of this, let me know and I will go into more depth. Good luck Vulcan!
  8. You include the forums SSI.php in each of your pages by putting this line: <?php require("/var/www/vhosts/domain.com/httpdocs/forum/SSI.php"); Obviously you will need to change the URL to your SMF folder. Also make sure that this is the VERY FIRST LINE of your .php files. I am not entirely sure what point you got to in the guide, but what you are actually doing is putting your site INTO the SMF forum page, not putting the SMF code into your own page. Try reading through the guide from start to finish before you begin, so you have an idea of what it is doing. If you are still having problems I will make a more indepth description of what you need to do tomorrow evening (time for sleep now!). We will make sure we move this forward tomorrow.
  9. I hope you do not mind me quoting your PM Vulcan, but wanted to make this public so others can see it too. I was going to look through my SMF files and write a short guide on how to integrate SMF into your websites, however a quick check showed me that SMF beat me to it. You can view an official guide (which is the method I used) here: Guide - Integrating SMF into Your Website If you have any questions or need any help integrating your site just let me know. I know it can seem daunting at first but it is actually quite simple once you have done it once.
  10. If it is static HTML/CSS (or you can control the output) you could move the image inside of the text paragraph, so that if the image is not there the text can use the area. You could then give margins around the image to position/style it similar to how it is now. However this would require some significant changes to the current HTML (removing all the elements containing the image and the empty paragraph elements before/after the main one) so it appears like this: <p> <strong>En Prosecco gjord på ekologiskt odlade druvor. Utmärkt som aperitif!</strong> <img src="/tabort/images/stories/flexicontent/s_placeholderbild-1.jpg" alt ="Pizzolato Prosecco Spumante" /> </p> Another option would be to use PHP (or Javascript to check if there is an image and if not) to add a class to the paragraph so that it can be styled differently (extra width).
  11. I am in a similar position. I taught myself PHP and I am now thinking I would like to learn to create PHP websites in a more structured way, but using a framework like Zend seems very daunting.
  12. I faced the same challenge recently and after some research settled on using Small Machines Forum (SMF) as a forum and as a general login system for other content on the site. Once the forum is installed and running you can simply include the forums SSI.php file in your other pages which gives you access to many useful features. To begin you simply include the forum SSI.php file at the very first line of all your pages: <?php require("SSI.php"); ?> This then allows you to use many of the forums features/information inside your pages: Login Form: <?php ssi_login(); ?> Welcome Message: <?php ssi_welcome(); ?> Display Recent Forum Topics: <?php ssi_recentTopics(); ?> With some more advanced PHP you can also control access to content or entire pages using the SMF user levels. You can find more information on the SMF site and their SSI.php examples page.

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.