Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
New Template Options / Updates Details »»
New Template Options / Updates
Version: 1.00, by Neo Neo is offline
Developer Last Online: Dec 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-21-2002 Last Update: Never Installs: 79
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-22-2002, 06:32 AM
Dade's Avatar
Dade Dade is offline
 
Join Date: Jan 2002
Location: California
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!
Reply With Quote
  #3  
Old 03-22-2002, 07:17 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will spare me alot of time, thanks for the usefull hack Neo. Well done.
Reply With Quote
  #4  
Old 03-22-2002, 01:31 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome.
Reply With Quote
  #5  
Old 03-22-2002, 07:53 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATED!!!
Reply With Quote
  #6  
Old 03-25-2002, 04:40 PM
chisel chisel is offline
 
Join Date: Oct 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ;-)
Reply With Quote
  #7  
Old 03-25-2002, 06:17 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code had already been changed before you posted this... *points to update*
Reply With Quote
  #8  
Old 03-25-2002, 07:14 PM
chisel chisel is offline
 
Join Date: Oct 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 04-06-2002, 06:28 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could stay the same and work the same.
Reply With Quote
  #10  
Old 04-06-2002, 04:20 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08546 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete