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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 181
  • Total: 181

TPShout error?

Started by KillerZ, November 15, 2008, 06:49:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KillerZ

I am helping a friend set up his daughters site. He is using Smf 1.1.7 and TP 1.0.6 with Gallery Lite and Treasury installed. This error keeps coming in the log. ALOT.

8: Use of undefined constant Gallery - assumed 'Gallery'
File: /path/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 489

I took a look at that file and there isn't 489 lines in or any reference to Gallery. Can someone give me some advice or at least point me in the right direction please. Thanks for any help.

G6Cad

Thats not a tp error, it's a gallery error,i think your better off asking this question on SMFHacks.com

IchBin

Just to add, it is probably because you added $txt[gallery] in your theme to add a button right? Most people think you can just add the word, but it doesn't quite work that way. If you look at the default theme you can see the $txt you actually have to add.

$txt[gallery] actually needs to be $txt['gallery'] which is why you get the constant error. But that wouldn't matter as $txt['gallery'] doesn't exist, so you would get an undefined index error after that. Suddenly I feel like I'm rambling. lol Anyway, look at the default theme button that was put in and copy the $txt code for it. :D

KillerZ

Thanks. I'll have a look now. :D

This website is proudly hosted on Crocweb Cloud Website Hosting.