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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 561
  • Total: 561

[Block] SMF Gallery Random Picture

Started by Thurnok, December 01, 2006, 09:32:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rafferty

#180
Sorry to be a pain Thurn, yep my bad. It was over at SMF they said it was the code I'm using in the snippet, at hacks he said it was SMF and here ya say its the gallery. No wonder Im confused.

Thurnok

No pain whatsoever Rafferty.

Yea, it can be confusing when you are dealing with 4 different pieces to the puzzle.  SMF being the "base" piece, since it is the forum software, TP being another "rather big piece" since it is a Portal "mod" to SMF - and therefore a large integral piece to anyone's site that has SMF/TP installed, and then the Galler mod which, just like Tiny Portal, is a mod to SMF as well, though smaller in terms of a site's "perception", and finally the SMF Gallery Random Picture block code which is miniscule in comparison to any of the other three.

Going off of the errors you posted:
Quote from: Rafferty"8: Undefined index: smfgalleryprofile_title
File: /home/www/xxxxxxx.org/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 399"

"8: Undefined index: smfgalleryprofile_viewall
File: /home/www/xxxxxxx.org/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 410"

These are indeed errors "detected" by SMF but they point to an issue with the SMF Gallery mod (based on the variable names at issue).  Most likely they are due to a corrupt or incorrectly installed SMF Gallery mod, or a version of the mod that may have had problems or simply needs a fix.  Those particular variables (smfgalleryprofile_title and smfgalleryprofile_viewall) are not in SMF, TP, nor the SMF Gallery Random Picture block code, they only come from the SMF Gallery mod itself.

Rafferty

Thank you very much, your a gentleman and a scholar lol, appreciate the explanation. I'll go chasing.

warhonowicz

Thurnok, thanks a lot for this fab bit of code and also for pointing me in its direction ...

cepheus

Amazing bloc .... love it - thank you!

allkvinde

Wow I am impressed because even I could do this and figure out how to change the script to how I wanted it. I never thought that I would be doing that.

Thank you so much for a wonderful very easy to follow description of how to do it.

Thurnok

Welcome to all.

I try to make my block code as readable and easy to modify as possible since you generally have to make changes right in the code to configure things (for any block code).  So I hope its as easy for anyone else too.  :)

insanemustang

I'd like to know if the # of comments made about the photo can be added in with a link to take you to the comments of that particular picture.

Great script, thank you.

insanemustang

Quote from: insanemustang on May 07, 2008, 06:28:46 PM
I'd like to know if the # of comments made about the photo can be added in with a link to take you to the comments of that particular picture.

Great script, thank you.

anyone?

JPDeni

It's very likely possible. The trouble is that, before anyone can write code that accesses the information created by any modification, the coder has to have the mod installed. There are some small things that I don't mind installing on my test site, but some are just too involved for me to do. The gallery would require not only installing the mod, but also adding images and having people comment on them.

Possibly someone who has the mod installed on their site can help you.

This website is proudly hosted on Crocweb Cloud Website Hosting.