| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  eval('$home[$mods[\'modid\']][\'content\' 
			
			Hi, please, please, please can someone help me understand what has happened. I'm trying to convert an old (abandoned) module. I have got it working ok and even upgraded the plugin for it... but I'm stuck with the following lines of code: This is what the code is: Code: eval('$commentbits .= "' . fetch_template('adv_gallery_commentbit') . '";');
		}
}
set_commentbits();
//eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_gallery_comments') . '";');Now I read as much as I could find and understand that this old VB3 code called a hook and VB4 cannot do this any longer. So I tried to do this... Code: //	eval('$commentbits .= "' . fetch_template('adv_gallery_commentbit') . '";');
		$templater = vB_Template::create('adv_gallery_commentbit');
		$templater->register('commentbits',$commentbits);
		//$commentbits = $commentbits->render();
    //return $commentbits;
		}
}
set_commentbits();
//eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_gallery_comments') . '";');
			$templater = vB_Template::create('adv_gallery_commentbit');
			$templater->register('commentbit', $commentbit);
			$home[$mods['modid']]['content'] = $templater->render();--------------- Added [DATE]1291999548[/DATE] at [TIME]1291999548[/TIME] --------------- --------------- Added [DATE]1291999828[/DATE] at [TIME]1291999828[/TIME] --------------- I have read some more article but am still very much stuck and could do with some help. | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |