quinz
Forum Replies Created
-
Forum: Plugins
In reply to: E-mail subscription for multisiteAnyone?
Forum: Networking WordPress
In reply to: A widget issueOk thanks 🙂 I appreciate your help.
Forum: Fixing WordPress
In reply to: How to make a link to write new articlesI answer to myself as I found it out already: admin_url() function worked for me. F.e link to write new blog entry works with
admin_url('post-new.php')Forum: Fixing WordPress
In reply to: How to make a link to write new articlesLet’s add: I’m creating a custom meta widget with special links so what I need is the url to put in href-tags that it goes to right places in every subsite. I’ve been searching for wp functions to retrieve the url but I’m still with empty hands.
Forum: Networking WordPress
In reply to: A widget issueHi Andrea and many thanks to your reply,
this really solves one of the problems (I guess I just deactivate the widgets I don’t want to be in there and write the important widgets permanently into the sidebar.php)
There is still this first issue remaining. Unfortunately I’m not sure if you got the problem right. I don’t want to change widgets for all subsites at once 🙂 The thing is that they are somehow hidden in the beginning when a new site is been created, eventhough there are several widgets as default in the Primary Widget Area. But if I add for example the calendar widget into the primary widgets and then visit my sub blog, all the default widgets and the calendar appears. So what I’d like to know, is there a way to get those default widgets appear without adding and removing one widget everytime I create a subsite? 🙂
Forum: Networking WordPress
In reply to: Default themeThanks Andrea_r, this was very useful line 🙂
Forum: Alpha/Beta/RC
In reply to: Change Default ThemeI totally agree with Ivan. Changing the default theme would be a create help.
Forum: Fixing WordPress
In reply to: How to disable profile fields?Ok thanks for the help. I see what I can do.
Forum: Fixing WordPress
In reply to: set admin Color Scheme to subscriber ??This helped me out to change default color schemes: http://www.clickonf5.org/wordpress/change-default-admin-color-wordpress/5995
Forum: Fixing WordPress
In reply to: How to disable profile fields?Hello t31os_,
thank you for your reply. I really did miss that. It is quite close what I’m looking for but I still keep wondering if it’s possible to make it without javascript?
The thing is that if an user has scripts disabled in his browser and he/she even by accident changes the e-mail address, it may cause some problems later.
Forum: Fixing WordPress
In reply to: How to add full name automaticallyAh I solved the problem myself. I had to go by the wp_create_user function and use wp_insert_user for everything, this is the final working code if someone is interested:
function _create_user($username) { $password = $this->_get_password(); $email_domain = $this->get_option('http_authentication_auto_create_email_domain'); $useCompanyEmail = $this->get_option('http_authentication_auto_use_company_email'); require_once(WPINC . DIRECTORY_SEPARATOR . 'registration.php'); if($useCompanyEmail){ $user_email = $_SERVER['HTTP_EMAIL']; }else{ $user_email = $username . ($email_domain ? '@' . $email_domain : ''); } global $wpdb; $user_login = $wpdb->escape( $username ); $user_pass = $password; $first_name = $_SERVER['HTTP_FIRSTNAME']; $last_name = $_SERVER['HTTP_LASTNAME']; $userdata = compact('user_login', 'user_email', 'user_pass', 'first_name', 'last_name'); wp_insert_user($userdata); }Afterall it’s nothing but a modified version of wp_create_user
Forum: Fixing WordPress
In reply to: index.php doesn't loadGood that it worked out.
It’s not necessary to have an .htaccess file. It’s just for fine tuning additional configuration of your site. WordPress Multisite feature requires .htaccess file for some rewrite rules but if you go for that there will be good instructions how to set the whole thing up.
Forum: Fixing WordPress
In reply to: index.php doesn't loadSo seems like loading index.php might be disabled for that folder in your server settings (as apache config). You can also check your .htaccess file for possible rules for ignoring the index.php. Did you check that the content of the index.php looks correct?
As default it should just include couple of command lines:
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);Forum: Fixing WordPress
In reply to: index.php doesn't loadWhat happens when you go to the root of your blog? Does it give you a blank page? Index.php itself doesn’t output anything so maybe it’s some other page that doesn’t get called properly?
Forum: Fixing WordPress
In reply to: How to test if user is logged?I got it working!
Somehow this auth_redirect didn’t work for me (it got stuck on the login page and didn’t get through automatically) but I found also a very handy function to do the job:
if ( is_user_logged_in() ) { ... }The header.php was a very good idea, I put it there and now everything works smoothly. The users will get logged in automatically once they come to the frontpage 🙂