PDA

View Full Version : New Template Options / Updates


Neo
03-21-2002, 10:00 PM
OK here is what this does and what has been updated.

1) Gives you the ability to copy one template to another template set. If the template already exsists then it will copy over it, if not it will make a new one

2) gives you the ability to copy all templates to another template set. If the templates already exsists then it will copy over it, if not it will make a new one

3) updated make makechoosercode

4) When editing a template the chooser will be at the correct template set you are in (if it doesnt alread do it... it didnt do it for me though...)

I hope this help some of you out there. I know this will help we greatly with sit organizing and time.

Enjoy.

Updated!!!

Dade
03-22-2002, 06:32 AM
Awesome! :)

Lesane
03-22-2002, 07:17 AM
This will spare me alot of time, thanks for the usefull hack Neo. Well done.

Neo
03-22-2002, 01:31 PM
Your welcome.

Neo
03-22-2002, 07:53 PM
UPDATED!!!

chisel
03-25-2002, 04:40 PM
Hi Neo thanks for your hack!

I really would like to use it, but I just found a bug. You missed that also other *.php files are using the makechoosercode. For example the user.php does not make anymore a correct combobox! I don't know how many other files are using this function...

With the change of the interface of makecoosercode we have to replace any call to this function :-(

wouldn't it be better to add the new parameters to the end of the function so that other function calls are not disturbed?
change this code:
function makechoosercode ($title,$name,$tablename,$tablename2,$selvalue=-1,$extra="",$size=0,$where=0)

to this
function makechoosercode ($title,$name,$tablename,$selvalue=-1,$extra="",$size=0,$tablename2,$where=0)

so any call to the makechoosercode with the old parameter list:
function makechoosercode ($title,$name,$tablename,$selvalue=-1,$extra="",$size=0)

would then still work

thanks for comments or an update ;-)

Neo
03-25-2002, 06:17 PM
The code had already been changed before you posted this... *points to update*

chisel
03-25-2002, 07:14 PM
ok neo thanks for the update. Please tell the next time in a few lines what you have updated (I just didn't saw that you have changed the file).
And it would be nice to say what we have to revert to install the new hack. But thanks it works now.

just one little thing

$tablename2
should have a default value
$tablename2=""

or something like this

tia chisel

Neo
04-06-2002, 06:28 AM
It could stay the same and work the same.

-=dm=-
04-06-2002, 04:20 PM
Hello Neo
Im getting this error in:
Warning: Missing argument 7 for makechoosercode() in /home/
/forums/admin/adminfunctions.php on line 312

How can I fix it?

chisel
04-06-2002, 08:02 PM
Hi dm

To fix this, you have to add a default value to the parameter $tablename2 in the function makechoosercode()

look at my last post!

your code should then look like this
function makechoosercode ($title,$name,$tablename,$selvalue=-1,$extra="",$size=0,$tablename2="",$where=0) {

hth
chisel

scsa20
04-06-2002, 08:20 PM
sweet, I was looking for an answer for getting that to stop...thanks

-=dm=-
04-06-2002, 09:39 PM
Thank You chisel :)

working now

dm

scsa20
04-10-2002, 03:45 AM
hey, is it posable to make an add on that lets you move multi-templates at the same time??

scsa20
04-10-2002, 08:46 PM
anyone care to help out a newbie with my last question?? ^^^^^^^^^

Twig Deez
04-13-2002, 05:25 AM
works great as usual, neo.

top bloke. :)

Neo
04-13-2002, 11:34 PM
No problem :)

scsa20
04-15-2002, 04:24 AM
sure, no one answers any of my questions :( I guess I'm invisable/ghost here :(

here's my question, again.


hey, is it posable to make an add on that lets you move multi-templates at the same time??


can someone please tell me if that is posable and if so, show me how to do it...I need to move more then 1 template to a different template set and I gived up on doing it one by one :( thanks

Neo
04-15-2002, 05:38 AM
Well there is the option to move all the edited templates over to another template set that doesnt have it :)

Khan SW
04-15-2002, 06:15 AM
Thanks, Neo installed and working great :) Only question I have is on the 'copy over all' feature. It doesn't allow me to pick where these are copying to, only when I select them individually. Am I missing something or is this not implemented all the way as of yet? Either way its still a great hack and will save me a lot of time while working on new themes :)

Neo
04-15-2002, 01:42 PM
Hmmm I though I did that. Let me take a look :)

Khan SW
04-15-2002, 06:38 PM
Ahh I see what it does, it copy over all styles templates with this feature. Perhaps, and this is only a suggestion, it would be better if you allowed it to pick just one style to copy over all to. This way if you wanted to start on a new style you could just make a new style and copy all templates from one to the new one.

scsa20
04-15-2002, 11:25 PM
Originally posted by neo
Well there is the option to move all the edited templates over to another template set that doesnt have it :)

see, what happens is that I upload a new style but then all I want to do is just copy over my custom made templates over instead of all the templates over (by clicking the slected box) then just move the slected over to the new style....hopeing there well be a way to do this :(

scsa20
04-20-2002, 02:59 AM
hate to do this, but ^bumb^

dimava
05-02-2002, 08:46 PM
you can always copy all of them over one by one, or copy all of them and revert the ones that you wish to stay default

Neo
05-02-2002, 11:41 PM
Hmmm.... I have been really busy sorry I will work up something as soon as I can

scsa20
05-03-2002, 02:35 AM
thanks neo

Chris M
05-22-2002, 03:06 PM
Very Very Nice!

Bravo!

Satan

PET
05-24-2002, 08:33 PM
I have install it...and...i see 2 new buttons. Preview & Copy. I have click preview on a template and it looks like this see attachment :


It shoult look like that ?

scsa20
05-24-2002, 08:52 PM
Preview and Copy should of been there in the first place when you first installed vBulletin, it's built in...this hack doesn't give you it.......you might have noticed it before, but it been there, way before you installed this hack ;)

btw...I'm still waiting for that combo box to just slect the onces I want to copy over :rolleyes:

N9ne
06-11-2002, 06:44 PM
bump for scsa20 ;)

BigJohnson
06-12-2002, 08:44 AM
I have a question about this thing. I have it installed. And i have a test 1 template and a test2 template test1 is hacked to bits and test 2 is in normal untouched. Now when i copy test1 template to test2's All i get is the new templates that i added to the test1 template. I dont get postbit carried over to test2 at all or anything liek that. Only the templates i added. Not modified. How do i get it so it copied over everything and i mean everything. Unless i hacked it wrong or something i dont no. Please tell me thanks.

BigJohnson
06-16-2002, 04:35 PM
can someone help please?

Erwin
07-09-2002, 01:08 PM
Cool. Thanks neo - had to do a copy over a few times here and there to get what I wanted, but I got what I wanted. :)

Khan SW
08-10-2002, 10:58 PM
Originally posted by Khan SW
Ahh I see what it does, it copy over all styles templates with this feature. Perhaps, and this is only a suggestion, it would be better if you allowed it to pick just one style to copy over all to. This way if you wanted to start on a new style you could just make a new style and copy all templates from one to the new one.

Hate to bring up old stuff, but you did state you would look into this possibly. Im just checking to see if you had, as it would be a nice feature (IMHO) to add.

wolfe
09-03-2002, 11:54 PM
i click on Copy Over All and it goes to a blank screen whats up with it :(

Gimp
09-20-2002, 11:47 AM
thanks alot
its a very useful hack
will save me alot of time!

isman
10-03-2002, 12:20 AM
Awesome hack, thanks for saving me hours of copy and paste.

geniuscrew
10-10-2002, 01:11 PM
This hack only works sometimes.

It does however add any new templates but does _not_ copy over modified templates even though it says "Copy over completed"

Neo
10-22-2002, 02:11 PM
Hmmm I need to update this I take it.

apokphp
11-26-2002, 02:55 AM
Any plans to update this? I used this hack all the time to help w/ the installing of other hacks into multiple template sets. However, it does not appear to work with 2.2.8.

I'm surprised no one else has brought this up. I thought this would have been quite popular w/ fellow hack customizers. If they aren't using this, what else is there than can do the same thing? Surely people aren't installing each hack individually into each and every template set?

CeleronXL
12-08-2002, 01:57 AM
Aaaaaah, it copies all the templates from style to style! EEEEEEE! I thought it was just custom templates! I f***ed up my forums. I'm having my host restore it to the backup. You should really put a confirmation screen to that thing, I accidently clicked Copy all and BAM, the style shattered to pieces.

Oh well... it's been fixed.

SemperFidelis
01-25-2003, 02:19 PM
Any chane of this getting re-released Neo ?
Perhaps with a confirmation prompt that CeleronXL mentioned ?

Kars10
01-26-2003, 01:56 PM
This hack rocks!!
Thanks Neo... :)

msimplay
02-27-2003, 11:58 AM
quick question
does this hack work with version 2.3 release candidate one ?

Kernel
03-14-2003, 03:11 AM
Sorry but, when I hit "copy" or "copy over all" or anything like that, it just shows me a blank page. Is it because I use custom templates? Any way to fix this? Thanks ^_^

sjau
04-27-2003, 01:26 PM
msimplay:

The hack works on 2.3.0. I just tested it myself. However it does only copy new files and not modified ones.

I hope Neo will have a fix for that. I also had to change the $tablename to $tablename2="" in the first change to be made so that no error shows up.

amykhar
04-27-2003, 02:35 PM
Argh! I clicked copy over all of my premium style set thinking it would PROMPT me which style to copy it to. No. It copied over all my default style. Now I have hours of work to do to get back my default style.

Grrrr.