![]() |
4 Referer sites
I need to put somthing like
if ( strpos($_SERVER['HTTP_REFERER'], 'www.x.') in my template What sould this do? well it would show somthing new for the users that camed from that referer can u help me translate that in vb template code? |
Quote:
Put the code in...well the code, basically. Use in if conditional to display differential data in the html |
You can put PHP code in if conditions, like this.
HTML Code:
<if condition="strpos($_SERVER['HTTP_REFERER'], 'www.x.') !== false"> |
The following template conditional expression contains function calls:
<if condition="strpos($_SERVER['HTTP_REFERER'], 'www.x.') !== false"> Function Name Usage in Expression strpos strpos($_SERVER[\'HTTP_REFERER\'], \'x.\') With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression. The following functions are allowed in template conditional expressions: in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of() any other ideeas plzzz |
In where you want to use this code? Forumhome?
|
navbar
|
Add a plugin to global_start template including these codes:
PHP Code:
HTML Code:
<if condition="$show['truereferrer']">your codes</if> |
works flawless
10x a lot. Note 2 myself : When i get in turkey , gotta take u out for a beer . |
Quote:
|
Quote:
Cheers! :) |
All times are GMT. The time now is 11:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|