Select theme by clicking link

by Aoki - 17-04-2015, 10:32 AM
dead inside
Posts:
5,053
Joined:
Jan 2015
Likes:
1,339
Credits:
19,192
Reputation:
190
Owner
2 Years of Service
#1
OP
Posted: 17-04-2015, 10:32 AM
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.
Read the help documents before sending me a message.
I'm not really online on weekends, so expect delays on replies.

Contact: pirate@undoxable.net
Prime
Posts:
254
Joined:
Mar 2015
Likes:
7
Credits:
61
Reputation:
3
2 Years of Service
#2
Posted: 17-04-2015, 02:10 PM
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.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)