MyBB Community Forums

Full Version: Modify a part of a theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed a theme and now after months have a few things i want to change.

[Image: V7CLS.png]

The purchase and demo buttons redirect right back to whatever page of the forum you are on at that point. Id like to change the link associated so they could redirect to say a PayPal donation page for the Donate(demo atm) and for Purchase would be (edit the button to say Market or something) my NewPoints plugin page. I couldnt find the XML file in the directory which i know i used to install the theme originally. Any suggestions?


Also im looking to clean up this (less important)
[Image: A8Tp1.png]
The copyright info and Mybb info are perfectly fine and wont be adjusted. Id like to remove the "special thanks" as i have not had the most "special" experience with their forum but still owe the rights of the theme to its creator. The Copyright, his email contact, Mybb site link all will stay. The special thanks is just advertising and isnt required. So i would also like to know how to edit that as well.
Thank you for your time.
Check the header template. The Demo and Purchase links should be in there. For the other text, check the footer template. It should be in there, but the theme author may require you to keep the "Special Thanks to..." bit. I suggest asking the author's permission first.
Mind giving me a little more direction? I dont have a clue where to find the header template and good didnt provide the proper resources.
On another note, the copyright extends to giving the author proper recognition for his work and contact information. Advertisement isnt required but was placed in there for obvious reasons. Let me know if you find out how to edit that part as well.
ACP -> Templates and Style -> Templates -> *Your Theme* -> Header Templates -> header and ACP -> Templates and Style -> Templates -> *Your Theme* -> Footer Templates -> footer.
1.
<span style="float:right">
<li><a href="{$mybb->settings['homeurl']}"><img src="{$theme['imgdir']}/toplinks/home.png" alt="Home">&nbsp;Home&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}"><img src="{$theme['imgdir']}/toplinks/forums.png" alt="Forums">&nbsp;Forums&nbsp;</a></li>
<li><a href="{$mybb->settings['#']}"><img src="{$theme['imgdir']}/toplinks/demo.png" alt="Demo">&nbsp;Demo&nbsp;</a></li>
<li><a href="{$mybb->settings['#']}"><img src="{$theme['imgdir']}/toplinks/purchase.png" alt="Purchase">&nbsp;Purchase&nbsp;</a></li>
</span>

I see the "homeurl" and "bburl" must i create the others? Are there already assessed and i just need to put them in?
You don't need to do that. You can just do this:
<span style="float:right">
<li><a href="{$mybb->settings['homeurl']}"><img src="{$theme['imgdir']}/toplinks/home.png" alt="Home">&nbsp;Home&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}"><img src="{$theme['imgdir']}/toplinks/forums.png" alt="Forums">&nbsp;Forums&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/file.php"><img src="{$theme['imgdir']}/toplinks/demo.png" alt="Demo">&nbsp;Demo&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/file.php"><img src="{$theme['imgdir']}/toplinks/purchase.png" alt="Purchase">&nbsp;Purchase&nbsp;</a></li>
</span>

You just need to replace the # with bburl, and add /filename.php.
Perfect, even removed the last one and replaced it with Paypals official donation button. Thanks for the help! Problems solved as usual. Smile