Coder gurus I need some TradeExpert help please

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
Post Reply
User avatar
TheButcher
Administrator
Administrator
Posts: 17526
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

Coder gurus I need some TradeExpert help please

#1

Post by TheButcher » January 11th, 2019, 10:33 am

Hi guys

I have TradeExpert working fine, but I can't get the toplist to work on the board pages.
To keep this short The board is phpbb with a footer.html page where I want to add the thing.

The script help page says
How to include toplist into your web page

After you have created and added a toplist, it has to be included into your web page:

PHP (.php pages)

<?php
include "toplist.html";
?>

SSI (.shtml pages)

<!--#include virtual="toplist.html" -->

Neither brings it up, I have the correct path to the toplist, I have it working on https://www.sponsorchat.com/referrers.php
There is an index.php page on the board script, but god knows where to add it, every place I tried the board went blank lol.
I am thinking maybe the .shtml option since the pages are .html but that didn't work either.


Any ideas please.

Peace

Krissy
Verified Member
Verified Member
Posts: 153
Joined: September 27th, 2018, 3:51 am

#2

Post by Krissy » January 11th, 2019, 4:44 pm

This is a pure guess. I know zero about codes. What if you rename the footer to footer.shtml and use use the

Code: Select all

SSI (.shtml pages)

<!--#include virtual="toplist.html" -->
code?




jlinkz
Verified Member
Verified Member
Posts: 799
Joined: March 30th, 2018, 8:30 pm

#3

Post by jlinkz » January 11th, 2019, 6:03 pm

Not a clue good luck and a bump 4 you




Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#4

Post by Colmike7 » January 11th, 2019, 6:08 pm

Add :
<!--#echo var="DATE_LOCAL" -->
to the shtml file and let me know if it shows the date or not.

According to them, if it doesn't show the date, then SSIs aren't working and the host needs to enable it for the topbar to work.




Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#5

Post by Colmike7 » January 11th, 2019, 6:36 pm

..I skimmed that and didn't read all of it.
Does it work on /referrers.php but not on board pages, both on sponsorchat.com? If so, don't worry about what I said.
PM me when you're around, I'll figure it out.




User avatar
TheButcher
Administrator
Administrator
Posts: 17526
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#6

Post by TheButcher » January 11th, 2019, 6:46 pm

Colmike7 wrote: ↑
January 11th, 2019, 6:36 pm
..I skimmed that and didn't read all of it.
Does it work on /referrers.php but not on board pages, both on sponsorchat.com? If so, don't worry about what I said.
PM me when you're around, I'll figure it out.
Yes sir on https://www.sponsorchat.com/referrers.php the code they give works, that's because I named that page .php
<?php
include "toplist.html";
?>
it doesn't work on any other page that is not .php

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#7

Post by Colmike7 » January 11th, 2019, 6:49 pm

TheButcher wrote: ↑
January 11th, 2019, 6:46 pm
Colmike7 wrote: ↑
January 11th, 2019, 6:36 pm
..I skimmed that and didn't read all of it.
Does it work on /referrers.php but not on board pages, both on sponsorchat.com? If so, don't worry about what I said.
PM me when you're around, I'll figure it out.
Yes sir on https://www.sponsorchat.com/referrers.php the code they give works, that's because I named that page .php
<?php
include "toplist.html";
?>
it doesn't work on any other page that is not .php
Ah gotcha. Could you try <!--#echo var="DATE_LOCAL" --> on the .shtml page instead of <!--#include virtual="toplist.html" --> then? :p




Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#8

Post by Colmike7 » January 11th, 2019, 6:56 pm

If it doesn't show the date, then you need it to be able to parse shtml into SSI. You could either ask your host to do it, or just add this to your .htaccess:

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
AddHandler server-parsed .html .htm




User avatar
TheButcher
Administrator
Administrator
Posts: 17526
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#9

Post by TheButcher » January 11th, 2019, 7:00 pm

colmike there is no shtml pages on the phpbb script for the board, it pulls index.php but there are a bunch of html components like header, footer.....

I want to add it to the footer.html

Please tell me what to add to that page so it shows up.

And what else to change on htaccess if anything

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#10

Post by Colmike7 » January 11th, 2019, 7:33 pm

I might want to re-read this when I'm sober tomorrow, it's Friday lol :p Not sure why I was thinking you wanted it on a .shtml page...
But, in that case I would think that <?php include "toplist.html"; ?> would work in footer.html if the index.php pulls from those. Also, maybe check to be sure that you aren't nesting any <?php ?>'s like:
<?php
stuff;
<?php include "toplist.html"; ?>
more stuff;
?>

and if so do this instead:
<?php
stuff;
include "toplist.html";
more stuff;
?>




User avatar
TheButcher
Administrator
Administrator
Posts: 17526
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#11

Post by TheButcher » January 11th, 2019, 7:34 pm

Okay have a good evening boss, this can wait.

Thanks again for the time


Peae

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#12

Post by Colmike7 » January 11th, 2019, 7:37 pm

TheButcher wrote: ↑
January 11th, 2019, 7:34 pm
Okay have a good evening boss, this can wait.

Thanks again for the time


Peae
Could I see footer.html? If the <?php tags are nested, that will break the page like you described.




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#13

Post by HeidiHoe » January 11th, 2019, 7:45 pm

It's a php file and you're trying to include it into a php page?
<?php include "server/path/to/file.php"; ?>
Use the absolute or the relative server path to file. Don't use the URL. .htaccess should be good as is if you use php. You should be able to include any php or txt file providing it's on the same server. SSI isn't used much anymore and you probably do need to turn it on to use it. Either have host do it, use your cPanel, or edit your .htaccess file with the code colmike7 gave you.

I haven't seen SSI used in ages. It went out of vogue along with perl... another dinasour.
Last edited by HeidiHoe on January 11th, 2019, 7:50 pm, edited 1 time in total.
The Fourth Turning Is Here

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#14

Post by Colmike7 » January 11th, 2019, 7:50 pm

HeidiHoe wrote: ↑
January 11th, 2019, 7:45 pm
It's a php file and you're trying to include it into a php page?
<?php include "server/path/to/file.php"; ?>
Use the absolute or the relative server path to file. Don't use the URL. .htaccess should be good is is if you use php. You should be able to include any php or txt file providing it's on the same server. SSI isn't used much anymore and you probably do need to turn it on to use it. Either have host do it, use your cPanel, or edit your .htaccess file with the code colmike7 gave you.

I haven't seen SSI used in ages. It went out of vogue along with perl... another dinasour.
Well, that's what I was thinking at first and got confused, but in this case he's trying to add the include to a .html file used by a .php index and nothing to do with shtml or SSI I think.. That's all, and when he inserts the php code the site breaks. So, now my guess is that the php code isn't being inserted right and is causing the page to break.
Last edited by Colmike7 on January 11th, 2019, 7:51 pm, edited 1 time in total.




User avatar
TheButcher
Administrator
Administrator
Posts: 17526
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#15

Post by TheButcher » January 11th, 2019, 7:50 pm

here is the phpbb footer file



Code: Select all

<!-- IF S_REGISTERED_USER -->
							
								
							</li>
						<!-- ENDIF -->
						<!-- IF S_USER_LOGGED_IN -->
						
														
						<!-- ENDIF -->
												
														
														
						
						
</Li>
						
					

					<!-- EVENT navbar_header_quick_links_after -->
				</ul>
			
	<p>
<!-- IF U_MARK_FORUMS -->
<p><a accesskey="m" href="/{U_MARK_FORUMS}" data-ajax="mark_forums_read">MARK READ</a> <!-- ENDIF --> |  <a href="https://www.sponsorchat.com/faq.html">FAQ</a> |  <a href="https://www.sponsorchat.com/banners.html">BANNERS</a> | <a href="https://www.sponsorchat.com/referrals.html">REFERRAL LINK</a> | <a href="https://www.sponsorchat.com/contact.html">CONTACT</a> | <a href="https://www.sponsorchat.com/search.php">SEARCH</a> | <a href="https://www.sponsorchat.com/advertise.html">ADVERTISE</a>  |  <a href="https://www.sponsorchat.com/resources.html"> DIRECTORY</a> | <a href="https://www.sponsorchat.com/blog/">BLOG</a> | <a href="https://www.sponsorchat.com/store.html" target="_blank">STORE</a> | <a href="https://www.sponsorchat.com/cams.html" target="_blank">CAMS</a>  | <a href="https://www.sponsorchat.com/referrers.php">TOP LIST</a></p>	



 	</div>

<!-- EVENT overall_footer_content_after -->

<!-- EVENT overall_footer_page_body_after -->

<div id="page-footer" class="page-footer" role="contentinfo">
	<!-- INCLUDE navbar_footer.html -->

	<div class="copyright">	
<br>
<center>
<!-- Revive Adserver Javascript Tag - Generated with Revive Adserver v4.1.1 -->
<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://www.sponsorchat.com/ads/www/delivery/ajs.php':'http://www.sponsorchat.com/ads/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=12&target=_blank");
   document.write ('&cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
   document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
   document.write ("&loc=" + escape(window.location));
   if (document.referrer) document.write ("&referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://www.sponsorchat.com/ads/www/delivery/ck.php?n=aab1b3b5&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.sponsorchat.com/ads/www/delivery/avw.php?zoneid=12&cb=INSERT_RANDOM_NUMBER_HERE&n=aab1b3b5' border='0' alt='' /></a></noscript>
</center>
<br>
<br>
<div class="copyright">
<p align="center"><font face="arial" color=“000000" size="1"> 
The following web pages and associated links and other material contain nudity and depictions of a sexual nature.<br> All materials beyond this page and linked locations are intended and authorized for access by CONSENTING ADULTS ONLY. <br>No minors are authorized, allowed or permitted to enter beyond this point.
Minors are persons under the age of 18 or 21 years <br> in places in which 18 years is not the legal age of majority.You must leave this site if you are not a consenting adult.</a>
</font>


<br>
<center><div class="addthis_inline_share_toolbox"></div></center>
<br>
<center><font face="arial" color="000000" size=“3">
	Copyright Since 2004 sponsorchat.com<br></font></center>
  <font face="arial" color="b4b4b4" size=“2">powered by phpbb
</size=></font></center>
<br>


		</div>

	<div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="{L_AJAX_ERROR_TITLE}" data-ajax-error-text="{L_AJAX_ERROR_TEXT}" data-ajax-error-text-abort="{L_AJAX_ERROR_TEXT_ABORT}" data-ajax-error-text-timeout="{L_AJAX_ERROR_TEXT_TIMEOUT}" data-ajax-error-text-parsererror="{L_AJAX_ERROR_TEXT_PARSERERROR}">
		<div id="darken" class="darken">&nbsp;</div>
	</div>

	<div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
		<a href="#" class="alert_close">
			<i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
		</a>
		<h3 class="alert_title">&nbsp;</h3><p class="alert_text"></p>
	</div>
	<div id="phpbb_confirm" class="phpbb_alert">
		<a href="#" class="alert_close">
			<i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
		</a>
		<div class="alert_text"></div>
	</div>
</div>

</div>

<div>
	<a id="bottom" class="anchor" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

<script type="text/javascript" src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script type="text/javascript">window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS forum_fn.js -->
<!-- INCLUDEJS ajax.js -->
<!-- IF S_ALLOW_CDN -->
	<script type="text/javascript">
		(function($){
			var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
				$span = $('<span class="fa" style="display:none"></span>').appendTo('body');
			if ($span.css('fontFamily') !== 'FontAwesome' ) {
				$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
				$fa_cdn.remove();
			}
			$span.remove();
		})(jQuery);
	</script>
<!-- ENDIF -->

<!-- IF S_COOKIE_NOTICE -->
	<script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
	<script>
		window.addEventListener("load", function(){
			window.cookieconsent.initialise({
				"palette": {
					"popup": {
						"background": "#0F538A"
					},
					"button": {
						"background": "#E5E5E5"
					}
				},
				"theme": "classic",
				"content": {
					"message": "{LA_COOKIE_CONSENT_MSG}",
					"dismiss": "{LA_COOKIE_CONSENT_OK}",
					"link": "{LA_COOKIE_CONSENT_INFO}",
					"href": "{LA_COOKIE_CONSENT_HREF}"
				}
			})});
	</script>
<!-- ENDIF -->

<!-- EVENT overall_footer_after -->

<!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
{$SCRIPTS}

<!-- EVENT overall_footer_body_after -->

<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5946689404a94848"></script> 

</body>
</html>

Coder gurus I need some TradeExpert help please

Post Reply