![]() |
OK thanks for the help...
The plugin to allow PHP is called 'Product : Let PHP Live!' and looks like this: Code:
if (!function_exists('let_php_live')) { The template I'm using is a custom one, see below: Code:
$stylevar[htmldoctype] On my forum I just link to my php file which calls up my template: Code:
<?php --------------- Added [DATE]1406390365[/DATE] at [TIME]1406390365[/TIME] --------------- Adding the hooks etc seems to work... just blank output Code:
// require_once('top10pagenation.php'); |
* Removed *
|
Lovely... would you believe I was going along similar lines...
Anyway, if you could clear a few things up... I've followed everything here and it's very clear, getting a good understanding, I have one more template/php-file to do like this and I'll apply your enlightening way to that also... Right, well it's working, kinda... I can see what's happening, top10.php seems fine, template is fine, when called I see my forum header, the outout header and graphic and the footer graphic and then the forum footer itself, but nothing inbetween... What I'm doing as you would of guessed is reading a file from ftp, putting a 100 lines of it into a text file/flat-file and then trying to read it out nicely... seems like the fault of the 'top10.txt' which checking now is zero bytes, so it's making the file, putting nothing into it and then reading nothing out, so it's either my ftp url which I'm sure is right or line 94 of the top10.php which is: Code:
$ftpurl = "./top10records.txt"; Code:
$ftpurl = "ftp://username:password@88.88.88.88/Data_PermaScore.lua"; // Your FTP uri |
Remove that line it is a typo. That was for my local test data. I will remove it from the message above, sorry. :)
Most of your html code could have easily been placed into the template. Which would have made it easier to code, once you get the hang of things. |
Thanks, Done...
I'm still trying to work out why it's creating a zero-byte 'top10.txt' file and putting nothing into it for reading... hmmm so I'm getting an output of zilch, Can't see anything obvious... EDIT, ahh right, removed the top10.txt and it worked, showing records... but all of them :D Up to 95 records before it breaks... no pagenation Example shown: Code:
#0 1 : 'kkk-'_KILLS-( 51370)_DEATHS-( 22963)_SUICIDES-( 3444)_HEADSHOTS-( 1261)_DUELWINS-( 3)_LEVEL-( 89) |
If you can attach a copy of the data file and your CSS then I can check it out further. Just capture the raw CSV, not the cache file.
|
1 Attachment(s)
See the attachment for my test output. This was before I posted the code here.
|
1 Attachment(s)
Quote:
OK, well I changed the line: Code:
if ($record > 50) On page one, at the bottom the first two records are repeated after the fifty shown, then if you press next which works, page two shows again all records and the next two at the bottom are record 3 and 4 and so it go's on :) hopefully we're getting there, thanks ever so for this help. |
The problem I think is in $numrecs. I changed the variable only at posting time for consistency. It should be $numRecs. So you might want to change all $numrecs to $numRecs. There should be two.
I will get a chance to take a look at this, later this evening. :) |
Due to the possible exploits of the original code, it was easier to just write new code. I tried to keep things compatible with your existing code so that it would not be too difficult for you to modify.
I will post the main code here and your proprietary templates in a PM. Updating your HTML should be much easier now that this is using the vb3 conventions. top10 -- Main template top19bits -- Row data bits Let me know when you get it running, I would like to see the finished product. :) Code:
<?php |
All times are GMT. The time now is 01:30 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:
|