vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Which hack(s) you can't live without? (https://vborg.vbsupport.ru/showthread.php?t=43838)

SloppyGoat 04-08-2003 07:16 AM

Quickreply w/smilies, Blinking PM bar, Smilie order by title, Mark forums read (redirect to homepage), SWF and OT code buttons. Those are the ones I consider mandatory, anyway.

Can you give me an example of what you use the Dynamic Templates Hack for? After reading the description, I really can't think of why I'd need it.

Dean C 04-08-2003 07:52 AM

Boofo - his wonderful hack wasn't around then ;)

Boofo 04-08-2003 08:29 AM

Quote:

Today at 03:16 AM SloppyGoat said this in Post #11
Quickreply w/smilies, Blinking PM bar, Smilie order by title, Mark forums read (redirect to homepage), SWF and OT code buttons. Those are the ones I consider mandatory, anyway.


Which one is the Mark forums read (redirect to homepage) hack? I couldn't find it. And what is the OT button?

Quote:

Can you give me an example of what you use the Dynamic Templates Hack for? After reading the description, I really can't think of why I'd need it.
It allows you to put conditional statements in the templates. If you want to hide a delete button in the postbit (for instance) from everyone except the Admin, you would just put the conditional in the template and not have to hack the functions.php with 5 lines of code to do the same thing. Saves a heck of a lot of php file editing. ;)

@Mist - That's what makes it the "All Time" most needed and used hack. ;)

Dean C 04-08-2003 09:11 AM

I find it confusing to be honest. Keeping track of almost all templates on my site which have been modified is hard enough without the conditionals. But i do agree for someone who doesn't want to hack and n00bies it is the best hack out there by a long shot :)!

- miSt

Boofo 04-08-2003 09:21 AM

Think about it, though. When you go to upgrade and you have to copy files over, the templates (most of them, anyway) will stay the same. So, for upgrading, it is the best way to go. And it is a lot easier than editing the php files. Like your hack for the edit button in the postbit. I did that same thing with one conditional statement and never had to touch a php file to do it. ;)

Xenon 04-08-2003 09:21 AM

yeah,. Logicians is a really needed one (or some other sort of template condition hack :))

Boofo 04-08-2003 09:25 AM

Yours is good, too, my friend. ;) It's just that Logician's is a little easier to do the conditionals with when you are not that used to all of the ways to do them.

Xenon 04-08-2003 09:40 AM

never said anything against :)

well wit vb3 his hack wouldn't be in use anymore...

Boofo 04-08-2003 09:53 AM

I guess that came out wrong. I meant that I tried yours and couldn't quite get the hang of it. For a more experienced coder, yours would work great.

From what I have seen and heard about the conditionals in vb3, I like Sinan's a lot better. Sinan's are a lot easier to understand for a mediocre coder like I am. ;)

Dean C 04-08-2003 10:02 AM

The conditionals in vb3 are just as cool from what i've seen and heard ;)

But i've found a better way of doing that hack btw Boofo - i'll release a new version soon which restricts the buttons by usergroup via the ACP which is more easier to control :)

- miSt


All times are GMT. The time now is 06:14 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.01054 seconds
  • Memory Usage 1,735KB
  • 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_quote_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