SimplePortal

Customization => Custom Coding => Topic started by: Oldcrow on December 16, 2014, 10:47:00 PM

Title: php code
Post by: Oldcrow on December 16, 2014, 10:47:00 PM
I am trying to install a welcome message in php code.

I am totally lost trying to code..the message.

I have a youtube in php code

I have a image rotator in php code.

With out the message it shows the youtube and the images fading in and out.  With the message in the block, all I get is a small empty block..

Someone put me in the right path to code the message.

Thanks Ron..
Title: Re: php code
Post by: Chen Zhen on December 16, 2014, 11:15:16 PM
Oldcrow,

Post the php in a code bbc tag please.
Title: Re: php code
Post by: Oldcrow on December 17, 2014, 10:22:37 AM
Oldcrow,

Post the php in a code bbc tag please.

Below is what I'd like in php code:

Are you a geezer?  If you are then at Coffeetime Unlimited you just might meet a few more geezers.  Instead of walking around talking to yourself, you can join our group and talk to others.  As you sit behind your computer you may wonder who you are you are chatting to.  No worries - when we chat with each other, we type all our woes, small groups we will sometimes form, and even gang up on our foes.  We share our secrets and thoughts in our minds with those who we cannot see.  We can't tell "real" people, but tell someone we must, so we turn to the 'puter, and to those we hope we can trust as confidants.  So crazy as it seems, the truth is that we talk to others without faces and odd little names. And this is what Coffeetime Unlimited is all about.  Worldwide friendships, debates, literary, news, health, chit chat and more are waiting for your participation and enjoyment.  C’mon in the waters are warm & friendly.
Title: Re: php code
Post by: Chen Zhen on December 17, 2014, 03:52:42 PM

I misunderstood the original post. You just want that text inside of a PHP block?
The command to display HTML for PHP is echo.
If it is iterated within half-quotes (apostrophes) then you simply use a back slash when you need it to display an apostrophe.

Code: [Select]
echo 'Are you a geezer?  If you are then at Coffeetime Unlimited you just might meet a few more geezers.  Instead of walking around talking to yourself, you can join our group and talk to others.  As you sit behind your computer you may wonder who you are you are chatting to.  No worries - when we chat with each other, we type all our woes, small groups we will sometimes form, and even gang up on our foes.  We share our secrets and thoughts in our minds with those who we cannot see.  We can\'t tell "real" people, but tell someone we must, so we turn to the \'puter, and to those we hope we can trust as confidants.  So crazy as it seems, the truth is that we talk to others without faces and odd little names. And this is what Coffeetime Unlimited is all about.  Worldwide friendships, debates, literary, news, health, chit chat and more are waiting for your participation and enjoyment.  C’mon in the waters are warm & friendly.';
Title: Re: php code
Post by: Oldcrow on December 17, 2014, 04:45:50 PM

I misunderstood the original post. You just want that text inside of a PHP block?
The command to display HTML for PHP is echo.
If it is iterated within half-quotes (apostrophes) then you simply use a back slash when you need it to display an apostrophe.

Code: [Select]
echo 'Are you a geezer?  If you are then at Coffeetime Unlimited you just might meet a few more geezers.  Instead of walking around talking to yourself, you can join our group and talk to others.  As you sit behind your computer you may wonder who you are you are chatting to.  No worries - when we chat with each other, we type all our woes, small groups we will sometimes form, and even gang up on our foes.  We share our secrets and thoughts in our minds with those who we cannot see.  We can\'t tell "real" people, but tell someone we must, so we turn to the \'puter, and to those we hope we can trust as confidants.  So crazy as it seems, the truth is that we talk to others without faces and odd little names. And this is what Coffeetime Unlimited is all about.  Worldwide friendships, debates, literary, news, health, chit chat and more are waiting for your participation and enjoyment.  C’mon in the waters are warm & friendly.';

OK sorry about that.. Yea inside the box..I have searched for php codes and tried them all. If I do a simple test like the php code has it shows me the two or three line from the code.. Yet when I try it on my message I get a long narrow blank box..

Is there a php code for a paragraph..

Ron..
Title: Re: php code
Post by: Chen Zhen on December 17, 2014, 10:55:54 PM

The <p> tag is for paragraphs.

ie.
Code: [Select]
echo '<p>Are you a geezer?  If you are then at Coffeetime Unlimited you just might meet a few more geezers.</p><p>Instead of walking around talking to yourself, you can join our group and talk to others.  As you sit behind your computer you may wonder who you are you are chatting to.  No worries - when we chat with each other, we type all our woes, small groups we will sometimes form, and even gang up on our foes.</p><p>  We share our secrets and thoughts in our minds with those who we cannot see.  We can\'t tell "real" people, but tell someone we must, so we turn to the \'puter, and to those we hope we can trust as confidants.</p><p>  So crazy as it seems, the truth is that we talk to others without faces and odd little names. And this is what Coffeetime Unlimited is all about.  Worldwide friendships, debates, literary, news, health, chit chat and more are waiting for your participation and enjoyment.  C’mon in the waters are warm & friendly.</p>';
Title: Re: php code
Post by: Oldcrow on December 17, 2014, 11:12:38 PM

The <p> tag is for paragraphs.

ie.
Code: [Select]
echo '<p>Are you a geezer?  If you are then at Coffeetime Unlimited you just might meet a few more geezers.</p><p>Instead of walking around talking to yourself, you can join our group and talk to others.  As you sit behind your computer you may wonder who you are you are chatting to.  No worries - when we chat with each other, we type all our woes, small groups we will sometimes form, and even gang up on our foes.</p><p>  We share our secrets and thoughts in our minds with those who we cannot see.  We can\'t tell "real" people, but tell someone we must, so we turn to the \'puter, and to those we hope we can trust as confidants.</p><p>  So crazy as it seems, the truth is that we talk to others without faces and odd little names. And this is what Coffeetime Unlimited is all about.  Worldwide friendships, debates, literary, news, health, chit chat and more are waiting for your participation and enjoyment.  C’mon in the waters are warm & friendly.</p>';

Thanks Underdog, the other Admin. keep changing the wording..

I changed over to html code and have it all working.. except the message, that'll come when there done..

Thanks for the help, appreciated..

Ron..
SimplePortal 2.3.8 © 2008-2024, SimplePortal