Raised This Month: $51 Target: $400
 12% 

Advertisements - MySQL Updated 2/5/09


Post New Thread Reply   
 
Thread Tools Display Modes
Gachl
BANNED
Join Date: Feb 2009
Old 06-23-2009 , 06:50   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #191

I'm getting the following error on startup:
Code:
L 06/23/2009 - 12:46:33: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 06/23/2009 - 12:46:33: [SM] Displaying call stack trace for plugin "sm_adsmysql.smx":
L 06/23/2009 - 12:46:33: [SM]   [0]  Line 516, /home/groups/alliedmodders/forums/files/2/4/5/7/3/38158.attach::Admin_ReloadAds()
Still, the addon connects to the database and gets all ads correctly.
Code:
[sm_adsmysql.smx] AdsMYSQL - Connected Successfully to Database
This error isn't preventing the server to run correctly, but still, it shows up, and I want to keep my logs error-clean.
Suggestions?
Gachl is offline
colwulf
Member
Join Date: Jun 2008
Old 06-24-2009 , 08:48   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #192

Hey Strom,
For some reason i went to add a additional advert but the system will not let me it just refreshed the screen with no update to it... is this a known issue and if so how do i fix...

http://the-enforcers.net/adverts/
colwulf is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 06-24-2009 , 09:22   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #193

@Colwulf: Oh...I've seen that happen. If there has been an ad, but it was later deleted, it confuses the ordering sometimes.

To fix it, click the little green arrows and move the top ads down or if that doesn't help, go into the database itself, and fix the numbering.

@Gachl: Very strange. It's connecting OK, but the plugin can't talk to the DB? I would check your settings. It sounds like it's connecting to a database but not able to find the tables.
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 06-24-2009 , 16:21   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #194

So the images and everything works fine but for some reason its not letting me change the order of the ads. It refreshes the page but nothing its moved, it goes to process data php.
__________________

DontWannaName is offline
Gachl
BANNED
Join Date: Feb 2009
Old 06-25-2009 , 06:35   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #195

Quote:
Originally Posted by strontiumdog View Post
@Gachl: Very strange. It's connecting OK, but the plugin can't talk to the DB? I would check your settings. It sounds like it's connecting to a database but not able to find the tables.
nono, the plugin works fine, it fetches all ads from the database and adds them to the cycle and displays everything, it's just that theres an annoying error message..
Gachl is offline
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 07-04-2009 , 04:59   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #196

I have a question about non Latin characters. Is there a way to use „Ą Č Ę Ė Į Š Ų Ž“ in game? Or… should I convert database to utf8_bin?
__________________
Evaldas is offline
Crypt1cMayh3m
Junior Member
Join Date: Jul 2009
Location: PA
Old 07-10-2009 , 22:12   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #197

There is a bug in the ads_edit.php file which does not allow setting an advertisement to be Counterstrike:Source only.

Line 87:
Code:
<tr><td>CounterStrike Source</td><td><input type="radio" name="editgame" value="tf" <?php if ($addetails['game'] == "cstrike") echo "CHECKED"; ?>></td></tr>
This needs to be changed to:
Code:
<tr><td>CounterStrike Source</td><td><input type="radio" name="editgame" value="cstrike" <?php if ($addetails['game'] == "cstrike") echo "CHECKED"; ?>></td></tr>
__________________
Crypt1cMayh3m is offline
Send a message via Yahoo to Crypt1cMayh3m
VoGon
Member
Join Date: Jun 2009
Location: Portugal
Old 07-11-2009 , 06:28   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #198

Nice catch, changed mine to cstrike too.
__________________

Last edited by VoGon; 07-11-2009 at 06:43.
VoGon is offline
Send a message via Skype™ to VoGon
Crypt1cMayh3m
Junior Member
Join Date: Jul 2009
Location: PA
Old 07-11-2009 , 11:41   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #199

This plugin is awesome. It will make managing our servers so much easier. The only issue I have is that our admins do not have access to the sm_reloadads command. Is this because they are set up as part of admin groups and do not have the reserved slot flag at the user level?
__________________
Crypt1cMayh3m is offline
Send a message via Yahoo to Crypt1cMayh3m
Gmbrdilos
Member
Join Date: Jan 2008
Old 07-11-2009 , 22:11   Re: Advertisements - MySQL Updated 2/5/09
Reply With Quote #200

It would be really awesome if this was integrated with this http://forums.alliedmods.net/showthread.php?t=60174
Gmbrdilos is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 04:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode