1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

remove incompatible hook= code; replace w/ new support for "SuperModifiers" as designed

by team
This commit is contained in:
mrpete 2007-01-20 16:25:55 +00:00
parent 13549ec96b
commit 54632f7965
3 changed files with 11 additions and 8 deletions

View File

@ -22,7 +22,7 @@ SC_END
SC_BEGIN POST
global $post_info, $tp, $iphost;
$ret = "";
$ret = $tp->toHTML($post_info["thread_thread"], TRUE, "hook=content", 'class:'.$post_info["user_class"]);
$ret = $tp->toHTML($post_info["thread_thread"], TRUE, "BODY", 'class:'.$post_info["user_class"]);
if (ADMIN && $iphost) {
$ret .= "<br />".$iphost;
}

View File

@ -163,7 +163,7 @@ SC_END
SC_BEGIN LINK_MAIN_DESC
global $LINK_MAIN_DESC, $rowl, $linkspage_pref, $tp;
return (isset($linkspage_pref['link_cat_desc']) && $linkspage_pref['link_cat_desc'] ? $tp->toHTML($rowl['link_category_description'], TRUE,'hook=description') : "");
return (isset($linkspage_pref['link_cat_desc']) && $linkspage_pref['link_cat_desc'] ? $tp->toHTML($rowl['link_category_description'], TRUE,'description') : "");
SC_END
SC_BEGIN LINK_MAIN_NUMBER
@ -308,7 +308,7 @@ SC_END
SC_BEGIN LINK_DESC
global $LINK_DESC, $linkspage_pref, $tp, $rowl;
return (isset($linkspage_pref['link_desc']) && $linkspage_pref['link_desc'] ? $tp->toHTML($rowl['link_description'], TRUE,'hook=content') : "");
return (isset($linkspage_pref['link_desc']) && $linkspage_pref['link_desc'] ? $tp->toHTML($rowl['link_description'], TRUE,'BODY') : "");
SC_END
SC_BEGIN LINK_RATING

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $
| $Revision: 1.3 $
| $Date: 2007-01-17 21:29:28 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2007-01-20 16:25:55 $
| $Author: mrpete $
|
+----------------------------------------------------------------------------+
*/
@ -27,10 +27,13 @@ class e_linkwords
var $link_list = array(); // Corresponding list of links to apply
var $tip_list = array();
var $area_opts = array(
'olddefault' => TRUE,
'title' => FALSE,
'summary' => FALSE,
'content' => TRUE,
'description' => TRUE
'body' => TRUE,
'description' => TRUE,
'linktext' => FALSE,
'rawtext' => FALSE
); // We can set this from prefs later
var $block_list = array(
// 'page.php?3',