|
#1
|
|||
|
|||
|
Popup not working?
I thought I'd make my own template but I couldn't get the comment popup to work. My site's URL: http://www.rollingskies.com. I'd like the page to popup when "info and comment" is clicked, but that's not working right now. Can someone have a look and point me to the right direction in troubleshooting this thing? Thanks!
|
|
#2
|
|||
|
|||
|
In using your code you have already for the page. Copy and paste the line below:
Code:
<td width="300" align="left" valign="top"><COMMENT_POPUP></td> and find where it says 'Comments' and change it. |
|
#3
|
|||
|
|||
|
I have checked and I did code the template with the proper popup tag. What you see in my page's source code is <COMMENT_POPUP> being rendered, I think. But my template has the <COMMENT_POPUP> tag, so I'm not sure what else needs some tweaking. Is there a line or lines in index.php that might give me a clue what needs to fixed?
|
|
#4
|
|||
|
|||
|
What I think your doing wrong is that your linking your “info and comments” to <COMMENT_POPUP>. Get rid of “info and comments”. Don’t link any text to <COMMENT_POPUP>. Just add <COMMENT_POPUP> and nothing else.
<td width="300" align="left" valign="top"><COMMENT_POPUP></td> |
|
#5
|
|||
|
|||
|
Hey thanks for your input, but I think I've found my solution here:
http://www.pixelpost.org/forum/viewtopic.php?t=182 I should've done a better job at searching before posting... ops:/myra/ |
|
#6
|
||||
|
||||
|
Comment Popup and Anti-Comment-Spam problem
When trying to implement the Comment Popup I ran into the first problems. Read pretty much every thread and followed with interest:
http://www.pixelpost.org/forum/viewtopic.php?t=182 My index.php file is hacked (mainly for the multiple-categories) but the needed code for the COMMENT_POPUP is in place as: Code:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&amp;showimage=$image_id','Comments','scrollbars=yes,'width=480,height=540');\">$lang_comment_popup</a>",$tpl);
Code:
<a href="index.php?popup=comment" onclick="open('index.php?popup=comment','Comment','400px','600px'); return false">comments</a> (<IMAGE_COMMENTS_NUMBER>)
I noticed this problem only when testing the NO-COMMENT-SPAM solution, which I had to modify from the original to incorporate the index.php code of it into my own hacked index.php and what the coder had used in the image_template.html I incorporated into the comment_template.php file, thinking this should do the trick. But this leads me to the 2nd problem: the NO-COMMENT-SPAM had worked fine for me when installed on a fresh index.php with no comment popups, but here now, it just always accepts the comments, with other words the security does not kick in. I have no idea where to start looking to solve this. Woof... this has become a long posting! ops: Anyway, I'd be very glad if anyone could help me with:a) get the standard COMMENT_POPUP tag to work b) get NO-COMMENT-SPAM addon to work via a popup comment Thanks for any suggestions! |
|
#7
|
|||
|
|||
|
hello, I wrote the no-commentspam-dingie..
please, if you use different modification and "hacks" in one installation you can not expect that everything will work together as far as I understand you problem you want the NO-COMMENTSPAM working with POPUP that for I wrote the NO-COMMENTSPAM with two different templates but I never crosstested it with other modification and for sure I will not test it with other modifications because this will lead to a never ending story :cry: all these modifications are meant for experienced users who know what they do and understand the scripting, so if you use two different modifications in one installation you must check out whether there are collisions or not but I don't have the time to follow everything what people do in their installations ;=) |
|
#8
|
||||
|
||||
|
NO-COMMENT-SPAM
Hi Connie - Hallo in Deutschland!
I am only using 3 modifications: a) multiple categories b) calarchive c) no-comment-spam These 3 should actually not interfere as far as I understand the code, it only means that I can not replace one index.php with another one and that I manually have to add the various code into one php file. You say you supplied 2 different templates, but I only see the general one for image_template.html, I will search again the addon/modification area, maybe I missed your template for the popup? Anyway, it's great work what you are doing and if I am not clear in what I am saying, sorry about that - if you would like I could email you in German the problem (if that helps) - I really do not think the code is interfering, it's rather that I am missing some code or put it into the wrong place in the template or something stupid like that. |
|
#9
|
|||
|
|||
|
Marlyse,
sorry I mixed up myself, I posted two templates (decent - one with, one without popup), but the comment-spam for sure is only one template... I was in a hurry and didn't take care. So let me know how you continue, I am sorry I have no time in the moment to go too deep into it as I have some friends around me, consuming my time ;=) good luck, viel Erfolg! Connie |
|
#10
|
||||
|
||||
|
Quote:
Connie, I went over the files with an application to merge files (which compares line by line of text) and found where I had missed a line or two of your code. Once that was in place, it works just fine in the comment popup! a) I still have no solution unfortunately. Any ideas appreciated. p.s. Hope you have a great evening with your friend C.! |
| Post Reply |
| Thread Tools | |
|
|