GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php help needed (https://gfy.com/showthread.php?t=1033830)

drmadcat 08-11-2011 08:22 PM

php help needed
 
i have a problem with my site xxxaus.com
on the index page my girls profiles dont sit in the grid right if there is a long suburb in the box
is there a peace of code i can put in to space out the box,s maybe to drop down another line

AdultKing 08-11-2011 08:28 PM

Trim the length of the string ? Or use css and make the text for the suburb smaller.

http://php.net/manual/en/function.substr.php

drmadcat 08-11-2011 08:36 PM

thanks ill have a look cheers

AdultKing 08-11-2011 08:38 PM

You realize that you have istockphoto watermarks all over the place on that site ?

potter 08-11-2011 08:38 PM

Yeah, I'd just use substr to trim the first X characters of the suburb variable instead of printing the whole thing.

drmadcat 08-11-2011 09:53 PM

im really new to this
were do i put
echo substr('abcdef', 1);

<?php echo GetValue("city","name","id",$f_row->city); ?>

bean-aid 08-11-2011 10:01 PM

I think you know what your doing...

https://gfy.com/showthread.php?p=18349032#post18349032\

papill0n 08-11-2011 10:01 PM

that header is too tall imo mate

not a bad little site tho - goodluck with it

drmadcat 08-11-2011 10:03 PM

Quote:

Originally Posted by papill0n (Post 18349041)
that header is too tall imo mate

not a bad little site tho - goodluck with it

its taken 5 weeks to get this fare still needs work but im trying to do it by myself

michael.kickass 08-11-2011 10:12 PM

$YourVar = "drmadcat";

echo substr($YourVar, 0, 4); // will print "drma"

Good luck :thumbsup

drmadcat 08-11-2011 10:35 PM

Quote:

Originally Posted by michael.kickass (Post 18349056)
$YourVar = "drmadcat";

echo substr($YourVar, 0, 4); // will print "drma"

Good luck :thumbsup

thanks but were do i put that code

grumpy 08-12-2011 03:35 AM

you better use css to solve that problem, fix the width and height of the box and set overflow to hidden.


All times are GMT -7. The time now is 05:23 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc