Categories > TinyButStrong general >

member request templates

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Mankiy
Date: 2003-06-03
Time: 04:32

member request templates

is there a way to do a member request template, im just wondering, i have something in mind right now

sorta like this im guessing:

two template directories....
template directory1: black
template directory2: white


$result = @mysql_query("SELECT template FROM members WHERE username='$user'");

$row = mysql_fetch_array($result);
$template = $row[template];
$TBS = new clsTinybutStrong
$TBS-> LoadTemplate("$template""index.tpl");

then all that other good stuff

think that would work? or would there be something else i would have to add?

ty for the help :)
By: Skrol29
Date: 2003-06-03
Time: 10:15

Re: member request templates

I thing that users templates are a set of parameters (back color, fore colore, style, class...). Those parameters are merged to a same main template.
Like:
<body class="[var.prm_bodyclass]">
This way, you have only 1 template file.
That's more easy for mainteance and updates.

Your code is correct but you will have to update all templates when debug or update.
By: Mankiy
Date: 2003-06-03
Time: 22:22

Re: member request templates

well, I will have my forums debugged before i even think about adding extra templates, i was jsut wondering, and i try it ur way, ty :)