vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   <if condition="$show['member']"> not working in custom template? (https://vborg.vbsupport.ru/showthread.php?t=150313)

dutchbb 06-23-2007 02:29 PM

No I did the right column myself. it's a pretty simple mod, I really don't want a big mod like vba, just need the right column with login, nothing more.

Quote:

Originally Posted by Dismounted (Post 1274560)
Code:

<phrase 1="$lastvisitdate" 2="$lastvisittime">$vbphrase[last_visited_x_at_y]</phrase>
You will also need to have this PHP code (either in a plugin or in the file itself):
PHP Code:

$lastvisitdate vbdate($vbulletin->options['dateformat'], $vbulletin->userinfo['lastvisit']);
$lastvisittime vbdate($vbulletin->options['timeformat'], $vbulletin->userinfo['lastvisit']); 


And where should I add this, in my rightcolumn plugin on global_start it has no effect.

Dismounted 06-24-2007 05:57 AM

How are you displaying this template?

dutchbb 06-24-2007 09:01 AM

Quote:

Originally Posted by Dismounted (Post 1275160)
How are you displaying this template?

I'm displaying it by using a plugin called 'rightcolumn' at the location: global_start with this content:

Code:

eval('$rightcolumn = "' . fetch_template('rightcolumn') . '";');
Than I just add $rightcolumn in the FORUMHOME template.

Dismounted 06-25-2007 06:32 AM

Add the PHP code I gave you above it.

dutchbb 06-25-2007 01:10 PM

Yes I tried that , it has no effect.

But I think it has to do with the navbar phrases, they are not working in rightcolumn and contain the '{1}' that show the time etc. If you understand what I mean.

Dismounted 06-26-2007 07:30 AM

Can you just put $vbphrase[last_visited_x_at_y] in the template? What comes out?

dutchbb 06-26-2007 09:45 AM

This is what I get:

Your Last Visit: %1$s at %2$s

Dismounted 06-26-2007 11:21 AM

It should work then....But somehow it's not working.

dutchbb 06-28-2007 04:35 PM

Hm.. if you want to, I can give access to my testing board. Maybe you can find what's wrong. If not, no prob :)

dutchbb 07-07-2007 07:40 PM

Let me know plz:)


All times are GMT. The time now is 04:10 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.01825 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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