The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Ah ha! This is where you are going wrong:
<?php include("mypoll.php"); ?> (I think that's the one.) Look at what it spits out. It starts with an <html> tag again (and another <head> and <body> tag) |
#12
|
||||
|
||||
![]() PHP Code:
Thanks for your help so far, but we're still not seeing what the problem is. |
#13
|
||||
|
||||
![]()
What do the templates look like - adv_portal_pollresult, etc.? Do they start with the <html> tag?
To see the problem, view your page source right after you spit out the showthread pages and you'll see this: HTML Code:
<div class="content" style="position:relative;float:left;background-color:white;left:71px;"> <html dir="" lang=""> <head> <title>Legion of Angels Forums</title> </head> <body> <br /><br /><br /> <table class="tborder" cellpadding="" cellspacing="" border="0" width="70%" align="center"> <tr> <td class="tcat"></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div align=""> <!-- main error message --> <div style="margin: 10px">Unable to add cookies, header already sent.<br /> File: /homepages/26/d196297218/htdocs/index2.php<br /> Line: 8<br /></div> <!-- / main error message --> |
#14
|
||||
|
||||
![]()
This is one of his templates:
adv_portal_polloption_multiple HTML Code:
<tr> <td class="$bgclass"><label for="pollchoice_$option[number]"><input id="pollchoice_$option[number]" name="optionnumber[$option[number]]" type="checkbox" value="yes" /> <span class="smallfont">$option[question]</span></label></td> </tr> I got a pm from someone on this, what if we put that code in the middle box in an iframe, will that fix the error? It'll make that one section of the front page no content, but there will be a ton of other content in divs anyway. --------------- Added [DATE]1222361393[/DATE] at [TIME]1222361393[/TIME] --------------- This is: adv_portal_poll HTML Code:
<tr> <td class="thead">$pollinfo[question]</td> </tr> $pollbits <tr> <td align="$stylevar[left]" class="$altbgclass"> <if condition="$pollinfo['showresults']"> <span class="smallfont"><b>$vbphrase[total_votes]: $pollinfo[nvotes]</b><br />$pollinfo[message].</span> <else /> <input name="s" type="hidden" value="$session[dbsessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input name="do" type="hidden" value="pollvote" /> <input name="pollid" type="hidden" value="$pollinfo[pollid]" /> <input class="button" name="button" type="submit" value="$vbphrase[vote_now]" /> </if> </td> </tr> <tr> <td class="$bgclass"> <div class="smallfont">» <a href="$vboptions[bburl]/poll.php?$session[sessionurl]do=showresults&pollid=$pollinfo[pollid]">$vbphrase[view_poll_results]</a></div> <if condition="$mod_options['portal_poll_allowreplies']"> <div class="smallfont">» <a href="$vboptions[bburl]/newreply.php?$session[sessionurl]t=$pollinfo[threadid]">$vbphrase[discuss_this_poll]</a></div> <div class="smallfont">» <a href="$vboptions[bburl]/showthread.php?$sddession[sessionurl]t=$pollinfo[threadid]">$vbphrase[this_poll_has] $pollinfo[replycount] <if condition="$pollinfo['replycount'] == 1">$vbphrase[reply]<else />$vbphrase[replies]</if></a></div> </if> <if condition="$show['editpoll']"> <div class="smallfont">» <a href="$vboptions[bburl]/poll.php?$session[sessionurl]do=polledit&pollid=$pollinfo[pollid]">$vbphrase[edit_poll]</a></div> </if> </td> </tr> This is: adv_portal_polloption HTML Code:
<tr> <td class="$bgclass" valign="middle"><label for="pollchoice_$option[number]"><input id="pollchoice_$option[number]" name="optionnumber" type="radio" value="$option[number]" /><span class="smallfont">$option[question]</span></label></td> </tr> |
#15
|
|||
|
|||
![]()
i can't find the culprits within the guys poll files/code. i thought he would have "echo:html"
the only echo's i see are echo $poll; are the double/body/headers coming from another template? |
#16
|
||||
|
||||
![]()
This is:
adv_portal_pollresult HTML Code:
<tr> <td class="$bgclass"> <span class="smallfont"><if condition="$show['voteital']"><em>$option[question] - $option[percent]%</em><else />$option[question] - $option[percent]%</if></span><br /> <img alt="" height="10" src="$stylevar[imgdir_poll]/bar$option[graphicnumber]-l.gif" width="3" /><img alt="$option[votes] <if condition="$option['votes'] <> 1">$vbphrase[votes]<else />$vbphrase[vote]</if>" height="10" src="$stylevar[imgdir_poll]/bar$option[graphicnumber].gif" width="$option[barnumber]" /><img alt="" height="10" src="$stylevar[imgdir_poll]/bar$option[graphicnumber]-r.gif" width="3" /> </td> </tr> |
#17
|
||||
|
||||
![]()
I really don't know anything about iframes, so I don't know if that will fix the error. Did you look in the page source and see what I am talking about?
|
#18
|
|||
|
|||
![]()
yep. we see it. were still trying to figure out what part of the mypoll.php is making it come out.
it's definately mypoll.php. but idk php so i don't know how he's making a whole new page echo out like that. |
#19
|
||||
|
||||
![]()
Hmmm, I'm really not sure either. I guess I might go and compare mypoll.php to usage.php and see what the differences are.
|
#20
|
||||
|
||||
![]() Quote:
Quote:
--------------- Added [DATE]1222362390[/DATE] at [TIME]1222362390[/TIME] --------------- I think what you're basically saying is look for html in those php files? That shouldn't be there?? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|