PHP code in Backpage
I'm trying to bypass the character limit in Backpage as I have seen others do, without the use of iframes as they are not allowed.
I came across this description of limiting the displayed characters from your text and I can't figure out how to use it with my own text. Here is what the website I found it on said:
<?php
$position=14; // Define how many characters you want to display.
$message="You are now joining over 2000 current";
// Find what is the last character.
$post = substr($message,$position,1);
// In this step, if the last character is not " "(space) run this code.
// Find until we found that last character is " "(space)
// by $position+1 (14+1=15, 15+1=16 until we found " "(space) that mean character no.20)
if($post !=" "){
while($post !=" "){
$i=1;
$position=$position+$i;
$message="You are now joining over 2000 current";
$post = substr($message,$position,1);
}
}
$post = substr($message,0,$position);
// Display your message
echo $post;
echo "...";
More importantly, would this even work in Backpage?
Thank you!
-
Brandon Tanner -
[ 1 ] Thanks
Signature{{ DiscussionBoard.errors[8514959].message }} -
-
InnerCityMarketing -
Thanks - 1 reply
{{ DiscussionBoard.errors[8858486].message }}-
great9 -
Thanks
{{ DiscussionBoard.errors[8859519].message }} -
-
-
vaghela dev -
Thanks
{{ DiscussionBoard.errors[8883420].message }} -