11
Peekay
Re: xcGallery foto rating
  • 2006/10/3 13:49

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


This fixed the hit count for me.

displayimage.php
Line 128
Change:
Quote:
// Add 1 to hit counter
if ($album != "lasthits" && !in_array($pid, $USER['liv'])

to:
Quote:
// Add 1 to hit counter
if ($album != "lasthits" && !is_array($pid, $USER['liv'])


I am using the 1.1 RC so that may not be in later version. The cookie warning is a nice addition too.
A thread is for life. Not just for Christmas.

12
TaCHAT
Re: xcGallery foto rating
  • 2006/10/4 16:33

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


mcleines everything working except rating, all cookies are enables

13
mcleines
Re: xcGallery foto rating
  • 2006/10/5 7:11

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Do you have any error from the Mysql-Debug?

14
TaCHAT
Re: xcGallery foto rating
  • 2006/10/5 16:54

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


owhh, today I have a new problem, now it writes, that I have no permissions for voiting, I dont know what to do, I've cheked all permissions

15
Peekay
Re: xcGallery foto rating
  • 2006/10/5 17:16

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Stupid question but, you have allowed the option
'visitors can rate pictures = [Yes]' for each album in 'Modify my albums'?
A thread is for life. Not just for Christmas.

16
TaCHAT
Re: xcGallery foto rating
  • 2006/10/5 19:08

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


ok, I've refreshed the modul anf with permissions everything ok, bu it stil white page

17
TaCHAT
Re: xcGallery foto rating
  • 2006/10/5 19:17

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


SQL errors
Errors
Queries
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id = '33a39d71fb2aeabcf9ebd3876803ac43'
SELECT * FROM xoops_users WHERE uid=1
SELECT * FROM xoops_modules WHERE dirname = 'xcgal'
SELECT * FROM xoops_config WHERE (conf_modid = '15') ORDER BY conf_order ASC
SELECT * FROM xoops_xcgal_usergroups WHERE xgroupid IN (1,2)
SELECT a.votes as votes_allowed, p.votes as votes, pic_rating FROM xoops_xcgal_pictures AS p, xoops_xcgal_albums AS a WHERE p.aid = a.aid AND pid = '48' LIMIT 1
DELETE FROM xoops_xcgal_votes WHERE vote_time < 1157485179 >
Error number: 1064
Error message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM xoops_xcgal_votes WHERE pic_id = '48' AND v_uid = '1'
UPDATE xoops_xcgal_pictures SET pic_rating = '10000', votes = votes + 1 WHERE pid = '48' LIMIT 1
INSERT INTO xoops_xcgal_votes VALUES ('48', '87.240.16.195', '1160077179', '1')
Total: 11 queries

18
TaCHAT
Re: xcGallery foto rating
  • 2006/10/5 19:24

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


wow, I dont know, but now everything is all right, but HOW???

19
TaCHAT
Re: xcGallery foto rating
  • 2006/10/5 20:02

  • TaCHAT

  • Just popping in

  • Posts: 13

  • Since: 2006/1/15


#OOPS#, it works only with mozilla firefox

20
Peekay
Re: xcGallery foto rating
  • 2006/10/5 20:53

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Have you tried MyAlbum-P It's a very good gallery. May work better with MySQL 5 and PHP 5 which, I suspect, may be the cause of your problems.
A thread is for life. Not just for Christmas.

Login

Who's Online

204 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits