The MU forums have moved to WordPress.org

WordpressMU Theme Development (23 posts)

  1. andrewrixon
    Inactive
    Posted 17 years ago #

    Dear All,

    I was wondering if there are any guidelines or comments regarding how theme development for wordpressMU is different from the based wordpress? (Which there is plenty of doco on...)

    Any info or responses more appreciated...

    Warm regards,
    Andrew

  2. strixy
    Member
    Posted 17 years ago #

    Ditto...

  3. andrewrixon
    Inactive
    Posted 17 years ago #

    Dear All,

    Has anyone had any success with general Wordpress Themes under the latest stable wordpressMU release? (I've noticed that wordpressMU seems to be expecting an index.html file where as normal wordpress themes have the index.php?)

    I recently downloaded several themes from the themes.wordpress.org site and have placed them under the /wp-content/blogs/myBlog/templates directory.

    The error I'm getting is:

    Smarty error: Unable to read resource: index.html in Smarty.class.php on line 1088.

    Any ideas?

    Regards,
    Andrew

  4. donncha
    Key Master
    Posted 17 years ago #

    Wordpress themes are completely different. If you really want to use WP themes then add this code to wp-inst/index.php:
    -------------------------------------------

    if( is_dir( "./wp-content/themes" ) )
    {
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    return;
    }

    -------------------------------------------
    And make sure your themes are in wp-inst/wp-content/themes/
    Now, go into the backend, fire up wp-admin/themes.php and you can choose another WP theme!

  5. andrewrixon
    Inactive
    Posted 17 years ago #

    Thanks! Will try it out...

    Regards,
    Andrew

  6. andrewrixon
    Inactive
    Posted 17 years ago #

    Hi,

    All was successful, however....

    When I view the 'new' themes they all come through the same, plain vanilla flavoured with one single column.....

    Is this a feature? :)

    Regards,
    Andrew

  7. webderby
    Inactive
    Posted 17 years ago #

    At first a little offtopic: I cant post a new thread. Is it normal?

    Now on the subject. Ive few questions.
    1. When ive edited a template it did not shown in its new state. I have to manually delete smarty cache. Where is a bug?

    2. Its a specific to my mother-country. Im a russian so my blog is in this language as well. The problem is that WPmu sometimes shows unreadable symbols. It would be a server config problem but sometimes its normal cyrillic characters. Im a little confused.

    3. Whats the differents of handlers in WP and WPmu. How i could write a plugin with some function and then insert a result of it in the template?

  8. NetAndif
    Inactive
    Posted 17 years ago #

    To post a new topic, scroll down on the main page and select a forum to post to. Then scroll down again an you'll see the form.

    If you edit the template directly in wpmu under 'files', the smarty cache will be cleared after submitting the changes. This happens also for other admin actions such as writing a new post or page.
    Otherwise the smarty cache will not be auto-cleared.
    This is caused by the smarty cachelifetime set to infinite by default.

    About the characters problem. Maybe they're caused by the charset (utf-8 by default). Change it to a character set which is suited for your language. Try iso-8859-1 for example.

    Plugins do work the same as in wp. But the output must be given to the template via smarty functions. There are several of them included in class-smarty.php and the smarty-plugins. You can write your own ones.
    It might be of help to take a look at smarty.php.net, but you could ask me if you have any questions about this.

  9. webderby
    Inactive
    Posted 17 years ago #

    wow, im here again! A little about this forum:

    I had many mysql errors yesterday when just opened WPmu forum page and could not even login.

    Errors are:
    bbPress database error: Unknown column username in where clause
    bbPress database error: Unknown column user_id in where clause

    As for my first post about thread posting: I could register, login and even post a reply but could not post a new thread because of mysql errors.

    To the subject. Ive resolved the language problem. Ive added few lines to htaccess files and now all working fine.

    Also ive modified an upload.php to give right links for images (and add thumbnails links). Ive plans for additional changes to allow users have private photoalbums. Easy concept: add a new folder and put a folder chooser to the upload page. Then add a really light script for showing content of this folder. I dont want any sql, just as easy as possible.
    A gallery link would be like site.com/gallery/?username

    One themplate (and not changable by users) for all but easy :)

    Now im optimizing few good themes from WP to WPmu.

    2NetAndif: i dont know smarty at all. Could you give me a simple example of a plugin like this:
    - plugin has a function to modify stings
    - it can accept argumet as a string and output a result
    - how it can be inserted into templates

  10. donncha
    Key Master
    Posted 17 years ago #

    You should probably have a look at the unstable version of wpmu - I'm moving away from using Smarty and there are lots of changes. Look for the "MU Progress" post on this forum for more!

  11. NetAndif
    Inactive
    Posted 17 years ago #

    Just to be out of curiousity: do you continue to support smarty templates? Can we still use them in later wpmu releases?

    Btw., just in case you didn't realize this... it seems that the unstable release could not be successfully installed by anyone yet... :(

  12. 2shoes
    Inactive
    Posted 17 years ago #

    Hi,

    Dumb question maybe? But how can you alphabetize archived posts:

    1. For certain categories
    2. Or in general.

    I know how to do this in regular Wordpress, but can't figure out the Wordpress MU way.

    Thanks!

  13. NetAndif
    Inactive
    Posted 17 years ago #

    because i could not post a new thread (bbpress error) i'm replying here with another error :(

    Installed the latest unstable release (2005-07-08) on the same location where i installed all the previous ones. As always, i cleared out db and files first. After successfully creating the tables and hitting 'submit' for the blog title and email, i got this error:

    Fatal error: Call to undefined function: glob() in /***/wp-inst/wpmu-settings.php on line 62

  14. NetAndif
    Inactive
    Posted 17 years ago #

    Ok, i knew i'd have to update someday.
    But: never touch a running system. Especially if it is rock-stable.
    So, until i have a new testing platform, i'll stick with the older releases...

  15. webderby
    Inactive
    Posted 17 years ago #

    2donncha: Ive downloaded the stable release 1.5.1.2 (im careful with software :)). As for smarty i understood from the dev blog that you just added another template system (and did not remove the old one).

    BTW: i think clear php themplate system (as standard WP has) not simple and secure...

  16. donncha
    Key Master
    Posted 17 years ago #

    NetAndif - looks like glob was introduced in PHP 4.3, can you upgrade?
    http://ie.php.net/glob

  17. donncha
    Key Master
    Posted 17 years ago #

    webderby - The unstable version is moving away from using Smarty. For the first "stable" release of that I'm aiming for read-only templates so that users can't edit templates, and potentially insert damaging PHP code.
    Version 1.6 of WP is supposed to come with it's own tagging system, probably along the lines of Smarty tags. Maybe I can even help them with that!

  18. webderby
    Inactive
    Posted 17 years ago #

    I like WPmu template system more because it uses less files (its easier to edit). Its really good for blog farms.

  19. webderby
    Inactive
    Posted 17 years ago #

    Ive finally converted almost-spring theme from WP to WPmu. Its really cute. If anybody wants to test it just write me a few lines (webderby at mail dot ru). The only bad thing is that it requires some changes in the internal WPmu files (because of the WPmu template sctructure some hml formatting is located in the core functions, i hope it would be changed in next releases).

  20. Farms
    Member
    Posted 17 years ago #

    Hiya,

    I just tried a clean install with the 12 July version, all went swimmingly until I got to clicking submit after filling in weblog name and email addy.

    Got this error message... any idea why?

    "Fatal error: Call to undefined function: update_user_cache() in /home/brsblogs/public_html/wp-inst/wp-settings.php on line 126"

    Cheers, James

  21. donncha
    Key Master
    Posted 17 years ago #

    Last night Ryan submitted a few patches to WP that included the creation of a new include file. That wasn't included by wp-settings.php until I updated it but tomorrow's unstable snapshot should work!

  22. webderby
    Inactive
    Posted 17 years ago #

    Sorry i cant post a new thread again so:
    Ive modified simplephotos gallery script (http://ppleyard.org.uk/software.php) to allow WPmu users have its own galleries. One unmodified template but simple and nice looking (and auto thumbs generating with ability to choose a thumb size).

    Ive also modified WPmu upload.php file to choose path for upload images (images or photos).

    mail me if you want a source: webderby at mail dot ru

  23. andrewrixon
    Inactive
    Posted 17 years ago #

    Hi,

    I was wondering what timeframe you have in mind for a new stable release of the WPMU inclusive of the new wp_blogs table?

    Would this also contain working WP themes?

    Thanks muchly,

    Andrew

About this Topic

  • Started 2024 years ago by andrewrixon
  • Latest reply from andrewrixon