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?


All times are GMT. The time now is 06:11 AM.

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.01980 seconds
  • Memory Usage 1,734KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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