Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 19th Nov 2009, 05:52 AM   #1
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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...
Attached Files
File Type: doc maindotphp.doc (25.5 KB, 2 views)
File Type: txt displaynewsdothtml.txt (197 Bytes, 1 views)

randypatok is offline  
Unread 19th Nov 2009, 07:18 AM   #2
Active Warrior
War Room Member
 
Elliott Bean's Avatar
 
Join Date: 2008
Location: UK
Posts: 52
Thanks: 1
Thanked 9 Times in 6 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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

Elliott Bean is offline  
Unread 19th Nov 2009, 04:25 PM   #3
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

ok I will try this! I will be back if I have Questions. Thanks Elliot!

randypatok is offline  
Unread 19th Nov 2009, 04:41 PM   #4
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

@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 is offline  
Unread 19th Nov 2009, 05:18 PM   #5
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

@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 is offline  
Unread 19th Nov 2009, 06:09 PM   #6
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

@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'];

randypatok is offline  
Unread 19th Nov 2009, 07:34 PM   #7
PHP Programmer
War Room Member
 
m4rx's Avatar
 
Join Date: 2009
Location: /dev/null
Posts: 138
Thanks: 6
Thanked 12 Times in 12 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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. Learn everything you need to know about Organic Gardening.
m4rx is offline  
Unread 19th Nov 2009, 08:10 PM   #8
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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!!!

randypatok is offline  
Unread 19th Nov 2009, 08:37 PM   #9
PHP Programmer
War Room Member
 
m4rx's Avatar
 
Join Date: 2009
Location: /dev/null
Posts: 138
Thanks: 6
Thanked 12 Times in 12 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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. Learn everything you need to know about Organic Gardening.
m4rx is offline  
The Following User Says Thank You to m4rx For This Useful Post:
Unread 19th Nov 2009, 08:40 PM   #10
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 20th Nov 2009, 01:12 AM   #11
Active Warrior
 
Join Date: 2009
Posts: 64
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: PHP Coding Problem Please Help!!!
Share on: 
fb share twitter share gplus share more share

Thank you so much m4rx! You save my Life!!!You are the Best!!!

randypatok is offline  
Closed Thread


Bookmarks

Tags
coding, php, problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:08 PM.