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)
-   -   Advanced Templates: Dynamic Templates Changing according to different conditions (https://vborg.vbsupport.ru/showthread.php?t=43325)

Kars10 03-20-2003 07:47 PM

@ Logician, is there a way to make a condition for Forumhome Moderators?
I want to add the moderators under Forum-description like here on vb.org [moderated by: xxx, xxx, xxx].
But when the forum isn´t moderated the [moderated by: xxx] is gone... is there a way to do this with this hack??

Thanks in advance
Kars

Logician 03-21-2003 08:45 AM

Quote:

Yesterday at 11:47 PM Kars10 said this in Post #161
@ Logician, is there a way to make a condition for Forumhome Moderators?
I want to add the moderators under Forum-description like here on vb.org [moderated by: xxx, xxx, xxx].
But when the forum isn?t moderated the [moderated by: xxx] is gone... is there a way to do this with this hack??

Thanks in advance
Kars

Not tested but building up a conditional depending on $moderator[userid] variable should do the trick. eg.

[[($moderator[userid])]]
Moderated by:....
[[/($moderator[userid])]]

Kars10 03-21-2003 08:53 AM

@ Logician, do you mean i should place this codition in forumhome_forumbit_level2_post with the userids of my moderators? Can you show me a examble, please?

Thanks
Kars

Boofo 03-21-2003 08:57 AM

I tried that one and a few others and could never find one that worked. I ended up having to put code in the index.php to catch it. ;)

Logician 03-21-2003 09:56 AM

Quote:

Today at 12:57 PM Boofo said this in Post #164
I tried that one and a few others and could never find one that worked. I ended up having to put code in the index.php to catch it. ;)
ok please give the code then so that Kars can use it too :)

Code hacking is a better solution in this example anyway since forumhome templates are usually long and frequently called templates. So apply the hack into the code is more performance friendly than applying into the template, especially for large traffic boards..

Kars10 03-21-2003 10:09 AM

Thanks Logician!!
I have PM?t Boofo about that!!

Kars :)

Boofo 03-21-2003 10:10 AM

Quote:

Today at 05:56 AM Logician said this in Post #165

ok please give the code then so that Kars can use it too :)



For you, Sinan, gladly. ;)

Quote:

Code hacking is a better solution in this example anyway since forumhome templates are usually long and frequently called templates. So apply the hack into the code is more performance friendly than applying into the template, especially for large traffic boards..
I didn't know that. My forumhome templates are pretty coded up with your conditionals. I might have to take a look at some of them. Thanks. ;)

Mr. Brian 03-22-2003 05:12 PM

Hi Logician,

Thanks for your reply, but omehow I still getting the same error.


Quote:

03-19-03 at 04:05 PM Logician said this in Post #160
I say check step 1.. After you applied it, the line should look like this:

PHP Code:

//Logician Advanced Templates Hack
if (substr_count($template,'[[/(')>=1) {$template advanced_templates($template);}
//Logician Advanced Templates Hack
if ($gethtmlcomments and $addtemplatename) { 

Not like this:
PHP Code:

//Logician Advanced Templates Hack
if (substr_count($template,'[[/(')>=1) {$template advanced_templates($template);}
//Logician Advanced Templates Hack if ($gethtmlcomments and $addtemplatename) { 

More info here

Thats exactly what I did. :(

Logician 03-22-2003 05:30 PM

Quote:

Today at 09:12 PM Matthew Lam said this in Post #168
Hi Logician,

Thanks for your reply, but omehow I still getting the same error.

You are using notepad for editing, right?

Mr. Brian 03-23-2003 02:21 PM

Ya, last time I used to use notepad. But I've already no longer using notepad but using editplus instead. :bored:


All times are GMT. The time now is 10:39 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.01751 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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