Jump to content
MakeWebGames

[mccode v2] Themecreator 100% Completed Working Copy


Uridium

Recommended Posts

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.....

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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,,,,

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...