Comment section selection
rasp1 64
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
It didn't work. I added it in right after the line. When I would goto the add new story, I would get the blank page of death. Here is the code snippet from the file. I got the forumid and the authorid from the forum control panel.
Replace:
$forumid*=*27;
$author*=*"Comments";
$authorid*=*391;
with:
$forumid=27;
$author="Comments";
$authorid=391;
1 Re: Comment section selection
rasp1
OP
64
From: -
From: -
It didn't work. I added it in right after the line. When I would goto the add new story, I would get the blank page of death. Here is the code snippet from the file. I got the forumid and the authorid from the forum control panel.
function addthread( $title, $text, $link, $forumid, $author, $authorid )
{
global $preferences, $uwrapper, $ipaddr;
$uwrapper -> bbconnect();
$forumid*=*27;
$author*=*"Comments";
$authorid*=*391;
$uwrapper -> bbquery( "UPDATE " . $uwrapper -> bbescape( $preferences[ 'website_uwrapper_prefix' ] ) . "setting SET value = '999999' WHERE varname = 'cachemaxage'" );
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
That fixed it.
Is there any way I can just set the default forum for it to just the comments fora, and change the user name it posts under to something like system or comments?
Open class_uwrapper_vb38.php in an editor and find:
function addthread( $title, $text, $link, $forumid, $author, $authorid )
{
global $preferences, $uwrapper, $ipaddr;
$uwrapper -> bbconnect();
Then add the following:
$forumid = 1;
$author = "Comments";
$authorid = 1;
Replace the values of forumid/authorid with the IDs of the post forum and user, and author with the user name.
And any way to migrate and set up comments posts for existing news stories?
No
1 Re: Comment section selection
rasp1
OP
64
From: -
From: -
That fixed it.
Is there any way I can just set the default forum for it to just the comments fora, and change the user name it posts under to something like system or comments?
And any way to migrate and set up comments posts for existing news stories?
Is there any way I can just set the default forum for it to just the comments fora, and change the user name it posts under to something like system or comments?
And any way to migrate and set up comments posts for existing news stories?
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
1 Re: Comment section selection
rasp1
OP
64
From: -
From: -
I made the change to function getforums on line 445 of the vb38.php file you listed, and when I did it caused the all of the admin pages to go blank. Nothing displayed onto them. didn't check the view source.
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
Confirmed. Here the fix. Replace the function getforums() in classes/class_uwrapper_vb38.php with the following:
function getforums()
{
global $preferences, $uwrapper;
$uwrapper -> bbconnect();
$forums = array();
$query = $uwrapper -> bbquery( "SELECT forumid, title, options FROM " . $uwrapper -> bbescape( $preferences[ 'website_uwrapper_prefix' ] ) . "forum ORDER BY displayorder" );
if( $uwrapper -> bbrows( $query ) )
{
while( list( $forumid, $title, $options ) = $uwrapper -> bbrow( $query ) )
{
if ( $options & 4 )
{
$forums[ ] = $forumid . "|^Z|" . base64_encode( $title );
}
}
}
else
{
$forums = 0;
}
$uwrapper -> bbclose();
return $forums;
}
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
So the comments forum is not under any category?
1 Re: Comment section selection
rasp1
OP
64
From: -
From: -
I'm using vbulletin 3.8.x. I'm not sure what you mean about how is it structure. I have upper categories with sub categories/fora. I set the comment section/fora up after I installed Content teller. It isn't under a category or fora. But it does not show up in the list of forums I can choose.
At the moment it I have had them post to another forum, but would like to migrate them to the other fora, and change the user name it posts under.
At the moment it I have had them post to another forum, but would like to migrate them to the other fora, and change the user name it posts under.
1 Re: Comment section selection
Philipp Esselbach
From: -
Editor
0From: -
Which forum software/version are you using? How does your forum structure looks like?
I set up a specific fora just for comments to be made in the forums, but it doesn't show up in the list of available fora for comments. I would like to be able to just hard code it to that fora in like the preferences or something.
What do I need to do?
rasp1