Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22674 Posts in 6680 Topics- by 17596 Members - Latest Member: permsk

18-12-2018 17:17:30
JOOM::GALLERY::FORUMArchiveJoomGallery 1.5 MVC - ExtensionsAddonsI have change joomgallery for check vote from cookie or IP address and template
Pages: [1]
Print
Author Topic: I have change joomgallery for check vote from cookie or IP address and template  (Read 11956 times)
0 Members and 1 Guest are viewing this topic.
stopservice
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: 20-03-2009 16:51:08 »

Hello!

Very much to be pleasant to me the joomgallery!

In my work check possibility on repeated guests voting was necessary for me, I could not find the ready module or to a component and I had to write most. And here results of my works (Based: Version 1.5 RC2, BUILD 20090222):

File: http://rapidshare.com/files/211481739/joomgallery_vote_check_ip_or_cookie.zip
Changelog:
- add support of check of repeated guests voting by a client IP address
- add support of check of repeated guests voting from client cookie
- Changes are made to the control panel for inclusion and check switching-off on a IP address and cookie

Full change:
install.sql -add in table joomgallery_config
-----
jg_checkipvotes
jg_checkcookievotes

sql script for update curent table:

ALTER TABLE `jos_joomgallery_config`  ADD `jg_checkipvotes` INT(1) NOT NULL AFTER `jg_onlyreguservotes`,  ADD `jg_checkcookievotes` INT(1) NOT NULL AFTER `jg_checkipvotes`


LANG_ADMIN_FILE - add value
-----
JGA_ALLOW_RATING_COOKIE_CHECK
JGA_ALLOW_RATING_COOKIE_CHECK_LONG
JGA_ALLOW_RATING_IPADDR_CHECK
JGA_ALLOW_RATING_IPADDR_CHECK_LONG

admin.configuration.html.php - add code
----
HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_checkcookievotes', 'yesno', 'JGA_ALLOW_RATING_COOKIE_CHECK', $config->jg_checkcookievotes);
HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_checkipvotes', 'yesno', 'JGA_ALLOW_RATING_IPADDR_CHECK', $config->jg_checkipvotes);


admin.configuration.php - add value and code
-------

var $jg_checkipvotes;
var $jg_checkcookievotes;
if (isset($_POST['jg_checkipvotes']))
$this->jg_checkipvotes             = JRequest::getInt('jg_checkipvotes', 1,'post');
if (isset($_POST['jg_checkcookievotes']))
$this->jg_checkcookievotes             = JRequest::getInt('jg_checkcookievotes', 1,'post');

joom.votepic.php - full rewrite

Also the template has been changed, management buttons are transferred to the bottom panel under the image, and also buttons are fixed, and now they do not hide.

File: http://rapidshare.com/files/211481133/button_template.zip

For change installation it is necessary to replace contained by applied files.

Very strongly I want that whenever possible my changes have been brought in the next release.

Excuse for my bad English! Sad

----
Best regards from Russian,
Igor Samatov
« Last Edit: 23-03-2009 09:30:45 by stopservice » Logged
stopservice
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #1 on: 23-03-2009 09:17:46 »

Hello!

Repack main update for simple install (copy-paste).

File: http://rapidshare.com/files/212463620/joomgallery_vote_check_ip_or_cookie.zip

ChangeLog: Look my previous post.
Logged
Dalike
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: 12-08-2009 21:45:47 »

I was willing possibility to let the unregistered users to vote just once and was very glad finding it. Unfortunately it does not work for me. I check "IP addr check - YES", but system doesn't save it. After copying these files, system does not save other settings also.
Logged
AnnaOl
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #3 on: 19-11-2009 19:55:29 »

Говорят, не работает эта фича. Что делать?
Logged
keybus
Newbie
*
Offline Offline

Posts: 19


View Profile
« Reply #4 on: 06-01-2010 15:28:24 »

Has anyone installed this hack and it work?

Any other comments?



Also, I cannot access the file hosted on rapidshare. Is this the updated files?
Logged
aHa
Developer-Team
Hero Member
*****
Offline Offline

Posts: 990


View Profile WWW
« Reply #5 on: 09-01-2010 10:55:34 »

Hello Igor,
please post the files here in the forum and delete the links to rapidshare

Thank you
Regards
Andreas
Logged
C_Davor
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #6 on: 22-04-2010 00:44:49 »

is there any solution about this issue?
I try to install this hack and like "Dalike"  i canot save any changes.
Is there any solution to prevent users to vote pcitures more then once. Registration are not the solution. I need IP or cookie permit.

thx
Logged
taravasya
Newbie
*
Offline Offline

Posts: 23


View Profile
« Reply #7 on: 22-09-2010 02:55:43 »

Anybody can update this option for the new version?
Thank you!
Logged
ART-DELI
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #8 on: 24-02-2011 20:45:40 »

For release Joom Gallery Version 1.5.6.3. Lock on IP
File - Full patchhttp://joomlaforum.ru/index.php?action=dlattach;topic=117374.0;attach=453009799
File - /components/com_joomgallery/models/vote.php
http://joomlaforum.ru/index.php?action=dlattach;topic=117374.0;attach=453009797

Step by step guide
1. File-  /administrator/components/com_joomgallery/helpers/config.php
After the line
Code:
var $jg_showauthor;
Add
Code:
var $jg_checkipvotes;
2. File /administrator/components/com_joomgallery/tables/joomgalleryconfig.php
After the line
Code:
var $jg_showauthor;
Add
Code:
var $jg_checkipvotes;
3.File /administrator/components/com_joomgallery/views/config/tmpl/default.php
After the line
Code:
JHTML::_('joomconfig.row', 'jg_showauthor', 'yesno', 'JGA_CONFIG_CV_GS_AUTHOR', $this->_config->jg_showauthor);
Add
Code:
JHTML::_('joomconfig.row', 'jg_checkipvotes', 'yesno', 'JGA_CONFIG_CV_GS_CHECKIPVOTES', $this->_config->jg_checkipvotes);
4. MySQL Query
Code:
ALTER TABLE  `jos_joomgallery_config`  ADD `jg_checkipvotes` INT(1) NOT NULL AFTER `jg_onlyreguservotes`;
5.File /administrator/language/en-GB/en-GB.com_joomgallery.ini
After the line
Code:
JGA_CONFIG_CV_GS_AUTHOR=Show Author
Add
Code:
JGA_CONFIG_CV_GS_CHECKIPVOTES=Block vote  IP
JGA_CONFIG_CV_GS_CHECKIPVOTES_LONG=Block a second vote on  IP

Replace  file/components/com_joomgallery/models/vote.php
JoomGallery-Configuration Manager-Category View - Block vote IP

Logged
ricarxop
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #9 on: 26-04-2011 23:18:27 »

Please can some explain to me how to do this step, i have been tying for days  Sad


4. MySQL Query
Code:

ALTER TABLE  `jos_joomgallery_config`  ADD `jg_checkipvotes` INT(1) NOT NULL AFTER `jg_onlyreguservotes`;
Logged
Oscari
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #10 on: 18-06-2011 12:45:01 »

Enter that code in phpmyadmin as a query...
Logged
Topy
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #11 on: 10-10-2011 11:37:43 »

Enter that code in phpmyadmin as a query...

On submit Query -> SQL query on database ....?

Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 658 access attempts in the last 7 days.