RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message |
|---|---|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Hello, I successfully added a 'Register as a site member!' button under the 'Login' heading. When a user clicks the button it opens up the createaccount.php page, in a new page. Is it possible to have that page open up embedded in the main content section of the site. The code i used in the 'loginform-notloggedin.template' is: <a href="./createaccount.php" title="Create an account on this site">Register as a site member!</a> Thank you |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
NOTE: I have removed the original code. The most recent, working procedure can be found in the following post: http://forum.nucleuscms.org/viewtopic.php?p=98892#98892 _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins Last edited by ftruscot on Thu Oct 27, 2011 8:08 pm; edited 5 times in total |
|
|
|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Wow, no that's what i call helping someone. Thank you so much for the reply. I will let you know when i get it working |
|
|
|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Hi, I did what you said and i get the following: 1. The form is added twice to the body of the site. 2. The following code shows up under the 'URL' input field: notify('RegistrationFormExtraFields', array('type' => 'createaccount.php', 'prelabel' => '', 'postlabel' => ' ', 'prefield' => '', 'postfield' => ' ')); // add a Captcha challenge or something else global $manager; $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin')); ?> 3. Under the 'Create Account' button i get the following code: createAccount(); echo ''.$message.' '; ?> Thanks again |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
This is a generalazation of something I've done for specific sites. I've not tested the exact code I gave you and sure enough, I made a silly error. In step 2, this line <%parsedinclude(register.php)%> should be <%phpinclude(register.php)%> I will fix it in the original post. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
|
|
|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Awesome, it's working perfectly. Thank you. One more thing...i installed punbb and would like to try achieve the same thing. 1. Add a 'Forum' button under the 'Navigation' menu 2. When the button is clicked have the forum open up inside the main content page and not open in a new page. Is this possible? Thanks again |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
maybe. I mean in theory, it could be done, but it would be more work than I can do for you for free. There would be some integration issues that I couldn't forsee without digging deep. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
|
|
|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Hello, Thanks for the offer, will give it some thought. I have one more question though. Is it possible to add additional pages, example...'About Us' , 'Contact Us' etc...? Thanks |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
Yes, you can use the special skin part to do whatever you want. Just repeat step 2 or 3 as needed, calling the skin part something different each time. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
|
|
|
|
garthswest Nucleus Fan Joined: 13 Jul 2009 Posts: 40 |
Thanks for the reply, i actually figured that out before your reply. but for some reason i am struggling to get the 'about' page to show up embedded in the main section, it always open in a new window. Also i can't seem to figure out which files i need to edit to add an 'about' button under the categories section of the default template any help would be great |
|
|
|
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|