www.uburst.com www.uburst.com

"Clickable Category Image"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

uDirectory Configuration Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Clickable Category Image"
Posted by Sae on Mar-22-01 at 12:14 PM (EST)
Hello everyone,

How can I make category image an active link (image next to the search box on top of every generated html page)?

It shuold go to any specified URL when clicked on it. I tried html code and also a code from commission junction which every page requests a specific code from an outside server with a given code when someone accesses that page in that category but it did not work. Please let me know how I can do this, it would help me alot.

Thanks,
Sae

Click to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Clickable Category Image, Bill Weiner, Mar-23-01, (1)
RE: Clickable Category Image, Bill Weiner, Mar-23-01, (2)
Clickable Category Image, Sae, Mar-23-01, (3)
Clickable Category Image, Sae, Mar-23-01, (4)
RE: Clickable Category Image, Bill Weiner, Mar-26-01, (5)
Clickable Category Image, Sae, Apr-02-01, (6)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Clickable Category Image"
Posted by Bill Weiner on Mar-23-01 at 07:48 AM (EST)
To make the category image (in the Deluxe version) link somewhere:

STEP 1. Make a backup copy of your udirectory.pl file... just in case.

STEP 2. Open your "udirectory.pl" script with any text editor such as Word Pad.

STEP 3. Do a search on the following line:

$shtml .= "\n";

(Within the "get_start_html" subroutine).

STEP 4. And replace that line with something similar to the following lines:

$shtml .= "http://www.yourdomain.com\">";
$shtml .= "\n";

STEP 5. Save the file (as TEXT if your editor asks)... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: Clickable Category Image"
Posted by Bill Weiner on Mar-23-01 at 07:50 AM (EST)
Darn. The HTML didn't show up correctly... let me try posting it again:

To make the category image (in the Deluxe version) link somewhere:

STEP 1. Make a backup copy of your udirectory.pl file... just in case.

STEP 2. Open your "udirectory.pl" script with any text editor such as Word Pad.

STEP 3. Do a search on the following line:

$shtml .= " < img src=\"" . $s_category_image . "\" > \n";

(Within the "get_start_html" subroutine).

STEP 4. And replace that line with something similar to the following lines:

$shtml .= " < A HREF=\"http://www.yourdomain.com\" > ";
$shtml .= " < img src=\"" . $s_category_image . "\" > < /A > \n";

STEP 5. Save the file (as TEXT if your editor asks)... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Clickable Category Image"
Posted by Sae on Mar-23-01 at 12:52 PM (EST)
Bill,

Thanks for responding. I am sure your direction is fine and I also learned a new code from you (I have not tried it yet) but I was looking for an easier way to change the URL of any category image from the category control panel that I don't have to edit the script every day if I want to change the URL and the image on a daily basis.

I tried this code: and it seems udir is not accepting html. Please let me know if this is possible or not yet.

Thanks,
Sae

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "Clickable Category Image"
Posted by Sae on Mar-23-01 at 12:59 PM (EST)
Oh my. The HTML didn't show up, here it is:
Open.. a href='URL' close...
open.. img src='image ulr' close..

I hope this shows up.. open is for

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: Clickable Category Image"
Posted by Bill Weiner on Mar-26-01 at 10:38 PM (EST)
There really isn't any easy way at this time to have the main category image on each category link to a DIFFERENT URL at this time. The best that can be done at this time, is to setup the main category images to link to the SAME URL... as discussed in my previous posting (see above).
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
6 . "Clickable Category Image"
Posted by Sae on Apr-02-01 at 10:56 AM (EST)
Thanks Bill,

Maybe you could include this in your wish list for next version. Take care.

Sae

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.