简单评级脚本需要修改 - 自动唯一路径/ url属性 [英] Simple rating Script needs modify - unique path/url attribute automatically

查看:68
本文介绍了简单评级脚本需要修改 - 自动唯一路径/ url属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我发现这个简单的js星级评分脚本我想略微修改。


首先我要保留当前的投票,比如3星星,直到它再次改变。


现在它重置为未投票刷新。我知道你可以使用cookies但是


我也想给它一个唯一的标识符,这样如果我把它放在我的主题标题模板中,它对每个主题都是唯一的(保留任何投票权)每个主题都会再次改变。


如果没有数据库,这可能是不可能的。我无法访问我的主机服务器。

Hello,
I found this simple js star rating script that I want to modify slightly.

firstly I want to retain current vote , say 3 stars, untill its changed again.

right now it resets to unvoted on refresh. I know you could use cookies but

I also want to give it a unique identifier so that if i put it in my topic header templet, its unique to each topic (retaining whatever vote for each topic untill changed again) .

perhaps this is not possible without a database. I have no access to my hosts server.

展开 | 选择 | Wrap | 行号

推荐答案


现在它在刷新时重置为未投票。我知道你可以使用cookies但是


我也想给它一个唯一的标识符,这样如果我把它放在我的主题标题模板中,它对每个主题都是唯一的(保留任何投票权)每个主题直到再次更改)
right now it resets to unvoted on refresh. I know you could use cookies but

I also want to give it a unique identifier so that if i put it in my topic header templet, its unique to each topic (retaining whatever vote for each topic untill changed again)



如果您想在所有客户端中使用唯一的东西,则需要服务器端数据存储。 对每个主题都是唯一的,对所有用户或特定用户意味着什么?

If you want something unique across all clients, you will need server-side data storage. By "unique to each topic", do you mean for all users or a particular user?


对所有用户都是,任何人都可以更改它,但如果它当前有3星对于主题(a)和主题(b)的4星,它应该是每个主题的唯一评级我的意思,抱歉。除了服务器端之外,很可能无法完成。

也许我可以找到一个可靠的远程托管评估器,它将以这种方式工作。

我在哪里搜索?
Yes for all for all users, anyone can change it, but if it has 3 stars current for topic (a) and 4 stars for topic(b) it should be unique rating for each topic i meant, sorry. probly cannot be done except server side.
Perhaps I could find a reliable remote hosted rater that will work that way.
Where would I search?



对所有用户都是,所有人都可以更改它,但如果主题(a)有3颗星,主题(b)有4颗星应该是每个主题的唯一评级,对不起。除了服务器端之外,很可能无法完成。

也许我可以找到一个可靠的远程托管评估器,它将以这种方式工作。

我在哪里搜索?
Yes for all for all users, anyone can change it, but if it has 3 stars current for topic (a) and 4 stars for topic(b) it should be unique rating for each topic i meant, sorry. probly cannot be done except server side.
Perhaps I could find a reliable remote hosted rater that will work that way.
Where would I search?



编辑:发现一个PHP代码,但我想知道它是否可以通过托管php使用


< scripr src =" http://h1.ripway.com/Inny/rate/rate.php">< / script>

< script src =" http:// h1 .ripway.com / Inny / rate / item.php">< / script>



rate.php

found a php code but im wondering if it could be used by hosting the php and using

<scripr src="http://h1.ripway.com/Inny/rate/rate.php"></script>
<script src="http://h1.ripway.com/Inny/rate/item.php"></script>

dosent seem to work. sure ive done something wrong. and can it be made automatically unique to whatever topic it appears in?

rate.php

展开 | 选择 | 换行 | 行号


这篇关于简单评级脚本需要修改 - 自动唯一路径/ url属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆