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: 732
  • 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]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Block Information for User Info  (Read 4929 times)

0 Members and 1 Guest are viewing this topic.

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Block Information for User Info
« on: April 30, 2009, 07:07:26 PM »
Does the user info block pull the same information from where the user's post info is pulled?

I'm trying to get rid of the text part of the block the says "Administrator" because I use images which also have the word "Administrator" on them.  It is the same for all other groups, too.

Do I need to edit the info where the block pulls the information from to get rid of the text and leave the image?  And then also delete something from within the simple portal block, too?

I hope I'm making sense here.

Also, would that be the Post.template.php file?



Also, how do I get the block to center the Avatar?
« Last Edit: September 05, 2009, 04:15:40 PM by tk2012 »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #1 on: May 01, 2009, 02:32:23 AM »
The User information block does pull its information from the same location as the Display.template.php file (the Post Display template), but that is from a source file, not a template file.

You will want to edit the 'sp_userInfo' block function itself, from your 'SPortal2.php' file.

I am not sure why the avatar image isn't being centered, as it should be, the edit below may resolve that.

Replace this code:
Code: [Select]
if (!empty($member_info['avatar']['image']))
echo '
', $member_info['avatar']['image'], '<br /><br />';

Wth this code:
Code: [Select]
if (!empty($member_info['avatar']['image']))
echo '
<div class="sp_center sp_fullwidth">', $member_info['avatar']['image'], '</div><br /><br />';

Remove the code below to get rid of the membergroup name:
Code: [Select]
if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #2 on: May 01, 2009, 01:49:35 PM »
I will check that, but I found a little more info.  I have the same problem with another mod on SMF (Dynamic Memberlist) and the Avatar is on the left...

Now, this is where it gets tricky for both Simple Portal and the Dynamic Memberlist...

I use XP w/ Firefox 3.0.10 and it aligns LEFT.

In XP w/ IE7 it is correct on both mods in the center.

BUT, with Vista Home Prof. w/ Firefox 3.0.10 it loads in the center for the first second and then moves to the LEFT and stays...

CRAZY!!!!!

I'm going to look at what you posted above.

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #3 on: May 01, 2009, 01:58:49 PM »
OK, I got rid of the names.  That worked.  THANKS

Now, I did the other replace code you suggested to center the avatar and here's the crazy thing.  Like above, I'm using XP w/ firefox.  I refreshed the page and the Avatars moved to the center while the page was loading and then moved back to the left again just like the Vista version does.


Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #4 on: May 02, 2009, 05:36:43 PM »
Still can't figure out why they won't center.  Uggh!  Any other ideas?

Offline Nigel

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 1.1.8
  • SP Version: 2.2
Re: Block Information for User Info
« Reply #5 on: May 02, 2009, 05:45:17 PM »
I managed to move my info in this block to the left by using <div align="left"> in the code. Maybe this can also help you.

My only problem with this block is that my avatar is not getting displayed when using Firefox. With Safari I have no problem at all.

Any ideas?

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #6 on: May 02, 2009, 06:09:40 PM »
I don't think it is the block.  I think it is something else in another file.  My avatar is pushed left when looking at the block, when looking at the dynamic memberlist, and when you look at the avatar inside a post.  But, only in firefox.   

There has to be something that is overriding the info from these areas somewhere I'm guessing.  I've been attempting to make changes in Display.template to see if I can get it to work correctly, but it isn't catching.

Will keep trying

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #7 on: May 02, 2009, 06:22:21 PM »
BINGO!!!

Made some progress.  I uninstalled the Reflection Avatar Mod and my avatars are now centered in 2 of the 3 places I wanted. 

Simple Portal Block is CENTERED!!  (YAY)  :thumbsup:

Dynamic Memberlist Block is CENTERED!!  (YAY)  :thumbsup:

When reading posts it is still on the left...  (BOO)   :thumbsdown:

Ok, well at least I am getting closer to figuring this out.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block Information for User Info
« Reply #8 on: May 03, 2009, 07:58:12 AM »
It should be related to a mod really.
And slowly, you come to realize... It's all as it should be...

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #9 on: May 03, 2009, 05:07:15 PM »
It was the reflection avatar mod.  I got some help from that author and it is working now and is centered EVERYWHERE and WITH the Reflection Avatar Mod installed again!


Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #10 on: September 05, 2009, 04:15:18 PM »
The User information block does pull its information from the same location as the Display.template.php file (the Post Display template), but that is from a source file, not a template file.

You will want to edit the 'sp_userInfo' block function itself, from your 'SPortal2.php' file.


Remove the code below to get rid of the membergroup name:
Code: [Select]
if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';

With the update to 2.3 version of the mod, where do I go now in order to get rid of the following circled area?  Since there is no longer a SPortal2.php file...

« Last Edit: September 06, 2009, 12:16:10 AM by tk2012 »

Offline tk2012

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
    • Channel 4 Gaming
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Information for User Info
« Reply #11 on: September 09, 2009, 12:20:07 AM »
Nevermind.. I found it finally!  Woohoo.  PortalBlocks.php

 :applause: :applause: