Portal MODS
#1 29-05-2015 
  • Registered
  • 8
  • 5
Hi, Im modifying the PHP code for portal.php.
I'd like to add the message content to de string $latestthread, but I dont know if only adding for example:
$query = $db->query(" t.message ... etc

and then catching this

$thread['message']

and insert it in template will work.

Have you any suguest?

0
#2 29-05-2015 
The message content is in the posts table in the database. This means you will need to create an inner join to the posts table in your query. That is a heavy query though. What you can do is install ZingaBurga's post preview (100 characters or so) and using that you can access a cached copy of the post preview; you may need to edit the plugin a little if you don't want the tooltip on the search results.

http://mybbhacks.zingaburga.com/showthread.php?tid=267

0
#3 05-06-2015 
  • Registered
  • 8
  • 5
I'll take a look, thx.

0
#4 07-06-2015 
If you want to post your query I can help a bit more Smile

0


Sorry, that is a members only option