PHP Coding Problem Please Help!!!

10 replies
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...
#coding #php #problem
  • Profile picture of the author Elliott Bean
    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
    Signature

    {{ DiscussionBoard.errors[1402926].message }}
  • Profile picture of the author randypatok
    ok I will try this! I will be back if I have Questions. Thanks Elliot!
    Signature
    {{ DiscussionBoard.errors[1404984].message }}
  • Profile picture of the author randypatok
    @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...


    Signature
    {{ DiscussionBoard.errors[1405030].message }}
  • Profile picture of the author randypatok
    @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...
    Signature
    {{ DiscussionBoard.errors[1405158].message }}
  • Profile picture of the author randypatok
    @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'];
    Signature
    {{ DiscussionBoard.errors[1405308].message }}
  • Profile picture of the author randypatok
    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!!!
    Signature
    {{ DiscussionBoard.errors[1405674].message }}
  • Profile picture of the author m4rx
    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
    Signature
    We are what we repeatedly do. Excellence, then, is not an act, but a HABIT. ~Aristotle
    Bored. Learn everything you need to know about Organic Gardening.
    {{ DiscussionBoard.errors[1405757].message }}
  • Profile picture of the author randypatok
    Thank you so much m4rx! You save my Life!!!You are the Best!!!
    Signature
    {{ DiscussionBoard.errors[1406497].message }}

Trending Topics