TinyPortal

Development => Support => Topic started by: pendusingh on July 10, 2009, 07:03:33 PM

Title: Having problem with add article
Post by: pendusingh on July 10, 2009, 07:03:33 PM
hey guys i am having some odd issues with articles..

Like: whenever i want create new Article, So i click to "add BBC" link.... page open fine... & looks fine too.... but whenever i hit Save Button(mean when i try to submit the article), i get this error:

Fatal error: Call to undefined function preparsecode() in /home/content/p/e/n/hostingname/html/Home/Sources/TPortalAdmin.php on line 1016


any help ????

i would appericate about it.... Please help me soon as possible.
Title: Re: Having problem with add article
Post by: IchBin on July 10, 2009, 07:05:59 PM
I would love to help, but I have no idea what to tell you because I don't know what version of SMF and TinyPortal you are using. I could see this normally if you posted a link to your site too. Its best if you would in the future follow our Posting Guidelines (http://www.tinyportal.net/index.php/topic,581). Thanks!
Title: Re: Having problem with add article
Post by: Freddy on July 10, 2009, 08:33:16 PM
Probably this one :

http://www.tinyportal.net/index.php/topic,29789.msg237493.html#msg237493
Title: Re: Having problem with add article
Post by: Renegd98 on July 10, 2009, 10:00:54 PM
Yes, this fix works...

We need to get this fix into the next version...

Title: Re: Having problem with add article
Post by: pendusingh on July 11, 2009, 02:58:48 PM
thanks friends so much for quick replies... i fixed this error by using this method:

QuoteFind around line 1015 - 1016...


Code:
if($art_type=='bbc')
     preparsecode($artbb);
Change to :


Code:
if($art_type=='bbc')
{
     require_once($sourcedir . '/Subs-Post.php');
     preparsecode($artbb);
}

IchBin bro i am sorry about it.. i will post all the info next time, if i have any other question.
thanks once again.
Title: Re: Having problem with add article
Post by: G6Cad on July 12, 2009, 08:45:16 AM
Marked solved then  :up: