Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Wed Jul 15, 2009 12:55 pm   Post subject: Embedding user registration form
Reply with quote

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

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Jul 15, 2009 5:29 pm   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message Visit poster's website
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Thu Jul 16, 2009 7:25 am   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Thu Jul 16, 2009 9:49 am   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Thu Jul 16, 2009 1:32 pm   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message Visit poster's website
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Thu Jul 16, 2009 2:30 pm   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Thu Jul 16, 2009 4:37 pm   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message Visit poster's website
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Mon Jul 20, 2009 7:32 am   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Mon Jul 20, 2009 4:44 pm   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message Visit poster's website
garthswest
Nucleus Fan


Joined: 13 Jul 2009
Posts: 40

Post Posted: Tue Jul 21, 2009 7:46 am   Post subject:
Reply with quote

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

Back to top

View user's profile Send private message
Post new topic Reply to topic
Display posts from previous:   

Goto page 1, 2, 3, 4, 5, 6, 7  Next

Page 1 of 7

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group