Go Back   Forums @ The Digital Fix > Gadgets and Gizmos > Computing Forum

Reply
 
Thread Tools Display Modes
Old 03-01-2014, 21:19   #241
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
I've been making some updates to my website this evening and while adding some more recent projects to the home page I got this message on that particular section of the WordPress dashboard:

Warning: Illegal string offset 'children' in /wp-content/themes/UltraWebStudio-v1.03/ultrawebstudio/adminoptions/extras.php on line 570

I just wanted to check to see what this could mean?

I'm hoping it is not as sinister as it sounds, with words like: "warning", "illegal" and "children"!

I had a look at line 570 of extras.php and couldn't see anything unusual, to my non-code savvy eyes.

PHP Code:
                // check for child elements
                
if (is_array($value['children'])) {
                    echo 
"<ul>";
                    
RecentProjectList($value['children'], $options);
                    echo 
"</ul>";
                **
                echo 
"</li>";
                
            ** 
// end (if separator) else statement
        
** // end foreach item
    
** 
Psycho
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread
Psycho is offline   Reply With Quote
Old 03-01-2014, 22:44   #242
AndyWilson
--------old-geek
 
Join Date: Jun 2000
Posts: 12,040
Thanks: 128
Thanked 444 Times in 205 Posts
Which line is 570?

Needs more code to be sure, but it looks like $value is a string when the code is expecting an array

This isn't standard WP code - it's part of the admin options for the theme - so it's difficult to say what's causing the problem with just a snippet

Last edited by AndyWilson; 03-01-2014 at 22:46.
AndyWilson is offline   Reply With Quote
Old 04-01-2014, 00:15   #243
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
Quote:
Originally Posted by AndyWilson View Post
Which line is 570?

Needs more code to be sure, but it looks like $value is a string when the code is expecting an array

This isn't standard WP code - it's part of the admin options for the theme - so it's difficult to say what's causing the problem with just a snippet
570 is the second line down: if (is_array($value['children'])) {

The theme is a bit out of date and I do need to install the new version. Currently it is v1.03 but the new version is v2.05.

The only reason I haven't updated it yet is that the new version will need me to pretty much re-build the website. I'll need to find a free day to do so.

I'm wanting to do it ASAP because the new version is also responsive.

Psycho
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread
Psycho is offline   Reply With Quote
Old 04-01-2014, 08:13   #244
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
don't waste time fixing this - dedicate that full day and upgrade your theme !
driver8 is offline   Reply With Quote
Thanked once by:
Psycho (04-01-2014)
Old 04-01-2014, 17:46   #245
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
Quote:
Originally Posted by driver8 View Post
don't waste time fixing this - dedicate that full day and upgrade your theme !
It looks like I might need a week to do that, rather than a day!

I've been having a play about with the updated theme at a different URL and it is TOTALLY different to the version I'm using.

They have changed everything and I'm having to learn how to build the website all over again!

I want to do this but I can see it getting in the way of actual work.

Fingers crossed I can crack it...

Psycho
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread
Psycho is offline   Reply With Quote
Old 04-01-2014, 18:49   #246
ljp
learned 2 ape the motions
 
Join Date: Jul 2000
Posts: 6,404
Thanks: 102
Thanked 136 Times in 111 Posts
Why havent you made a child theme so updates dont break too much?
ljp is offline   Reply With Quote
Old 04-01-2014, 19:24   #247
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
I'll have a look into that.

Cheers,

Psycho

PS. Are Child Themes easy to set up after a website has been built, say a year or two after, or are they only any good if you use them from the start? My website was originally built in 2010 and I don't remember anyone mentioning Child Themes back then. I've not really had any experience with them but I will force myself find out more about them and to start using them.
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread

Last edited by Psycho; 04-01-2014 at 20:14.
Psycho is offline   Reply With Quote
Old 04-01-2014, 20:44   #248
ljp
learned 2 ape the motions
 
Join Date: Jul 2000
Posts: 6,404
Thanks: 102
Thanked 136 Times in 111 Posts
I would update the site and make a child theme at the same time. Something is going to break if you don't update the theme anyway - it's also leaving you open to hacking.

A child theme takes a minute or so to do!

http://codex.wordpress.org/Child_Themes
ljp is offline   Reply With Quote
Thanked once by:
Psycho (04-01-2014)
Old 04-01-2014, 20:59   #249
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
Quote:
Originally Posted by ljp View Post
I would update the site and make a child theme at the same time. Something is going to break if you don't update the theme anyway - it's also leaving you open to hacking.

A child theme takes a minute or so to do!

http://codex.wordpress.org/Child_Themes
Cheers!

The new version of my theme comes with its own Child Theme files already set up. I've installed them the same way I would a normal theme and activated it on my test URL.

Once I've got it built on my test URL, using the Child Theme, then I'll copy it over to the actual URL.

I'll have another look everything when I get a quiet moment... which isn't that often!

Psycho
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread
Psycho is offline   Reply With Quote
Old 06-01-2014, 16:44   #250
Psycho
Trusted User
 
Psycho's Avatar
 
Join Date: Jul 2002
Location: Croydon, London
Posts: 10,268
Thanks: 870
Thanked 193 Times in 111 Posts
Has anyone had experience hosting a WordPress website with Demon.net?

The website that I have been working on is now ready to go live but I'm not sure if Demon.net is okay with hosting a WordPress website or whether I'll need to use a more dedicated website hosting company?

If they aren't, then it shouldn't be too hard to transfer the current domain name over to someone like Vidahost and to just host it there?

Demon.net wouldn't actually own the domain name, would they?

Psycho
__________________
Graphic Design Website: www.ph-design.co.uk
Twitter: @pHdesign2011
eBay Auctions: Nothing at the moment
Trader Feedback: Trader Feedback Thread

Last edited by Psycho; 06-01-2014 at 17:49.
Psycho is offline   Reply With Quote
Old 06-01-2014, 17:07   #251
douglasb
Suedehead.
 
douglasb's Avatar
 
Join Date: Feb 2001
Location: Exiled in England
Posts: 11,187
Thanks: 152
Thanked 959 Times in 564 Posts
No, but if you wind up transferring, there might be a fee to transfer the name to Vidahost, depending on what hosting package you go for.
douglasb is offline   Reply With Quote
Old 07-01-2014, 06:47   #252
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
Envato free files of the month including this well-rated WP 'accordion' plugin Responsive Searchable 3 Level Accordion For Wordpress (click the 'Live Preview' button for a demo).
driver8 is offline   Reply With Quote
Thanked once by:
mikthe20 (09-01-2014)
Old 08-01-2014, 06:25   #253
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
This is one crazy-ass list ! But worth a quick look, particularly as all the plugins are listed as links direct to the WP repository.

The Top 1000 most used WordPress plugins

I found a couple of sliders that look worth checking out.
driver8 is offline   Reply With Quote
Thanked 2 times by:
Chris Locke (12-01-2014), KeyserSoze (08-01-2014)
Old 09-01-2014, 16:53   #254
KeyserSoze
Trusted User
 
KeyserSoze's Avatar
 
Join Date: Jan 2001
Location: London
Posts: 12,795
Thanks: 829
Thanked 464 Times in 249 Posts
I recently built a WP site for someone which features a slideshow on the front page. I decided to use an external JQuery plugin rather than a WP plugin as I couldn't find one suitable.

The images were not meant to change often, but now the site owner wants to know how they can do it themselves. I've simply created an unordered list of IMG tags which the Jquery slideshow hooks onto.

So to change images, they need to modify the .php template page with a text editor and replace the IMG tags to point to new images. As you can imagine for a non web developer it's not ideal.

So I have a few options here:
  • Search harder to find a suitable WP plugin
  • Make the image filenames standard so they simply need to upload a new image to the gallery and ensure they use standard naming conventions
  • Develop an admin options page on the Dashboard which gives them a UI to modify the images

The last one will take the most time and will end up charging more for. Can you think of a better way to handle this?
KeyserSoze is offline   Reply With Quote
Old 09-01-2014, 18:03   #255
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
My first question is an obvious one - did you check to see if someone has made a WP plugin version using your chosen JQuery ?

Failing that, secondly - what feature of your slider could not be met by a plugin ?
driver8 is offline   Reply With Quote
Old 09-01-2014, 19:27   #256
ljp
learned 2 ape the motions
 
Join Date: Jul 2000
Posts: 6,404
Thanks: 102
Thanked 136 Times in 111 Posts
Install a plugin that just picks ANY image from a certain folder and give them FTP access to the folder. That has to be the easiest option.
ljp is offline   Reply With Quote
Thanked once by:
KeyserSoze (10-01-2014)
Old 10-01-2014, 11:00   #257
KeyserSoze
Trusted User
 
KeyserSoze's Avatar
 
Join Date: Jan 2001
Location: London
Posts: 12,795
Thanks: 829
Thanked 464 Times in 249 Posts
I am using bxslider, and actually there are two WP plugins! Don't know why I didn't see this before Or possible I tried them and they weren't as customizable as I wanted. I basically need full control over the look and feel of the slider.

Going to give them a go now.

Quote:
Originally Posted by ljp View Post
Install a plugin that just picks ANY image from a certain folder and give them FTP access to the folder. That has to be the easiest option.
This is actually a really good idea. Although I need the images to be clickable links as well which can easily be changed by the user.


EDIT: It's not really working out. Found two WP plugins which use this slider. One only has full set of options if I purchase the premium version and the other only supports shortcodes and doesn't allow me to put the slider directly in my theme file.

Perhaps there is an alternative? Basically want a horizontal slider which can display 3 images on each page, will auto scroll but with left and right arrow navigation buttons. But the look and feel needs to be completely customizable in CSS. Any suggestions?

Last edited by KeyserSoze; 10-01-2014 at 12:57.
KeyserSoze is offline   Reply With Quote
Old 10-01-2014, 14:13   #258
KeyserSoze
Trusted User
 
KeyserSoze's Avatar
 
Join Date: Jan 2001
Location: London
Posts: 12,795
Thanks: 829
Thanked 464 Times in 249 Posts
I ended up creating a new widget area in the place of if the ul list - http://codex.wordpress.org/Widgetizing_Themes

Installing the 'Enhanced Text' widget plugin and just put the HTML code into the widget box. Reason I didn't use the default Text widget is because it adds a .textwidget class around it and ruins the slider.

Still not the most user friendly solution as the site owner needs to modify the HTML code but at least they don't need to go go in via FTP, down the .PHP template file, modify it and then upload it again

Last edited by KeyserSoze; 10-01-2014 at 14:14.
KeyserSoze is offline   Reply With Quote
Old 12-01-2014, 08:04   #259
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
This looks good for a freebie, despite the weird name and Lite status - Nictitate by Kopatheme (and here at WP)
driver8 is offline   Reply With Quote
Old 13-01-2014, 13:09   #260
driver8
M0D2.0 (trainee)
 
driver8's Avatar
 
Join Date: Jan 2003
Location: Malé, Maldives
Posts: 12,112
Thanks: 2,893
Thanked 2,992 Times in 1,299 Posts
Has anyone done a WP site for a guest house, or anything needing online bookings ? Any tips to share ?
driver8 is offline   Reply With Quote
Reply

Bookmarks

Tags
plugins, themes, Web Design, Wordpress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Links not working in wordpress???? Guest 48579 Computing Forum 2 28-08-2006 04:41
How to build a website which allows others to build a site ? KeyserSoze Computing Forum 18 08-10-2005 23:14
Wanting to build a website Guest 16622 Computing Forum 8 13-07-2004 18:25

All times are GMT. The time now is 19:35.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.qq
Copyright ©2000 - 2021 Network N Ltd.