Hi Guys.!
Its me again with another question
Im in process to make a news website (Citizen Journalism) that people can register and submit news.
So, i create (off course..,) a clonable page called "news.php", and the databound page for user submit the news, called "user/submit-news.php". Everythings goin fine for the "user/submit-news.php", a registered user can submit his news. But, how to catch who submit the news? For news.php i already try this :
[1] viewtopic.php?p=13433#p13433
and this :
[2] viewtopic.php?f=4&t=7987&p=13554&hilit=blog+author#p13554
But, i hit a problem.
For the point [1], when the user submit a news from frontend via databound, i dunno how to get the loged in user, so i need to manually choose the user from the couch backend, also i dunno whos the submiter. For this, i can fetch the user information via <cms:related_pages>.
For point [2], this way can fetch the user who loged in on the admin panel, i dunno how to get who submit the news via frontend. Also, if i log in on the backend with another account, it will change to currrently loged in account.
So, is there any way to catch the user who submit the news via frontend, and display the user info on the news page view? like avatar, phone number, address etc?
The next question about htaccess url rewrite.
This is my folder structure :
so the url for user :
is there any htaccess tweak (is it possible) to make the url become like this :
Just for user page view. I want the other url still same, /user/login.html, /user/register.html etc
I hope some1 can pass me some suggestions and help offcourse
Thx!
Its me again with another question

Im in process to make a news website (Citizen Journalism) that people can register and submit news.
So, i create (off course..,) a clonable page called "news.php", and the databound page for user submit the news, called "user/submit-news.php". Everythings goin fine for the "user/submit-news.php", a registered user can submit his news. But, how to catch who submit the news? For news.php i already try this :
[1] viewtopic.php?p=13433#p13433
and this :
[2] viewtopic.php?f=4&t=7987&p=13554&hilit=blog+author#p13554
But, i hit a problem.
For the point [1], when the user submit a news from frontend via databound, i dunno how to get the loged in user, so i need to manually choose the user from the couch backend, also i dunno whos the submiter. For this, i can fetch the user information via <cms:related_pages>.
For point [2], this way can fetch the user who loged in on the admin panel, i dunno how to get who submit the news via frontend. Also, if i log in on the backend with another account, it will change to currrently loged in account.
So, is there any way to catch the user who submit the news via frontend, and display the user info on the news page view? like avatar, phone number, address etc?
The next question about htaccess url rewrite.
This is my folder structure :
- Code: Select all
-root
--couch
--user
---index.php
---submit-news.php
---login.php
---register.php
---lost-pwd.php
---edit-profile.php
--news.php
--index.php
so the url for user :
- Code: Select all
http://mysite.com/user/user-name.html
is there any htaccess tweak (is it possible) to make the url become like this :
- Code: Select all
http://mysite.com/user-name
Just for user page view. I want the other url still same, /user/login.html, /user/register.html etc
I hope some1 can pass me some suggestions and help offcourse

Thx!