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.

WebTechGlobal

Members
  • Joined

  • Last visited

  1. Hi, I'm offering £10 in paypal if someone already happens to know the fix for this problem and £20 if you can add anything to the code that will enhance the editor. I installed the WordPress WYSIWYG editor to my plugin CSV 2 POST PLUS however the multimedia functions (those four faded buttons at the top) do not work, well actually I can sometimes get it to display a form but the form appears half off screen! I get it to display with some fault when changing the order of these lines... <?php wp_tiny_mce(false); add_filter('teeny_mce_buttons', 'teeny_mce_buttons'); wp_enqueue_script('page'); wp_enqueue_script('editor'); do_action('admin_print_scripts'); wp_enqueue_script('thickbox'); add_action( 'admin_head', 'wp_tiny_mce' ); add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); if(isset($post_content)) { the_editor($post_content, 'content'); } else { the_editor('', 'content'); } ?> I'm getting a lot of experiance with wordpress, I created a half decent plugin and its getting advanced. But this stuff has little support available so any help would be great. The only idea on what is causing the problem that I've thought of is... add_action( 'admin_head', 'wp_tiny_mce' ); It often has an array for the second value and I think it may be the page that needs passed along with "wp_tiny_mce" function or something. The offer is £10 to check and confirm how these lines should be to display this editor. The right person could do this in 10-20 minutes and I'll pay £10 on Paypal, £20 if you can add anything these to the code that will enhance it. Ryan
  2. Hey this could be the sort of challenge someone likes if they have never done but. Right now I'm pretty much stuck however. If you look at the foreach loop below you will see that the function has $i at the end of it. I'm trying to use eval to make this happen but I get all the usual T Variable errors and unexpected characters etc Anyone got any ideas? This is for a plugin, won't release details but if someone gives me a fix I'll put your name and site as a contributor permanent so you will get some traffic from it. Best I can do, cheers all. foreach ($result as $result) { eval (' function wpblogs_iframeadmin_sublevel_page_$i() { ?> <iframe src ="http://www.webtechglobal.co.uk" width="100%" height="1700px"> <p>Your browser does not support iframes.</p> </iframe> <?php } '); $i++; }
  3. I never even thought to recommend that myself but I 2nd it. If your planning on going further than just the interface of CMS and really getting to know PHP then taking the time to set xampp up locally is the way to go. Vista makes it far easier to get Apachi working locally where XP might require some configuration. It can be annoying for beginners but still well worth doing.
  4. The code is probably fine and I would avoid changing any of it if I were you. CMS are usually ready to work. You need to be looking for a solution to file persmissions on your hosting. Overall however all hosting is the same. You find the file mentioned in the error, right click on it (or something) and change it's CHMOD settings. Your homework should be on File Persmissions and CHMOD not PHP, unless there really is a fault in the code but thats not indicated in the error.
  5. Overall its a file permission issue but personally I've only had errors when a folder CHMOD is incorrect I've never had errors like you are. I 2nd on the contacting your hosting for the next step if you really want to get it running on the free hosting.
  6. Here is the while loop code I use, pretty standard... while (($csvrow = fgetcsv($handle, 9999999, ",")) !== FALSE && $row_counter != $row_limit) At some point during this loop I would like to remove the CSV file row once it's processed. Struggling to find an answer that does not involve putting the whole file into an array which is bad news for my application. If it is the only way please let me know how best to do it that way and I will figure something out. But ideally I need a solution of removing the rows. I'm dealing with CSV files of up to 1 million rows. On average around 200,00-500,000 rows maybe so putting them in an array is not so good. Even more so because I only process few lines at a time, stop then start again. The reason I want to delete is to prevent the same rows being processed in any way, multiple times. So file is opened, 2-5 rows processed and stored in database and then script stops. I've seen fwrite being used in some way for a CSV file to delete files but it never really made sense to me. It was possible writing BLANK space so maybe this is an option?! Thanks peeps, oh and the project I'm working on is for http://www.webtechglobal.co.uk so if someone provides a solution I will get your site link on my blog. Ryan
  7. Right I get you. I'll consider that. I realised either way I do this, some users will still get it wrong but getting this problem sorted will minimise problems. The plugin is nearly ready to use and will need a lot of improvements so I think this solution will be in a later update. Will try to remember to reply here on the outcome. I have a csv file with 700,000 rows and my users will also so I might find a manual approach is the only approach but if users type in values that are not a match to the csv column then it just wont work. Imagine 100,000 posts in the wrong cagegory for example. I can see people getting upset lol
  8. Do you have much web design experiance? A hosting that installs the CMS automatically for you makes life a whole lot easier. i.e. hosting I provide installs WordPress, Joomla, Drupal and some others with 2-3 clicks! Hosting does not need to be expensive either, I charge £30 a year for hosting. I would consider it if your free hosting has limitation especially if you plan on making your site grow. I know you need a specific solution in terms of your CMS but a none free web host will probably still make life easier.
  9. It's something like this... <? wp_list_pages('title_li=&depth=1&child_of='.$post->ID); ?> The additional piece of code is depth which determines the level of heirarchy. I think thats what your asking! If you want to display them unrelated to post ID do this... <? wp_list_pages('title_li=&depth=1'); ?> That will list all pages your blog has from the 2nd level as 0 is the first level which I assume you know. Hope it helps Ryan
  10. Hey how you doing, First of sounds like your hosting is pretty basic. I advise ya to find better hosting really and don't limit your ambitions due to a restrictive package. Any good CMS uses a database and even the most basic PHP websites use a database so I'm surprised your hosting has none. Also sounds like your not decided on what CMS your going to use and I currently have an offer for FREE WordPress installation, hosting and domain! All can be setup in a day and the only catch is that I put a little advertising on the site in order to regain some revenue. Let me know if your interested. I can provide good hosting at low cost for Joomla or Drupal also however I do not install them free right now as I've only just got outa uni and not had time to figure them out. Ryan Add webtg@hotmail.co.uk or email ryan@webtechglobal.co.uk
  11. Hey all, What would be the best approach to getting all unique values from a single column in a CSV file? If someone provides a good answer I will include your name in my plugin information with a link to your site. An effeciant approach to my problem may help make this plugin far better so I'd be happy to give a little rec. My wordpress plugin will deal with CSV files of over 500,000 rows of data and I need a list of unique values from a single column selected by the user. I guessed looping through all rows and all columns in the standard way then recording any new values found, will take far too long, or will it?! Any ideas? In the event you interested, my plugin will allow the uploading of CSV files which are then processed to create new posts with each row of data. The csv data does not have to be wordpress related and the main aim of the plugin is to allow the injection of affiliate data to blogs. The plugin is almost finished, allows users to assign CSV columns to parts of posts and now I need to allow assignment of category to specific data values i.e. if it is a book blog the CSV file data column for GENRE may be selected and unique values would be used to determine what category it goes in exactly. Thanks everyone Ryan
  12. Hey I think I can be quick explaining this and you will understand. I'm creating my first WordPress plugin which requires upload of 10MB CSV files for example. I added this so far... define('WP_MEMORY_LIMIT', '64M'); ini_set('post_max_size', '50M'); ini_set('upload_max_filesize', '50M'); print "upload_max_size: ".ini_get("upload_max_filesize")."<br>\n"; print "post_max_size: ".ini_get("post_max_size")."<br>\n"; print "max_input_time: ".ini_get("max_input_time")."<br><br>\n"; I've used code like this before in basic PHP scripts but this is not working and the output is... upload_max_size: 2M post_max_size: 20M max_input_time: 200 Not sure where to go from here. I keep finding solutions that involve new ini files or editing htaccess file but you cannot do this for a plugin can you? There are plenty file upload plugins, looked at some of their code and cannot find any methods. Are they uploading files using FTP or something?! Any help on this would be fantastic. First time asking for help on this forum and "I'm feeling lucky". Famous quote that, anyone know what company it came from and on what website? Ryan
  13. Great question really and the answer can depend on the person. You sound like your totally new to it so I suggest getting and following 2 books. CSS Mastery and DOM Scripting by Friends of ed. Those were recommended at University and despite now coding advanced PHP I still occasionally have a little look in them. If you follow them from start to finish you should learn a lot but if you also do your own thing at the end of each chapter you may learn more. i.e. Look at what you have practiced following the book then apply it to your own project that you are slowly building up over time. Do this weekly and in 2-3 months you should cover a lot of ground. Tools are important! Starting of with the right software will really help. Books explain what software to use and where to get it. Notepad ++ is basic and recommended if you want to learn things by heart. Also stick to HTML and CSS until your cosy with it, stay away from PHP don't even consider going there until your excited about web design and having a future in it.
  14. Wonder how long it took them to put that site together?! Nice resource cheers

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.