PM Notifier/User Details/And More - Block - Users Communication - Other - uCoz Community
You logged in as Guest
Username/E-mail:
Recent messages · Members · Forum rules · FAQ · SEARCH Registration · Log in


We are in the second round! Let's keep voting!

Page 1 of 212»
Forum moderator: Dartz 
uCoz Community » Other » Users Communication » PM Notifier/User Details/And More - Block
PM Notifier/User Details/And More - Block
MistoryDate: Monday, 2009-09-07, 11:15 Am | Message # 1
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
I have recently made a block which notifies you about new PM's and if you are banned. It also includes some user infomation...ect

Here is what it includes:


  • PM Notifier
  • Banned Notifier
  • Username
  • User ID
  • Profile Link
  • User Full Name
  • Welcoming message to the site (Includes $SITE_NAME$ code)

    #I was going to add some more, such as Reputation/Awards/Reproof's Level/Group/Rank/Module Entries...ect
    But for some reason, most code were not working for me.

    Here is the code:

    Code
    Welcome to $SITE_NAME$...<br><hr size="2" width="100%"><b>Username:</b> $USERNAME$<br><b>Name: </b>$USER_FULL_NAME$<b><br></b><b>User ID:</b> $USER_ID$<br><div align="center"><hr size="2" width="100%"></div><div align="center"><div align="left"><b>Unread PM's: </b><b><a href="../$_PM_READ_URL$"><b>$UNREAD_PM$</b></a></b><hr size="2" width="100%"></div><a href="../$PERSONAL_PAGE_LINK$">My Profile</a><br>$BANNED_TILL$<br>

    Were to put the code:
    Activate Builder -> In the Admin Bar click Builder -> Then click Add Block.
    Now a block should appear, drag it the preffered area and click the icon.
    Then another box should appear, click "HTML". Then paste the code in the emty box. Then click the "Save" button.
    Then you can edit the block title as you wish, and to finish, again click Builder in the admin bar at the top and click "Save changes"

    Additional Infomation:
    #You can also change the Access to the block (which groups can see this block), which I recomend you to change it to invisible for Guests.
    To do this follow the instructions below:
    Activate Builder -> In the Admin Bar click Builder -> Then click Add Block.
    Now a block should appear, drag it the preffered area and click the icon.
    Then another box should appear, click "Access", and then untick the groups you don't want to see this block.
    Now, to finish, click the "Save" Button

    #If you have made your own Block Code similar to this but better, please post your code here

    Any questions, please post them here too smile

    Best Regards, Mistory


    GamesCenter wont grow unless you register! C'mon you know you want to

    ~I might be a little slow. I'm getting used to the Mac

    Message edited by Mistory - Monday, 2009-09-07, 11:24 Am
 
LeekinzDate: Monday, 2009-09-07, 11:44 Am | Message # 2
Regular
Group: Checked
Messages: 68
Awards: 4
Reputation: 2
Status: Offline
This should be in Design Customization, Collection of Scripts are things that don't involve uCoz.

There was once a man named Lee. He used to love taking a ***, then he found THIS!
 
HetorDate: Monday, 2009-09-07, 11:55 Am | Message # 3
Constant
Group: Banned
Messages: 129
Awards: 6
Reputation: 0
Status: Offline
Quote (Leekinz)
Collection of Scripts are things that don't involve uCoz.

Yeah.

But anyway, I agree, it shouldn't be here. It's not even a script.


I am bored.

Message edited by Hetor - Monday, 2009-09-07, 11:58 Am
 
DartzDate: Monday, 2009-09-07, 11:56 Am | Message # 4
Cookie Monster
Group: Head Mod
Messages: 5961
Awards: 61
Status: Offline
Indeed. I would suggest to call it "User Profile Page in Block" or something similar to that.
It could be very good tutorial if you would work more at it & add more details. Completed
tutorials need to be made. As for this thread, I could move it to Users Communications &
there you could improve it and then we/I would say what else should be added or changed.

Agree? Otherwise, I'll lock it and trash it.



*Yawn... drools on Renatus while sleeping...*
MistoryDate: Monday, 2009-09-07, 11:57 Am | Message # 5
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
Ok Sorry about that.

And yes I agree Dartz...


GamesCenter wont grow unless you register! C'mon you know you want to

~I might be a little slow. I'm getting used to the Mac

 
TommyDate: Tuesday, 2009-09-08, 0:30 Am | Message # 6
Experienced
Group: Helpers
Messages: 438
Awards: 17
Reputation: 23
Status: Offline
Mistory,

You could have added user's Avatar too. It would be nice if you see the avatar when you logged in. $USER_AVATAR_URL$.

It's my suggestion. It's not hard to add the avatar image. wink . Instead of User id, you could have added group name ($USER_GROUP$). It will look professional i think. We are going to use this on main page, so it should be a bit more professional biggrin


"I don't like to commit myself about heaven and hell - you see, I have friends in both places"

Message edited by Vinothdazzlin - Tuesday, 2009-09-08, 0:42 Am
 
Igor-SousaDate: Tuesday, 2009-09-08, 2:16 Am | Message # 7
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
I did something similar in my new website:

But I can't show some information, such as user's reproofs (percent) and the image of user's reproofs ( ), because the codes $_BAN_PERCENT$ and $_BAN_RATING$ do not work in global blocks, does anyone know any other way to show this information?

Attachments: 2149606.jpg(20Kb) · 5898084.jpg(1Kb)


I've made grammar mistakes ?? Google's fault !!

Time is the most valuable thing a man can spend.

 
TommyDate: Tuesday, 2009-09-08, 8:26 Am | Message # 8
Experienced
Group: Helpers
Messages: 438
Awards: 17
Reputation: 23
Status: Offline
Quote (samanalee)
hey hey i created better than your system. look this code.

Mate you are gonna get some nice comments from Admin, Mod and Users. Don't belittle Ucoz and its system. No one in Ucoz will tolerate this.
Quote (samanalee)
sri lankan people the best !!!! ever

This forum won't encourage this. Racism is strictly prohibited here. We don't mind whether you are new to this forum. It's bad.

If you got a better code try to give that in a polite way.


"I don't like to commit myself about heaven and hell - you see, I have friends in both places"

Message edited by Vinothdazzlin - Tuesday, 2009-09-08, 8:28 Am
 
MistoryDate: Tuesday, 2009-09-08, 9:56 Am | Message # 9
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
Quote (Vinothdazzlin)
Mistory,

You could have added user's Avatar too. It would be nice if you see the avatar when you logged in. $USER_AVATAR_URL$.

It's my suggestion. It's not hard to add the avatar image. wink . Instead of User id, you could have added group name ($USER_GROUP$). It will look professional i think. We are going to use this on main page, so it should be a bit more professional biggrin


I tried, but once again it is not working wacko

GamesCenter wont grow unless you register! C'mon you know you want to

~I might be a little slow. I'm getting used to the Mac

 
samanaleeDate: Tuesday, 2009-09-08, 10:04 Am | Message # 10
Newbie
Group: Banned
Messages: 10
Awards: 0
Reputation: 0
Status: Offline
you can add or change this code to add more items

example - banned till date, avatar image and anything realated to user personal details

 
DartzDate: Tuesday, 2009-09-08, 10:04 Am | Message # 11
Cookie Monster
Group: Head Mod
Messages: 5961
Awards: 61
Status: Offline
samanalee, don't bump other people threads.


*Yawn... drools on Renatus while sleeping...*
MistoryDate: Wednesday, 2009-09-09, 11:59 Am | Message # 12
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
Update #1

Inserted Avatar and Group... It looks alot better too smile

Code:

Code
<br><span style="color: blue;"><img alt="" src="$USER_AVATAR_URL$" align="" border="0"></span></div><br>Welcome to $SITE_NAME$...<br><hr size="2" width="100%"><b>Username:</b> $USERNAME$<br><b>Name: <br></b>$USER_FULL_NAME$<b><br></b><b>Group: </b>$USER_GROUP$<br><b>User ID:</b> $USER_ID$<br><div align="center"><hr size="2" width="100%"></div><div align="center"><div align="left"><b>Unread PM's: </b><b><a href="../$_PM_READ_URL$"><b>$UNREAD_PM$</b></a></b><hr size="2" width="100%"></div><a href="../$PERSONAL_PAGE_LINK$">My Profile</a><br>$BANNED_TILL$<br>

Dont know what to do with the code? Go to the this link


GamesCenter wont grow unless you register! C'mon you know you want to

~I might be a little slow. I'm getting used to the Mac

 
zer0teamDate: Wednesday, 2009-09-09, 2:51 Pm | Message # 13
Newbie
Group: Users
Messages: 11
Awards: 0
Reputation: 0
Status: Offline
Love this. heart Hmm but why have i got a problem of viewing my profile.. on this board it doesnt open. it shows web page cannot be found.! is it just me ? sad
 
Igor-SousaDate: Wednesday, 2009-09-09, 11:42 Pm | Message # 14
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
Quote (Mistory)
#If you have made your own Block Code similar to this but better, please post your code here
I made something similar.


Quote
<?if($USER_LOGGED_IN$)?><div align="center"><?if($USER_AVATAR_URL$)?><img src="$USER_AVATAR_URL$" border="0" alt="Avatar"><?else?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/sem_foto.png" alt="Without avatar" border="0"><?endif?></div>
<hr>
<div align="center"><?if($GROUP_ID$=1)?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/usuario3.png" border="0" alt="User"><?endif?><?if($GROUP_ID$=2)?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/premium3.png" border="0" alt="Premium"><?endif?><?if($GROUP_ID$=3)?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/moderador3.png" border="0" alt="Moderator"><?endif?><?if($GROUP_ID$=4)?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/admin3.png" border="0" alt="Administrator"><?endif?><?if($GROUP_ID$=251)?><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/vip3.png" border="0" alt="VIP"><?endif?></a></div>
<hr>
<div align="center"><a href="$PERSONAL_PAGE_LINK$" target="_blank">Full Profile</a> | <a href="http://www.YOUR_SITE.ucoz.com/index/11" target="_blank">Edit Profile</a></div>
<?if($GROUP_ID$=1 || $GROUP_ID$=2 ||$GROUP_ID$=3 || $GROUP_ID$=251)?><hr>
<div align="center"><a class="banPercent" title="View reproofs history" href="javascript://" rel="nofollow" onclick="new _uWnd('Bh',' ',400,250,{autosize:1,maxh:300,minh:100,closeonesc:1},{url:'/index/21-$USER_ID$'});return false;">View history of reproofs</a></div><?endif?></div>

<hr>
<b>Name:</b> $USER_FULL_NAME$
<hr>
<b>Your ID:</b> <font color="red"><b>$USER_ID$</b></font> (Private)
<hr>
<b>E-mail:</b><?if($GROUP_ID$=2 || $GROUP_ID$=3 || $GROUP_ID$=4)?> Confirmed!<?endif?><?if($GROUP_ID$=1)?> <a href="$PERSONAL_PAGE_LINK$"><font color="red">Unconfirmed!</font></a><?endif?>
<hr>
<b>Registered:</b> <b><font color="red">$USER_REG_DAYS$</font></b> day(s)
<hr>
<div align="center"><a href="javascript://" rel="nofollow" onclick="new _uWnd('AwL','List of awards',380,200,{autosize:1,maxh:300,minh:100,closeonesc:1},{url:'/index/54-$USER_ID$'});return false;" title="List of awards">View awards</a> | <a title="View reputation history" class="repHistory" href="javascript://" rel="nofollow" onclick="new _uWnd('Rh',' ',400,250,{autosize:1,maxh:300,minh:100,closeonesc:1},{url:'/index/9-$USER_ID$'});return false;">View reputation</a></div>
<hr>
<div align="center"><a href="http://www.YOUR_SITE.ucoz.com/index/14-0-0-1" target="_blank">Send Private Message</a></div>
<hr>
<div align="center"><a href="http://www.YOUR_SITE.ucoz.com/index/14-0-0" target="_blank">Unread PM's</a> (<font color="red"><b> $UNREAD_PM$ </b></font>)</div>
<hr><?endif?><?if(!$USER_LOGGED_IN$)?><div align="center"><img src="http://www.tutoriaisbrasil.ucoz.com/Design/sem_foto.png" alt="Without avatar" border="0"></div>
<hr>
<div align="center"><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/curioso.png" border="0" alt="Curious/Guest"></a></div>
<hr>
<div align="center"><a href="http://www.YOUR_SITE.ucoz.com/index/3">Register</a></div>
<hr><?endif?>

Explanations:

  • All links in blue, are images from my site, you should replace them with the link of your own images. (I provided the links of my images, just to better illustrate when you test the code)

  • All links in red, should be replaced by the URL of your site.

  • In green, new features I added at the request of Mistory.

    Questions and answers:

    Quote
    What is, why to use and I need to use this image? http://www.tutoriaisbrasil.ucoz.com/Design/sem_foto.png
    Not all users choose an avatar when they register, so I created a standard image that is displayed when a User does not choose an avatar.

    It is better to show a standard image instead a blank space.

    No, you do not need to use it. (the image should be replaced by your own if you choose to use it)


    Quote
    What is this code? <?if($GROUP_ID$=1)?>
    It shows the group icon of the User that is online.

    Quote
    I created more groups, how do I display the icon of the new group?
    You need to add this code for each group that you created.

    Quote
    <?if($GROUP_ID$=New group's ID)?><img src="LINK TO YOUR NEW GROUP'S IMAGE" border="0" alt="GROUP NAME"><?endif?>

    Quote
    How do I know the ID of my new group?


    Quote
    Why show "Your ID (Private)"?
    This is optional, I use in my contact form to find faster the profile of User that contacted me, and to prove that it is who it says it is, when asked me to change its username or deleting the account. Then I check all the data and see if the ID confirmed. But you can use or not.

    Quote
    I do not want to display guest profile, what should I do?
    Delete this part of the code:

    Quote
    <?if(!$USER_LOGGED_IN$)?><div align="center"><img src="http://www.tutoriaisbrasil.ucoz.com/Design/sem_foto.png" alt="Without avatar" border="0"></div>
    <hr>
    <div align="center"><img src="http://www.tutoriaisbrasil.ucoz.com/Design/Icones_grupo/curioso.png" border="0" alt="Curious/Guest"></a></div>
    <hr>
    <div align="center"><a href="http://www.YOUR_SITE.ucoz.com/index/3">Register</a></div>
    <hr><?endif?>

    And follow what Mistory said in his first message, "Additional Information".


    Quote
    I created more groups, but the link "View history of reproofs" does not appear for them or for me, why and what should I do?
    The link "view history of reproofs" does not appear to the admin, because no one can give reproofs to the admin, so, there's no need to show this link to the admin.

    To show this link for the new groups you created, simply insert the new group ID to the code, for example:

    Quote
    <?if($GROUP_ID$=1 || $GROUP_ID$=2 ||$GROUP_ID$=3 || $GROUP_ID$=251 || $GROUP_ID$=New group's ID || $GROUP_ID$=New group's ID)?><hr>
    <div align="center"><a class="banPercent" title="View reproofs history" href="javascript://" rel="nofollow" onclick="new _uWnd('Bh',' ',400,250,{autosize:1,maxh:300,minh:100,closeonesc:1},{url:'/index/21-$USER_ID$'});return false;">View history of reproofs</a></div><?endif?></div>

    And so on, until you have added all your new groups.


    You can edit the code as you wish.

    I just explained the basics, but if you have any questions about the code, you can contact me.

    I hope it's useful.

    Attachments: 2791658.jpg(13Kb) · 0524112.jpg(24Kb) · 2727620.jpg(18Kb)


    I've made grammar mistakes ?? Google's fault !!

    Time is the most valuable thing a man can spend.

    Message edited by Igor-Sousa - Friday, 2009-09-11, 8:04 Pm
  •  
    MistoryDate: Thursday, 2009-09-10, 11:24 Am | Message # 15
    Constant
    Group: Checked
    Messages: 275
    Awards: 10
    Reputation: 8
    Status: Offline
    Igor-Sousa, i love your code, it's deffinatly better than mine smile It could be better including some other things like Reputation and Awards (if it's possible) smile

    Can you give me the HTML Code for the block please? Because if I just use the code you put, it looks like this: http://i30.tinypic.com/rml05y.jpg


    GamesCenter wont grow unless you register! C'mon you know you want to

    ~I might be a little slow. I'm getting used to the Mac

     
    uCoz Community » Other » Users Communication » PM Notifier/User Details/And More - Block
    Page 1 of 212»
    Search: