pein87
06-23-2009, 03:13 AM
I am working on a new mod and i was wondering how do you auto template? I tried to auto template the header and footer template but without any results. I go the database to install and uninstall but the auto template isnt working. I tried
$tempmod = $vbulletin->db->query_read(" SELECT * FROM " . THREAD_PREFIX. " WHERE title=\"headinclude\" ");
$temp = $vbulletin->db->fetch_array($tempmod);
$find = '<!-- /CSS -->';
$replace = '<!-- /CSS -->
<link rel="stylesheet" type="text/css" href="rpg/rpg.css">
';
str_replace($find, $replace, $temp['template']);
str_replace($find, $replace, $temp['template_un']);
No luck with that is there anyway to do it that I dont know? I'm trying to position the edits at the end of the css comment and at the end of the footer template. I would appreciate it if anyone could help me on this.
$tempmod = $vbulletin->db->query_read(" SELECT * FROM " . THREAD_PREFIX. " WHERE title=\"headinclude\" ");
$temp = $vbulletin->db->fetch_array($tempmod);
$find = '<!-- /CSS -->';
$replace = '<!-- /CSS -->
<link rel="stylesheet" type="text/css" href="rpg/rpg.css">
';
str_replace($find, $replace, $temp['template']);
str_replace($find, $replace, $temp['template_un']);
No luck with that is there anyway to do it that I dont know? I'm trying to position the edits at the end of the css comment and at the end of the footer template. I would appreciate it if anyone could help me on this.