Log in

View Full Version : Building master style set


filburt1
11-16-2004, 06:25 PM
I'm dynamically editing the master style set (styleid -1) and need to rebuild it once I insert into the template table. I'm rebuilding it via:
build_all_styles();
It works, but it prints in the admin CP the live status of the operation, which destroys my page layout. How do I get rid of the output and have it quietly rebuild the master style set without modifying adminfunctions_template.php or other core vB files?

Michael Morris
11-16-2004, 07:30 PM
Before you call the function turn object buffering on


@ob_start();


After you're done turn it off.


@ob_end_clean();

Michael Morris
11-18-2004, 06:23 PM
That did work didn't it Filburt? I used it once in a cron job that called that function and it worked fine - but I'm not exactly sure what you're up to.

filburt1
11-18-2004, 07:02 PM
I'll be trying it this weekend, which is the only time I have left for vBMS development (which is what this is for).