This topic is locked

Code syntax HELP

6/24/2008 6:05:41 AM
PHPRunner General questions
L
Lisa2006 author

Hi Forum,
Within Visual Editor | Design mode i have the following code on one of my fields, which works 100%
[font=Times New Roman]$value = "<a target=_blank href=\"http://maps.google.co.uk/?ie=UTF8&hl=en&q=".$data["seller_town"]."; \"> ".$data["seller_town"]."</a>";
I would like to change the above code to carry out the function of the following URL
[http://maps.google.co.uk/maps?saddr="birmingham"&daddr="london";]

  • please ignore the [] in the above link.
    Where

    Field: seller_town = birmingham

    Field: buyer_town = london
    Not sure how to change the code. Your help would be much appreciated.
    Thanks in advance
    Lisa

A
alang 6/24/2008

Try:
$value = "<a target=_blank href=\"http://maps.google.co.uk/?saddr=".$data["seller_town"]."&daddr=".$data["seller_town"]."; \"> ".$data["seller_town"]."</a>";

L
Lisa2006 author 6/24/2008

Thank you for your help
I have another question, related to this posting.
When the page is displayed the seller_town field produces a hyperlink that when clicked correctly displays the google map with directions.

However, i'd like to display only the contents of the field as a hyperlink on my list.php page.
i.e.
Currently the field contents are displayed as [u]Birmingham as the hyperlink (without the underline).
Where and how can i achieve this. Many thanks in advance ....
Lisa

T
thesofa 6/24/2008

Thank you for your help

I have another question, related to this posting.
When the page is displayed the seller_town field produces a hyperlink that when clicked correctly displays the google map with directions.

However, i'd like to display only the contents of the field as a hyperlink on my list.php page.
i.e.
Currently the field contents are displayed as [u]Birmingham as the hyperlink (without the underline).
Where and how can i achieve this. Many thanks in advance ....
Lisa



Whethere or not a hyperlink is underlined is a browser setting, as far as I know, this cannot be changed in PHPR.

In Internet explorer, chose tools, Internet Options, advanced and scroll down to Underline links

Mozilla Firefox is tools, Options, Content, Colours, take the tick from Underline Links.

HTH

L
Lisa2006 author 6/24/2008

Thank you for your response.
I know that you can achieve this via the use of CSS. I've already created this on my HTML website page.
However with PHPRunner, there are so many style types that it would be easier for somebody from Xlinesoft to advise which CSS style sheet element need changing.
Hope somebody can help!
Thanks in advance
Lisa

J
Jane 6/25/2008

Hi,
what layout and style do you use?

L
Lisa2006 author 6/25/2008

Hi,
Layout style = London

Color Schema = London
Hope this helps
Lisa

J
Jane 6/26/2008

Hi,
something like this should work:

$value = "<a class=tablelinks2 target=_blank href=\"http://maps.google.co.uk/?saddr=".$data["seller_town"]."&daddr=".$data["seller_town"]."; \"> ".$data["seller_town"]."</a>";

S
swanside 6/27/2008

Hi,

something like this should work:


I am looking for a way to use multimap if anybody has any ideas?
Cheers