Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   PHP Coding Problem Please Help!!! (https://www.warriorforum.com/programming/146414-php-coding-problem-please-help.html)

randypatok 19th November 2009 05:52 AM

PHP Coding Problem Please Help!!!
 
2 Attachment(s)
Hi all PHP guru! I have a Big Problem with the Arcade script I am using with the site I lunch recently.

My problem is I want my "News Section"="What is funbrain zone?" at Funbrainzone dot com same as the
"News Section"="What Is Andkon?" of Andkon7 dot com

This is I want to do with the news Section:
1. I want to Show all the Content of the NEWS section "What is Funbrainzone?" like andkon7 dot com

2. I want to Opt out the "READ MORE" of the News Section



Please! Download the Attached Files to check my problem. This are the files that have the NEWS SECTION CODES...

Elliott Bean 19th November 2009 07:18 AM

Re: PHP Coding Problem Please Help!!!
 
Hello randypatok

I had a look at your site and the code.

This is the important bit of code:

$news=front_page_news($base_url,$rewrite);
$newscontent="";
$newstitle=$news['title'];
$newstext=$news['newstext'];

If you want to display a different title then edit that code above to

$newstitle= "Your Title";

Similarly you can edit the content of the news section

$newstext= "Any content you want";

You can include links and any html tags in this. If this is long do as follows

$newstext= "This is the first bit of the content, .
this is the second etc over many lines";

(make sure you have a . at the end of every line but the last.)

Changing the newstext will mean that the READ MORE section will no longer be there

randypatok 19th November 2009 04:25 PM

Re: PHP Coding Problem Please Help!!!
 
ok I will try this! I will be back if I have Questions. Thanks Elliot!

randypatok 19th November 2009 04:41 PM

Re: PHP Coding Problem Please Help!!!
 
@Elliot Bean
I have another question. so you mean is I will change this line of code "$newstext=$news['newstext']; " to this -->> $newstext=$news['newstext']."

Sorry newbie to php...



randypatok 19th November 2009 05:18 PM

Re: PHP Coding Problem Please Help!!!
 
@Elliot Bean

All I want is to show all the content of the news section "What is funbrain zone?" on the first page of the site...

randypatok 19th November 2009 06:09 PM

Re: PHP Coding Problem Please Help!!!
 
@Elliot Bean

Let me clarify things. I have a WYSWYG News editor in my Admin panel where I can edit, delete and add news. I want to show all the content of the news section "What is funbrain zone?" on the first page or index page of my site.


$news=front_page_news($base_url,$rewrite);
$newscontent="";
$newstitle=$news['title'];
$newstext=$news['newstext'];

What changes am I going to do with this line of code?

$newstext=$news['newstext'];

m4rx 19th November 2009 07:34 PM

Re: PHP Coding Problem Please Help!!!
 
Sorry I can't post some of the PHP code here, warrior forum throws an error.

what I was going to post is located at www.x00n.com/warriorpost.php

randypatok 19th November 2009 08:10 PM

Re: PHP Coding Problem Please Help!!!
 
ALL I want to do is display All the content of my News Section "What is funbrainzone?" in the index page or main page of my site. And I want to opt out the "READ MORE" thing.

@m4rx

Can you give me the exact code please. I really don't understand what your telling me in the link you provided. Sorry kinda newbie to php. THANKS!!!

m4rx 19th November 2009 08:37 PM

Re: PHP Coding Problem Please Help!!!
 
With the code that you have given in your .doc there is nothing I can see that you can fix. It looks like half of a file or something. It abruptly ends.

There really isn't much that I can help you with unless the entire code is released. From what I have found, it might be something in your database that causes the [Read More] to show up.

Any more questions feel free to ask.

--m4rx

randypatok 19th November 2009 08:40 PM

Re: PHP Coding Problem Please Help!!!
 
I added you in Skype. Can you please chat with me there now? please!!!:confused:
I tried the code you gave me but its not working.

randypatok 20th November 2009 01:12 AM

Re: PHP Coding Problem Please Help!!!
 
Thank you so much m4rx! You save my Life!!!You are the Best!!!


All times are GMT -6. The time now is 06:40 PM.