Jump to content


- - - - -

RESOLVED: Creating Third Party App Need Help


  • Please log in to reply
3 replies to this topic

#1 amwdrizz

amwdrizz

    n00b

  • Members
  • Pip
  • 3 posts
  • IPB Version:v3.2.x

Posted 02 December 2011 - 05:44 PM

Hello Folks,

I've been stumbling my way through this entire process so far.  But the lack of documentation from IP on creating a third part application is rather lacking.  Yes, it has been helpful but also lacking depth at the same time.  Anyways,  What I am trying to figure out isn't really covered anywhere from what I've seen.  And I would like to A) Know if its possible, or B) if it isn't how much of a 'workaround' am I going to need to do such.

Alright, in my application I have a page that displays a table of items relating to that user.  Each item is editable and can be managed.  But -how- would I link to the management page with out using forms.

In the past in other situations like this using other software I've done something like this to the URL

index.php?controller=edit&id=row_key

Then in the back end I verify that the current logged in user has access/permissions to edit the row in question so the user couldn't edit someone else's row.

Or would I have to do a form and pass the row_key via a hidden field?

I guess what I should be asking is how do I read additional URL Params in IP.Board so I can get that from the url.

Thanks in advanced for any helpful suggestions/hints on how to approach this problem.

#2 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 02 December 2011 - 09:03 PM

Build the URL like this:
<a href="{parse url="app=appName&amp;module=edit&amp;section=edit&amp;id={$row['key']}" base="public"}">Edit</a>

In your code you can then use $this->request[] to get values from the URL. In this example you want to use $this->request['id'].

#3 amwdrizz

amwdrizz

    n00b

  • Members
  • Pip
  • 3 posts
  • IPB Version:v3.2.x

Posted 03 December 2011 - 01:11 PM

Ah okay,  

Thanks Martin.

#4 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 03 December 2011 - 01:50 PM

The issue this topic was opened for has now been resolved. :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users