vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New Template Options / Updates (https://vborg.vbsupport.ru/showthread.php?t=36404)

Neo 03-21-2002 10:00 PM

New Template Options / Updates
 
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:
PHP Code:

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

to this
PHP Code:

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

so any call to the makechoosercode with the old parameter list:
PHP Code:

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

PHP Code:

$tablename2 

should have a default value
PHP Code:

$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
PHP Code:

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.

Quote:

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

Quote:

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

Quote:

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.


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02647 seconds
  • Memory Usage 1,800KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete