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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:11:05 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 143
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 133
  • Total: 134
  • tino

[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.