Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [release] Buy Into Theme Module
ddmp Offline
Junior Member
Posts: 1
Joined: Feb 2009
Post: #1
[release] Buy Into Theme Module
I've personally made a lot of modules myself for mybb 1.2's myplaza, so I finally decided to release one =)

1) Open theme.php and change "___" to the name of your theme
2) Change the "4" in "db_update('users', array('style' => 4), 'uid='.intval($mybb->user['uid']));" to the theme id you wish to sell.
3) For any additional themes, copy theme.php and rename to something like "theme2.php", then in the file change "function theme_" to "function theme2_" for all 4 functions.

Pretty basic, but the users at my forum love it Biggrin
Also don't forgot to make the theme you want to sell hidden from all usergroups, or else there isn't any point in them buying it.

(under Forum section in shop)

Enjoy Wink

Attached File(s)
.php  theme.php (Size: 954 bytes / Downloads: 416)
(This post was last modified: 02-04-2009 12:59 AM by ddmp.)
02-04-2009 12:59 AM
Find all posts by this user Quote this message in a reply
Firefox Wins Offline
Posts: 164
Joined: Mar 2008
Post: #2
RE: [release] Buy Into Theme Module
I'll try it, thank you. Smile
02-07-2009 05:51 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: