![]() | | ||||||||
| | #1 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
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... |
| | |
| | |
| | #2 |
| Active Warrior War Room Member Join Date: Dec 2008 Location: UK
Posts: 52
Thanks: 1
Thanked 9 Times in 6 Posts
|
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 |
| | |
| | |
| | #4 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
@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... |
| | |
| | |
| | #5 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
@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... |
| | |
| | |
| | #6 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
@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']; |
| | |
| | |
| | #7 |
| PHP Programmer Join Date: Nov 2009 Location: /dev/null
Posts: 136
Thanks: 5
Thanked 12 Times in 12 Posts
|
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 |
| We are what we repeatedly do. Excellence, then, is not an act, but a HABIT. ~Aristotle Bored. Check out my blog. | |
| | |
| | #8 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
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!!! |
| | |
| | |
| | #9 |
| PHP Programmer Join Date: Nov 2009 Location: /dev/null
Posts: 136
Thanks: 5
Thanked 12 Times in 12 Posts
|
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 |
| We are what we repeatedly do. Excellence, then, is not an act, but a HABIT. ~Aristotle Bored. Check out my blog. | |
| | |
| | #10 |
| Active Warrior Join Date: Nov 2009
Posts: 66
Thanks: 1
Thanked 2 Times in 2 Posts
|
I added you in Skype. Can you please chat with me there now? please!!! ![]() I tried the code you gave me but its not working. |
| | |
| | |
![]() |
|
| Tags |
| coding, php, problem |
| Thread Tools | |
| |
![]() |