The Arcive of vBulletin Modifications Site. |
|
Functions.php Error From Hell Details »»
|
||||||||||||||||||||||||||
Hi. I tried to do a very easy hack. change the name "Guest". Now I can't see the individual threads and I get this error:
Quote:
Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Hmm...did you edit functions.php alot?
You can maybe try reuploading the original functions.php if the hack was the only one, if not, just paste what you modified. Imyself am not good with php, I get thrown off with parseerrors hehe, but I can compare and try to find a solution. Drk |
|
#3
|
||||
|
||||
|
Hi! Thanks for answering so fast. Actually, I hadn't really hacked a lot at that point. But even when I replaced the functions.php, it stayed there. I had a friend set up another test board and he thinks it may have something to do with the style design. But it says it's the function.php. :\
|
|
#4
|
||||
|
||||
|
Can you paste whats on line 31 in functions.php?
Did you replace functions.php with the one you downloaded in vb members area? If not, then try download fresh copy of vb and replacing the file. Drk |
|
#5
|
||||
|
||||
|
Sure! This is lines 28-31:
Quote:
|
|
#6
|
||||
|
||||
|
I am assuming that } is at line 31?
|
|
#7
|
||||
|
||||
|
yes.
|
|
#8
|
||||
|
||||
|
Try this,
find Code:
// ###################### Start getpagenav ####################### Code:
// ###################### Start getpagenav #######################
// template-based page splitting system from 3dfrontier.com
function getpagenav($results,$address) {
global $perpage,$pagenumber,$pagenavpages;
if ($results <= $perpage) {
return "";
}
$totalpages = ceil($results/$perpage);
if ($pagenumber>1) {
$prevpage = $pagenumber-1;
eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";");
}
|
|
#9
|
||||
|
||||
|
Sorry about that smilie in the code
Drk |
|
#10
|
||||
|
||||
|
is line 31 a blank space?
|
![]() |
|
|