Jump to content


Dynamic parameters from my website


41 replies to this topic

#1 erhaefliger

    Member

  • Members
  • PipPip
  • 21 posts

Posted 31 January 2011 - 07:38 PM

Hello, I wonder if it is possible to add a custom field that when clicked will fire an event link to another page, for example a external link to the User's registration data.
To better understand added a picture.
[attachment=0]teste.JPG[/attachment]
Thanks

#2 erhaefliger

    Member

  • Members
  • PipPip
  • 21 posts

Posted 31 January 2011 - 07:42 PM

Another thing I forgot to mention, is it possible to add html parameters in custom fields variable.
For example
or add a or ...
Tanks

#3 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 01 February 2011 - 07:08 AM

Both is possible, it just requires a little creativity and the pass-thru functionality.

Please read this: Pass-thru visitor information
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#4 erhaefliger

    Member

  • Members
  • PipPip
  • 21 posts

Posted 01 February 2011 - 10:34 AM

ok friend thanks,
then for passing dynamic parameters without any problems.
Just convert them to base64 and it works perfectly.

My question was really about the possibility of generating a link to an external url through these parameters, this is what I'm not getting.
Just like in the picture above, for example a link to 'http://www.google.com'
if possible could you really give an example of how I should proceed.

Here is a part of my code I'm generating:

.../chat.php?code= &en=&ee=&eq=&eh=&ec=&cf0=&cf1=&cf2=...

For example if I want to add a link on the variable 'cf2 =
How should I proceed? I tried in many ways and I can not.

Thanks

#5 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 01 February 2011 - 10:57 AM

Yes, for security reasons, LiveZilla prevents external HTML code from being interpreted. Therefor, you won't have a clickable link.

Keep in mind that your website visitors are able to manipulate all inputs so it would be a serious problem to allow what you are trying to realize.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#6 erhaefliger

    Member

  • Members
  • PipPip
  • 21 posts

Posted 01 February 2011 - 11:12 AM

ok, I totally understand this question of risk of an External User to manipulate the data including the URL. But I use the LiveZilla internally. Assuming the risk of manipulation, as it should do for this change was possible.

I found this post which also talk about this topic:
http://www.livezilla.net/forum/viewtopi ... =14&t=2912

Thanks

#7 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 12 February 2011 - 04:05 PM

dpunzova said:

Yes, for security reasons, LiveZilla prevents external HTML code from being interpreted. Therefor, you won't have a clickable link.

Keep in mind that your website visitors are able to manipulate all inputs so it would be a serious problem to allow what you are trying to realize.

This is exactly what I am trying to do, I was really hoping to be able to parse links to the windows client to link directly to clients admin profiles in WHMCS.

One thing you could do which would not be insecure would be rather than allow html is to simply auto-generate links from urls, so if I parse a URL (a string containing either http:// or https://) then you would make it a click-able link in the client window.

I think it would also be a really good idea if in the custom pass-thru setup you allowed us to enter a URL template where we could parse say a user ID from the site and it gets inserted into the url template and shown in the windows client as a click-able url. e.g

Pass-thru name : User Admin
Link text : Admin
Link Template : https://www.mydomain...etails.php?uid=

Personally I think the best use of custom pass-thru data is to allow parsing of URLs for linking directly to loged-in customers admin pages. For us this would save us so much time.

#8 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 13 February 2011 - 11:16 AM

I will add this to our todo list, thanks for suggesting.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#9 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 15 February 2011 - 03:36 PM

We added this function today. Custom pass thru parameters will be converted to clickable urls in 3.3.2.0.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#10 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 15 February 2011 - 06:45 PM

dpunzova said:

We added this function today. Custom pass thru parameters will be converted to clickable urls in 3.3.2.0.

Fantastic.

While I am here, sorry different topic but on windows (not sure about linux) your mail function sends mail without a date and so all the email from chats all give the date/time of when they were downloaded to the mail client not actualy sent. (At least in my setup)

To fix it in functions.global.inc.php line 900'ish after the FROM line you should add the line

$headers .= "Date: ".date("r").$EOL;

#11 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 15 February 2011 - 07:02 PM

ServWise said:

dpunzova said:

To fix it in functions.global.inc.php line 900'ish ;

Sorry Line 1000'ish in the latest version

#12 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 16 February 2011 - 07:00 AM

You are right, thanks for this valuable information. We will change that accordingly.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#13 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 23 February 2011 - 09:48 AM

dpunzova said:

We added this function today. Custom pass thru parameters will be converted to clickable urls in 3.3.2.0.

Okay so I just upgraded to 3.3.2.0 but the URL I have in passthrough is still not being converted to a link in the client. Do I have to change anything?

#14 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 23 February 2011 - 10:10 AM

What kind of URL is it? Something special?

Please not that it's currently only working for custom fields, not for email,name or company.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#15 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 23 February 2011 - 10:46 AM

dpunzova said:

What kind of URL is it? Something special?

Please not that it's currently only working for custom fields, not for email,name or company.

Yes it is a custom field.

It is just a normal URL being parsed, E.g. "https://www.servwise.com/admin/clientdetails.php?id=123" the url shows but is not converted into a link.

#16 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 23 February 2011 - 10:56 AM

That's strange, I just gave it a try and it works fine for me. I used your example URL. Without ".

I guess your are using dynamic parameters you replace yourself, right? Which parameter is it? cf0...9?
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#17 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 23 February 2011 - 11:27 AM

cf0

#18 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 23 February 2011 - 12:43 PM

I am sorry, I cannot reproduce the problem in 3.3.2.0.
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek

#19 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 23 February 2011 - 01:02 PM

Just in case I have missed something here is the procedure I went through to parse the url.

1. Go to server configuration / Operator client tab and added a new custom field called "Admin" (First and only entry). Restarted client for new field to show.
2. Regenerated my chat button which added a number of cfo= variables and replaced the replacement strings with the base64encoded URL (No html markup or anything surrounding the url just a string starting with https)

#20 ServWise

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 23 February 2011 - 01:02 PM

as I have said I actualy get the URL in the client window, it just isnt clickable.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users