Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2005, 12:45 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default DB Installer

Hello guys,

I have released some hacks already and the feedback was quite positive so far. Now i reached a state where many people are requesting ACP options and not modifying config files via PHP. They want to have all this in the ACP.

This can be coded but an installer would be nice. I searched for a "How-to-Create-Installer" or something similiar and I didn't find anything yet. Are there any people who can help me here to develop an installer which creates the corresponding database entries and templates in all styles?

Any help would be appreciated.

Cheers,
Reply With Quote
  #2  
Old 04-07-2005, 01:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could start with HIS by Link14716: https://vborg.vbsupport.ru/showthrea...staller+system
Reply With Quote
  #3  
Old 04-07-2005, 02:52 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Hello guys,

I have released some hacks already and the feedback was quite positive so far. Now i reached a state where many people are requesting ACP options and not modifying config files via PHP. They want to have all this in the ACP.

This can be coded but an installer would be nice. I searched for a "How-to-Create-Installer" or something similiar and I didn't find anything yet. Are there any people who can help me here to develop an installer which creates the corresponding database entries and templates in all styles?

Any help would be appreciated.

Cheers,
https://vborg.vbsupport.ru/showthread.php?t=76297
Reply With Quote
  #4  
Old 04-07-2005, 11:30 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
You could start with HIS by Link14716: https://vborg.vbsupport.ru/showthrea...staller+system
Thank you Marco. I tried to use this HIS system but I ran into the same problem like sabret00the. As soon as I try to generate the sample files of the sample hack I get these database errors.

In addition to this there is 0 documentation.

I will try to use the second link from deathemperor which is very good. He answered my second question. But now I am just missing one thing. How do I add templates into all styles with my installer? Any ideas?

Thanks for the feedback so far.

Cheers,

Pseudomizer
Reply With Quote
  #5  
Old 04-08-2005, 01:17 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this:

PHP Code:
function template_insert($name$content)
{
    global 
$DB_site;
    
$template compile_template($content);
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "template (templateid, title, template, template_un, styleid, templatetype, dateline, username, version) VALUES (NULL, '$name', '" addslashes($template) . "', '" addslashes($content) ."', '-1', 'template', '" time() . "', 'USERNAME', '3.0.7')");

-1 mean the default style I think but I didn't test for all style, maybe you should query all styleid and then use a while loop for that function.
Reply With Quote
  #6  
Old 04-08-2005, 01:22 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor
I use this:

PHP Code:
function template_insert($name$content)
{
    global 
$DB_site;
    
$template compile_template($content);
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "template (templateid, title, template, template_un, styleid, templatetype, dateline, username, version) VALUES (NULL, '$name', '" addslashes($template) . "', '" addslashes($content) ."', '-1', 'template', '" time() . "', 'USERNAME', '3.0.7')");

-1 mean the default style I think but I didn't test for all style, maybe you should query all styleid and then use a while loop for that function.
Hello deathemperor,

Thank you very much. But does it makes sense to place my new templates in all styles? I was thinking of doing that because the most common problem that people are posting is:

"I get a blank white page. Your hack doesn't work."

And you can read this in 90% of the hack threads. If I would install my templates in all styles, I would eliminate one possible error cause.

Do you agree with me?

Cheers,

Pseudomizer
Reply With Quote
  #7  
Old 04-08-2005, 03:23 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why don't you make an option then ?
Reply With Quote
  #8  
Old 04-10-2005, 03:16 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Hello deathemperor,

my latest script is working fine so far. Now I am running into the problem that my new created templates a visible in all styles but they are listed in the main listing without being in a category. Do you know how I can create a template category "mycategory" and place all my templates into this category?

Any help would be appreciated.

Cheers,
I've got it.

https://vborg.vbsupport.ru/showthread.php?t=63519

Cheers,
Reply With Quote
  #9  
Old 04-10-2005, 06:14 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Hello deathemperor,

my latest script is working fine so far. Now I am running into the problem that my new created templates a visible in all styles but they are listed in the main listing without being in a category. Do you know how I can create a template category "mycategory" and place all my templates into this category?

Any help would be appreciated.

Cheers,
oops, how come I didn't see this ?

well I knew this way, someone posted it in the modifications hints already so I don't want to repeat. I didn't think it's a hack that have 60 installs +_+
Reply With Quote
  #10  
Old 04-13-2005, 04:00 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I am 95% finished with my new hack. Thanks for the help so far. I have one problem left.

When I install the phrases as global phrases they are installed BUT they have no default language. When I browse through the phrases I can see my new phrases and they are effective BUT my question is:

Do I have to define the default language? Is it automatically detected?

Should I offer an option during the installation to choose the language? I assume no because my phrases will be installed as the default templates. But I want to offer the german and the english translation via my phrases.

The best solution would be that both are installed and due to the board setting of the language the appropriate language should be used.

Any idea how I should do this?

Thanks in advance.

Cheers,
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:54 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.05435 seconds
  • Memory Usage 2,264KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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