vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   vbHome... a new aproach to webdesign (https://vborg.vbsupport.ru/showthread.php?t=35058)

TECK 02-17-2002 01:30 PM

ty all for your offers. the installer is available now only to people who made their name here as solid hackers (ex firefly, tubedogg, PPN, etc.)

is amasing how many junior members with 2-3 posts pm me to send them the script. anyway, the script is almost done. patience. i should release it in 4-5 days. ;)

TECK 02-17-2002 04:11 PM

ok... i have a little problem on showing the indexes for "settinggroup". can anyone help me to do a function that let me check what is the highest Cardinality value in "settinggroupid" field?

what i want to do is this:
make the installer script check what is the highest cardinality value in settinggroup and warn the user that this value is taken if selected as default by the script.

example of query:
PHP Code:

$settinggroupid "32";

$DB_site->query("INSERT INTO settinggroup VALUES ($settinggroupid,'Home Page Options',$settinggroupid)");

$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'News forum ID','newsforumid','15','The specified forum will contain threads viewed on the main page only.','',0)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Order of news posts','newsorder','1','The standard (recommended) way to display news is chronologically from latest post to the newest one. You can reverse this, if you prefer.','Newest first<input type=\\\\\"radio\\\\\" name=\\\\\"setting[\$setting[settingid]]\\\\\"  \".iif(\$setting[value]==1,\"checked\",\"\").\" value=\\\\\"1\\\\\"> Oldest first <input type=\\\\\"radio\\\\\" name=\\\\\"setting[\$setting[settingid]]\\\\\" \".iif(\$setting[value]==0,\"checked\",\"\").\" value=\\\\\"0\\\\\">',1)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Order of comment posts','commentsorder','0','The standard (recommended) way to display comments is chronologically from original comment to the latest one. You can reverse this, if you prefer.','Newest first<input type=\\\\\"radio\\\\\" name=\\\\\"setting[\$setting[settingid]]\\\\\"  \".iif(\$setting[value]==1,\"checked\",\"\").\" value=\\\\\"1\\\\\"> Oldest first <input type=\\\\\"radio\\\\\" name=\\\\\"setting[\$setting[settingid]]\\\\\" \".iif(\$setting[value]==0,\"checked\",\"\").\" value=\\\\\"0\\\\\">',2)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Maximum number of news to display.','maxnews','10','','',3)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Maximum number of headlines to display.','maxheadlines','15','','',4)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'News pages to show in nav bar','newsnavpages','3','In the list of links of pages in the current thread (or current forum), this option selects how many pages either side of the current page are shown. Set this to 0 to display all pages.','',6)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Number of characters before wrapping','newswordwrap','50','If you want posts to automatically insert spaces into long words to make them wrap after a certain number of characters, set the number of characters in the box above. If you do not want this to occur, enter 0.','',7)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Maximum Characters per news post','newspostmaxchars','10000','The maximum number of characters that you want to allow per news post. Set this to 0 to disable it.','',8)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Show default news icon','newsshowdeficon','0','Show a default news icon if a journalist doesn\'t choose a news icon or is unable to choose one based on forum settings? {imagesfolder}/newsicons/icon1.gif will be used.','yesno',9)");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'Stop \'Shouting\' in news titles','newsstopshouting','1','Prevent your users \'shouting\' in their news thread titles by changing all-uppercase titles to capitalization only on the first letters of some words. Disable this for some international boards with different character sets, as this may cause problems.','yesno','10')");

echo 
"<p>Adding <font color='#006699'>setting</font> data... Done.<br>\n" 

i would like to be able to make the script check what is the last ID in settinggroup and if > then 31 to make a input code:
PHP Code:

makeinputcode("Settinggroup ID","value"

where the user can select a higher value instead of the default one.

what i try to avoid is that the user must edit the hbhome.php installer file. i could do a check link to setting.php, let the user check manually what is the last id, edit the vbhome.php file and reload the specified step... but that is cheap in my eyes ;)

anyway, let me know if you can point me in any direction. ty

TECK 02-17-2002 04:26 PM

hmmm.. i still cant find a way.. grrr

TECK 02-17-2002 10:11 PM

1 Attachment(s)
i found by myself the solution to the problem above.
in the same time... i want to tease you all with an installer screenshot... ;)
i tried to make it as complicated as posible... all you have to do is click on Continue > :D
let me know what you think. thanks. i would love to hear few words from the 'big guns' also... :p

TECK 02-17-2002 10:37 PM

1 Attachment(s)
the script checks if the fields and tables are present in the database. it also give you an option do flush them and start a clean install.

TECK 02-17-2002 10:52 PM

1 Attachment(s)
glance at the settings step...

Scott MacVicar 02-17-2002 11:32 PM

I've done a full integration with my forums already, I integrated databases, not the coding to do this. I'll take a few screenshots of this if you want.

It even has a nice japanese name as its an anime site.

If you need any testing or help with the code then just give me a pm or send an email I'll gladly help.

http://www.sirenhost.co.uk/~scott/shukan.jpg

TECK 02-18-2002 01:38 AM

1 Attachment(s)
great stuff PPN.. as usual.. ;) i would like to show you what i did so far. i worked hard on the installer. if you want i can give you a copy. is fully customizable so you can adapt it to any script.. not that you need it, because i'm sure you can do something better then me. :D

here it is the way it looks my admin page (the so called sections, rings a bell? identical to yours ;))...

TECK 02-18-2002 04:47 AM

ok PPN... i email you the installer script. look at step 6. i still have a bug in there.. grrrr..
also, there are not alot of people like us that can run their own server... most of hosted accounts offer only one database/account... unfortunatelly. your solution is the best because is nothing easier to configure 2 databases with the same usergroups.

anyway... when you have time, look at the script. i'm sure i missed something in stepping, the code should be ok. ty

nitro 02-21-2002 05:05 AM

this sounds pretty cool
just wondering wen uploading the files
i guess the overall question im askin is will u be able to run all 3 on your site vbhome vbportal and vbulletin


All times are GMT. The time now is 06:17 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.01048 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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