Home › Forum › Problemi Vari con WP › due blog , una registrazione e collegamento…
-
AutorePost
-
-
10 Gennaio 2009 alle 21:46 #9055Samuel93Partecipante
intanto complimenti per wordpress… lo uso tantissimo e riesco sempre ad adattarlo alle mie esigenze
questa volta però ho un problema, quindi apro questa discussione affinchè qualcuno di voi (che certamente siete più esperti di me) possa aiutarmi….vi spiego il mio problema:
stò preparando un nuovo sito… che però necessiterebbe di una divisione in due categorie… (es: 1. ricette di cucina 2. video-ricette)… fino a qua non ci sarebbero problemi se nel mio spazio installassi 2 volte il cms (uno per ctagoria) ma ci sono problemi poichè vorrei raggiugere degli obbiettivi:
– che gli utenti si registrassero una volta
– che la gestione dei due siti fosse divisa
– che ci fosse una sorta di portale (anche una semplice index) per linkare entrambi i portali.
– ogni blog deve avere una propria gestione della barra link nel menu orizzontale
c’è qualche mod/plugin che permetta di raggiungere i miei obbiettivi?
Grazie già da ora e Buona Serata!!!
Samuel
-
10 Gennaio 2009 alle 22:48 #61063degraPartecipante
Non è possibile usare due WP con le stesse credenziali, a meno di non usare (creare) uno script che alla registrazione di un utente crei un utente identico nell’altro WP. Però non ho idea della fattibilità (e della sicurezza) di una cosa simile.
Il portale è semplice: index.html con i link ai due siti, posti in due cartelle separate (wp1 e wp2)
Se i blog sono due, avranno tutto diviso di conseguenza.
Ma utilizzare un solo cms con 2 categorie (con eventuali sottocategorie) e gestirlo usando 2 pagine come se fossero 2 home?
-
10 Gennaio 2009 alle 23:20 #61064wollyAmministratore del forum
se sono sullo stesso database puoi usare le tabelle utente di uno dei due per tutti e due.
Cerco nel codex le istruzioni.
-
10 Gennaio 2009 alle 23:34 #61066wollyAmministratore del forum
Custom User and Usermeta Tables
CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE are used to designated that the user and usermeta tables normally utilized by WordPress are not used, instead these values/tables are used to store your user information.
define(‘CUSTOM_USER_TABLE’, $table_prefix.’my_users’);
define(‘CUSTOM_USER_META_TABLE’, $table_prefix.’my_usermeta’);
http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables
-
11 Gennaio 2009 alle 1:19 #61068degraPartecipante
Interessante, non pensavo alla condivisione delle tabelle
-
11 Gennaio 2009 alle 7:17 #61069Samuel93Partecipante
scusate ma non me ne intendo tantissimo e non ho ben capito 2 cose:
1. @degra: cosa intendi cos: gestirlo usando 2 pagine
2. @wolly: grazie già da ora, ma non ho ben capito cosa devo fare:) (se puoi farmi capire con un esempio te ne sarei grato)
p.s. aggiungo che nell’home principale vorrei che si vedessero gli ultimi post di entrambe le categorie (tipo http://www.ilmiointernet.com/) che soluzione potrei trovare?
-
11 Gennaio 2009 alle 8:18 #61071SteveAglAmministratore del forum
1) Fai due installazioni di WP usando lo stesso DB ma indicando due prefissi tabella diversi (es blog_ e blog2_, poi nel config di blog2 metterai le stringhe segnalata da wolly indicando come tabelle utenti e metadata utenti quelle dell’altro blog.
2) Tale operaione va fatta all’atto della creazione del secondo blog, se la fai dopo aver creato i due blog puoi avere problemi col secondo quando cerchi di fare il login.
3) Per la pagina comune, dipende da come organizzi il sito, se i due blog saranno sottodirectory o sottodomini del dominio principale o se uno dei due sarà il blog principale. dettaglia…
-
11 Gennaio 2009 alle 9:24 #61072Samuel93Partecipante
allora… non so spiegarmi proprio bene.. quindi vi posto questo esempio perfetto:
vedete che ci sono in home le ultime news di Scoperte, ritrovamenti e news dal mondo dell’Archeologia e ricette? ecco.. cosଠvorrei che si strutturasse l’home… poi nel menu (sempre con l’esempio delle ricette) metto: ricette e videoricette e cliccando su ricette vedo solo le ricette, su video-ricette solo le video ricette… non so se sono riuscito a spiegarmi meglio…
-
11 Gennaio 2009 alle 9:51 #61075wollyAmministratore del forum
usa le cateogorie.
-
11 Gennaio 2009 alle 9:54 #61073Samuel93Partecipante
ehm, scusate ma non ho mai fatto queste cose strane… se potete spiegarmi bene come fare…e come mettere in home le ultime di ogni categoria… grazie ancora per il GRANDISSIMO aiuto che state dandomi…..
-
11 Gennaio 2009 alle 9:58 #61076wollyAmministratore del forum
Mi sembra che tu proprio non conosca wordpress, l’uso delle categorie è proprio la base.
Comincia a leggere nel Wiki “dissezione di un tema” poi leggi i template tags, nel tuo caso quelli che riguardano le categorie (cerca categories) e poi per dargli l’aspetto che vuoi tu studia i CSS su http://css.html.it
ciao
-
11 Gennaio 2009 alle 10:00 #61077wollyAmministratore del forum
e poi ovviamente devi studiare il “loop” e “query_posts” tu non stai chiedendo un aiuto tu stai chiedendo che qualcuno scarichi il tuo tema e te lo rifaccia, anche se non sai che stai chiedendo proprio questo
-
11 Gennaio 2009 alle 12:32 #61084Samuel93Partecipante
ok… ora leggo
e per mettere in home le ultime news di una e dell’altra categoria come nel sito linkato in precedenza?
-
11 Gennaio 2009 alle 13:00 #61086SteveAglAmministratore del forum
Finche non spieghi come pensi di organizzare il sito sarà dura consigliarti, ripeto:
Vuoi avere tuosito.it/blog1 e tuosito.it/blog2 o avrai tuosito.it per il blog 1 ed il secondo blog sarà una sottodir o un dominio di terzo livello? la seconda struttura rende semplice fare quello che vuoi (quasi) la prima no.
Fare due siti per avere due categorie di ricette (video e non) mi pare una complicazione affari semplici… io mi fermerei e ripenserei al sito ed alla sua struttura, non capisco perchè se cerco le ricette sulle minestre debba andare in due siti diversi per vederle tutte…
-
11 Gennaio 2009 alle 13:07 #61088Samuel93Partecipante
ok… quindi mi consigli di fare un blog e due categorie ricette e video-ricette, giusto?
-
11 Gennaio 2009 alle 13:35 #61090SteveAglAmministratore del forum
Esatto… le rivcette e videoricette saranno solo altre due categorie oltre ad d altre che avrai tipo prim secondi etc etc
-
11 Gennaio 2009 alle 13:40 #61092Samuel93Partecipante
ok… fino a qua deciso… quindi primi secondi ecc saranno come sottocategorie… giusto???
ora il problema e mettere le ultime in due sorte di box con le ultime ricette con l’immagine davanti come nel link sopra indicato… come dovrei fare???
grazie mille ancora per l’aiuto che mi state dando…
-
11 Gennaio 2009 alle 13:57 #61093SteveAglAmministratore del forum
Sottogategorie no.. perchè non puoi avere due sottocategorie identiche
Per la seconda domanda.. non hai letto ancora quelloc he wolly ti ha indicato vero? Senza alcune basi è difficile spiegare se non prendendo il tuo tema e scrivendo per te il codice, cosa possibile… ma non qui e non gratis
-
11 Gennaio 2009 alle 14:17 #61094Samuel93Partecipante
se non posso avere sottocategorie identiche come posso fare???
io avrei voluto fare cosଠ(esempio)
1. ricette
– primi
– secondi
– dessert
2. video-ricette
– primi
– secondi
– dessert
e poi mettere un link nel menu orizzontale con ricette e video-ricette che porta alle due categorie
come posso fare se non si può?
-
11 Gennaio 2009 alle 15:45 #61101SteveAglAmministratore del forum
Ripeto… usando le sottocategorie per vedere tutte le paste al forno devo andare a guardare in due posti.. lenella sottocategoria di video ed in quella delle ricette? Pare sensato? Quelle che tu vuoi come sottocategorie devon essere categorie… le sottocategorie le userai per differenziare ad esempio i prim in minestre paste risotti etc…
Se poi vuoi avere pagine che abbiano solo le ricette viedeo dei risotti… ripeto prima leggi quello che ti è stato pproposto.. poi ne riparliamo, quando hai ben chiaro come è fatto un tema WP etc… se no ripeto l’alternativa è farsi fare le cose prefatte e stop… se però sino ad ora non hai voluto leggere… che devo dirti… mi chiedo perchè io debba continuare a rispondere a domande sempre identiche.
-
11 Gennaio 2009 alle 16:16 #61105Samuel93Partecipante
allora… lascio sospeso per qualche tempo il discorso dei temi… ora voglio chiedervi consiglio per il discorso delle due categorie… non capiscoooooo….
-
11 Gennaio 2009 alle 16:26 #61107SteveAglAmministratore del forum
C’è poco da capire due sottocategorie identiche non si possono avere punto… inoltre ho spiegato perchè mi pare sbagliato avere anche se fosse possibiel due sottocategorie identiche… il resto è solo questione di programmazione di WP per far apparire cose in maniera più complessa di quella base (click su una categoria appaiono gli articoli relativi…) in altro modo non saprei come spiegarlo oltre a come l’ho fatto… è solo questione di logica su come organizzare i dati…
-
11 Gennaio 2009 alle 17:06 #61111Samuel93Partecipante
ok… che non si può fare l’ho capito… quindi vi chiedo: cosa fareste se foste al mio posto?
-
11 Gennaio 2009 alle 17:25 #61114SteveAglAmministratore del forum
Ho già risposto:
Ripeto… usando le sottocategorie per vedere tutte le paste al forno devo andare a guardare in due posti.. lenella sottocategoria di video ed in quella delle ricette? Pare sensato? Quelle che tu vuoi come sottocategorie devon essere categorie… le sottocategorie le userai per differenziare ad esempio i prim in minestre paste risotti etc…
Però non avendo idea di come poi i dati appariranno in che modo si gestiranno rimane difficile dire altro (oltre che essere OT) perchè magari risulta utile associ altre ai post altre categorie o usare i tag etc…
-
11 Gennaio 2009 alle 19:20 #61127Samuel93Partecipante
sennò… piccola curiosità per risolvere il tutto… esiste qualche plugin per i video che crea una categoria a se? (curiosità ) le mie speranze si stanno ravvivando
-
11 Gennaio 2009 alle 19:28 #61128SteveAglAmministratore del forum
plugin video a tonnellate che creano una cateogoria a se non vuol dire nulla.. ti avresti bisogno di avere una tassonomia particolare che duplichi quella delle categorie, con relativi tag per i temi etc etc… c’è un plugin:
http://wordpress.org/extend/plugins/custom-taxonomies/
ma non so se riuscirai ad usarlo… e sopratutto a modificare il tema che usi in maniera opportuna. Plugin mai usato e per la cui assistenza devi rivolgerti allo sviluppatore.
-
21 Febbraio 2009 alle 11:15 #62964desdredPartecipante
Custom User and Usermeta Tables
CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE are used to designated that the user and usermeta tables normally utilized by WordPress are not used, instead these values/tables are used to store your user information.
define(‘CUSTOM_USER_TABLE’, $table_prefix.’my_users’);
define(‘CUSTOM_USER_META_TABLE’, $table_prefix.’my_usermeta’);
http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables
salve a me interessa l’installazione di più siti wordpress in diverse cartelle per creare dei sottodomini di un sito. Vorrei quindi creare un sito con sottodomini con un unico database utenti, in modo che gli utenti con un’unica registrazione possano scrivere su tutti i livelli del sito effettuando il login nel giusto sito.
So che questa procedura è quella giusta. Dovrei effettuare diverse installazioni e poi cancellare le tabelle della registrazione utenti di tutti i siti tranne uno e le tabelle dell’ultimo inserirle al posto di quelle cancellate… qualcuno mi spiegherebbe la procedura precisa?
grazie
dovrebbe essere qualcosa del tipo:
CREATE VIEW nometabellasito2 AS SELECT * FROM nometabellasito1
-
21 Febbraio 2009 alle 20:33 #62986desdredPartecipante
faccio una prova:
uso come prefisso per il db del primo sito wp_home. Ottengo wp_homeusers e wp_homeusermeta
uso come prefisso del db del secondo sito il prefisso wp_art_ . Ottengo wp_art_users e wp_art_usermeta
(uso lo stesso database)
cancello wp_art_user e wp_art_usermeta
su sql inserisco questa query:
CREATE VIEW wp_art_users AS SELECT * FROM wp_homeusers
poi la query
CREATE VIEW wp_art_usermeta AS SELECT * FROM wp_homeusermeta
-
21 Febbraio 2009 alle 20:40 #62987desdredPartecipante
forse non funziona…
Ho registrato un secondo utente sul primo sito e ho provato ad effettuare il login al secondo sito per verificare se anche lଠrisulta il secondo utente ma non riesco ad entrare, mi dice: nome utente non valido
cosa può essere? naturalmente ho provato ad accedere con la pass del primo sito sul secondo…
-
22 Febbraio 2009 alle 10:09 #62991SteveAglAmministratore del forum
Non serve nessuna query SQL ne altro… se i due WP Usano lo stesso BD con porefisso tabelle diverse nel secondo nel suo config.php metti:
define(‘CUSTOM_USER_TABLE’, $table_prefix.’my_users’);
define(‘CUSTOM_USER_META_TABLE’, $table_prefix.’my_usermeta’);
Dove a alle voci tableprefix.-..etc metterai i valori delle tabelle del primo WP in tal modo i dati di autenticazione verranno presi dal primo WP. E non hao NESSUNA necessità di toccare i DB cancellare tabelle copiarle o altro.
Nell’esempio da te portato mettendo nel config.php del secondo blog:
define(‘CUSTOM_USER_TABLE’, ‘wp_homeusers’);
define(‘CUSTOM_USER_META_TABLE’, ‘wp_homeusermeta’);
Dovrebbe andare perfettamente…
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.