17 require_once SQ_INCLUDE_PATH.
'/asset_edit/asset_edit_fns.inc';
42 $this->static_screens = Array(
45 'force_unlock' => TRUE,
46 'lock_type' =>
'none',
48 'dependants' => Array(
49 'name' =>
'Dependants',
50 'force_unlock' => TRUE,
51 'lock_type' =>
'none',
70 $tmp = explode(
':', $asset->id);
71 $tmp = explode(
'_', $tmp[1]);
73 $ipb_bridge =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($asset->_ipbid);
74 $ipb =& $ipb_bridge->getIpbConn();
75 $posts = $ipb->getListOfPosts(0, $tmp[1], 10);
78 $o->openField(translate(
'list_of_recent_posts'));
79 echo translate(
'no_post_in_forum');
82 $o->openField(translate(
'list_of_recent_posts'));
84 <table
class=
"sq-backend-table">
86 <th style=
"width: 35%"><?php echo translate(
'topic'); ?></th>
87 <th style=
"width: 45%"><?php echo translate(
'post'); ?></th>
88 <th style=
"width: 20%"><?php echo translate(
'author'); ?></th>
91 foreach ($posts as $post) {
94 <td><?php echo get_asset_tag_line($asset->_ipbid.
':'.
't_'.$post[
'tid']); ?></td>
95 <td><?php echo get_asset_tag_line($asset->_ipbid.
':'.
'p_'.$post[
'id']); ?></td>
96 <td><?php echo get_asset_tag_line($asset->_ipbid.
':'.
'u_'.$post[
'author_id']); ?></td>
137 $last_poster_name = $asset->attr(
'last_poster_name');
139 if (!empty($last_poster_name)) {
141 $ipb_bridge =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($asset->_ipbid);
142 $ipb =& $ipb_bridge->getIpbConn();
143 $result = $ipb->getMemberInfoByName($asset->attr(
'last_poster_name'));
145 $o->openField(translate(
'last_posted_by'));
146 $author_tag_line = get_asset_tag_line($asset->_ipbid.
':'.
'u_'.$result[
'id']);
147 echo $author_tag_line;
152 $o->openField(translate(
'last_posted_by'));
153 echo translate(
'none');
175 $ipb_bridge =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($asset->_ipbid);
176 $ipb =& $ipb_bridge->getIpbConn();
177 $root_forums = $ipb->getListOfRootForums();
179 if (empty($root_forums)) {
180 $o->openField(translate(
'list_of_root_forums'));
181 echo translate(
'no_forums_in_ipb');
184 $o->openField(translate(
'list_of_forums'));
186 <table
class=
"sq-backend-table">
188 <th style=
"width: 50%"><?php echo translate(
'name'); ?></th>
189 <th style=
"width: 50%"><?php echo translate(
'asset'); ?></th>
192 foreach ($root_forums as $root_forum) {
193 $data = $ipb->getRootForumInfo($ipb_bridge->id.
':'.
'r_'.$root_forum[
'id']);
196 <td style=
"font-weight: bold;"><?php echo $data[
'name']; ?></td>
197 <td><?php echo get_asset_tag_line($asset->_ipbid.
':'.
'r_'.$data[
'id']); ?></td>
236 return $asset->_suffix ==
'0';
252 return (!$this->
isCategory($asset, $prefix) && $asset->_prefix ==
'f');