Beginner help needed with creating addon options

Mr Lucky

Well-known member
#1
If someone could either answer this in simple terms or point me to e beginner tutorial with the answer that would be great.

I'm gradually learning to make an addon, so far I have a template modification which adds some javascript into page_container and connected that to the addon, which is all working.

However the script I have included has some parameters which need editing from time to time, and I want to know if and how I can do this via ACP options.

The parameters involve changing some ID numbers and URLs.

e.g.

Code:
items[0]="<a href='http://example.com' target='_blank' rel='nofollow'><a href='http://example.com' target='_blank' rel='nofollow'>";
items[1]="<a href='http://example.com' target='_blank' rel='nofollow'><a href='http://example.com' target='_blank' rel='nofollow'>";
In this example i would need to be able to edit the two URLs for each ID to the actual URLs and also be able add one or more IDs e.g.

Code:
items[2]="<a href='http://example.com' target='_blank' rel='nofollow'><a href='http://example.com' target='_blank' rel='nofollow'>";
I'm hoping this isn't total rocket science, can anyone please help?
 

Mike Creuzer

Well-known member
#2
Top