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)

Boofo 04-01-2003 04:27 PM

How would that custom title condition work in the getinfo template (profile)?

Logician 04-01-2003 05:04 PM

$userinfo[customtitle] $userinfo[usertitle]

Boofo 04-01-2003 05:06 PM

Thank you. sir. ;)

I had to use ==1 to make it work, though. ==2 didn't do anything for some reason.

lowtaxbaby 04-01-2003 06:08 PM

Quote:

Today at 07:06 PM Boofo said this in Post #183
Thank you. sir. ;)

I had to use ==1 to make it work, though. ==2 didn't do anything for some reason.

==1 worked for me as well.

However, the result isn't exactly what I was attempting to accomplish. What I'm looking to do is the following:

When a person without a custom title posts, I would like his postbit information to include a link that says "please click here to get your custom title."

The current suggested method displays that "please click here" message on the posts for *everybody* who lacks a custom title, that is, if Person A is logged in to the forums and lacks a custom title (and starts a thread), Person B replies and he lacks a custom title as well, both posts will read "please click here to get your custom title" to both person A and B. Is there any way for person A to see the message under only person A's post, and not everybody else who lacks a custom title as well?

Sorry for the incoherency of this post, I'm having a difficult time explaining myself. Also, once again, thank you VERY much for your time, help, and patience.

Logician 04-01-2003 06:58 PM

Quote:

Today at 10:08 PM lowtaxbaby said this in Post #184
When a person without a custom title posts, I would like his postbit information to include a link that says "please click here to get your custom title."

ok try this one:

[[($post[customtitle]==0 AND $post[userid]==$bbuserinfo[userid])]]
please click here to get your custom title
[[/($post[customtitle]==0 AND $post[userid]==$bbuserinfo[userid])]]

lowtaxbaby 04-01-2003 08:16 PM

Quote:

Today at 08:58 PM Logician said this in Post #185

ok try this one:

[[($post[customtitle]==0 AND $post[userid]==$bbuserinfo[userid])]]
please click here to get your custom title
[[/($post[customtitle]==0 AND $post[userid]==$bbuserinfo[userid])]]

That worked like a charm! Thank you very much for your hack and your support!

Boofo 04-11-2003 12:42 AM

Sinan, how could I make it so it would show [high]Subscribe[/high] to a user if they are NOT subscribed to a thread and show [high]Unsubscribe[/high] if they ARE subscribed to a thread? I think it can be done but I'm not sure of the exact conditional to use. ;)

Logician 04-11-2003 06:47 AM

Quote:

Today at 04:36 AM Boofo said this in Post #187
Sinan, how could I make it so it would show [high]Subscribe[/high] to a user if they are NOT subscribed to a thread and show [high]Unsubscribe[/high] if they ARE subscribed to a thread? I think it can be done but I'm not sure of the exact conditional to use. ;)
Actually you can't do it with conditionals. Because vb does not check if thread reader has a subscription to that thread. This is why we have a hack for this.. ;)

Quote:

Please do not email or PM me for Logician's hacks. Post in the Requests Forum and he will help you as best I can.
lol Bob! What is that all about? Do you really get emails and PMs for my hacks? I didnt understand why people mail you.

Boofo 04-11-2003 09:48 AM

What I am trying to do is have a Subscribe link (Next to the Moderated By link) that will change to Unsubscribe and Subscribe according to the user's subscription. This will be on the forum home and forumdisplay and it will be for forums.

Quote:

lol Bob! What is that all about? Do you really get emails and PMs for my hacks? I didnt understand why people mail you.
That is my tribute to you, sir. No, nobody has ever written me about your hacks. Except maybe where to find them on here. I set that up to see how long it would take for anyone to notice that I wasn't talking about my own hacks. You're the first. If it bothers you, I can take it down. ;)

Logician 04-11-2003 06:24 PM

Quote:

Today at 01:42 PM Boofo said this in Post #189
What I am trying to do is have a Subscribe link (Next to the Moderated By link) that will change to Unsubscribe and Subscribe according to the user's subscription. This will be on the forum home and forumdisplay and it will be for forums.

sorry not possible without hack because vb does not save your subscription status in a variable that you can use in a conditional. You need a hack for this and there is one for forum subscriptions too.

Quote:

That is my tribute to you, sir. No, nobody has ever written me about your hacks. Except maybe where to find them on here. I set that up to see how long it would take for anyone to notice that I wasn't talking about my own hacks. You're the first. If it bothers you, I can take it down. ;)
lol thx.. no it does not bother me at all. I hope you'll get pms about your own hacks too but I dont know if you'll like it when you start to get a lot of pms about that so that I don't wish. :knockedout:


All times are GMT. The time now is 08:01 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.01498 seconds
  • Memory Usage 1,747KB
  • 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
  • (8)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