Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 21

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 15.09.2005, 20:27   #1 (permalink)
Junior Mamber
 
Join Date: Jul 2004
Posts: 29
EliteRides is on a distinguished road
Default CPG Random Thumber gives error for guests

If I am logged in and viewing my site the thumber module works fine. However, if I log out and vew the site as a guest that module then displays:

Code:
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /var/www/html/modules/mod_copprand.php on line 120

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/modules/mod_copprand.php on line 123
How can I fix this?
EliteRides is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 21.10.2005, 21:10   #2 (permalink)
Baby Mamber
 
Join Date: Oct 2005
Posts: 2
fattykid17 is on a distinguished road
Default Re: CPG Random Thumber gives error for guests

You probable didn't use the standard table when you installed coppermine. The standard table prefix is cpg. Which is what is used in the random image mod. Just go through and replace the cpg_ prefix with your own. Like
$queryaid = mysql_query("SELECT * FROM `cpg_albums` where visibility ='0'");
Change to :

$queryaid = mysql_query("SELECT * FROM `NAMEOFYOURTABLE_albums` where visibility ='0'");
DON'T LEAVE "NAMEOFYOURTABLE" THERE CHANE IT TO THE NAME OF YOUR TABLE
Should be around lines 119 and 140 for the users not loged in function.
There are a few more in there you should probable hunt down too before they give you problems

UPDATE :

Added ability to change the table prefix through Admin
Fixed Error caused by having coppermine in a different database from Thumb Rotater module (was causing all modules placed after it to have SQL errors)
You can download the new file from HERE

Last edited by fattykid17; 24.10.2005 at 19:47.
fattykid17 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.11.2005, 03:54   #3 (permalink)
Baby Mamber
 
Join Date: Oct 2005
Posts: 2
fattykid17 is on a distinguished road
Default Re: CPG Random Thumber gives error for guests

I fixed the module and forgot to ever post a link to it here. Sorry about that but here it is late is better than never
http://www.greedygamer.com/index.php...nc=select&id=3
Any questions / comments please direct to me not chris fuller since I hacked up his module. Don't blame him for my coding errors You can contact me aaron (the symbol) greedygamer (the dot) com
fattykid17 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
random image module gg1965 Mambo 4.5.1 'How Do I' Questions 9 30.12.2007 06:14
Display Random News with intro image otooles Mambo 4.5.1 'How Do I' Questions 5 22.01.2006 17:41
PhpShop & Random products module... Pippolo Mambo 4.5.1 'How Do I' Questions 0 13.12.2004 12:45
Menu content item link doesn't display user1 module random image ElgertS Mambo 4.5.1 Bugs 0 12.11.2004 23:18
zoom gallery random pic not showing... reemas Module 'How Do I' Questions 2 20.10.2004 02:09


All times are GMT +2. The time now is 09:35.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.