MyBB Community Forums

Full Version: Portal Annoucements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I dont have any Annoucements showing up on my portal page despite setting everything up correctly and giving a valid fid.

Just have a blank space, no errors.

This is after a phpbb3 conversion.

Interestingly this is the second text conversion I have done, the first time round Annoucements did show up.
What's your URL and the ID you put in??
I see to have resolved this now, I had to open each of the threads in the specified forum for them to then show on the portal.

I didnt need to reply just open and close the threads.
having almost same problem. I'm using mod "forms manager" which creates new threads after user filled out form and this new threads doesn't show up on portal until someone opens this thread. Why portal doesn't show unread threads?
I can't see how just viewing a thread would make it show, there's nothing in portal.php that shows threads with a certain amount of views, there's just a query to fetch the threads... they show up just fine on my localhost even when I haven't viewed them.
well take a look then Smile

portal is here:
http://bb.leehost.ru/portal.php

form is here:
http://bb.leehost.ru/forms.php?id=1

just fill out the form and you'll see everything by yourself Smile
type anything you want into fields
Considering that isn't a default feature there may be another reason for it, in the plugin. Default announcements show fine so it looks like if these aren't showing, then the issue is with the plugin. I tested the default functionality, works just fine. Try and test it in the normal way, make a thread normally, it'll show up.
looks like this plugin creates thread uncommon way. When you create thread using deafault feature announce shows up on portal page. Well then what's the difference of creating thread between plugin-way and default-way?

i guess this part of plugin creates new thred:
	$user=$mybb->user['username'];
		if ($user == '')
		{
			$user="Guest";
		}
		$uid=$mybb->user['uid'];
		$insert_array = array(
		"fid" => intval($form['forum_fid']),
		"subject" => "Город: $form[name]",
		"icon" => 0,
		"uid" => intval($uid),
		"username" =>  $user,
		"dateline" => time(),
		"lastpost" => time(),
		"closed" => "",
		"visible" => 1,
		);
		$db->insert_query("threads", $insert_array);
		$newtid = $db->insert_id();
		$insert_post = array(
		"tid" => intval($newtid),
		"subject" => "Город: $form[name]",
		"fid" => intval($form[forum_fid]),
		"uid" => intval($uid),
		"username" =>  $user,
		"dateline" => time(),
		"message" => $bbmessage,
		"visible" => 1,
		);

I noticed that when you create thread usual way there appears record in SQL "mybb_threadsread" about this thread and when plugin creates thread there is no any records in "mybb_threadsread" could it be the reason?
I solved it Smile I have no questions, thank you MattRogowski Smile