TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

December 04, 2024, 10:28:03 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 171
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 77
  • Total: 77

[Discuss] SMF Gallery Block for SMF2

Started by freddy888, April 10, 2010, 03:55:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vbgamer45

Quote from: Ramzesito on November 29, 2017, 08:37:44 AM
hello,
does anybody support this mod now?

it was working until I updated SMF (from 2.0.13 to 2.0.14),
after that I've got error message instead of picture:
MySQL error:Access denied for user ''@'localhost' (using password: NO)

I`m using SMF Gallery Random Picture-ver.1.7.1 and SMF Gallery LITE 6.0
If you are using this block code use the updated on for SMF 2.0 at
https://www.tinyportal.net/index.php?topic=32358.msg278635#msg278635

VladTepes

Quote from: Ramzesito on November 29, 2017, 08:37:44 AM
hello,
does anybody support this mod now?

it was working until I updated SMF (from 2.0.13 to 2.0.14),
after that I've got error message instead of picture:
MySQL error:Access denied for user ''@'localhost' (using password: NO)

I`m using SMF Gallery Random Picture-ver.1.7.1 and SMF Gallery LITE 6.0

While it's unlikely to be this, if the rest of your forum is working - make sure that your server is using the appropriate version of PHP - for SMF 2.0.14 it needs to be 5.4 or higher.


Oldiesmann

Is there an updated version of this? I tried it in SMF 2.1 and it didn't work because tp_query() wasn't defined. However, it also includes several calls to mysql_ functions which won't work anymore either.

lurkalot

Quote from: Oldiesmann on June 12, 2019, 11:46:41 PM
Is there an updated version of this? I tried it in SMF 2.1 and it didn't work because tp_query() wasn't defined. However, it also includes several calls to mysql_ functions which won't work anymore either.

Think the latest modified one is here, uses $smcFunc;

https://www.tinyportal.net/index.php?topic=32358.msg277437#msg277437

Oldiesmann

Quote from: lurkalot on June 13, 2019, 12:09:21 AM
Quote from: Oldiesmann on June 12, 2019, 11:46:41 PM
Is there an updated version of this? I tried it in SMF 2.1 and it didn't work because tp_query() wasn't defined. However, it also includes several calls to mysql_ functions which won't work anymore either.

Think the latest modified one is here, uses $smcFunc;

https://www.tinyportal.net/index.php?topic=32358.msg277437#msg277437

That one worked, but I had to edit Subs-Db-Mysql.php to remove "ONLY_FULL_GROUP_BY" from the SQL modes list (otherwise it was throwing an error about id_picture not being in the GROUP BY clause - easier to just leave the query as is instead of adding each column it complains about or figure out how to rewrite the query...)

lurkalot

Quote from: Oldiesmann on June 14, 2019, 04:15:28 AM
Quote from: lurkalot on June 13, 2019, 12:09:21 AM
Quote from: Oldiesmann on June 12, 2019, 11:46:41 PM
Is there an updated version of this? I tried it in SMF 2.1 and it didn't work because tp_query() wasn't defined. However, it also includes several calls to mysql_ functions which won't work anymore either.

Think the latest modified one is here, uses $smcFunc;

https://www.tinyportal.net/index.php?topic=32358.msg277437#msg277437


That one worked, but I had to edit Subs-Db-Mysql.php to remove "ONLY_FULL_GROUP_BY" from the SQL modes list (otherwise it was throwing an error about id_picture not being in the GROUP BY clause - easier to just leave the query as is instead of adding each column it complains about or figure out how to rewrite the query...)

Glad you got something out of it at least.  :) 

Unfortunately quite a few of the block codes need updating as they are very old. we don't have anyone working on these atm.