View Full Version : Corrupt master style and children
Halfhidden
04-09-2010, 01:25 PM
Hi I need a little help. I've been hours and hours crawling this site and cannot find the answer.
I have a master style and then child styles so that the templates inherit through to the child styles.
Yesterday my master style became corrupt after a failed merge (ftp problem) and now I'm left with a big mess. I've managed to rescue one of the child styles and made that the only available style to my forum menbers for now.
I realise that I have to build a new style but how do I get all my VBadvanced templates to that new style please?
Brian
04-09-2010, 02:39 PM
If you upload the admincp/vbacmps_install.php file to your server and go to it in your browser, it gives you an option to reinstall the templates.
Halfhidden
04-09-2010, 02:42 PM
Thanks Brian....
So would I be safe to delete the master style and then use the reinstall template script.
Thanks for your quick reply.
Halfhidden
04-09-2010, 02:59 PM
OK I have run the install script and chosen Reinstall the templates but I can't seem to get the templates from the master style to the new style I have created.
Here's what the custom templates look like in the old corrupt master style. and the second image shows the new style I created after I ran the "Reinstall the templates" script... seems that nothing has changed.
Sorry to be a pain.
Halfhidden
04-09-2010, 07:02 PM
I think I've tried everything.... been at this now for 23 hours now and find it hard to keep awake.
I love vbadvanced but I'm stuck and have to stabilise my site.
I'll have to un-install :(
Brian
04-12-2010, 02:53 PM
Ahh, I didn't realize you were talking about custom templates. You should be able to move all of those templates from one style to the other easily enough by running a queyr through your Admin CP or phpMyAdmin.
UPDATE template SET styleid = NewID WHERE styleid = OldID AND title LIKE 'adv_portal_%';
You'll need to replace the red NewID and OldID parts in the query with the styleid of your new and old styles. If you're not sure how to find the styleid, just go to your Style Manger in the Admin CP, hold your mouse over the style title, look in your browsers status bar, and you'll see the URL with "styleid=X" at the end.
After you've ran that query, go back to your Style Manger, edit any template, and save it so that the template cache will be updated.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.