EEpoll with conditionals
Posted: 08 March 2005 04:50 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

I need some help. smile

I have installed the new EEpoll module and it works great.  My issue is with the specific set up on my blog.  I wanted it so that my sticky entries not only stay at the top of the blog, but also have a different css designation. smile  I wanted to really stand out smile

{exp:weblog:entries status="open|sticky" weblog="weblog1" orderby="date" sort="desc" limit="9"}

[\code]

The following is the code that I
use on my site now.  Like I said above the code DOES work, and I do get the sticky entries to look different.

[code]
{if status
=="sticky"}
{date_heading}
{
/date_heading}
<div class="title"><IMG SRC="http://www.incogblogo.net/smiles/flamingo.gif">  {title} : {entry_date format=' %l, %F %d, %Y '} : Sticky</div>
<
div class="stickybody">
{exp:acronym}
{body}
{
/exp:acronym}
</div>
{/if}

{if status
=="open"}
{date_heading}
<div class="date">{entry_date format=' %l, %F %d, %Y '}</div>
{/date_heading}
<div class="title">{title}</div>
<
div class="logbody">

{if pollid != ""}
{exp
:eepoll poll_id="{pollid}"}
{poll}
{
/exp:eepoll}
{
/if}

{exp
:acronym}
{body}
{
/exp:acronym}


{
/if}

{if extended
!= ""}
<div id="extLink{entry_id}">
<
a href="javascript:void(0);" name="ext{entry_id}" onclick="showHide({entry_id},'{permalink}',this,'entry');return false;">Read More &#8594;<BR></a>
</div>
<
div id="extText{entry_id}" style="display: none">
{extended}
<a href="javascript:void(0);" onclick="showHide({entry_id},0,this,'entry');return true;"><BR>That's It.</a>
</div>
{/if}
</div>

The problem comes in when I try to add the ee poll code to both the sticky status area AND the open status area.  I tried created a THIRD status, as I figured that would solve the problem, but it didn’t. It’s possible that I didn’t create the status like I should have, but I am unsure.

What I would like is that I can have polls in EITHER area.  So that if I want to post a sticky poll I can, but that it would also show the poll if the entry is not sticky.  Every time I add the code to BOTH areas though my blog breaks. The 1st entry will show, but then all the others will show BEHIND the blog.  Example

I guess that if I cannot figure this out, I can place the EEpoll code in one area or the other and just not have that functionality. 

Thanks for your help smile

Luka

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 08 March 2005 04:52 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

Ah. Crap. I totally farked and didn’t close the code tag.  I’m sorry

Luka

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 08 March 2005 07:18 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Your code doesn’t show any Poll in the “sticky” status section.  Could you just copy the entire contents of that Template to a regular .txt file on your server and then link to it so we can see the full code?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 March 2005 07:51 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

The working index

Luka

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 08 March 2005 08:53 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

I think when I forgot to close the tag, i missed some info.  Lemme try it again.

{exp:weblog:entries status="open|sticky" weblog="weblog1" orderby="date" sort="desc" limit="9"}


Basically the code I have in place currently works.  The poll displays in the regular entries.  What I WANT to be able to do is display the code in either area. So it won’t matter if the post is sticky or regular, the poll will show either way. The way it CURRENTLY works is that the poll only shows in EITHER the sticky OR the open entries.  I have it currently set to show in the open entries, so that’s why there is no poll code in the sticky status coding. 

When ever I try and all the ee poll code to BOTH the open and the sticky status’ it breaks.  Text File   OR View Page


I want to be able to have the ee poll code set up in both status’ so that I can put polls in both status’, depending on my need. smile

Luka

 

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 08 March 2005 10:54 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

As other people already pointed out to you, you seem to be missing a closing </div> inside the “stick” conditional for <div class=“stickybody”>.  That could certainly play havoc with a layout.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 March 2005 11:51 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

Can you tell me where the Div tag is missing in this code? Cause I just CANNOT see it :(

{if status=="sticky"}
<div class="title">{title} {entry_date format=' %l, %F %d, %Y '}</div>
<
div class="stickybody">


{exp:acronym}
{body}
{
/exp:acronym}

</div>
{/if}

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 09 March 2005 06:03 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

I didn’t mean that snarkily.  :(  I hope that it didn’t come off that way.

Luka

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 09 March 2005 11:24 AM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Well, it’s not missing there.  But it is missing in the Template code you linked to.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 09 March 2005 01:59 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

Ah , yes. I see that now.  I’ve fixed that in the actual working template though and it doesn’t work there either. :(  I will fix it in the linked template as well.


Broken Page

Code Text File

There are no longer any missing Div tags. smile

I really DO appreciate all the help! smile  I can’t say it enough! smile

Luka

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 09 March 2005 02:03 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32769
Joined  05-14-2004

You have all sorts of problems in that page.

For instance:

<P>
</
div>

<
CENTER>
<
B>

</
CENTER>
</
B>

</
div>

The paragraph isn’t closed, twoo many divs ARE closed and the HTML tags are just plain out of order.  I highly suggest that you validate the page, and work on the code, as that will almost certainly fix this problem.

 Signature 
Profile
MSG
 
 
Posted: 09 March 2005 02:25 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  290
Joined  05-15-2004

LJ

Thanks for the push, I’ve known the code was icky for a while, I’d just never…well…know…fixed it! smile  This is my chance, I think.

I’ve started by creating a template for validation, without the header and footer php tags.  Now I’m going through and validating that code. Once that’s done I can go through and adjust all my skins to fix the newly validated code.  (If possible.)  Once I’ve done all that I will try the poll code again and see if it’s still not working. smile I will prolly need help at some point, but I will post in other threads that are more appropriate for that. If I still need help with this after THAT’s all done - then I will post that here smile

Luka

p.s.  It may take a while.

 Signature 


My Blog Incogblogo Version 1.6.0 Build: 20070622
“No trees were killed in the making of this post ...... however, a large number of electrons were horribly inconvenienced.” ~Unknown

Profile
 
 
Posted: 09 March 2005 02:30 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32769
Joined  05-14-2004

Validating as you go is definitely easier.  I hate post-validating, for all the reasons that you just listed. wink

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64493 Total Logged-in Users: 58
Total Topics: 81040 Total Anonymous Users: 33
Total Replies: 436100 Total Guests: 275
Total Posts: 517140    
Members ( View Memberlist )