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)

Mr. Brian 03-23-2003 07:17 PM

Hi Logician,

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

BTW, I'd like to take this opportunity to thanks you by keep giving support to me as whenever there's a need(s) and there's always a will from you .

Anyway, I think my forum already gone case or maybe can said close shop soon. It had been almost a week, till now still can't even figure out any anythings.. Really in a lost! :hurt:

Logician 03-23-2003 10:20 PM

Quote:

Yesterday at 11:17 PM Matthew Lam said this in Post #171
Hi Logician,

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

BTW, I'd like to take this opportunity to thanks you by keep giving support to me as whenever there's a need(s) and there's always a will from you .

Anyway, I think my forum already gone case or maybe can said close shop soon. It had been almost a week, till now still can't even figure out any anythings.. Really in a lost! :hurt:

sorry dont have a clue then.. If this is really important hack for you and you can give me FTP and Admin CP access, I can take a look at it.

winky6 03-30-2003 06:56 PM

:banana: I can only dream of being so creative..
Outstanding hack.
Thank You :banana: :banana:

lowtaxbaby 04-01-2003 01:11 PM

Greetings,

First of all, this is a wonderful hack and I love you to death for it, as it's very useful. I have one quick question for you: I'm trying to make it so that a certain message is displayed to a user if they do not have a custom title. In showthread.php, I believe this is a boolean named "$avatarenabled". How would I be able to make this message appear if they do not have an avatar enabled? I tried this:

[[(!($avatarenabled))]]
You do not have an avatar enabled.
[[/(!($avatarenabled))]]

But it simply threw up:

[[(!(0))]]
You do not have an avatar enabled.
[[/(!(0))]]

What stupid error am I making here? Any help would be greatly appreciated. Once again, thank you very much!

Boofo 04-01-2003 01:16 PM

Try this:

[[(!$avatarenabled)]]
You do not have an avatar enabled.
[[/(!$avatarenabled)]]

Logician 04-01-2003 01:17 PM

Quote:

Today at 05:11 PM lowtaxbaby said this in Post #174
Greetings,

First of all, this is a wonderful hack and I love you to death for it, as it's very useful. I have one quick question for you: I'm trying to make it so that a certain message is displayed to a user if they do not have a custom title. In showthread.php, I believe this is a boolean named "$avatarenabled". How would I be able to make this message appear if they do not have an avatar enabled? I tried this:

[[(!($avatarenabled))]]
You do not have an avatar enabled.
[[/(!($avatarenabled))]]

But it simply threw up:

[[(!(0))]]
You do not have an avatar enabled.
[[/(!(0))]]

What stupid error am I making here? Any help would be greatly appreciated. Once again, thank you very much!

[[(!$avatarenabled)]]
You do not have an avatar enabled.
[[/(!$avatarenabled)]]
will do the trick provided that your variable is correct (I didnt check it but it seems correct according to your outcome)

Logician 04-01-2003 01:18 PM

you are fast Bob! (and invisible) hehe

Boofo 04-01-2003 01:23 PM

Quote:

Today at 09:18 AM Logician said this in Post #177
you are fast Bob! (and invisible) hehe
LOL Sorry about that, Sinan. Just thought I'd lend a hand. ;)

Being invisible sometimes has it's advantages. Chen taught me that trick. ;)

lowtaxbaby 04-01-2003 01:33 PM

Quote:

Today at 03:16 PM Boofo said this in Post #175
Try this:

[[(!$avatarenabled)]]
You do not have an avatar enabled.
[[/(!$avatarenabled)]]


Thank you very much for your quick response, but apparently I have the wrong variable. Here is what I am attempting to accomplish, and if anybody could reveal which variable I am looking for, I would be forever in your debt.

What is the variable that determines if a user has a custom title or if the user simply has the default user title that shows up for X posts? That is, by default, people have their custom titles changed when they reach X posts. However, an admin can give them a custom title that does not change despite the number of posts they make.

Does anybody know what variable this is or how I could possibly find it? I'd like to make the postbit layout slightly different for people who have been given a custom title by the admins, which is why I'm asking.

Thank you very much!

Logician 04-01-2003 04:13 PM

Quote:

Today at 05:33 PM lowtaxbaby said this in Post #179


What is the variable that determines if a user has a custom title or if the user simply has the default user title that shows up for X posts? That is, by default, people have their custom titles changed when they reach X posts. However, an admin can give them a custom title that does not change despite the number of posts they make.

if user has a custom title, variable $post[customtitle] gets value 2 and his custom title is saved in variable $post[usertitle]

so conditional is
PHP Code:

[[($post[customtitle]==2)]]
you have a  custom title which is $post[usertitle]
[[/(
$post[customtitle]==2)]] 

Enjoy..

Quote:

Just thought I'd lend a hand.
yes please be my guest anytime.. :)


All times are GMT. The time now is 10:50 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.01528 seconds
  • Memory Usage 1,751KB
  • 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
  • (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