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)
-   -   Groups for Custom Templates (https://vborg.vbsupport.ru/showthread.php?t=34919)

the_sisko 02-10-2002 08:42 PM

nice feature. I like it!

kippesp 02-11-2002 05:07 AM

Quote:

Originally posted by FireFly
It appears that if you group the last template under a category the category is not closed and this what happens (attached).

I couldn't care less but just thought I'd let you know. :)

I didn't duplicate this in my browser. But from your screenshot, I had similar indentation issues. The attached modified hack may correct this since some tags were left unterminatd.

I also enhanced the hack a bit by giving the anchor/target different values for the custom templates. (Expanding on a default template would jump me to the custom template group if it exists.) All same-named groups are still expanded, but at least the anchor gets you to the right spot.

The attached file is the same hack with two minor changes.

FWC 02-11-2002 06:41 AM

Quote:

Originally posted by kippesp
I also enhanced the hack a bit by giving the anchor/target different values for the custom templates. (Expanding on a default template would jump me to the custom template group if it exists.) All same-named groups are still expanded, but at least the anchor gets you to the right spot.
Nice upgrade, kippesp. Works quite well. :up:

Mutt 02-15-2002 01:12 AM

thanks for the bugfix!! It worked great

Mutt 03-10-2002 05:33 PM

Now you can add new template groups right from the CP

I rewrote the original directions to include the new cp addon and kippesp's bugfix / addon.

thanks to kippesp & Firefly for thier help

FWC 03-10-2002 10:57 PM

Quote:

Originally posted by Mutt
Now you can add new template groups right from the CP

Outstanding, Mutt! I loved the original hack. I put the new version on when I upgraded to 2.2.4 this morning. This hack rules!! :cool:

Jawelin 03-26-2002 04:00 PM

Great hack !!!
Till now I used your old one adding groups to template.php, but this one is much better!!!
Thanks.

Just one thing. As I don't like to fix the templateid within the php code (it isn't ever done even for options template... ;)), I made this slight upgrade:

PHP Code:

// change
  
template.php?s=&action=customedit&templateid=xx

// into
  
template.php?s=&action=customedit&templatename=templategroups


// and


// change
  
$templates=$DB_site->query("SELECT templateid,templatesetid,title,template FROM template WHERE templateid=$templateid");
  
$template=$DB_site->fetch_array($templates);

// into
  
if (isset($templatename))
     
$templates=$DB_site->query("SELECT templateid,templatesetid,title,template FROM template WHERE title='$templatename'");
  else
     
$templates=$DB_site->query("SELECT templateid,templatesetid,title,template FROM template WHERE templateid='$templateid'");

  
$template=$DB_site->fetch_array($templates); 

What do you think about ? :D
Thanks again.

Oblivion Knight 06-18-2003 02:37 PM

I seem to be having a problem with this.. :(
Screenshot attached, any help would be much appreciated.

S.Shady 06-18-2003 05:02 PM

Im sorry but i dont understand this

make sure you change '705' to the correct templateid

squawell 06-18-2003 05:17 PM

Quote:

Today at 02:02 AM S.Shady said this in Post #19
Im sorry but i dont understand this

make sure you change '705' to the correct templateid

i think 705 is his style template id....the default style templateid=1

so... i think that should be his mean.....


All times are GMT. The time now is 07:56 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.01136 seconds
  • Memory Usage 1,744KB
  • 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)bbcode_php_printable
  • (4)bbcode_quote_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