Second Profilepage button in the viewtopic

Forum_easyUCP_Desc

Beitragvon mariocaz » 6. Apr 2006 18:30

Jajajajaa ok ok, sorry!

The problem is when you put in the option Second Profile Page (extra information) of the Preferences in the Profile... allow view for: registered users the button( Second Profilepage button) don't appears in the viewtopic pages, and should appears because I am always logged in my forum so I am a registered user, that is the problem, only appears if I put allow view for: anonymous users. :?

Now yes ?? :D jejejejeje

And the other thing is what I have to do to change anonymous users instead registered users for all my users in the Extra Information of the Preferences Profile in the allow view for: option? , because now always appears registered users

Cheers my friend!! :wink:

Note: If u need my files they are in the end of the 2nd page. :P
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 7. Apr 2006 13:48

I have not the time yet to look at that. :?

1: The button must shown to the users who have the permission to look the Second Profilepage. If not, you have a bug in your installation.

2: Normaly is the permission given to "nowbody" and not to "registered users". :shock: If not, the user has changed the preference of his Second Profilepage.
This basic adjustment is to prevent an empty specially side than is indicated as available. Why you want change that?
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 7. Apr 2006 18:09

AmigaLink hat geschrieben:1: The button must shown to the users who have the permission to look the Second Profilepage. If not, you have a bug in your installation.


All my users have the permission to look the Second Profle Page, because all my users have automatically the registered users permission in that option of the Second Profile Page in the Preferences Profile, this is part of the installation of the Mod, you put that in the installation, Am I right ?.

Also I did very well the installation of the Mod, so is not a problem of my board. :cry:


AmigaLink hat geschrieben:2: Normaly is the permission given to "nowbody" and not to "registered users". :shock: If not, the user has changed the preference of his Second Profilepage.


Yeah that is right that is the permission of the nowbody and I am very sure that the user don't change that because the user tell me this problem and I logged in the board with his nick and went to his Profile and there I saw that everything was fine and the permission was "registered users" in the Extra Information option of the Preferences Profile.

That is the reason because I don't know why when I put the Extra Information the extra information button don't appears in the viewtopic, because I go to my profile and see the option "allow view for:" is in registered users and this problem is for all my users because in all the profiles of my users are "allow view for: registered users", because this is automacally and also that is want to change for all my users, registered users to anonymous users in the option (allow view for: ), I think is something in this part:

Code: Alles auswählen
// <!-- BEGIN easyUCP -->
      $second_page_allowed = false;
      if ( $postrow[$i]['user_allow_viewprofile_2'] != '-2' )
      {
         if ( $postrow[$i]['user_allow_viewprofile_2'] == '-1' || $userdata['user_level'] == ADMIN )  // Gäste
         {
            $second_page_allowed = true;
         }
         else if ( $userdata['session_logged_in'] && $row['user_allow_viewprofile_2'] == '0' || $userdata['user_level'] == MOD )  // User
         {
            $second_page_allowed = true;
         }
         else
         {
            $second_page_allowed = false;
         }
      }
      if ( $second_page_allowed )
      {
         $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id&amp;page=2");
         $second_profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_extra'] . '" alt="' . $lang['Second_profilepage'] . '" title="' . $lang['Second_profilepage'] . '" border="0" /></a>';
         $second_profile = '<a href="' . $temp_url . '">' . $lang['Second_profilepage'] . '</a>';
      }
      else
      {
         $second_profile_img = '';
         $second_profile = '';
      }
// <!-- END easyUCP -->
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 8. Apr 2006 21:12

Your Code is ok (I have take a look at the viewtopic.php)!
Please attach me your usercp_register.php
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 11. Apr 2006 23:45

Okidoki!. :D

Thanx a lot Amigalink. 8)

Added after 3 days 2 hours 1 minutes:

Anything yet my friend ? :P
Dateianhänge
usercp_register.zip
(16.08 KiB) 786-mal heruntergeladen
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 12. Apr 2006 11:19

Sorry I did not have time in the last days. :?
But I take a look this evening. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 12. Apr 2006 18:52

Awesome my friend! :wink:
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 12. Apr 2006 19:12

Hmm? I can not understand what the problem is. The codes are ok.
Try the attached viewtopic.php
If it does not work search
Code: Alles auswählen
// <!-- BEGIN easyUCP -->
      $second_page_allowed = false;
      if ( $postrow[$i]['user_allow_viewprofile_2'] != '-2' )
      {
         if ( $postrow[$i]['user_allow_viewprofile_2'] == ANONYMOUS || $userdata['user_level'] == ADMIN )  // Gäste
         {
            $second_page_allowed = true;
         }
         else if ( $userdata['session_logged_in'] && $row['user_allow_viewprofile_2'] == USER || $userdata['user_level'] == MOD )  // User
         {
            $second_page_allowed = true;
         }
      }
      if ( $second_page_allowed )
      {
         $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id&amp;page=2");
         $second_profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_extra'] . '" alt="' . $lang['Second_profilepage'] . '" title="' . $lang['Second_profilepage'] . '" border="0" /></a>';
         $second_profile = '<a href="' . $temp_url . '">' . $lang['Second_profilepage'] . '</a>';
      }
      else
      {
         $second_profile_img = '';
         $second_profile = '';
      }
// <!-- END easyUCP -->
and replace it with
Code: Alles auswählen
// <!-- BEGIN easyUCP -->
      if ( $postrow[$i]['user_allow_viewprofile_2'] != '-2' )
      {
         $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id&amp;page=2");
         $second_profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_extra'] . '" alt="' . $lang['Second_profilepage'] . '" title="' . $lang['Second_profilepage'] . '" border="0" /></a>';
         $second_profile = '<a href="' . $temp_url . '">' . $lang['Second_profilepage'] . '</a>';
      }
      else
      {
         $second_profile_img = '';
         $second_profile = '';
      }
// <!-- END easyUCP -->

So the viewtopic shows all Second Profilepage Buttons where the permission is not "nowbody". :)

Zugefügt nach 3 Minute(n):

Ups I have forget to attach the file. :oops:
Dateianhänge
new viewtopic.zip
(19.63 KiB) 803-mal heruntergeladen
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon mariocaz » 12. Apr 2006 23:32

My friend Amigalink now it seems that all is working very well :wink: but I am continue doing tests and I will tell you the final result if all is working well or not. :D

And how can I do this ?? : :roll:

Bild

Cheers, :P

Mario
mariocaz
User
 
Beiträge: 148
Registriert: 9. Jun 2005 07:35

Beitragvon AmigaLink » 13. Apr 2006 11:34

Are you reliably which you this would like?
If you change the kind of entry from "nowbody" to "anonymous" the Second Profilepage Button always will be shown in the viewtopic. If exists entrys in the Second Profilepage or not.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

VorherigeNächste

Zurück zu easy UCP



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 13 Gäste

cron