Comments in a Popup Window
Posted: 07 July 2005 09:38 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  591
Joined  04-12-2003

Does anyone have the code to put comments in a popup window?  I tried the code in this thread:

http://expressionengine.com/forums/viewthread/10798/

but that didn’t work.

 Signature 

burp.

Profile
 
 
Posted: 07 July 2005 09:56 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

I did (might still but can’t look till morning). The reason I dumped it was I had the comments and the comment form in the popup. The popup was templated for a smaller sized window. If a person added a comment and an email notice was sent, the link would be back to the comment form that sent it, the popup template…but it would open in the regular full window so it didn’t work for me in that situation.

Profile
 
 
Posted: 07 July 2005 10:00 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  591
Joined  04-12-2003

I’m not really sure I want to do it, and there are certainly a lot of good reasons NOT to, but I’d like to play around with it a little bit just for fun.  If you dig up the code, I’d appreciate it.

 Signature 

burp.

Profile
 
 
Posted: 07 July 2005 11:09 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

There’s nothing really special about this.  You create a Template to display the comments.  Then, when you link to it, you just use some javascript to force it to open up into a defined window.  Maybe something like this:

<a href="{url_title_path=weblog/comments}" onclick="window.open(this.href, '_blank', 'width=400,height=600');return false;" onkeypress="this.onclick()">comments</a>

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 07 July 2005 11:12 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33276
Joined  05-14-2004

wiki’d.

 Signature 
Profile
MSG
 
 
Posted: 08 July 2005 12:56 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16186
Joined  05-15-2004
LisaJill - 07 July 2005 11:12 PM

<a href="{url_title_path=weblog/comments}" onclick="window.open(this.href, '_blank', 'width=400,height=600');return false;" onkeypress="this.onclick()">comments</a>]wiki'd

That’s not a valid link in this forum, I’m afraid.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 08 July 2005 12:57 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33276
Joined  05-14-2004

Woops, fixed.  Thank you, Ingmar. =)

 Signature 
Profile
MSG
 
 
Posted: 08 July 2005 12:59 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16186
Joined  05-15-2004

Well, your response time certainly is excellent. It took you, what, a minute? More like 40 seconds, in fact.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

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: 66467 Total Logged-in Users: 23
Total Topics: 84859 Total Anonymous Users: 16
Total Replies: 455329 Total Guests: 176
Total Posts: 540188    
Members ( View Memberlist )