MyBB Tutorials

Select theme by clicking link

Submitted by Aoki, , Thread ID: 2940

Thread Closed
17-04-2015, 10:32 AM
#1
Found this today and thought about sharing it.
This could be useful for someone who's a theme shop on his site and would like to add a link to a demo. Instead of selecting the theme via the theme selector, you can just click the link, which is a lot easier.

Code:
<a href="{$theme_redirect_url['location']}?my_post_key={$mybb->post_code}&amp;theme=5&amp;{$_SERVER['QUERY_STRING']}">Test</a>

5 is the theme ID, so change it to your likings.

RE: Select theme by clicking link

#2
You can also find the theme id by looking in your /cache/ folder, at the end of a url in the acp, and it also says it somewhere else.

Users browsing this thread: 1 Guest(s)