uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Couple of Modifications??

Knowledge Base Lobby : uDirectory Support Conference : Modify uDirectory Scripts
Dec-17-17 03:14 AM EST
Original Message
Couple of Modifications??
Author Amanda on 02-03-2001 at 02:19 (EST)
Hi

Just purchased, downloaded and installed the deluxe edition. Just want to make 2 changes though, which are

1. how do I hide the website site address (ie; click here to visit the web site)

2. how do I make this open in a new window?

Thanks
Amanda
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  one more question amanda, 2001-02-03 02:44:58 (1)
            RE: one more question Bill Weiner, 2001-02-05 06:05:53 (2)
                 RE: one more question Bill Weiner, 2001-02-05 06:09:47 (3)
                      RE: one more question Bill Weiner, 2001-02-05 06:12:30 (4)
                           Didn't work.... Amanda, 2001-02-05 19:00:52 (5)
                                Woops - the board reformatted it.... Amanda, 2001-02-05 19:04:58 (6)
                                Fix for the "new" page bit.... Amanda, 2001-02-05 19:28:12 (7)
                                     RE: Fix for the "new" page bit.... Bill Weiner, 2001-02-06 05:50:01 (8)

Messages In This Discussion
         1. one more question
        Author amanda on 02-03-2001 at 02:44 (EST)
Also, how do I put in a horizontal rule between each listing??
TABLE OF CONTENTS
                 2. RE: one more question
                Author Bill Weiner on 02-05-2001 at 06:05 (EST)
Below are some instructions on how to implement those 3 modifications to the script:

STEP 1: Make a backup of your current udirectory.pl script... just in case.

STEP 2: Open the udirectory.pl script with any text editor such as WordPad.

STEP 3: Do a search on "get_listing_html" in order to get to the start of the subroutine that outputs the HTML for each listing.

STEP 4: Within that subroutine, locate the following lines:

elsif ($g_FIELD_TYPE[$i] eq "URL")
{
$new_listing .= "" . $gFields[$i] . "
n";
}

And change them to:

elsif ($g_FIELD_TYPE[$i] eq "URL")
{
$new_listing .= "Click here to visit the web site
n";
}

STEP 6: Near the very bottom of that subroutine, locate the following line:

$new_listing .= "nn";

Change that line to:

$new_listing .= "
nn";

STEP 7: Save the file (as TEXT if your editor asks)... and try it out!
TABLE OF CONTENTS
                         3. RE: one more question
                        Author Bill Weiner on 02-05-2001 at 06:09 (EST)
Darn. This forum coverted some of the HTML in my previous posting. Let me try posting it again:

----------------

Below are some instructions on how to implement those 3 modifications to the script:

STEP 1: Make a backup of your current udirectory.pl script... just in case.

STEP 2: Open the udirectory.pl script with any text editor such as WordPad.

STEP 3: Do a search on "get_listing_html" in order to get to the start of the subroutine that outputs the HTML for each listing.

STEP 4: Within that subroutine, locate the following lines:

elsif ($g_FIELD_TYPE[$i] eq "URL")
{
$new_listing .= " < a href="" . $gFields[$i] . "" > " . $gFields[$i] . " < /a > < br > n";
}

And change them to:

elsif ($g_FIELD_TYPE[$i] eq "URL")
{
$new_listing .= " < a href="" . $gFields[$i] . "" target="_num" > Click here to visit the web site < br > n";
}

STEP 6: Near the very bottom of that subroutine, locate the following line:

$new_listing .= " < !---------------------------------- > nn";

Change that line to:

$new_listing .= " < HR SIZE=1 > nn";

STEP 7: Save the file (as TEXT if your editor asks)... and try it out!
TABLE OF CONTENTS
                                 4. RE: one more question
                                Author Bill Weiner on 02-05-2001 at 06:12 (EST)
Ok, that one seemed to post correctly. But I did notice one typo, in step 4 that should be:

target="_new"

instead of

target="_num"
TABLE OF CONTENTS
                                         5. Didn't work....
                                        Author Amanda on 02-05-2001 at 19:00 (EST)
Hi there

I followed your instructions to the letter and this is how it turns out

Name

dsaf fddsfdsfaf


Web Page: Click here to visit the web site



Any ideas??

Thanks
TABLE OF CONTENTS
                                                 6. Woops - the board reformatted it....
                                                Author Amanda on 02-05-2001 at 19:04 (EST)
You can take a look at the listing by going to http://65.88.177.205/listings/Test.html

thanks
TABLE OF CONTENTS
                                                 7. Fix for the "new" page bit....
                                                Author Amanda on 02-05-2001 at 19:28 (EST)
Fixed it. I just need to remove the extra spaces in the tags for both of the above.


TABLE OF CONTENTS
                                                         8. RE: Fix for the "new" page bit....
                                                        Author Bill Weiner on 02-06-2001 at 05:50 (EST)
Yea, I had to add extra spaces around the < and > signs in order to get the code to appear in this forum.... Glad you got it working.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.