TinyPortal

Development => Block Codes => Topic started by: akulion on November 26, 2006, 02:42:07 PM

Title: Mini-User CP Block
Post by: akulion on November 26, 2006, 02:42:07 PM
hi,

ok this is a center block but u can adapt it to a side block if u want

Demo: http://path-to-peace.net/forum
u cant miss it unless u close ur eyes :P

User: test
Pass: test

This is a rough code meaning it contains stuff specific to my site so ull have to change a few things in there, mainly being:

- downloads link
- membermap (the mod if u have it ur cool, if u dont then ull have to remove it)
- site complaints (put the url for ur complaints board if u have one)
- site questions (put the url for the questions related to ur site board if u have one)

anyways to cut a long chase short - just try and edit out the parts u dont need and keep the ones u do need etc etc yada yada

im feeling very sleepy and lazt so forgive me

the code to put is this - in a PHP box



echo'
<head>
<SCRIPT language="JavaScript1.2" src="main.js" type="text/javascript"></SCRIPT>
</head>
<DIV id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:-100;"></DIV>
<SCRIPT language="JavaScript1.2" src="style.js" type="text/javascript"></SCRIPT>           
<div align="center"><table border="0" width="100%" style="border-collapse: collapse"><tr><td width="40%">Here you can control the various aspects of your membership on Path To Peace. Simply move your mouse cursor over the icons on the right to learn about each option</td><td width="60%">
<table border="1" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=account" onMouseOver="stm(Text[1],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/ksysguard.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=theme" onMouseOver="stm(Text[2],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/kivio.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=theme;sa=pick;u=;sesc=', $context['session_id'], '" onMouseOver="stm(Text[3],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/blockdevice.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=forumProfile" onMouseOver="stm(Text[4],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/kuser.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=statPanel" onMouseOver="stm(Text[5],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/kwalletmanager.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=showPosts" onMouseOver="stm(Text[6],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/kedit.png"></a></font></td><td align="center"valign="top">
<a href="', $scripturl, '?action=post;board=110.0" onMouseOver="stm(Text[13],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/Warning.png"></a></font></td><td align="center"valign="top">
<a href="', $scripturl, '?action=post;board=112.0" onMouseOver="stm(Text[14],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/Security_Question.png"></a></font></td><td align="center"valign="top">
<a href="', $scripturl, '?action=calendar" onMouseOver="stm(Text[15],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/Calendar.png"></a></font></td>
</tr>
<tr>

<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=notification" onMouseOver="stm(Text[7],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/mailreminder.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=editBuddies" onMouseOver="stm(Text[8],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/kdmconfig.png"></a></font></td>
<td align="center"valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=pmprefs" onMouseOver="stm(Text[9],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/mail.png"></a></font></td>
<td align="center"valign="top">
<a href="', $scripturl, '?action=profile;u=;sa=tpshoutbox" onMouseOver="stm(Text[10],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/messenger.png"></a></td>
<td align="center"valign="top">
<a href="', $scripturl, '?action=search" onMouseOver="stm(Text[11],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/find.png"></a></td>
<td align="center"valign="top">
<a href="', $scripturl, '?action=pm;sa=send;u=1" onMouseOver="stm(Text[12],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/agent.png"></a></td><td align="center"valign="top">
<a href="', $scripturl, '?action=googlemap" onMouseOver="stm(Text[16],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/Map2.png"></a></font></td><td align="center"valign="top">
<a href="http://path-to-peace.net/index.php?ind=downloads&op=submit_file" onMouseOver="stm(Text[17],Style[1])" onMouseOut="htm()" target=_blank><img border="0" src="usercp2/Windows_Command.png"></a></font></td><td align="center"valign="top">
<a href="', $scripturl, '?action=gallery;sa=add;cat=1" onMouseOver="stm(Text[18],Style[1])" onMouseOut="htm()"><img border="0" src="usercp2/Holiday.png"></a></font></td>
</tr>
</table></td></tr></table></div>
';



Afterwards download the zip file attatched
In it are 2 things....
Usercp2 (FOLDER)
2 JS files

upload the js files to ur forum root - this gives a cool mouse over popup description

upload the folder to ur forum root as well

thats all enjoy

ps: the files are PNG format but u can convert them to gif if u want...the old IE has issues with PNG but I hear the new IE dosent..but just thought id mention it

PPS:I nearly forgot to mention...u can change the text for the popups and their display style in the Style.js file

files added - just take care of a few things....IF you are already using the mouse over script on ur page then DO NOT replace the 2 JS files with these ones...just open the style.js file and copy over the new text strings to ur existing style.js file.

The images folder called usercp2 goes as is in the forum root.
the main.js and style.js files also go in the forum root
Title: Re: Mini-User CP Block
Post by: brianjw on December 29, 2006, 08:23:13 PM
Great script aku! :)
Yes the new IE has like no errors. Ever error someone has mensioned does not happen to me. So if everyone updates there IE there won't be any problems.
http://microsoft.com
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 29, 2006, 08:41:09 PM
Hey sleepy head, were's the zip files   :o
Title: Re: Mini-User CP Block
Post by: brianjw on December 29, 2006, 09:19:40 PM
Yeah where is the zip files :o!
Title: Re: Mini-User CP Block
Post by: G6Cad on December 29, 2006, 10:08:40 PM
A lot of attachments were lost during the change of host and server for TP.
This is one of them  :-\
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 29, 2006, 10:26:38 PM
ok Aku, you're forgiven   :2funny:     :uglystupid2:
Title: Re: Mini-User CP Block
Post by: brianjw on December 29, 2006, 10:50:24 PM
lol :2funny:

Aku, can you provide was with the zip for the Mini UserCP?
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 29, 2006, 11:03:08 PM
Quote from: brianjw on December 29, 2006, 10:50:24 PM
lol :2funny:

Aku, can you provide was with the zip for the Mini UserCP?

PS: Aku's site isn't working. The whole site says 403 forbidden.

See: http://path-to-peace.com
Do you know what this is?

I got a redirect message, but eventually got to his site ok.
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 29, 2006, 11:10:50 PM
Quote from: brianjw on December 29, 2006, 11:07:56 PM
Do you get the 403 Forbidden Page when you
Click Here (http://path-to-peace.com/forum) ???

Nope, clear as day.  I think Aku banned you   :2funny:   j/k
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 29, 2006, 11:24:55 PM
Quote from: brianjw on December 29, 2006, 11:17:51 PM
I don't know. He might have :(
and his image is broken so i think it is forbidden. idk

Not sure B.  Works for me   :o
Title: Re: Mini-User CP Block
Post by: bluedevil on December 29, 2006, 11:50:33 PM
I think thats a cool mod but wheres the zip file thingies?

Hmmm......he must be sleeping.
Title: Re: Mini-User CP Block
Post by: RoarinRow on December 30, 2006, 12:00:07 AM
Quote from: bluedevil on December 29, 2006, 11:50:33 PM
I think thats a cool mod but wheres the zip file thingies?

Hmmm......he must be sleeping.

Yeah, he thinks betters when he gets some rest   ;D
Title: Re: Mini-User CP Block
Post by: brianjw on December 30, 2006, 12:20:11 AM
lol but G6 said they lost the attatchment for this and uh it is 5:19 AM in pakistan. But that is the time it is now. Look it up in google. Time in pakistan
Title: Re: Mini-User CP Block
Post by: RvG on December 30, 2006, 01:07:36 PM
don't worry Aku will post it back for us :)
Title: Re: Mini-User CP Block
Post by: bluedevil on January 02, 2007, 12:09:57 AM
Quote from: RoarinRow on December 29, 2006, 08:41:09 PM
Hey sleepy head, were's the zip files   :o

bump..
Title: Re: Mini-User CP Block
Post by: RoarinRow on January 02, 2007, 12:31:26 AM
Quote from: bluedevil on January 02, 2007, 12:09:57 AM
Quote from: RoarinRow on December 29, 2006, 08:41:09 PM
Hey sleepy head, were's the zip files   :o

bump..

I think Aku went back to sleep   :2funny:
Title: Re: Mini-User CP Block
Post by: brianjw on January 02, 2007, 01:48:13 AM
lol :2funny:
Title: Re: Mini-User CP Block
Post by: brianjw on January 14, 2007, 02:10:17 PM
I PM'd aku for this zip file. He said thanks for reminding him and he will post them back here when he gets time :)
Title: Re: Mini-User CP Block
Post by: akulion on January 14, 2007, 03:13:41 PM
fiels added to 1st post
Title: Re: Mini-User CP Block
Post by: RoarinRow on January 14, 2007, 07:49:20 PM
Quote from: Aku on January 14, 2007, 03:13:41 PM
fiels added to 1st post

Just installed it and love it!  Aku, how did you get the automatic PM after registering on your site?  That's so cool too.  It has all the information of where to go, what do do on your site with that PM.   8)

Edit - I found it here - SMF PM on Registration (http://www.simplemachines.org/community/index.php?topic=99771.0)
Title: Re: Mini-User CP Block
Post by: akulion on January 14, 2007, 08:01:50 PM
yes thats a really cool mod to have! PM on registration
Title: Re: Mini-User CP Block
Post by: RoarinRow on January 14, 2007, 08:43:38 PM
Quote from: Aku on January 14, 2007, 08:01:50 PM
yes thats a really cool mod to have! PM on registration

I like the funny 'gotmail.swf' on your site.  made me laugh.  great welcome!   :2funny:
Title: Re: Mini-User CP Block
Post by: brianjw on January 14, 2007, 09:27:37 PM
You are having new mail in your inbox :D :2funny:
Title: Re: Mini-User CP Block
Post by: brianjw on January 14, 2007, 09:28:46 PM
Aku I am using the tabs.

The tabs are in a script block and its html and javascript codes. How am I going to put this PHP code there? ???
Title: Re: Mini-User CP Block
Post by: akulion on January 15, 2007, 12:17:15 AM
by using
echo '
whatever else code goes here
';

and for any ' (single quotes) inside the code itself u have to add a slash before it like this \'

its a lengthy process but give it a try with simpler things and experiment and u will have it
Title: Re: Mini-User CP Block
Post by: brianjw on January 15, 2007, 12:22:59 AM
Thanks aku! :D It works with php now! :)
Title: Re: Mini-User CP Block
Post by: Craven on October 18, 2007, 10:59:19 PM
Does anyone have the attachment js files for this mod?  It would be something I would like to use....

To anyone that can help....Thanks
Title: Re: Mini-User CP Block
Post by: wilsy on November 25, 2007, 10:31:02 AM
Hi Craven,

They are in the zip on the the first post. I've just installed this and it's a very nice addition to my site - thanks Aku ;)

Regards,

Wilsy.