FluxBB

Implementation of FluxBB Forum converter.

Defined (1)

The class is defined in the following location(s).

/includes/admin/converters/FluxBB.php  
  1. class FluxBB extends BBP_Converter_Base { 
  2.  
  3. /** 
  4. * Main Constructor 
  5. * @uses FluxBB::setup_globals() 
  6. */ 
  7. function __construct() { 
  8. parent::__construct(); 
  9. $this->setup_globals(); 
  10.  
  11. /** 
  12. * Sets up the field mappings 
  13. */ 
  14. public function setup_globals() { 
  15.  
  16. /** Forum Section *****************************************************/ 
  17.  
  18. // Forum id (Stored in postmeta) 
  19. $this->field_map[] = array( 
  20. 'from_tablename' => 'forums',  
  21. 'from_fieldname' => 'id',  
  22. 'to_type' => 'forum',  
  23. 'to_fieldname' => '_bbp_forum_id' 
  24. ); 
  25.  
  26. // Forum topic count (Stored in postmeta) 
  27. $this->field_map[] = array( 
  28. 'from_tablename' => 'forums',  
  29. 'from_fieldname' => 'num_topics',  
  30. 'to_type' => 'forum',  
  31. 'to_fieldname' => '_bbp_topic_count' 
  32. ); 
  33.  
  34. // Forum reply count (Stored in postmeta) 
  35. $this->field_map[] = array( 
  36. 'from_tablename' => 'forums',  
  37. 'from_fieldname' => 'num_posts',  
  38. 'to_type' => 'forum',  
  39. 'to_fieldname' => '_bbp_reply_count' 
  40. ); 
  41.  
  42. // Forum total topic count (Stored in postmeta) 
  43. $this->field_map[] = array( 
  44. 'from_tablename' => 'forums',  
  45. 'from_fieldname' => 'num_topics',  
  46. 'to_type' => 'forum',  
  47. 'to_fieldname' => '_bbp_total_topic_count' 
  48. ); 
  49.  
  50. // Forum total reply count (Stored in postmeta) 
  51. $this->field_map[] = array( 
  52. 'from_tablename' => 'forums',  
  53. 'from_fieldname' => 'num_posts',  
  54. 'to_type' => 'forum',  
  55. 'to_fieldname' => '_bbp_total_reply_count' 
  56. ); 
  57.  
  58. // Forum title. 
  59. $this->field_map[] = array( 
  60. 'from_tablename' => 'forums',  
  61. 'from_fieldname' => 'forum_name',  
  62. 'to_type' => 'forum',  
  63. 'to_fieldname' => 'post_title' 
  64. ); 
  65.  
  66. // Forum slug (Clean name to avoid conflicts) 
  67. $this->field_map[] = array( 
  68. 'from_tablename' => 'forums',  
  69. 'from_fieldname' => 'forum_name',  
  70. 'to_type' => 'forum',  
  71. 'to_fieldname' => 'post_name',  
  72. 'callback_method' => 'callback_slug' 
  73. ); 
  74.  
  75. // Forum description. 
  76. $this->field_map[] = array( 
  77. 'from_tablename' => 'forums',  
  78. 'from_fieldname' => 'forum_desc',  
  79. 'to_type' => 'forum',  
  80. 'to_fieldname' => 'post_content',  
  81. 'callback_method' => 'callback_null' 
  82. ); 
  83.  
  84. // Forum display order (Starts from 1) 
  85. $this->field_map[] = array( 
  86. 'from_tablename' => 'forums',  
  87. 'from_fieldname' => 'disp_position',  
  88. 'to_type' => 'forum',  
  89. 'to_fieldname' => 'menu_order' 
  90. ); 
  91.  
  92. // Forum dates. 
  93. $this->field_map[] = array( 
  94. 'to_type' => 'forum',  
  95. 'to_fieldname' => 'post_date',  
  96. 'default' => date('Y-m-d H:i:s') 
  97. ); 
  98. $this->field_map[] = array( 
  99. 'to_type' => 'forum',  
  100. 'to_fieldname' => 'post_date_gmt',  
  101. 'default' => date('Y-m-d H:i:s') 
  102. ); 
  103. $this->field_map[] = array( 
  104. 'to_type' => 'forum',  
  105. 'to_fieldname' => 'post_modified',  
  106. 'default' => date('Y-m-d H:i:s') 
  107. ); 
  108. $this->field_map[] = array( 
  109. 'to_type' => 'forum',  
  110. 'to_fieldname' => 'post_modified_gmt',  
  111. 'default' => date('Y-m-d H:i:s') 
  112. ); 
  113.  
  114. /** Topic Section *****************************************************/ 
  115.  
  116. // Topic id (Stored in postmeta) 
  117. $this->field_map[] = array( 
  118. 'from_tablename' => 'topics',  
  119. 'from_fieldname' => 'id',  
  120. 'to_type' => 'topic',  
  121. 'to_fieldname' => '_bbp_topic_id' 
  122. ); 
  123.  
  124. // Topic reply count (Stored in postmeta) 
  125. $this->field_map[] = array( 
  126. 'from_tablename' => 'topics',  
  127. 'from_fieldname' => 'num_replies',  
  128. 'to_type' => 'topic',  
  129. 'to_fieldname' => '_bbp_reply_count',  
  130. 'callback_method' => 'callback_topic_reply_count' 
  131. ); 
  132.  
  133. // Topic total reply count (Includes unpublished replies, Stored in postmeta) 
  134. $this->field_map[] = array( 
  135. 'from_tablename' => 'topics',  
  136. 'from_fieldname' => 'num_replies',  
  137. 'to_type' => 'topic',  
  138. 'to_fieldname' => '_bbp_total_reply_count',  
  139. 'callback_method' => 'callback_topic_reply_count' 
  140. ); 
  141.  
  142. // Topic parent forum id (If no parent, then 0, Stored in postmeta) 
  143. $this->field_map[] = array( 
  144. 'from_tablename' => 'topics',  
  145. 'from_fieldname' => 'forum_id',  
  146. 'to_type' => 'topic',  
  147. 'to_fieldname' => '_bbp_forum_id',  
  148. 'callback_method' => 'callback_forumid' 
  149. ); 
  150.  
  151. // Topic author. 
  152. // Note: We join the 'posts' table because 'topics' table does include numeric user id. 
  153. $this->field_map[] = array( 
  154. 'from_tablename' => 'posts',  
  155. 'from_fieldname' => 'poster_id',  
  156. 'join_tablename' => 'topics',  
  157. 'join_type' => 'INNER',  
  158. 'join_expression' => 'ON topics.first_post_id = posts.id',  
  159. 'to_type' => 'topic',  
  160. 'to_fieldname' => 'post_author',  
  161. 'callback_method' => 'callback_userid' 
  162. ); 
  163.  
  164. // Topic Author ip (Stored in postmeta) 
  165. // Note: We join the 'posts' table because 'topics' table does not include author IP addresses. 
  166. $this->field_map[] = array( 
  167. 'from_tablename' => 'posts',  
  168. 'from_fieldname' => 'poster_ip',  
  169. 'join_tablename' => 'topics',  
  170. 'join_type' => 'INNER',  
  171. 'join_expression' => 'ON topics.first_post_id = posts.id',  
  172. 'to_type' => 'topic',  
  173. 'to_fieldname' => '_bbp_author_ip' 
  174. ); 
  175.  
  176. // Topic content. 
  177. // Note: We join the 'posts' table because 'topics' table does not include topic content. 
  178. $this->field_map[] = array( 
  179. 'from_tablename' => 'posts',  
  180. 'from_fieldname' => 'message',  
  181. 'join_tablename' => 'topics',  
  182. 'join_type' => 'INNER',  
  183. 'join_expression' => 'ON topics.first_post_id = posts.id',  
  184. 'to_type' => 'topic',  
  185. 'to_fieldname' => 'post_content',  
  186. 'callback_method' => 'callback_html' 
  187. ); 
  188.  
  189. // Topic title. 
  190. $this->field_map[] = array( 
  191. 'from_tablename' => 'topics',  
  192. 'from_fieldname' => 'subject',  
  193. 'to_type' => 'topic',  
  194. 'to_fieldname' => 'post_title' 
  195. ); 
  196.  
  197. // Topic slug (Clean name to avoid conflicts) 
  198. $this->field_map[] = array( 
  199. 'from_tablename' => 'topics',  
  200. 'from_fieldname' => 'subject',  
  201. 'to_type' => 'topic',  
  202. 'to_fieldname' => 'post_name',  
  203. 'callback_method' => 'callback_slug' 
  204. ); 
  205.  
  206. // Topic parent forum id (If no parent, then 0) 
  207. $this->field_map[] = array( 
  208. 'from_tablename' => 'topics',  
  209. 'from_fieldname' => 'forum_id',  
  210. 'to_type' => 'topic',  
  211. 'to_fieldname' => 'post_parent',  
  212. 'callback_method' => 'callback_forumid' 
  213. ); 
  214.  
  215. // Sticky status (Stored in postmeta)) 
  216. $this->field_map[] = array( 
  217. 'from_tablename' => 'topics',  
  218. 'from_fieldname' => 'sticky',  
  219. 'to_type' => 'topic',  
  220. 'to_fieldname' => '_bbp_old_sticky_status',  
  221. 'callback_method' => 'callback_sticky_status' 
  222. ); 
  223.  
  224. // Topic dates. 
  225. $this->field_map[] = array( 
  226. 'from_tablename' => 'topics',  
  227. 'from_fieldname' => 'posted',  
  228. 'to_type' => 'topic',  
  229. 'to_fieldname' => 'post_date',  
  230. 'callback_method' => 'callback_datetime' 
  231. ); 
  232. $this->field_map[] = array( 
  233. 'from_tablename' => 'topics',  
  234. 'from_fieldname' => 'posted',  
  235. 'to_type' => 'topic',  
  236. 'to_fieldname' => 'post_date_gmt',  
  237. 'callback_method' => 'callback_datetime' 
  238. ); 
  239. $this->field_map[] = array( 
  240. 'from_tablename' => 'topics',  
  241. 'from_fieldname' => 'posted',  
  242. 'to_type' => 'topic',  
  243. 'to_fieldname' => 'post_modified',  
  244. 'callback_method' => 'callback_datetime' 
  245. ); 
  246. $this->field_map[] = array( 
  247. 'from_tablename' => 'topics',  
  248. 'from_fieldname' => 'posted',  
  249. 'to_type' => 'topic',  
  250. 'to_fieldname' => 'post_modified_gmt',  
  251. 'callback_method' => 'callback_datetime' 
  252. ); 
  253. $this->field_map[] = array( 
  254. 'from_tablename' => 'topics',  
  255. 'from_fieldname' => 'posted',  
  256. 'to_type' => 'topic',  
  257. 'to_fieldname' => '_bbp_last_active_time',  
  258. 'callback_method' => 'callback_datetime' 
  259. ); 
  260.  
  261. // Topic status (Open = 0 or Closed = 1, FluxBB v1.5.3) 
  262. $this->field_map[] = array( 
  263. 'from_tablename' => 'topics',  
  264. 'from_fieldname' => 'closed',  
  265. 'to_type' => 'topic',  
  266. 'to_fieldname' => 'post_status',  
  267. 'callback_method' => 'callback_topic_status' 
  268. ); 
  269.  
  270. /** Tags Section ******************************************************/ 
  271.  
  272. /** 
  273. * FluxBB v1.5.3 Forums do not support topic tags out of the box 
  274. */ 
  275.  
  276. /** Reply Section *****************************************************/ 
  277.  
  278. // Reply id (Stored in postmeta) 
  279. $this->field_map[] = array( 
  280. 'from_tablename' => 'posts',  
  281. 'from_fieldname' => 'id',  
  282. 'to_type' => 'reply',  
  283. 'to_fieldname' => '_bbp_post_id' 
  284. ); 
  285.  
  286. // Reply parent forum id (If no parent, then 0, Stored in postmeta) 
  287. $this->field_map[] = array( 
  288. 'from_tablename' => 'posts',  
  289. 'from_fieldname' => 'topic_id',  
  290. 'to_type' => 'reply',  
  291. 'to_fieldname' => '_bbp_forum_id',  
  292. 'callback_method' => 'callback_topicid_to_forumid' 
  293. ); 
  294.  
  295. // Reply parent topic id (If no parent, then 0, Stored in postmeta) 
  296. $this->field_map[] = array( 
  297. 'from_tablename' => 'posts',  
  298. 'from_fieldname' => 'topic_id',  
  299. 'to_type' => 'reply',  
  300. 'to_fieldname' => '_bbp_topic_id',  
  301. 'callback_method' => 'callback_topicid' 
  302. ); 
  303.  
  304. // Reply author ip (Stored in postmeta) 
  305. $this->field_map[] = array( 
  306. 'from_tablename' => 'posts',  
  307. 'from_fieldname' => 'poster_ip',  
  308. 'to_type' => 'reply',  
  309. 'to_fieldname' => '_bbp_author_ip' 
  310. ); 
  311.  
  312. // Reply author. 
  313. $this->field_map[] = array( 
  314. 'from_tablename' => 'posts',  
  315. 'from_fieldname' => 'poster_id',  
  316. 'to_type' => 'reply',  
  317. 'to_fieldname' => 'post_author',  
  318. 'callback_method' => 'callback_userid' 
  319. ); 
  320.  
  321. // Reply title. 
  322. // Note: We join the 'topics' table because 'posts' table does not include reply title. 
  323. $this->field_map[] = array( 
  324. 'from_tablename' => 'topics',  
  325. 'from_fieldname' => 'subject',  
  326. 'join_tablename' => 'posts',  
  327. 'join_type' => 'INNER',  
  328. 'join_expression' => 'ON topics.id = posts.topic_id WHERE topics.first_post_id != posts.id',  
  329. 'to_type' => 'reply',  
  330. 'to_fieldname' => 'post_title',  
  331. 'callback_method' => 'callback_reply_title' 
  332. ); 
  333.  
  334. // Reply slug (Clean name to avoid conflicts) 
  335. // Note: We join the 'topics' table because 'posts' table does not include slug title. 
  336. $this->field_map[] = array( 
  337. 'from_tablename' => 'topics',  
  338. 'from_fieldname' => 'subject',  
  339. 'join_tablename' => 'posts',  
  340. 'join_type' => 'INNER',  
  341. 'join_expression' => 'ON topics.id = posts.topic_id WHERE topics.first_post_id != posts.id',  
  342. 'to_type' => 'reply',  
  343. 'to_fieldname' => 'post_name',  
  344. 'callback_method' => 'callback_slug' 
  345. ); 
  346.  
  347. // Reply content. 
  348. $this->field_map[] = array( 
  349. 'from_tablename' => 'posts',  
  350. 'from_fieldname' => 'message',  
  351. 'to_type' => 'reply',  
  352. 'to_fieldname' => 'post_content',  
  353. 'callback_method' => 'callback_html' 
  354. ); 
  355.  
  356. // Reply parent topic id (If no parent, then 0) 
  357. $this->field_map[] = array( 
  358. 'from_tablename' => 'posts',  
  359. 'from_fieldname' => 'topic_id',  
  360. 'to_type' => 'reply',  
  361. 'to_fieldname' => 'post_parent',  
  362. 'callback_method' => 'callback_topicid' 
  363. ); 
  364.  
  365. // Reply dates. 
  366. $this->field_map[] = array( 
  367. 'from_tablename' => 'posts',  
  368. 'from_fieldname' => 'posted',  
  369. 'to_type' => 'reply',  
  370. 'to_fieldname' => 'post_date',  
  371. 'callback_method' => 'callback_datetime' 
  372. ); 
  373. $this->field_map[] = array( 
  374. 'from_tablename' => 'posts',  
  375. 'from_fieldname' => 'posted',  
  376. 'to_type' => 'reply',  
  377. 'to_fieldname' => 'post_date_gmt',  
  378. 'callback_method' => 'callback_datetime' 
  379. ); 
  380. $this->field_map[] = array( 
  381. 'from_tablename' => 'posts',  
  382. 'from_fieldname' => 'posted',  
  383. 'to_type' => 'reply',  
  384. 'to_fieldname' => 'post_modified',  
  385. 'callback_method' => 'callback_datetime' 
  386. ); 
  387. $this->field_map[] = array( 
  388. 'from_tablename' => 'posts',  
  389. 'from_fieldname' => 'posted',  
  390. 'to_type' => 'reply',  
  391. 'to_fieldname' => 'post_modified_gmt',  
  392. 'callback_method' => 'callback_datetime' 
  393. ); 
  394.  
  395. /** User Section ******************************************************/ 
  396.  
  397. // Store old User id (Stored in usermeta) 
  398. $this->field_map[] = array( 
  399. 'from_tablename' => 'users',  
  400. 'from_fieldname' => 'id',  
  401. 'to_type' => 'user',  
  402. 'to_fieldname' => '_bbp_user_id' 
  403. ); 
  404.  
  405. // Store old User password (Stored in usermeta serialized with salt) 
  406. $this->field_map[] = array( 
  407. 'from_tablename' => 'users',  
  408. 'from_fieldname' => 'password',  
  409. 'to_type' => 'user',  
  410. 'to_fieldname' => '_bbp_password',  
  411. 'callback_method' => 'callback_savepass' 
  412. ); 
  413.  
  414. // Store old User Salt (This is only used for the SELECT row info for the above password save) 
  415. // $this->field_map[] = array( 
  416. // 'from_tablename' => 'users',  
  417. // 'from_fieldname' => 'salt',  
  418. // 'to_type' => 'user',  
  419. // 'to_fieldname' => '' 
  420. // ); 
  421.  
  422. // User password verify class (Stored in usermeta for verifying password) 
  423. $this->field_map[] = array( 
  424. 'to_type' => 'users',  
  425. 'to_fieldname' => '_bbp_class',  
  426. 'default' => 'FluxBB' 
  427. ); 
  428.  
  429. // User name. 
  430. $this->field_map[] = array( 
  431. 'from_tablename' => 'users',  
  432. 'from_fieldname' => 'username',  
  433. 'to_type' => 'user',  
  434. 'to_fieldname' => 'user_login' 
  435. ); 
  436.  
  437. // User nice name. 
  438. $this->field_map[] = array( 
  439. 'from_tablename' => 'users',  
  440. 'from_fieldname' => 'username',  
  441. 'to_type' => 'user',  
  442. 'to_fieldname' => 'user_nicename' 
  443. ); 
  444.  
  445. // User email. 
  446. $this->field_map[] = array( 
  447. 'from_tablename' => 'users',  
  448. 'from_fieldname' => 'email',  
  449. 'to_type' => 'user',  
  450. 'to_fieldname' => 'user_email' 
  451. ); 
  452.  
  453. // User homepage. 
  454. $this->field_map[] = array( 
  455. 'from_tablename' => 'users',  
  456. 'from_fieldname' => 'url',  
  457. 'to_type' => 'user',  
  458. 'to_fieldname' => 'user_url' 
  459. ); 
  460.  
  461. // User registered. 
  462. $this->field_map[] = array( 
  463. 'from_tablename' => 'users',  
  464. 'from_fieldname' => 'registered',  
  465. 'to_type' => 'user',  
  466. 'to_fieldname' => 'user_registered',  
  467. 'callback_method' => 'callback_datetime' 
  468. ); 
  469.  
  470. // User display name. 
  471. $this->field_map[] = array( 
  472. 'from_tablename' => 'users',  
  473. 'from_fieldname' => 'realname',  
  474. 'to_type' => 'user',  
  475. 'to_fieldname' => 'display_name' 
  476. ); 
  477.  
  478. // User AIM (Stored in usermeta) 
  479. $this->field_map[] = array( 
  480. 'from_tablename' => 'users',  
  481. 'from_fieldname' => 'aim',  
  482. 'to_type' => 'user',  
  483. 'to_fieldname' => 'aim' 
  484. ); 
  485.  
  486. // User Yahoo (Stored in usermeta) 
  487. $this->field_map[] = array( 
  488. 'from_tablename' => 'users',  
  489. 'from_fieldname' => 'yahoo',  
  490. 'to_type' => 'user',  
  491. 'to_fieldname' => 'yim' 
  492. ); 
  493.  
  494. // Store Jabber 
  495. $this->field_map[] = array( 
  496. 'from_tablename' => 'users',  
  497. 'from_fieldname' => 'jabber',  
  498. 'to_type' => 'user',  
  499. 'to_fieldname' => 'jabber' 
  500. ); 
  501.  
  502. // Store ICQ (Stored in usermeta) 
  503. $this->field_map[] = array( 
  504. 'from_tablename' => 'users',  
  505. 'from_fieldname' => 'icq',  
  506. 'to_type' => 'user',  
  507. 'to_fieldname' => '_bbp_fluxbb_user_icq' 
  508. ); 
  509.  
  510. // Store MSN (Stored in usermeta) 
  511. $this->field_map[] = array( 
  512. 'from_tablename' => 'users',  
  513. 'from_fieldname' => 'msn',  
  514. 'to_type' => 'user',  
  515. 'to_fieldname' => '_bbp_fluxbb_user_msn' 
  516. ); 
  517.  
  518. // Store Location (Stored in usermeta) 
  519. $this->field_map[] = array( 
  520. 'from_tablename' => 'users',  
  521. 'from_fieldname' => 'location',  
  522. 'to_type' => 'user',  
  523. 'to_fieldname' => '_bbp_fluxbb_user_location' 
  524. ); 
  525.  
  526. // Store Signature (Stored in usermeta) 
  527. $this->field_map[] = array( 
  528. 'from_tablename' => 'users',  
  529. 'from_fieldname' => 'signature',  
  530. 'to_type' => 'user',  
  531. 'to_fieldname' => '_bbp_fluxbb_user_sig',  
  532. 'callback_method' => 'callback_html' 
  533. ); 
  534.  
  535. // Store Admin Note (Stored in usermeta) 
  536. $this->field_map[] = array( 
  537. 'from_tablename' => 'users',  
  538. 'from_fieldname' => 'admin_note',  
  539. 'to_type' => 'user',  
  540. 'to_fieldname' => '_bbp_fluxbb_user_admin_note' 
  541. ); 
  542.  
  543.  
  544. /** 
  545. * This method allows us to indicates what is or is not converted for each 
  546. * converter. 
  547. */ 
  548. public function info() 
  549. return ''; 
  550.  
  551. /** 
  552. * This method is to save the salt and password together. That 
  553. * way when we authenticate it we can get it out of the database 
  554. * as one value. Array values are auto sanitized by WordPress. 
  555. */ 
  556. public function callback_savepass( $field, $row ) 
  557. $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 
  558. return $pass_array; 
  559.  
  560. /** 
  561. * This method is to take the pass out of the database and compare 
  562. * to a pass the user has typed in. 
  563. */ 
  564. public function authenticate_pass( $password, $serialized_pass ) 
  565. $pass_array = unserialize( $serialized_pass ); 
  566. return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); 
  567.  
  568. /** 
  569. * Translate the post status from FluxBB v1.5.3 numeric's to WordPress's strings. 
  570. * @param int $status FluxBB v1.5.3 numeric topic status 
  571. * @return string WordPress safe 
  572. */ 
  573. public function callback_topic_status( $status = 0 ) { 
  574. switch ( $status ) { 
  575. case 1 : 
  576. $status = 'closed'; 
  577. break; 
  578.  
  579. case 0 : 
  580. default : 
  581. $status = 'publish'; 
  582. break; 
  583. return $status; 
  584.  
  585. /** 
  586. * Translate the topic sticky status type from FluxBB v1.5.3 numeric's to WordPress's strings. 
  587. * @param int $status FluxBB v1.5.3 numeric forum type 
  588. * @return string WordPress safe 
  589. */ 
  590. public function callback_sticky_status( $status = 0 ) { 
  591. switch ( $status ) { 
  592. case 1 : 
  593. $status = 'sticky'; // FluxBB Sticky 'sticky = 1' 
  594. break; 
  595.  
  596. case 0 : 
  597. default : 
  598. $status = 'normal'; // FluxBB Normal Topic 'sticky = 0' 
  599. break; 
  600. return $status; 
  601.  
  602. /** 
  603. * Verify the topic/reply count. 
  604. * @param int $count FluxBB v1.5.3 topic/reply counts 
  605. * @return string WordPress safe 
  606. */ 
  607. public function callback_topic_reply_count( $count = 1 ) { 
  608. $count = absint( (int) $count - 1 ); 
  609. return $count; 
  610.  
  611. /** 
  612. * Set the reply title 
  613. * @param string $title FluxBB v1.5.3 topic title of this reply 
  614. * @return string Prefixed topic title, or empty string 
  615. */ 
  616. public function callback_reply_title( $title = '' ) { 
  617. $title = !empty( $title ) ? __( 'Re: ', 'bbpress' ) . html_entity_decode( $title ) : ''; 
  618. return $title;