Jump to content

andresc2

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.friendlycontent.net

Profile Information

  • Gender
    Male
  • Location
    Memphis, TN

andresc2's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok Thanks i give it a try and see what i come up with.
  2. the only way that i know how to do it is to use percentages, let say you have a table that is 1000px by 900px, you would use percentages 100% by 90% and this is going to resize the table depending on the screen resolution. are you using a table ?
  3. is your website in flash? the problem might be because of how your template is set, do you have a link to your web page?
  4. hi sorry for all of the confusion, what i am trying to do is to insert a banner in the middle of the article. so i am splitting the article into two parts but sometimes it splits the source code of an image and it messes with how the article looks. i have attach an image of how it looks. so what i am trying to accomplish with the $findtag variable is to find where the image starts and where it ends and add it to to the first part so that the image does not split into two parts this is my current code: <? php $article =$this->article_>text; $countchars=strlen($article); $divide=$countchars/2; $firstpart=substr($article,0,$divide); $secondpart=substr($article,$divide); $findTag = strpos($secondpart, '~<img [^>]* />~'); $var = $divide + $findTag $firstpart = substr($article, 0, $var); $secondpart = substr($article, $var); ?> and every time i have a different image. [attachment deleted by admin]
  5. hi, how is everybody doing? i hope well, i have a problem with some php code. i am trying to split some text in two parts once they have been split, they are display, but sometimes the php code break the source code of the page such as images and instead of the image i get the source code like this i have tried for about 2 days now to fix it and i haven't been able to, so any help or guidence would be greatly appreciated. this is the code that i am currently using, i have tried to change the variable in the $findTag but nothing seems to work <? php $article =$this->article_>text; $countchars=strlen($article); $divide=$countchars/2; $firstpart=substr($article,0,$divide); $secondpart=substr($article,$divide); //i keep changing the <p /> variable to <img /> and $image and many others but nothing seems to work $findTag = strpos($secondpart, "<p /> "); $var = $divide + $findTag $firstpart = substr($article, 0, $var); $secondpart = substr($article, $var); ?> thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.