Home › Forums › Calendar Products › Community Events › Adding a Custom Registration Link to Add Event Page
- This topic has 14 replies, 2 voices, and was last updated 11 years, 2 months ago by
Brook.
-
AuthorPosts
-
November 30, 2014 at 7:57 pm #903285
sjbennett
ParticipantUsers must be logged in to add events. We have a custom registration page. What template can I edit to include this above or below the login details for the Add Event page?
November 30, 2014 at 10:22 pm #903404Brook
ParticipantHowdy sjbennett,
That’s a good idea. You can find that page in /community/edit-event.php. You can modify that particular template pretty easily by following this tutorial.
– Brook
December 1, 2014 at 3:56 pm #904469sjbennett
ParticipantBrook, Just to clarify, this is the page that I am trying to add my custom registration link to: http://mysite/events/community/add
I added a paragraph with link on the /community/edit-event.php. It is not showing on the front end of the site. Can you please clarify that I’m editing the correct file. If so, is there a certain section of the page I should be adding my additional content?
Thank you for your help.
December 2, 2014 at 3:13 pm #905632Brook
ParticipantHowdy again,
You are modifying the correct file! Are you sure you have copied it to the correct directory? the path would be something like this /wp-content/themes/[your-theme-name]/tribe-events/community/edit-event.php. Does that make sense? You want to replate the brackets and such with your theme directory’s name of course. Are you able to get it working now?
– Brook
December 5, 2014 at 4:21 pm #909618sjbennett
ParticipantYup. I’ve double checked. Here’s a snapshot of my ftp showing the directory and file: http://downeastcoastalnews.com/snap.jpg
I’ve added a paragraph just before the: form method=”post” enctype=”multipart/form-data
Can you see what I’m doing wrong?December 5, 2014 at 6:52 pm #909708sjbennett
ParticipantActually, I need to clarify this. IF I am logged in to the site and go to add a community event, I can see the text I’ve added directing folks to the custom registration page. When I am NOT logged into the site and the “Please log in first” message comes up, my link directing folks to the custom registration page does not show.
December 8, 2014 at 2:34 pm #912331Brook
ParticipantThanks for clarifying. Do you have a caching plugin enabled perchance, or some other form of caching. Usually cached pages are served to users who are not logged in. And if the cache has not updated since you made your adjustments, it will not show up. Simply clearing the cache will likely fix it. Did that work?
– Brook
December 14, 2014 at 4:02 pm #917961sjbennett
ParticipantIt may have been a cache issue. I’m just getting back to this and I’m seeing the login form today. So let’s call it good for now. Thank you!
December 14, 2014 at 4:13 pm #917963sjbennett
ParticipantOkay, I misspoke. It’s been so long since I’ve asked this question, I had to get my head back in the original Q. I’ve verified that I’m uploading the edit-event.php to the correct folder for my child theme. Might my custom link to register go with the code that produces the registration form?
December 16, 2014 at 6:14 am #919709Brook
ParticipantHello again,
Thanks for clarifying. You have been super thorough on verifying it is the proper file.
I just created a child theme with a theme override for Community Submission, and confirmed it works when I am logged out or logged in since my settings allow anonymous submissions of events (not logged in). Here is a copy of it, it’s rather straight forward. I was not sure if an example might help you.
Unless I can see your code it is going to be difficult for me to be much more help. Does the above example help you? Do you see any difference between what I’ve done and what you did? Or, do you mind sharing a copy of your theme and child so that I can have a look? Thanks for keeping us posted sj!
– Brook
December 17, 2014 at 4:14 pm #922165sjbennett
ParticipantThis reply is private.
December 17, 2014 at 9:13 pm #922270Brook
ParticipantThat was our bad. We are still working on restoring all of the links that existed prior to the new site’s launch. Here is the file now that we have migrated. That link might go down after a few weeks, but it is working now.
Cheers!
– Brook
January 19, 2015 at 5:12 pm #934942sjbennett
ParticipantBrook, I am just getting back to this. My site does NOT allow anonymous submissions of events. I tested the twenty-fourteen template you provided and it does not work. With the 2014 child template the edit-event page does not show the line “Test before the contact form” until AFTER I log in.
When required to login to submit an event, the Community events calendar simply says: Please log in first. I really want to include a line that directs them to the registration form if they have not already registered. Any other thoughts?
January 21, 2015 at 12:20 am #935532Brook
ParticipantI understand now. Thanks for the screenshot Susan. I was not on the same page as you before.
That particular form is generated by the WP function wp_login_form(). If you are savvy with PHP you could tap into one of its filters like ‘login_form_top’ and add text there. That’s the only option though. WP provides no easier way to modify its login form. 🙁
Does that make sense? Please let me know if I can be of further assistance. Thanks!
– Brook
February 5, 2015 at 11:18 pm #940431Brook
ParticipantSince this has gone for a while without a response I am going to archive the topic. However, if you still need help with this or anything else, please feel free to open a new topic. Cheers!
– Brook
-
AuthorPosts
- The topic ‘Adding a Custom Registration Link to Add Event Page’ is closed to new replies.
