siggen
01-24-2008, 08:15 PM
I'm really a newbie, and this was the first time I've ever tried to mod anything, and as expected, I couldn't get it to work.
I opened the thread.php in wordpad, searced up the "$poll", and found it right under the "show poll" embedded in xxx'es
Then wrote it like this...
################################################## ##############################
############################### SHOW POLL ######################################
################################################## ##############################
<h2>$thread[title]</h2>
<div id="h2stats">denne traden har $thread[replycount] svar og har blitt vist $thread[views] ganger</div>
h2
{
font-size: 200%;
text-align: center;
margin: 0;
padding: 0;
}
#h2stats
{
font-size: 125%;
text-align: center;
}
$poll = '';
I translated the text to Norwegian, as my forum is going to be in Norwegian.
I then copied the whole modified file into the showthread.php file on my forum server, saved it, and tried to open a post on my forum...
I'm using the 3-6-8_Patch_Level_2 version
As expected, I got an error message...
Parse error: syntax error, unexpected '<' in /home/xxxx*/public_html/forum/showthread.php on line 589
*= I removed this name, naturally...
I then put the original file back in without the mods, and my threads showed up as before...
What did I do wrong?
Did I put the mod in at the wrong place?
Can anyone please help me???
The original mod is to be found here...
https://vborg.vbsupport.ru/showthread.php?t=99504
Really hope someone could help me out here...
.
I opened the thread.php in wordpad, searced up the "$poll", and found it right under the "show poll" embedded in xxx'es
Then wrote it like this...
################################################## ##############################
############################### SHOW POLL ######################################
################################################## ##############################
<h2>$thread[title]</h2>
<div id="h2stats">denne traden har $thread[replycount] svar og har blitt vist $thread[views] ganger</div>
h2
{
font-size: 200%;
text-align: center;
margin: 0;
padding: 0;
}
#h2stats
{
font-size: 125%;
text-align: center;
}
$poll = '';
I translated the text to Norwegian, as my forum is going to be in Norwegian.
I then copied the whole modified file into the showthread.php file on my forum server, saved it, and tried to open a post on my forum...
I'm using the 3-6-8_Patch_Level_2 version
As expected, I got an error message...
Parse error: syntax error, unexpected '<' in /home/xxxx*/public_html/forum/showthread.php on line 589
*= I removed this name, naturally...
I then put the original file back in without the mods, and my threads showed up as before...
What did I do wrong?
Did I put the mod in at the wrong place?
Can anyone please help me???
The original mod is to be found here...
https://vborg.vbsupport.ru/showthread.php?t=99504
Really hope someone could help me out here...
.