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: 195,815
  • Total Topics: 21,284
  • Online today: 562
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 251
  • Total: 251

Poll images in front page block

Started by lurkalot, July 06, 2010, 11:22:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mattb

did you show your code? Because there's tons of people that help out with code there as i had help before.

lurkalot

They wrote the code, it's a mod.  :D

Freddy

What version of this poll mod are you using ?

That ssi_showPoll(X); function already exists in SSI.php and it is possible to return the results as an array I think, so then you could process that how you like.

I am still not sure what you actually want, can you do a mock up in Photoshop or something ?

lurkalot

Thanks for the reply Freddy.

I'm using version 1.2 of this mod http://custom.simplemachines.org/mods/index.php?mod=765

What I'm after is something like my latest images block that's on my home page.  http://cameracraniums.com/  Only with the poll in it.  So the images would have shrink to fit the layout.  Only sometimes the amount of images will vary depending on entries, so I guess there will have be a limit. 

Or maybe some kind of slider.

Remember I'm running SMF 1.1.11 and TP 0.9.8 on my live site at the moment. ;)   Wonder why there's a mod if as you say "That ssi_showPoll(X); function already exists"  ???

Freddy

I just registered at your site so I can get a feel for it - username 'Freddy'

Some of the graphics (images worked fine) didn't show up on that example link you gave in your first post btw...might be only for guests...not sure yet...I think it's the poll graphics.

QuoteWonder why there's a mod if as you say "That ssi_showPoll(X); function already exists"

It's possible they customise the function, I couldn't really tell, I am not that clued up on the way the mods change things.

lurkalot

Quote from: Freddy on July 08, 2010, 05:09:39 PM
I just registered at your site so I can get a feel for it - username 'Freddy'

Some of the graphics (images worked fine) didn't show up on that example link you gave in your first post btw...might be only for guests...not sure yet...I think it's the poll graphics.


Freddy I do apologise, one of my mods deleted your account before you even got on there.   I'll have words :knuppel2:  I know we've been getting a lot of spammers lately but that's a bit OTT.

You mean the latest gallery images?  ???


Freddy

lol and I am always blocking spammers too - that's just my luck ;)

I will register again...using Freddy or if it doesn't accept that Freddy888

For missing graphics I mean here :

http://cameracraniums.com/forum/index.php?topic=1436.0

Freddy

Just found there is also a ssi_recentPoll() function too.

Do you normally change the poll manually ?

lurkalot

Quote from: Freddy on July 08, 2010, 06:49:27 PM
lol and I am always blocking spammers too - that's just my luck ;)

I will register again...using Freddy or if it doesn't accept that Freddy888

For missing graphics I mean here :

http://cameracraniums.com/forum/index.php?topic=1436.0

ahah, I haven't copied them into all the themes yet.   :-[  I've switched you to a theme with them in. ;)

Quote from: Freddy on July 08, 2010, 07:19:55 PM
Just found there is also a ssi_recentPoll() function too.

Do you normally change the poll manually ?

Yes I will be, so only the current comp poll will be on the front page. ;)

Freddy

Ah yes good point re comp polls only..

Hmm, well what kind of size do you want the images to be ?  Like the gallery you mentioned...how big do you have those ?

Do you want them to be able to vote from the front page - considering they will not be seeing them full size ?  It's also easier for me if you only show the smaller images as an enticer and a bar showing votes so far, without the option to vote.

Each image could also be a simple link to the topic.

What I can do is have the browser resize the images on the fly.  Which means it will still load the main image but simply render it to a smaller size.  That's really the only way to do it as the polls don't generate thumbnails.

This website is proudly hosted on Crocweb Cloud Website Hosting.