MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 05, 2009, 01:22 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Add-ons, Extensions & Elements
»
General Repository Items Support
»
Support/Comments for CSS Star Rating
Pages: [
1
]
2
3
...
9
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Support/Comments for CSS Star Rating (Read 32031 times)
0 Members and 2 Guests are viewing this topic.
garryn
Coding Team
Posts: 1,252
Support/Comments for CSS Star Rating
«
on:
Jun 29, 2006, 07:49 PM »
This is an auto-generated support/comment thread for
CSS Star Rating
.
Use this forum to post any comments about this addition or any questions you have regarding its use.
Brief Description:
This snippet lets visitors to your site vote on your web articles using a completely CSS based star rating.
«
Last Edit: Jul 03, 2006, 06:08 PM by garryn
»
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
Marschant
Full Member
Posts: 133
Re: Support/Comments for CSS Star Rating
«
Reply #1 on:
Jul 06, 2006, 07:03 PM »
I seem to be getting a url error when using this with friendly urls and friendly paths enabled:
an example of the url being generated by the makeurl function:
Code:
http://localhost/development/swellguys.co.za/new.html?starvote=2&pid=263
which should be:
Code:
http://localhost/development/swellguys.co.za/dev/new.html?starvote=2&pid=263
Logged
garryn
Coding Team
Posts: 1,252
Re: Support/Comments for CSS Star Rating
«
Reply #2 on:
Jul 06, 2006, 08:07 PM »
Hi Marschant,
If you substitute any occurrences of
$modx->documentObject['alias']
in the makeUrl calls with an
empty string
('') then that should solve the issue.
Thanks for the bug report ... any problems then let me know. I will get the main package updated tomorrow with this fix.
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
Marschant
Full Member
Posts: 133
Re: Support/Comments for CSS Star Rating
«
Reply #3 on:
Jul 07, 2006, 03:21 AM »
Confirmed, did this last night and it worked, might I suggest checking the "use friendly alias path" settings and outputing different url strings based on that?
Logged
garryn
Coding Team
Posts: 1,252
Re: Support/Comments for CSS Star Rating
«
Reply #4 on:
Jul 07, 2006, 03:49 AM »
No need ... removing the alias value will allow it to be used for all combinations of friendly url settings.
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
Deep
Jr. Member
Posts: 40
Re: Support/Comments for CSS Star Rating
«
Reply #5 on:
Aug 16, 2006, 05:31 PM »
Hi,
First of all, thanks for developing such a cool snippet.
I have facing one strange problem with it, I added the star_rating with onevote parameter but it still allows me to vote more than one time i.e. it counts the 2nd vote...
I have used following parameters:
[!star_rating? &onevote &docID!]
I also tried using: [!star_rating? &useSession &docID!]
but none of them helped me.
Please suggest the solution.
Thanks
Deep
Logged
Deep Ganatra
Web1 Solutions
davidm
MODx evangelist
Marketing & Design Team
Posts: 7,026
Software is like sex, it's better when it's free !
Re: Support/Comments for CSS Star Rating
«
Reply #6 on:
Aug 16, 2006, 06:11 PM »
I never used Start Rating, but usually snippet calls need a value assigned to the parameter... I guess you're still learning MODx there. Check out the doc, it helps getting through the basics
If you look at the snippet page, you'll see that the &onevote parameter seems to be a boolean : i.e can only be either set to true or false &onevote=`1` or &onevote=`true` I guess. When the parameter is set to true, it seems the snippet uses cookies to remember the vote (thus, not allow multiple votes).
The &docID parameter is optionnal, only if you need to retrieve the star rating from another document. Then you should use it like this &docID=`5` if the document you want to use has the ID : 5 (see in the document tree the number in parentheses).
I'll let those who actually used the snippet get into more detail.
Hope it helps
«
Last Edit: Aug 16, 2006, 06:14 PM by davidm
»
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez ŕ l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accčs pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
Deep
Jr. Member
Posts: 40
Re: Support/Comments for CSS Star Rating
«
Reply #7 on:
Aug 16, 2006, 06:15 PM »
oh my bad, you were right. I missed the ='1'
Thanks
Deep
Logged
Deep Ganatra
Web1 Solutions
davidm
MODx evangelist
Marketing & Design Team
Posts: 7,026
Software is like sex, it's better when it's free !
Re: Support/Comments for CSS Star Rating
«
Reply #8 on:
Aug 16, 2006, 06:16 PM »
Glad I could help
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez ŕ l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accčs pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
garryn
Coding Team
Posts: 1,252
Re: Support/Comments for CSS Star Rating
«
Reply #9 on:
Aug 16, 2006, 06:29 PM »
lol, I just typed out almost to the word what David said in his post - beat me to the posting though
It doesn't matter what value the &useSession and &onevote parameters are given, the fact they are specified in the snippet call will trigger the relevant functionality.
The &docID parameter is, as David mentioned, for remote page voting and was something that was used in the designing of the MODx Repository. I know that somebody did once mention a Ditto/Star Rating combo but I'm not sure if they ever got anywhere with it ...
Glad you got it working Deep!
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
heliotrope
Coding Team
Posts: 2,517
Re: Support/Comments for CSS Star Rating
«
Reply #10 on:
Sep 03, 2006, 10:29 AM »
Hi,
First of all, thx for this great addition.
Is there anyway to allow votes from List view build with ditto (star_rating is called from the ditto tpl chunk).
For now, if you vote for an item in the list, it will be counted several times (equal to &summarize parameter in ditto call)
Any clue ?
thx :-)
Logged
Made with MODx :
traduction en ligne
|
agence de traduction
|
copadel, fruits et légumes
|
Provence
|
Dictionnaire en ligne
Professional Website:
dixsix, communication interactive
garryn
Coding Team
Posts: 1,252
Re: Support/Comments for CSS Star Rating
«
Reply #11 on:
Sep 03, 2006, 01:46 PM »
Hi heliotrope, it should work okay with Ditto listings as it should unset all the vote values on the first pass of the update routine. I'm not really sure why that isn't the case.
Could you post your Ditto tpl chunk that you're using and I'll try and run a few tests on the snippet.
Cheers, Garry
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
heliotrope
Coding Team
Posts: 2,517
Re: Support/Comments for CSS Star Rating
«
Reply #12 on:
Sep 03, 2006, 01:54 PM »
Hi garryn,
thx for replying.
Here are my elements
ditto tpl:(starRating call inside)
Code:
<div class="photoVig">
<h4><a href="[~[+id+]~]">[+title+]</a></h4>
<a href="[~[+id+]~]">[+tvthumbImg+]</a>
<p>
[+date+]
[[StarRating? &docID=[+id+] &useSession=1 &onevote=1 ]]
[+starRating+]
[+totalVotes+]
</p>
</div>
ditto snippet call:
Code:
[!Ditto? &startID=`[*id*]` &summarize=9 &paginate=1 &tpl=`photolist` &debug=0 &datetype=createdon &dateFormat=`%a-%e-%b` &multiLevel=1 &mode=`production` &filter=`parent,[*id*],=|isfolder,0,=` &hiddenTVs=`thumbImg` !]
Thx for your help
:-)
Logged
Made with MODx :
traduction en ligne
|
agence de traduction
|
copadel, fruits et légumes
|
Provence
|
Dictionnaire en ligne
Professional Website:
dixsix, communication interactive
garryn
Coding Team
Posts: 1,252
Re: Support/Comments for CSS Star Rating
«
Reply #13 on:
Sep 03, 2006, 04:21 PM »
Well, I tried the Ditto call above, and apart having to remove the Ditto filter settings (couldn't get them to work for some reason) the CSS Star Rating worked as it should.
I will try on a different setup but won't be able to do it until tomorrow evening now. If anybody else wants to give it a blast as well to see if it works then it would be appreciated.
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
heliotrope
Coding Team
Posts: 2,517
Re: Support/Comments for CSS Star Rating
«
Reply #14 on:
Sep 03, 2006, 05:07 PM »
I was trying on local environment (OSX/Apache).
Everything works fine on a remote server.
:-)
EDIT:
The snippet has to be called cached from the ditto chunk to work. But you have to disallow vote from the list view or else it will be added as many times as you &summarize param in ditto call.
«
Last Edit: Sep 04, 2006, 07:09 PM by heliotrope
»
Logged
Made with MODx :
traduction en ligne
|
agence de traduction
|
copadel, fruits et légumes
|
Provence
|
Dictionnaire en ligne
Professional Website:
dixsix, communication interactive
Pages: [
1
]
2
3
...
9
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> Front-end Document Management
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.3
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Webworker Lounge
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
International Support & Translations
-----------------------------
=> Internationalization
=> Bulgarian
===> Поддръжка
=====> Често задавани въпроси
=====> Инсталация
=====> Модули, Плъгини, Снипети и код
=====> Дизайн и Шаблони
===> Документация, Ръководства и Превод
=====> Документация
=====> Ръководства
=====> Превод
===> Общество
=====> Съобщения
=====> Представете се
=====> Представете сайта си
=====> Дискусии извън MODx
=> Chinese
=> Czech
===> Oznámení
=====> Důležitá oznámení/novinky
=====> Bezpečnost
===> Komunita
=====> Oznámení
=====> Představte se, prosím
=====> Ukázky práce
=====> Různé aneb cokoli co se jinam nehodí
===> Podpora
=====> FAQ (často kladené otázky)
=====> Instalace
=====> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
=====> Design & Šablony
===> Dokumentace, tutoriály (návody) a překlady
=====> Dokumentace
=====> Tutoriály (návody)
=====> Překlady (lokalizace)
=> Dutch
===> Ondersteuning
=====> Veel gestelde vragen
=====> Modules, Plugins, Snippets & Code
=====> Design & Templates
===> Documentatie, Tutorials en Vertalingen
=====> Documentatie
=====> Tutorials
=====> Vertalingen
===> Community
=====> Aankondigingen
=====> Stel jezelf voor
=====> Site Showcase
=====> De stamkroeg
=> Filipino
===> Suporta
=====> Kadalasang tanong
=====> Instalasyon
=====> Moduler, Maidadagdag, Karagdagang mga Code
=====> Desenyo at Templates
===> Dokumentasyon, Mga Turo, Mga Salin
=====> Dokumentasyon
=====> Mga Turo
=====> Mga Salin
===> Kumunidad
=====> Anunsyo
=====> Ipakilala ang sarili
=====> Ang Galing ng pinoy
=====> Tsismisan atbp
=> Finnish
===> Tuki
=====> UKK
=====> Asennus
=====> Moduulit, liitännäiset, koodinpätkät
=====> Ulkoasu/Sivustopohjat
===> Dokumentaatio, oppaat ja käännökset
=====> Dokumentaatio
=====> Käännökset
=====> Oppaat
===> Yhteisö
=====> Tiedotteet
=====> Esittele itsesi
=====> MODx sivustosi
=====> Kahvihuone
=> French
===> Support
=====> FAQ
=====> Installation
=====> Module, plugin, snippets
=====> Design/Templates
===> Documentation, Tutoriels et Traductions
=====> Documentation
=====> Traduction
=====> Tutoriels
===> Communauté
=====> Annonces
=====> Présentez vous
=====> Vos sites
=====> Le Bistrot Français
=> German
===> Support (de)
=====> FAQ (de)
=====> Installation (de)
=====> Module, Plugins, Snippets & Code (de)
=====> Design & Templates (de)
===> Dokumentation, Tutorials und Übersetzung
=====> Dokumentation
=====> Tutorials (de)
=====> Übersetzung
===> Community (de)
=====> Ankündigungen
=====> Stellt Euch vor
=====> Beispielseiten
=====> Off Topic / Verschiedenes
=> Hebrew
===> הכרזה
=====> חדשות חשובות
=====> אבטחה
===> תמיכה
=====> התקנה
=====> תיעוד, מדריכים ותרגומים
=====> עיצוב ותבניות
=====> שאלות נפוצות
===> תיעוד, מדריכים ותרגומים
=====> תיעוד
=====> מדריכים
=====> תרגומים
===> קהילה
=====> הודעות
=====> הצג את עצמך
=====> אתרים לדוגמא
=====> כללי
=> Irish
=> Italian
===> Supporto
=====> FAQ
=====> Installazione
=====> Moduli, Plugin, Snippet e altro codice
=====> Web Design e Template
===> Documentazione, Tutorial e Traduzione
=====> Documentazione
=====> Tutorial
=====> Traduzione
===> Comunitŕ
=====> Annunci
=====> Presentazioni
=====> Siti in vetrina
=====> Chiacchiere in libertŕ
=> Japanese
===> サポート
=====> 良くある質問
=====> インストール
=====> モジュール・プラグイン・スニペット・本体
=====> デザインやテンプレート
===> マニュアル・テュートリアル・翻訳
=====> マニュアル
=====> 事例集、テュートリアル
=====> 日本語化
===> コミュニティ
=====> お知らせ
=====> MODxサイト展示場
=====> 自己紹介
=====> 雑談
=====> 国産リソース
=> Persian - فارسي
===> پشتيباني
=====> راهنما
=====> نصب
=====> ماژول , پلاگین ها , کد ها و جزییات
=====> طراحی و قالب ها
===> مستند سازی , آموزش ها و ترجمه ها
=====> مستند سازی
=====> آموزش ها
=====> ترجمه ها
===> انجمن ها
=====> اخبار
=====> معرفی کردن خود
=====> نمایش دادن سایت ها
=====> بحث های عمومی و سایر موضوعات
=> Polish
===> Wsparcie
=====> FAQ
=====> Instalacja
=====> Moduły, pluginy, snipety i kod
=====> Wygląd i szablony
===> Dokumentacja, tutoriale i tłumaczenie
=====> Dokumentacja
=====> Tutoriale
=====> Tłumaczenie
===> Społeczność
=====> Ogłoszenia
=====> Przedstaw się
=====> Twój serwis WWW
=====> Hyde Park
=> Portuguese
===> Suporte
=====> FAQ - Dúvidas Frequentes
=====> Instalaçăo
=====> Módulos, Plugins, Snippets e Código
=====> Design e Templates
===> Documentaçăo, Guias e Traduçőes
=====> Documentaçăo
=====> Guias
=====> Traduçőes
===> Comunidade
=====> Anúncios
=====> Apresente-se!
=====> Bar da esquina (fora de tópico)
=====> Portfólio de Sites
=> Russian
===> Поддержка
=====> ЧАВО (FAQ)
=====> Установка
=====> Модули, плагины, сниппеты и код
=====> Дизайны и шаблоны
===> Документация, Уроки, Перевод
=====> Документация
=====> Уроки
=====> Перевод
===> Сообщество
=====> Объявления
=====> Представьтесь публике
=====> Галерея сайтов
=====> Диван
=> Scandanavian
===> Support
=====> Frĺgor och svar
=====> Installation
=====> Moduler, plugins, snippets och kod
=====> Design & sidmallar
===> Dokumentation, guider och översättningar
=====> Dokumentation
=====> Guider
=====> Översättningar
===> Webbgemenskap
=====> Meddelanden
=====> Presentera dig själv
=====> Visa upp dina webbsidor
=====> Ordet fritt
=> Slovak
=> Spanish
===> Soporte
=====> FAQ
=====> Instalación
=====> Modulos, Plugins, Snippets & Código
=====> Diseńo y plantillas
===> Documentación, Tutoriales y Traducciones
=====> Documentatción
=====> Tutoriales
=====> Traducciones
===> Comunidad
=====> Anuncios
=====> Presentaciones personales
=====> Muestra de sitios
=====> El Café
=> Swedish
=> TÜRKÇE (Turkish)
===> Destek
=====> SSS
=====> Kurulum
=====> Modüller, Pluginler, Snippetlar & Kodlar
=====> Dizayn & Temalar
===> Belgeleme, Eğitmenler ve Çeviri
=====> Belgeleme
=====> Eğitmenler
=====> Çeviri
===> Topluluk
=====> Duyurular
=====> Kendinizi Tanıtın
=====> Site Vitrini
=====> Konu Dışı