MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/2 1 2 >
Forum RSS feedReply
Option to Integrate Forum with News post
AuthorText
sanchez
Junior Member
Avatar

Posts: 68
Contributes: 67

Gender: _NEUTRAL_
Online: No
Date: 26/06/2008 20:43
Option to Integrate Forum with News post
#post8829
I want to have the ability to post news and users can discuss in forums. Is there a way to auto create forum post when you post news?

Also to count number of discussion at bottom of news post.


Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5118
Contributes: 2461

Gender: _MALE_
Online: No
Date: 26/06/2008 21:45
Re: Option to Integrate Forum with News post
#post8836
I'll post you the solution tomorrow if you have some patience Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5118
Contributes: 2461

Gender: _MALE_
Online: No
Date: 27/06/2008 12:25
Re: Option to Integrate Forum with News post
#post8875
Open admin/pages/news/index.php

Find on row 135
code
$dblink->query("INSERT INTO memht_news (id,argomento,nome,testo_home,testo,autore,email,data,enabled)
                                VALUES (null,'$argomento','$nome','$testo_home','$testo','$admin','$email',$tzNOW,'$enabled')"
);


Add after
code
$dblink->query("INSERT INTO memht_forum_posts (id,parent,forum,name,text,author,date,ip,smiles)
                                VALUES (null,'0','FORUMID','$nome','Let' talk about [b]$nome[/b]...','$admin',$tzNOW,'"
.$visitorInfo['ip']."','1')");


Remember to change FORUMID with the id of the forum where you want the thread to be created
Delete Edit Quote
 
suge
Senior Member
Avatar

Posts: 178
Contributes: 146

Gender: _MALE_
Online: No

Country: UK
Languages: English and bad English
Version: 4.0.1
Date: 27/06/2008 16:30
Re: Option to Integrate Forum with News post
#post8888
Thanks mem, this helps me also.
Delete Edit Quote
 
Mito
Junior Member
Avatar

Posts: 13
Contributes: 0

Gender: _FEMALE_
Online: No
Date: 02/07/2008 18:41
Re: Option to Integrate Forum with News post
#post9111
cool, thanks mem!
Delete Edit Quote
 
astralux
Junior Member
Avatar

Posts: 63
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 02/07/2008 20:10
Re: Option to Integrate Forum with News post
#post9113
forumid ??
Delete Edit Quote
 
astralux
Junior Member
Avatar

Posts: 63
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 02/07/2008 20:19
Re: Option to Integrate Forum with News post
#post9114
code
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:wwwportalinjoyfilesadminpagesnewsindex.php on line 138


Help Please
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5118
Contributes: 2461

Gender: _MALE_
Online: No
Date: 02/07/2008 20:55
Re: Option to Integrate Forum with News post
#post9120
forumid = number of the forum where you want the thread to be added
Delete Edit Quote
 
astralux
Junior Member
Avatar

Posts: 63
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 02/07/2008 21:46
Re: Option to Integrate Forum with News post
#post9132
quote
mem:
forumid = number of the forum where you want the thread to be added




code
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:wwwportalinjoyfilesadminpagesnewsindex.php on line 138
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5118
Contributes: 2461

Gender: _MALE_
Online: No
Date: 02/07/2008 22:17
Re: Option to Integrate Forum with News post
#post9138
You made some error, check the row 138. I'm not a wizard, i don't know what have you done Smile
Delete Edit Quote
 
Reply
Page 1/2 1 2 >
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo