Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: itemid being dropped

itemid being dropped 15 years 10 months ago #3444

  • Ducati
  • Ducati's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi,

When I select an event and open the registration form, the itemid is retained. However, when the form is submitted, or payment is selected, it drops the itemid and I get my default template. How do I get it to retain the previous pages item id like every other component I have?

Thanks,

C.J.

Please Log in or Create an account to join the conversation.

itemid being dropped 15 years 10 months ago #3445

  • paulgibbs
  • paulgibbs's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Uhg...your post brings back horrible memories. I know exactly what you mean. I had this problem in December and spent about 20 hours of my time picking through the code and fixing the places where the ItemID was being dropped. I finally got it working for everything except group registrations--and, in the end, I had to just manually type in the actual ItemID right into the DT Register code in order for the component to retain my template. I couldn\'t figure out how to get it to return the user to the custom template after PayPal without hardcoding the ItemID. I was really disappointed that I had to jury-rig it this way in order to get around the problem after I had spent so many hours trying to fix it the right way.

All you have to do to test this is assign a non-default template to the menu link for the component and run through testing as individual and group. I am not using the membership registration feature, so whether or not the ItemID is retained if someone is logged into the site is not something I have an answer for.

Supposedly this was solved in the January bug fixes. Which version are you using? I have not upgraded to the newer version because (1) I\'m not sure the ItemID problem has really been solved and (2) while picking through the code in search of ItemID occurrences, I cleaned out all the table-formatted HTML and replaced it with standard HTML text tags instead (e.g., <p> or <h1> or <h2> or <div> ) so that the component would pick up its styles from my template\'s CSS. Someone went bonkers with table formatting when they made the template up for this code. This makes it difficult (in some cases impossible) to format nicely so that it matches your template. I hope this also is resolved in the upcoming native 1.5 version of the software.

It\'s not at all hard to understand why someone would want to use a non-standard template with this component. Lots of people who don\'t use Joomla create special websites for their conferences themed to the conference logo, graphics, etc. When you use Joomla, the easiest way to handle this is to use an alternative template for the pages dealing with your conference so that the colors and graphics coordinate with your conference brochure and other literature. That way you don\'t need to create a separate Joomla install just to handle a single conference.

Please Log in or Create an account to join the conversation.

itemid being dropped 15 years 10 months ago #3447

  • Ducati
  • Ducati's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Paul,

I am using 2.3.7, so the bugs have not been fixed.

Anyway, could you give me an idea of what to look for and what I need to put in the code so it finds and uses the correct itemID? I am fairly new to PHP, but I can usually figure it out with a push in the right direction:)

Thanks!

Please Log in or Create an account to join the conversation.

itemid being dropped 15 years 10 months ago #3452

  • paulgibbs
  • paulgibbs's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I\'ve attached my copy with adjusted I described. Note lines 328 and 640 of dtregister.php. That is where I had to manually key in the number. You\'ll notice from my comment on line 328 my frustration with the whole thing...I had been able to fix all the drops until that point but couldn\'t progress from there onward.

Please Log in or Create an account to join the conversation.

itemid being dropped 15 years 10 months ago #3458

  • Ducati
  • Ducati's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Paul,

You rock!

I added the two changes you suggested although mine were at lines 4085 and 6123.

I added
<input type=\"hidden\" name=\"Itemid\" value=\"<?php echo $Itemid; ?>\" />

At line 6668 I edited
redirectUrl=redirectUrl + \"&Itemid=<?php echo $_SESSION[\'register\'][\'Itemid\'];?>\";

to
redirectUrl=redirectUrl + \"&Itemid=<?php echo $Itemid; ?>\";

I don\'t know if this will create any problems, but everything seems to be working. It remembers the itemid through everystep, and even when returning from Paypal.

Thanks for your help!

Please Log in or Create an account to join the conversation.

itemid being dropped 15 years 10 months ago #3459

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
I was just going through as well and found the one main place where the Itemid was left out. We have just added it to the new release which will be going out later tonight or tomorrow.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.264 seconds