-

[Split] Smilies Categories

Support for phpBB3, phpBB3 Modifications, and phpBB3 styles
Forum rules
Bugs go in the Bug Tracker

Re: [Split] Smilies Categories

Postby taylor » Wed Nov 04, 2009 11:55 am

got it! :D thanks. still working on the other issue. I changed it to:
$cat_id = request_var('cat_id', 8);
and found nothing happening. but i'll keep trying.... :)
taylor
Member
Member
 
Posts: 4
Joined: Tue Nov 03, 2009 11:46 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby vividacoyote » Sun Nov 08, 2009 5:18 am

Hi I have a problem : when I want to edit a smiley I have an error:
SQL ERROR [ mysql4 ]

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 'SELECT smiley_url FROM chindus3_smilies WHERE smiley_id = 898)' [1064]

SQL

SELECT smiley_id FROM chindus3_smilies WHERE smiley_id <> 898 AND smiley_url = (SELECT smiley_url FROM chindus3_smilies WHERE smiley_id = 898)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()

FILE: includes/mods/smilies_categories.php
LINE: 123
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_icons.php
LINE: 460
CALL: update_smiley_categories()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_icons->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()



What's the problem, and how could I fix it?

Have a good day
vividacoyote
Donor
Donor
 
Posts: 4
Joined: Sun Nov 02, 2008 11:24 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby EXreaction » Sun Nov 08, 2009 10:58 am

What version of MySQL are you using?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [Split] Smilies Categories

Postby vividacoyote » Sun Nov 08, 2009 2:29 pm

Hi :)

I have the MySQL 4.0.18 version's (I can't upload to MySQL 5 because it's on a public server)
Thanks for your attention.
vividacoyote
Donor
Donor
 
Posts: 4
Joined: Sun Nov 02, 2008 11:24 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby EXreaction » Sun Nov 08, 2009 10:50 pm

Open the includes/smilies_categories.php file

find:
Code: Select all
      $sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
         WHERE smiley_id <> ' . $smiley_id . '
         AND smiley_url = (SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id . ')';


replace with:
Code: Select all
      $sql = 'SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id;
      $db->sql_query($sql);
      $smiley_url = $db->sql_fetchfield('smiley_url');
      $db->sql_freeresult();

      $sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
         WHERE smiley_id <> ' . $smiley_id . '
         AND smiley_url = ' . $smiley_url;


I'd recommend you get the MySQL server updated ASAP, it is severely outdated and almost certainly has huge security vulnerabilities.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [Split] Smilies Categories

Postby vividacoyote » Mon Nov 09, 2009 1:10 pm

Hi,

that modification doesn't work, I have a new error :
SQL ERROR [ mysql4 ]

Unknown table 'boxe' in where clause [1109]

SQL

SELECT smiley_id FROM chindus3_smilies WHERE smiley_id <> 898 AND smiley_url = boxe.gif

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()

FILE: includes/mods/smilies_categories.php
LINE: 128
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_icons.php
LINE: 460
CALL: update_smiley_categories()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_icons->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()


I can't update the MySQL version, I have no choice for that :cry:
vividacoyote
Donor
Donor
 
Posts: 4
Joined: Sun Nov 02, 2008 11:24 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby EXreaction » Mon Nov 09, 2009 4:28 pm

Oh, yes, try this:

Code: Select all
      $sql = 'SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id;
      $db->sql_query($sql);
      $smiley_url = $db->sql_fetchfield('smiley_url');
      $db->sql_freeresult();

      $sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
         WHERE smiley_id <> ' . $smiley_id . '
         AND smiley_url = \'' . $smiley_url . '\'';


If the MySQL server can not be updated you should look for a new host, if they refuse to update something that old they are not worth any price.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [Split] Smilies Categories

Postby vividacoyote » Tue Nov 10, 2009 12:45 pm

Hi!

Thanks, it works!

For the server, I made a school forum on a school server, so I can't change it and I have nothing to say... That's the life... :mrgreen:

Have a good day.
vividacoyote
Donor
Donor
 
Posts: 4
Joined: Sun Nov 02, 2008 11:24 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby smart007 » Sat Nov 21, 2009 3:01 am

Changed from femu not work, does not add smilies in this category in the 3.0.6 version.
smart007
Member
Member
 
Posts: 2
Joined: Thu Nov 19, 2009 4:13 am
Blog: View Blog (0)

Re: [Split] Smilies Categories

Postby Wuerzi » Sun Nov 22, 2009 5:49 am

In my 2 boards works perfect ;)

With add new smilies, add in categories, move to other categorie and more ;)
Wuerzi
Member
Member
 
Posts: 1
Joined: Sun Nov 22, 2009 5:46 am
Blog: View Blog (0)

PreviousNext

Return to phpBB3 Support



Who is online

Users browsing this forum: justc5q and 6 guests