Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-14-2011, 08:01 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by techanalyst View Post
Thanks for the response

What do you mean the code tags?

--------------- Added [DATE]1310673055[/DATE] at [TIME]1310673055[/TIME] ---------------



Thats how Ive been doing it
Hello techanalyst
Your being asked to edit your previous post with code tags.
here is an attachment that might help.
Attachment 131026
Reply With Quote
  #12  
Old 07-14-2011, 08:15 PM
techanalyst techanalyst is offline
 
Join Date: Jun 2011
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There we go
Reply With Quote
  #13  
Old 07-14-2011, 11:10 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by techanalyst View Post
Im trying to get this working, with invigorates advanced code plus username tracking, anyhelp would be awesome, is the below code right?

Code:
<vb:literal><script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">
try {
reinvigorate.url_filter = function (url) { return url; }
reinvigorate.track("XXXXXXXXX");
} catch(err) {}
</script></vb:literal>

<vb:literal><script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">
try {
var re_name_tag = "</vb:literal>{vb:raw bbuserinfo.username}<vb:literal>";
reinvigorate.track("XXXXXXXXXX");
} catch(err) {}
</script></vb:literal>
I fixed that previously but still doesnt seem to work
1. I would not use:
Code:
<vb:literal> ... </vb:literal>
2. Put this in the headinclude and load only once:
Code:
<script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
3. This piece is ok:
Code:
<script type="text/javascript">
try {
reinvigorate.url_filter = function (url) { return url; }
reinvigorate.track("XXXXXXXXX");
} catch(err) {}
</script>
4. This should look like:
Code:
<script type="text/javascript">
try {
var re_name_tag = "{vb:raw bbuserinfo.username}";
reinvigorate.track("XXXXXXXXXX");
} catch(err) {}
</script>
If you need to use the literal stuff, make sure you have matching openend and closed tags, which you hadn't. Please look closely
Reply With Quote
  #14  
Old 07-15-2011, 01:15 AM
techanalyst techanalyst is offline
 
Join Date: Jun 2011
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried adding this to the footer and it says:

Code:
<script type="text/javascript">
try {
var re_name_tag = "{vb:raw bbuserinfo.username}";
reinvigorate.track("XXXXXXXXXX");
} catch(err) {}
</script>
It comes back with this error

The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #15  
Old 07-15-2011, 07:57 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by techanalyst View Post
I just tried adding this to the footer and it says:

Code:
<script type="text/javascript">
try {
var re_name_tag = "{vb:raw bbuserinfo.username}";
reinvigorate.track("XXXXXXXXXX");
} catch(err) {}
</script>
It comes back with this error

The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Right. I have this with Google AdSense too. I fixed it with:
Code:
<script type="text/javascript">
var re_name_tag = "{vb:raw bbuserinfo.username}";
reinvigorate.track("XXXXXXXXXX");
</script>
(no try - catch)

if it persists, try:
Code:
<script type="text/javascript">
var re_name_tag = '{vb:raw bbuserinfo.username}';
 reinvigorate.track('XXXXXXXXXX');
 </script>
(single quotes for strings)


--------------- Added [DATE]1310720348[/DATE] at [TIME]1310720348[/TIME] ---------------

The final word however would be a little plugin which adds the full code to the templates at runtime = no complaints
Reply With Quote
  #16  
Old 07-15-2011, 04:23 PM
techanalyst techanalyst is offline
 
Join Date: Jun 2011
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im posting it here in my footer:

Code:
			<div class="footerLogo">
				<a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}"><img src="images/styles/TotallyPro/style/footerLogo.gif" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a>
			</div>
		<div style="clear:both;"></div>
		</div>
	</div>

<script type="text/javascript">
var re_name_tag = '{vb:raw bbuserinfo.username}';
reinvigorate.track('5m1l8-qh4di00axh');
</script>

<!-- Custom Content Wrap End -->

This the correct spot
Reply With Quote
  #17  
Old 07-16-2011, 07:57 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be right spot ... jush at the end
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:16 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.04455 seconds
  • Memory Usage 2,251KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (10)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete