简体   繁体   English

Fancybox图片库,带有评分和评论

[英]Fancybox image gallery with ratings and comments

I have a photo website which gathers images from a folder with PHP, displays their thumbnails on a page and, when clicked, opens a fancybox (fancybox.net) to display the full image. 我有一个图片网站,该网站从使用PHP的文件夹中收集图像,在页面上显示其缩略图,然后单击时打开一个fancybox(fancybox.net)以显示完整图像。 I am pretty satisfied with the result but as users start posting, they start asking for new features, and problems come out since I'm not a programmer. 我对结果非常满意,但是随着用户开始发布,他们开始要求新功能,并且由于我不是程序员,所以出现了问题。
What I would like to do is a photo commenting/rating system (like the one on facebook to get the idea, but obviously not as complex): I've been trying to add a Disqus code to each picture, but it won't get displayed in my fancyboxes...So the question is, can you give me any (easy-to-implement) ideas on how to achieve this? 我想做的是一个照片评论/评分系统(就像在Facebook上获得评论的系统一样,但显然不那么复杂):我一直在尝试为每张照片添加一个Disqus代码,但不会被显示在我的花式盒子中...所以问题是,您能给我一些(易于实现的)想法来实现这一目标吗? I don't mind using already existing softwares like disqus for comments and polldaddy for ratings, since I guess it would require me to setup a mysql database to do it on my own... 我不介意使用已经存在的软件(例如disqus进行注释)和polldaddy进行评级,因为我猜这将需要我设置mysql数据库才能自行完成...

To brief it again: I have a "thumbs" folder which are gathered on a page. 再次简要介绍一下:我有一个“缩略图”文件夹,这些文件夹聚集在页面上。
I have an "originals" folder with the full size images that are called back by the fancybox. 我有一个“原始”文件夹,其中包含由花式框调回的完整尺寸图像。
I would like to have comments+rating in the fancybox. 我想在fancybox中发表评论和评分。



Thanks in advance for any advice you can give me. 预先感谢您可以给我的任何建议。

For your fancybox implementation I'm assuming that it's just pulling the image into the lightbox, not other content (ie a html page). 对于您的fancybox实现,我假设它只是将图像拉入灯箱,而不是其他内容(即html页面)。 What you'd need to do is set up a page which would grab an image, and output it along with your comments + rating code, then set up your script to use that page as the fancybox URL instead of a direct link to the image. 您需要做的是设置一个将捕获图像的页面,并将其与您的注释和评分代码一起输出,然后将脚本设置为将该页面用作fancybox URL,而不是直接链接至该图像。

Without more information to go on I can't really help more than that. 如果没有更多的信息,我将无能为力。

ps for comments the Facebook Comments plugin might be easier for a non programmer to implement than Disqus. ps的注释对于非程序员来说, Facebook Comments插件可能比Disqus更容易实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM