facebookrsstwitter

Accessing HTML for the Registration Form

Discuss DT Register for Joomla 1.7 (2.7.9 +) and Joomla 2.5 (2.7.13+).

Accessing HTML for the Registration Form

Postby jjermyn » Oct 04, 2011 11:22 am

I would like to further customize my registration form, how can I access it's HTML? NOT THE CSS!!!!! Besides using the F12 key. I would like the ability to edit according to my own needs and format.

If I am somehow unable to access the HTML, (which I hope is NOT the case) how can I rearrange the format of the registration form manually???

Any insightful information will be much appreciated!!
jjermyn
Fresh Boarder
Fresh Boarder
 
Posts: 12
Joined: Sep 28, 2011 10:44 am

Re: Accessing HTML for the Registration Form

Postby dthadmin » Oct 04, 2011 3:05 pm

Are you talking about the order of the form fields? To answer your question, we need actual specifics... then we can help.
dthadmin
Platinum Boarder
Platinum Boarder
 
Posts: 5434
Joined: Dec 31, 1969 8:00 pm
Location: USA

Re: Accessing HTML for the Registration Form

Postby jjermyn » Oct 04, 2011 4:46 pm

Specifically.....

I do not wish to change the order of the fields, that it quite simple and I do not need help in that sense. I was wondering if it were possible to add another category on the top of the form, next to "Event" and "Date." My boss would like to add an additional category, is this possible? If not an entirely new category, is it possible to have the date in one column and the time of the event in another?


And while I'm asking, is it possible to edit the "Event Registration" title which appears on the top of the page? I would like it to say "Upcoming Events" instead. That is why I thought perhaps an html view would allow me to edit the things I want. I look forward to your response.
jjermyn
Fresh Boarder
Fresh Boarder
 
Posts: 12
Joined: Sep 28, 2011 10:44 am

Re: Accessing HTML for the Registration Form

Postby dthadmin » Oct 04, 2011 5:44 pm

There is no "feature" for adding new data into new columns in the list of events. We intend to add that type of functionality in future development though. You'd have to code in new columns... or modifying existing columns. These files would be included:
/components/com_dtregister/views/event/tmpl/list.php
/components/com_dtregister/views/event/tmpl/list_row.php

To modify text like "Event Registration" or any other text throughout the component, modify the language file which is located with the language files for all of your other extensions:

/language/en-GB/en-GB.com_dtregister.ini

Thanks.
dthadmin
Platinum Boarder
Platinum Boarder
 
Posts: 5434
Joined: Dec 31, 1969 8:00 pm
Location: USA

Re: Accessing HTML for the Registration Form

Postby BodgeIT » Oct 05, 2011 4:03 am

I have successfully moved location from the description field into a column of its own. I'll do a write up later today and post back here.

I've also added location as a column to the backend admin view of events to help event selection. I'll write that up to.

Why they're not there already I don't know.
BodgeIT
Senior Boarder
Senior Boarder
 
Posts: 52
Joined: May 16, 2011 9:19 am

Re: Accessing HTML for the Registration Form

Postby jjermyn » Oct 05, 2011 5:18 pm

Thanks for responding!

If you could let me know how you successfully moved content into different columns, that would be amazing! I would really appreciate it! :D
jjermyn
Fresh Boarder
Fresh Boarder
 
Posts: 12
Joined: Sep 28, 2011 10:44 am

Re: Accessing HTML for the Registration Form

Postby BodgeIT » Oct 07, 2011 1:52 am

Hi jjermyn,
I hope I haven't mislead you. I have re-read your post and realise you are specifically talking about the registration form where I was talking about the event list.

I am however about to start some work of my own on the registration form trying to rework some of the fees so should be able to deconstruct things enought to provide you some help.

I'll get back to you shortly.
BodgeIT
Senior Boarder
Senior Boarder
 
Posts: 52
Joined: May 16, 2011 9:19 am

Re: Accessing HTML for the Registration Form

Postby jjermyn » Oct 11, 2011 1:40 pm

No no no, you were right. I was talking about the event list. Any help would definitely be appreciated! I'd love to hear how you were able to do this whenever you get a chance, thanks a bunch! :D
jjermyn
Fresh Boarder
Fresh Boarder
 
Posts: 12
Joined: Sep 28, 2011 10:44 am

Re: Accessing HTML for the Registration Form

Postby BodgeIT » Oct 20, 2011 7:51 pm

OK, quick write up on changing list layout.
Disclaimer: I'm no developer, my code aint pretty!

Locations Column in Event List


Files:
/components/com_dtregister/views/event/tmpl/list.php
/components/com_dtregister/views/event/tmpl/list_row.php

First create HTML override for your template (skip if already done):

Navigate to:
/components/com_dtregister/views/event/

Copy the /tmpl folder to /templates/yourtemplate/html/com_dtregister
(you will need to create the /com_dtregister sub folder first)

Rename the tmpl folder to "event"

OK, now override is in place, let's change things.
The code in most of these files is all over the place in terms of white space, so line numbers may vary..don't change if you can't find exact lines.

in file: list.php

Near line 342, you should find this line:
Code: Select all
<th class="coltitle" align="left" width="<?php echo $config->getGlobal('event_field_width',0); ?>"><?php echo JText::_( 'DT_EVENT' );?></th>


And then this line:
Code: Select all
<?php $j=2;


I added this line in between those two:
Code: Select all
<th class="coltitle" align="left" width="150px"><?php echo JText::_( 'DT_LOCATION' );?></th>


I then changed
Code: Select all
<?php $j=2; to <?php $j=3;

because $j is counting columns and we just added another one.

Then in file: list_row.php

At around line 249 you should find:
Code: Select all
<?php if($config->getGlobal('event_date_show')){ ?>


Immediately before this, I added:
Code: Select all
<td align="left" class="eventlist">
  <?php
    if($row->location_id !="" && $row->location_id > 0 && $config->getGlobal('showlocation',0)){
      $locationTable->load($row->location_id);
      if($locationTable->name !=""){?>
        <a rel="rokbox[545 490]" href="<?php echo JRoute::_("index.php?option=com_dtregister&controller=location&task=show&id=".$row->location_id."&tmpl=component&type=rokboxy",$xhtml_url,false) ?>"   ><?php echo stripslashes($locationTable->name);?></a>
      <?php
      }
    }
  ?>
</td>


I'm using rokbox for my popups, much nicer ;-). You'll need to edit this url to suite your setup. The original url is rem'd out below (starts from <a> after "&nbsp;", copy upto </a>. Best to use that if you're not sure.

Around line 111 you should find:
Code: Select all
<td align="left" class="eventlist"><span class="event_title"><?php echo $row->title;?></span>


and then:
Code: Select all
<?php } ?>


I rem'd out everything from the next line starting <?php

All this:
Code: Select all
<?php

           if($row->location_id !="" && $row->location_id > 0 && $config->getGlobal('showlocation',0)){

                $locationTable->load($row->location_id);

                 if($locationTable->name !=""){

             echo "<br />&nbsp;".JText::_('DT_LOCATION'); ?>:&nbsp;<a class="colorbox" href="<?php echo JRoute::_("index.php?option=com_dtregister&controller=location&task=show&id=".$row->location_id."&tmpl=component",$xhtml_url,false) ?>"   ><?php echo stripslashes($locationTable->name);?></a>

         <?php

              if($config->getGlobal('linktogoogle')==1){

          ?>

         <?php

               }

               }

             }

           echo $this->loadTemplate('moderator');


Stop before:
Code: Select all
4br = false;


The moderator entry I didn't need, I think you can disable this in configuration but at the time it seemed to hang around, so I removed it here...

That was it I think. I stupidly forgot to write this up for myself so I've had to recreate this from scratch. If it doesn't work, PM me and we'll work it out.

The result should look like my attached image.

Hope it's of use
Gary
Attachments
Image 097.png
Image 097.png (137.15 KiB) Viewed 579 times
BodgeIT
Senior Boarder
Senior Boarder
 
Posts: 52
Joined: May 16, 2011 9:19 am

Re: Accessing HTML for the Registration Form

Postby jjermyn » Oct 24, 2011 5:19 pm

Thank you so much! It looks great! :D I really appreciate you helping me out with this!!!!
jjermyn
Fresh Boarder
Fresh Boarder
 
Posts: 12
Joined: Sep 28, 2011 10:44 am


Return to General Discussion - Joomla 1.7 / 2.5

Who is online

Users browsing this forum: No registered users and 2 guests

Training Sessions

There are no upcoming events.

DT Register - event registration for Joomla

Free Merchant Account Setup - Accept Credit Cards Online