I have added a note to the top of create a PCP page on the thank you event page. I have added this note in the custom template file ThankYou.tpl. For "here" i have added a href= /user, however if they login it just shows only the account information. How can i redirect user to access the PCP pages once they login. Please help, I am a newbie and do not know much about smarty template customization and CiviCRM. BTW site is Drupal 7.
You wont be able to redirect back to the thank you page, as the thank you page URL is dynamic (with _qfkey, etc.)
You can use the URL of the create personal campaign page as the destination after login.
In the href for the login page, you can use the below
please go <a href="/user?destination=%2Fcivicrm%2Fcontribute%2Fcampaign%3Faction%3Dadd%26reset%3D1%26pageId%3D1%26component%3Dcontribute">here<a> to login
Note: The value for 'destination' query paramater should be encoded for the redirect to work correctly for any CiviCRM URLs.
So after login, the user will be redirected to the create personal campaign page directly. This will also avoid an extra button click in the user journey you are expecting (i.e after login redirect back to thankyou page and then the user click 'Create personal campaign page' button which then takes the user to create personal campaign page.
Hope this helps.
You can enable PCP in the Contribution/event page setup
also please refer to the below link for creating own PCP page in the thank you page https://book.civicrm.org/user/current/contributions/personal-campaign-pages/
Please click this link for example http://dmaster.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=2
I guess this helps