vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   How to add this to archive/index.php? (https://vborg.vbsupport.ru/showthread.php?t=327497)

final kaoss 08-30-2019 01:39 PM

How to add this to archive/index.php?
 
Hi there I'm having a little trouble adding this to the archive/index. Every time I fire up filezilla & browse to the archive folder, open index.php I try to add this external js.

Every time I save, it gives a 500 error

Can anyone fix this? Thanks


Code:

<div id=\"copyright\">$vbphrase[vbulletin_copyright]</div>
<center>
<br> <script src="//t1.extreme-dm.com/f.js" id="eXF-vgchat1-0" async defer></script> </center>
</div>
</body>

And yes it must have those little //'s before the url..

Quote:

The Tracker-code has to be copied into the source of your page integrally and without *any* changes. Only then the tracking will be accurate. If you change the code eXTReMe digital shall have the right to suspend services. The button included within the code must be visible on your page and in the size as exposed below.

Dave 08-30-2019 01:53 PM

Around line 548, look for
PHP Code:

$output .= "
<div id=\"copyright\">
$vbphrase[vbulletin_copyright]</div>
</div>
</body>
</html>"


and replace with

PHP Code:

$output .= "
<div id=\"copyright\">
$vbphrase[vbulletin_copyright]</div>
<center><br><script src=\"//t1.extreme-dm.com/f.js\" id=\"eXF-vgchat1-0\" async defer></script></center>
</div>
</body>
</html>"


All you had to do was escape the double quotes with a slash because the $output string itself is between double quotes too.

final kaoss 08-30-2019 03:08 PM

Thanks for that, my knowledge on coding with php is practically next to nothing.


All times are GMT. The time now is 12:08 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.01694 seconds
  • Memory Usage 1,717KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete