MyBB Community Forums

Full Version: Template edit will not save
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi there, I'm having this weird problem when trying to edit the "header" template of my default theme. Specifically the navigation bar.

I've replaced the "search" icon with this line of code in the header template:
<li><a href="/index.php"><img src="/images/topnav/home.png" alt="" title="" />Home</a></li>

This should be displaying the title Home with a link to my board index. Now I'm no rookie but I've never come across this error before.

Steps I've tried:
  • Adding a new version of the default header template, saving then re-editing.
  • Forcing all users to another theme then back again to refresh it.
  • Changing. theme in UserCP then back again.

You can see the error here:
http://www.ziesweb.com

Thanks for your help, I apologise if this is a common issue.

p.s. I am willing to give a support rep admin rights to help me fix this or demonstrate the problem.
In phpMyAdmin run this query:
SELECT sid FROM mybb_templates WHERE title='header';
You may need to change the mybb_ table prefix. Check your inc/config.php file for this

See if one number occurs twice or more. Delete one of them and try to make the changes again to the template.
Also, can you make sure you have CodePress disabled? It's very buggy and is known to cause problems while editing problems. Go to Admin CP > Preferences > Turn on / off Codepress > Off.
Error in the syntax on phpMyAdmin and the disable codepress did not work either.
Try running this instead:

SELECT `sid` FROM `mybb_templates` WHERE `title` = 'header'
It worked and I see the number 1 twice, do I remove it?
(2011-06-13, 05:39 PM)Zies Wrote: [ -> ]It worked and I see the number 1 twice, do I remove it?

Can't you see a X (cross) next to the rows in phpMyAdmin? Just click the X for one of the duplicates and try to make the changes again to the template.
Just did, still did not work.
(2011-06-13, 05:42 PM)Zies Wrote: [ -> ]Just did, still did not work.

Try to logout on the ACP.
Check there isn't a duplicate one anymore in phpMyAdmin.
Now log back in the ACP and try to make the changes again.

Did you make a lot of changes in the header template? If it still doesn't work, try to revert it back to the default and make the necessary changes again. If some plugins don't work anymore afterwards, deactivate and activate those plugins then.
I'm trying to edit the default theme.

Also there is a -2 and a 2. Should I delete one of those? Can someone just help via TeamViewer? Big Grin
Pages: 1 2