Web aplikacije, web servisi i software Frameworks, web servisi, programi, plugin-ovi, ekstenzije korisni za razvoj web sajtova. Sponzor: |
|
Alati teme | Način prikaza |
|
20. 02. 2008. | #1 |
profesionalac
Qualified
|
Wordpress i Authenticate plugin
Pozz,
prvo, u opcijama mi stoji ovako WordPress address (URL): http://domain.com/wordpress Blog address (URL): http://domain.com i kada pristupim na http://www.domain.com wp sam prebaci na http://domain.com sto je ok, valjda (?).. stavio sam ovaj dole plugin, da bi omogucio samo za registrovane korisnike, medjutim kada idem na http://www.domain.com nakon login-a redirektuje me na http://domain.com/wordpress/wp-admin/index.php , dok je sa http://domain.com OK, pokaze mi blog odmah. Ima li neko ideju sta ne valja, tj. kako da dobijem blog preko www.domain.com? Kôd:
<?php /** * Plugin Name: Authenticate * Plugin URI: http://xavisys.com/wordpress-authentication-plugin/ * Description: Instantly requires that users be logged in to visit your site. Also serves as a good base for expansion. No interface, just activate and go! * Author: Aaron Campbell * Version: 1.0.0 * Author URI: http://xavisys.com/ */ /** * wpAuthenticate is the class that handles ALL of the plugin functionality. * It helps us avoid name collisions * http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions */ /** * If the current page isn't 'wp-login.php' or 'wp-register.php', ensure the * user is logged in. * * @return void */ function check_auth_to_read () { //If the current page isn't 'wp-login.php' or 'wp-register.php' redirect if ((strpos($_SERVER['PHP_SELF'], 'wp-login.php') === false) && (strpos($_SERVER['PHP_SELF'], 'wp-register.php') === false)) { auth_redirect(); } } /** * Add filters and actions */ add_filter('init', 'check_auth_to_read'); |
20. 02. 2008. | #2 |
Ivan Dilber
Sir Write-a-Lot
|
daj .htaccess da vidimo
__________________
Leadership is the art of getting people to want to do what you know must be done. |
20. 02. 2008. | #3 |
profesionalac
Qualified
|
Prazan je, tj. ima samo jednu liniju za ErrorDocument 404.
Ali cudno skroz, evo probam na dva racunara, sa jednog se ponasa kako sam gore opisao, a sa drugog u oba slucaja me baca na blog (http://domain.com) |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
Wordpress MU i Video/YouTube plugin | SSpin | Web aplikacije, web servisi i software | 2 | 10. 01. 2010. 14:43 |
RSS agregator plugin za Wordpress | Veljko | Web aplikacije, web servisi i software | 21 | 09. 01. 2007. 13:48 |
Moj prvi plugin za Wordpress: Post in Clouds | cvele | Web aplikacije, web servisi i software | 3 | 26. 11. 2006. 18:15 |