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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

ranger2kxlt 01-13-2003 04:01 AM

thanks... did that but how do i add it to the options menu in vb. The custom templates are not displaying and i think it is because they are not turned on. Thanks.

Tigga 01-13-2003 04:15 AM

Ahhh, I didn't notice that in Chevy's version he has it where you would have to also create options to turn them on and off... If you don't care about adding the option to disable them in the Admin CP, you can just remove this bit of code at the beginning of each custom one:

if ($showcustom2) {

And also the last } right below the call to the template.


If you want to add options to turn them on and off, just log into phpMyAdmin and run this query:

INSERT INTO setting VALUES (NULL,50,'Show Custom Template 2?','showcustom2','0','Show your second customized template.','yesno','30');

You would change the two places you see the number 2 in that query to 3, then 4, and so on for more templates. You would also need to change the last number (30) to incriment by one for each one you add (that's the part that tells it what order the option should be displayed).

papa 01-13-2003 04:31 AM

I am very greatful for your work on this. You are an unsung hero to the vBulletin community.

I have never done any work on the tables or log in using phpmyadmin... do you have any links to learn how to do this?

Papa

Tigga 01-13-2003 04:48 AM

Just running queries isn't too hard. I know there's a small tutorial on here somewhere, but I'm not exactly sure where...
To run the queries you would just log in to phpMyAdmin. You should see a drop down box or something to that effect where you can choose which database you want (assuming you have more than 1). After you choose the database you should see a link "SQL" at the top of the right frame. Click on that and you will see a textarea where you past the code to run the query. Then hit the go button and it will tell you the query was successfull or if there was a problem.

papa 01-13-2003 05:31 AM

Someone also asked this earlier but how can you use an include in the template?

I used frontpage to build my site and I have it made up of a bunch of pieces so I can just change the content with out messing with the interface (makes adding pages easy)

I wanted to use the myvbindex page as the main page but I need more than the forum news and latest threads, instead I wanted to include our main page data. I could just add the html code but we change it very often with new updates and content.

Do you know how I can use an include statement to include test.htm for example in to the index template for myvbindex?

papa 01-13-2003 05:39 AM

I ran the query and this is what I got:

Error
SQL-query : [Edit]

ALTER TABLE `user` ADD bbshowcalendar smallint(6) NOT NULL default \'1\';

MySQL said:

You have an error in your SQL syntax near '\'1\'' at line 1

Tigga 01-13-2003 05:47 AM

Unfortunatly you can't use SSI within vBulletin templates. Couldn't you just add some more custom templates and change the content that way?

That's strange the query didn't work... It may be something with your version of phpMyAdmin. Try this one instead:

ALTER TABLE `user` ADD bbshowcalendar smallint(6) NOT NULL default 1;

(just removing the ' marks around the 1)

papa 01-13-2003 06:00 AM

worked like a champ. I'll get started on this hack.

papa 01-13-2003 06:40 AM

I got the changes updated but now the index page does not show if you are logged in or not. Also do the options radio buttons created need to have a form on it so it is saved when you make the choices???

Tigga 01-13-2003 06:47 AM

Oh crap, sorry about that. It was late when I did that and I didn't think about guests. Give me a few minutes to work around that and I'll post the fix for ya.


All times are GMT. The time now is 07:40 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.02347 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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