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.

Demo: http://brawlfriendcodes.com/plaza.php
(under Forum section in shop)

Enjoy Wink


Attached File(s)
.php  theme.php (Size: 954 bytes / Downloads: 483)
(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

« Next Oldest | Next Newest »

Messages In This Thread
[release] Buy Into Theme Module - ddmp - 02-04-2009 12:59 AM

 Standard Tools
Forum Jump: