PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-12-2004, 01:48 AM   #1
bigals
Orange Mole
 
Join Date: Nov 2003
Posts: 41
HAHA hello again, I have a new question...

on my search results pagei want to keep the width of the results down to about 450 pixels, because at the moment it displays the address of each search results page and the addresses are really long,

I've changed it before but now i can't remember how to restrict the width of each search result on screen,

any ideas?

cheers.
bigals is offline   Reply With Quote
Old 03-12-2004, 10:55 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. If you want to truncate the URL, search for complete_path in the search_function.php file and perhaps do a substr on it.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 03-13-2004, 11:09 AM   #3
bigals
Orange Mole
 
Join Date: Nov 2003
Posts: 41
oh I see, i've found that

Quote:
'complete_path' => $url,
but i don't understand hot to limit the length shown on screen like you were talking about?

cheers, alex.
bigals is offline   Reply With Quote
Old 03-13-2004, 11:12 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Try something like:

'complete_path' => substr($url,0,X)."...",

where X is the number of characters you want to show.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 03-13-2004, 11:21 AM   #5
bigals
Orange Mole
 
Join Date: Nov 2003
Posts: 41
Man, Your a STAR!!

That simple bit you showed me has just taught me so much and everytime i see something work like that I just get more and more impressed and clear minded about all this scripting,

It worked at treat, thankyou!!!!

Bigals.
bigals is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No most searched terms, biggest results, most 0 results, last search queries, etc. jongag1 How-to Forum 6 04-22-2005 11:43 AM
Forum width to 100% please Rolandks Feedback & News 3 02-11-2005 11:10 AM
¿Why the label <phpdig:complete_path/> change the width of the tables? zertiko How-to Forum 2 07-26-2004 07:49 PM
Searchfeed results displayed with phpdig results Nosmada How-to Forum 1 01-04-2004 12:39 PM


All times are GMT -8. The time now is 08:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.