collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 509
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Poll Block  (Read 12893 times)

0 Members and 2 Guests are viewing this topic.

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Poll Block
« on: January 14, 2010, 12:29:57 PM »
     Hi

      Have set up a poll which shows fine in a block and clicking on the view topic link in the block also works. But clicking "Submit Vote" leads to just a blank, white screen. I've loaded up a fresh SSI.php file via ftp but no change. Some help please and thank you.

   Using latest versions of smf and sp.
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #1 on: January 15, 2010, 08:42:40 PM »
    bump
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #2 on: January 17, 2010, 11:38:25 PM »
   Anyone  :0

  bump
Hoss Talk At Thoroughbred Junkie

Offline Robbo

  • Beer is good!
  • Comrade
  • *
  • Posts: 223
  • Gender: Male
    • Australian Savage (Game Community)
  • SMF Version: 2 RC1.2
  • SP Version: None
Re: Poll Block
« Reply #3 on: January 18, 2010, 11:44:22 AM »
Seems to work fine for me. SSI.php shouldn't matter.

Any chance you can link me to where this is happening?

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #4 on: January 18, 2010, 02:26:47 PM »
    Yes but my site isn't 100% finished so could i pm it to you?
Hoss Talk At Thoroughbred Junkie

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Poll Block
« Reply #5 on: January 20, 2010, 04:00:16 PM »
You can pm it to me.
And slowly, you come to realize... It's all as it should be...

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #6 on: January 20, 2010, 04:30:55 PM »
   well, it won't let me send a pm for some reason so here is the site - http://www.tbredjkie.byethost15.com

    Having trouble with the right side blocks

   Latest member block - doesn't show avatars
   Poll block - can't vote - leads to white screen
   last 3 blocks - title text has black color when the text should be white like the rest.

« Last Edit: January 21, 2010, 02:07:20 AM by curlin »
Hoss Talk At Thoroughbred Junkie

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Poll Block
« Reply #7 on: January 21, 2010, 02:02:40 AM »
Latest member block is not supposed to show avatars when you have it configured to show more than one.

The poll block apparently relies on SSI.php-- and your SSI.php is not loading properly. Refer to:

http://www.tbredjkie.byethost15.com/ssi_examples.php
http://www.tbredjkie.byethost15.com/SSI.php

All of them result in blank screen. Please ensure those files are fresh.

I'd wager a guess that the last issue is because of a clear or something resetting the class rule... that may or may not be a bug. Try playing around with how you put the blocks out.

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #8 on: January 21, 2010, 02:09:04 AM »
       Thank You ccb

   I'll look at that tomorrow.
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #9 on: January 21, 2010, 01:55:56 PM »
Latest member block is not supposed to show avatars when you have it configured to show more than one.

     Ok - just starting to look at these issues now and this one - latest member- still is not working. I re-checked to make sure it is set to show only "1'. I even deleted the block and created a new one but still the same result.
Hoss Talk At Thoroughbred Junkie

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Poll Block
« Reply #10 on: January 21, 2010, 03:24:41 PM »
It doesn't display avatar of latest member(s) since 2.2. It did in older versions though.
And slowly, you come to realize... It's all as it should be...

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #11 on: January 21, 2010, 07:05:41 PM »
It doesn't display avatar of latest member(s) since 2.2. It did in older versions though.

      Oh

    Is there something i can add so it does?
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #12 on: January 21, 2010, 07:26:37 PM »
Latest member block is not supposed to show avatars when you have it configured to show more than one.

The poll block apparently relies on SSI.php-- and your SSI.php is not loading properly. Refer to:

http://www.tbredjkie.byethost15.com/ssi_examples.php
http://www.tbredjkie.byethost15.com/SSI.php

All of them result in blank screen. Please ensure those files are fresh.

I'd wager a guess that the last issue is because of a clear or something resetting the class rule... that may or may not be a bug. Try playing around with how you put the blocks out.

     I uploaded fresh copies of those 2 files but still no change. I noticed i also have this SSI.php~
Hoss Talk At Thoroughbred Junkie

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Poll Block
« Reply #13 on: January 22, 2010, 08:55:59 AM »
      Oh

    Is there something i can add so it does?

You can use this code in a Custom PHP block:

Code: [Select]
global $context, $memberContext, $modSettings, $color_profile;

$latest_member_id = $context['common_stats']['latest_member']['id'];
loadMemberData($latest_member_id);
loadMemberContext($latest_member_id);

echo '
<div style="text-align: center;">';

if (!empty($memberContext[$latest_member_id]['avatar']['href']))
echo '
<img src="'.$memberContext[$latest_member_id]['avatar']['href'].'" alt="" width="60" /><br />';

echo '
', $memberContext[$latest_member_id]['link'], '
</div>';

     I uploaded fresh copies of those 2 files but still no change. I noticed i also have this SSI.php~

I would suggest seeking help on that issue at simplemachines.org communtiy. That issue is beyond the scope of this mod. Once you get SSI.php file working fine, poll block should work fine as well.
And slowly, you come to realize... It's all as it should be...

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #14 on: January 22, 2010, 12:14:40 PM »
     Ok - i will.  Thanks again.
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #15 on: January 23, 2010, 11:50:07 AM »
     Thanks for the latest member code - works great  ;D

   However - the ball has been served back into your court - http://www.simplemachines.org/community/index.php?topic=361649.0
Hoss Talk At Thoroughbred Junkie

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Poll Block
« Reply #16 on: January 23, 2010, 12:23:40 PM »
I have replied to that topic.
And slowly, you come to realize... It's all as it should be...

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #17 on: January 23, 2010, 05:35:43 PM »
I have replied to that topic.

      :applause:

   And you look quite abit different over there  :P
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #18 on: January 25, 2010, 01:35:09 PM »
      Ok - so this block won't fully function for me so i would like to set it up to only show the results of the on going poll. I looked in the poll options but don't see how to set it this way. Is there something i can change in the poll block code to do this?

                                                         Thanks
Hoss Talk At Thoroughbred Junkie

Offline curlin

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Male
    • Thoroughbred Junkie
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Poll Block
« Reply #19 on: January 26, 2010, 12:48:59 PM »
     Anyone :0

  I'd like to keep this block for viewing poll results but if i can't set it up that way, unfortunately i'll have to remove it.
Hoss Talk At Thoroughbred Junkie