×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Custom information for hotspots

Custom information for hotspots 11 years 9 months ago #19590

  • Shaun Kehoe
  • Shaun Kehoe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 1
Hey Daniel,

I was trying to figure out where I go to edit what information the user puts in when they plot a hotspot. I saw another thread that kind of helped me but I was hoping I could possibly get a little more detailed information to put me in the right direction lol

I am wondering what files I would need to edit to get rid of the description input box on the frontend for logged in users. I want to replace this box with multiple fields that would take more detailed information from users instead of a general description. I just need to know what files I am going to have to change to add more input boxes and remove the description one.

The site I am working on used to be created from very basic php code and we wanted a more secure and better put together site, so we decided to use joomla. So I used to have the old php site set up with multiple boxes that allowed users to put in the exact information I wanted from them and then it showed the information in that little pop up on the map. So I was just curious what files I am going to have to edit to make this happen and make it so I can write it to the database lol I was looking through files but I couldn't find what I thought would be the right piece of code to start editing, so I figured I would ask you lol

Thank you,
Shaun

Custom information for hotspots 11 years 9 months ago #19604

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Shaun,
So you are saying that you are beginner PHP developer? You need to learn the basics of joomla programming if you want to modify hotspots. Good starting point will be the joomla wiki:
docs.joomla.org/Developing_a_Model-View-...ng_a_Basic_Component

Or if you prefer to have a teacher - you can bookmark dothewebinar.com and subscribe for the next webinar :)

Regards,
Daniel

Custom information for hotspots 11 years 9 months ago #19617

  • Shaun Kehoe
  • Shaun Kehoe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 1
I am going to learn more about creating components and modules with joomla. I have a very basic knowledge of php. Thanks for the links to those.

I am pretty good at modifying already created stuff though lol. I have modified modules to have them do exactly what I want them to do but I was trying to figure out what files I would need to modify the code. I should be able to modify the files to have them a little more custom designed for my site by finding the code in the files that create them. I mainly just need to remove the description box and add 6 input boxes to replace the description. So I am assuming I have to modify the frontend files(whatever one they would be lol), the backend ones, and create the database tables so they can put the information somewhere lol Would you be able to tell me what files I would need to look through to modify the frontend plotting and frontend of what displays on the map and the backend(if I need to modify it) to split up the description into the 6 pieces of information I collect from my users? I am also planning on going to learn how to create all these things myself, but for now I will just have to modify ;)

Thank you,
Shaun

Custom information for hotspots 11 years 8 months ago #19687

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
read this:
www.ostraining.com/blog/how-tos/developm...-started-with-jform/

And then you'll need to modify the form.xml file and then the file that outputs the form by adding calls for your new fields. Theoretically that should be all (plus of course -> you need to have db fiels that have the same names as the names for the fields in the form.xml)

Regards,
Daniel

Custom information for hotspots 11 years 8 months ago #19769

  • Shaun Kehoe
  • Shaun Kehoe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 1
Thank you for your help. It took me an hour or two to find the right files to edit but I got the form file modified and the hotspot file that puts the information on the hotspot modified and all working with my database. I also hid the address fields and lat/lon fields on the plotting XML file but when I try to hide the description box, I get a blank screen. I even just tried to change the type and make it not the editor but I still can't hide it without the page going blank. I don't really need it there because I got all the new custom input boxes there and its not required anymore either. So I was just curious how I would go about "hiding" it because I don't need it anymore.

Thank you,
Shaun

Custom information for hotspots 11 years 8 months ago #19777

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
A blank page means that there is a php error on the page that is not being displayed. Enable php reporting and you should get an idea what the error is and in which file it is being generated.

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.105 seconds