Uridium Posted December 3, 2008 Share Posted December 3, 2008 SQLS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. AND You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Call this file choose.php Thanks to KILLAH for the Script You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this link to either explore.php or mainmenu.php or preferences.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this to global_func.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. PART 2 Below..... Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 3, 2008 Author Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Open up header.php And copy from <---- to -----> Where your CSS is laid out You will need to save it on a text editor as a css for now you will need to give it a number example 1.css you can give it proper name when your adding your theme,,,,, Whilst in header.php Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and before after the <TITLE> add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now call this File staff_themecreator.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally open smenu.php and add these links... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And that it remember The CSS that you have taken from your header.php needs to be converted to a normal css file. and uploaded back to the server.... Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Sounds really interesting and tempting to add. So you create a number of different CSS stylesheets and users can choose which theme they want to use? Quote Link to comment Share on other sites More sharing options...
Karlos Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Yup. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy clever idea im going to add a theme changer to my site eventually just gotta work out language change first lol Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Nice work man...I have to say..Very nice. you definitely went the extra mile on this...When I added a mod like this to a game. I just added a drop menu in global_function and added a layout to users and made a numerous amount of css and changed css in header to external link with IF statements..... if($ir['layout'] == 1) { echo 'link css file1'; } if($ir['layout'] == 2) { echo 'link css file2 } So on and so on.... But what you have done here is By far past that...Very very Nice work.....I can Only imagine the amount of work you put into this. Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 3, 2008 Author Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Most of this script is taken from the Menu Creator that myself and Tonka made sometime ago The enirety of staff_themecreator.php uses the exact same structure...... There is a lock function which i havent added yet.... but over time i will just keep adding to it..... Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Open up header.php And copy from <---- to -----> Where your CSS is laid out You will need to save it on a text editor as a css for now you will need to give it a number example 1.css you can give it proper name when your adding your theme,,,,, i dont get this bit, can youput more detail and where else in header do you add global $db,$ir,$c,$h,$userid,$set,$theme; $q = $db->query("SELECT ThemeID FROM users WHERE userid=$userid",$c); $t = $db->fetch_row($q); Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy solved it, this theme editeris fantastic, i'm now using it and no problems whatsoever Quote Link to comment Share on other sites More sharing options...
redsnake420 Posted December 3, 2008 Share Posted December 3, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy great job on this mods illusions i been waiting for something like this now i just gotta figure a way to implement it into my game Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 4, 2008 Author Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Now that ive had some decent sleep :) and thanks yet again to Killah or otherwise i would still be awake lol I'll be adding some new ADDONS. 1 = Lock Themes 2 = Delete a Theme and reset those that are using that particular theme to one that is available. 3 = View which themes are being used the most by your members. so you can choose to delete or lock those that are not being used,,, 4 = Summary of Current ID's of themes that are in use... And if i think of any others on the way i'll just add them.. Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 4, 2008 Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Sounds really interesting and i think i will most likely definatly add this script! Really good work. +1 Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 4, 2008 Author Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy MIX AND MATCH HEADER AND THEME Seeing as the above worked well. I decided to go one step further and Create a Banner editor it does exactly as the script above does but your users can Mix and Match their Theme and Headers to their own Preference... DEMO www.slave-traders.net Click on Preferences then Change Banner.... The Admin System is the same as the Theme Creator,,,, Quote Link to comment Share on other sites More sharing options...
MDK666 Posted December 4, 2008 Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy can you add a custom theme say a user wants to change the Css colors for the whole template they want is there a way for the user to be able to make a theme the same way as them selecting a theme, i mean i do admin sometimes playing a game over and over and so on that the look and feel of the game get a little boring. Quote Link to comment Share on other sites More sharing options...
Eternal Posted December 4, 2008 Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy :D maybe adding a function where users can write their own style sheets from a ajax generator and take that info and store on their account ????? www.myyearbook.com has it for their profiles so why not us.. Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 4, 2008 Author Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Hey slow down guys im not that good lol Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 4, 2008 Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy wouldn't be really that hard just add a color picker and so forth should be quite straight forward Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 4, 2008 Share Posted December 4, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy tho i have seen it done before on mccodes V2, it's the same basic as you did in the header but do it in the css file e.g backround-color: #000000; to something like backround-color: {$r['usercolor']}; i did something similer on my old game ages ago, the only problem had with this is getting thie globals to work in the css files Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 5, 2008 Share Posted December 5, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy why use files just add the code to header... then simply have a default button to set all the values back if what they add looks crap lol Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 5, 2008 Author Share Posted December 5, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Once ive picked my Bratt up from school i will post the Banner Creator... Your probably thinking whats the point of it. well in a nutshell The header image is one that is always visible no matter what page is viewed.. so why not show off your header pics for everyone to see and choose from.. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 5, 2008 Share Posted December 5, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Once ive picked my Bratt up from school i will post the Banner Creator... Your probably thinking whats the point of it. well in a nutshell The header image is one that is always visible no matter what page is viewed.. so why not show off your header pics for everyone to see and choose from.. nice idea mate.. +1 Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 6, 2008 Author Share Posted December 6, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy I was messing around with the CSS files that came with the SMF forums for my theme creator and got some really decent results Granted a few minor adjustments had to be made to the CSS but all in all it Looked a very good layout..... Quote Link to comment Share on other sites More sharing options...
Modern-Empires Posted December 6, 2008 Share Posted December 6, 2008 Re: [mccode v2] Themecreator 100% Completed Working Copy surely doing a user custom background that users can create would be good, like get the css connecting to the database, and in the prefrances it would have an option to choose what types, eg. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and in the css it would be like Backround-image= url ({$r['userbkimg']} etc etc i knmow i'mnot thatgood but you get the idea, surely it could be done?? Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 7, 2008 Author Share Posted December 7, 2008 Re: [mccode v2] Themecreator 100% Completed Working Copy heres the delete Theme part taken from the staff_users.php file Ive used this part from the staff_users as it also gives you an option to secure themes so they cannot be deleted and also the confirmation to delete... after the very last ) from the staff_themecreator.php add this.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in the above you will notice,,, $undeletable = array('1','2'); // add more Theme IDs here that cannot be deleted you can add the theme ID's that you want to secure... Just underneath You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up smenu.php and add this with the other theme links... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just to Note this part $db->query("UPDATE users SET ThemeID = '1' WHERE ThemeID='$target'"); Will ensure that when you delete a theme that a user is currently using they will be reset to the Default theme... Quote Link to comment Share on other sites More sharing options...
ColdK Posted December 9, 2008 Share Posted December 9, 2008 Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy <---- to -----> Where your CSS is laid out You will need to save it on a text editor as a css for now you will need to give it a number example 1.css you can give it proper name when your adding your theme,,,,, Whilst in header.php Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ?? i dont get that anyone ? edit --- i mean where to put it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.