View Full Version : Avatar Link in UserCP (vB.org Clone)
Kars10
05-23-2003, 10:00 PM
Hello!
Ok, what this Hack does?
It places a Link where you can edit your Avatar to the Navbar in the UserCP (like on vb.org).
Also a upcoming Feature on new vb3. :D
Demo: https://vborg.vbsupport.ru/usercp.php?s=
Time to install: 10 min
Files to Edit: 5
Templates to Edit: 1
Templates to add: 0
!!! Please Backup your Files!!!
Have Fun, and please lick install! ;)
Kars
Kars10
05-24-2003, 12:21 PM
Screenie: :p
Boofo
05-24-2003, 12:49 PM
You should use the firstaltcolor and secondaltcolor variables in it. ;)
kaotic
05-24-2003, 01:39 PM
Yeah, nice hack, but the instructions were confusing. Everything in my member.php file was set to "firstaltcolor" or "secondaltcolor" :ogre:
Kars10
05-24-2003, 01:41 PM
@ Boofo, i have used it but here the Firstaltcolor and secondaltcolor is parsed to the vb.org colors... :(
So use the Zip attached. ;)
Updatet first Post...
Chris M
05-24-2003, 04:34 PM
@Karsten - Save it as a .php file, and they won't be parsed:)
Satan
subu1
05-24-2003, 04:51 PM
grüße Dich und gleich einverleiben:-)))))
Übrigends sitze immer noch an der Übersetzung Tombot, hoffe Du bist nicht sauer *snief*
Bei Dede läuft der Hack schon, die Leute sind begeistert weil der Bot so blöde antworten gibt *lol*
grüße subu1
Today at 12:51 PM subu1 said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=399456#post399456)
greetings you and immediately einverleiben:-)))))
?brigends sits always yet at the translation Tombot, would hope are you not sour *snief*
In Dede, the Hack runs are offered answer gives already, the people enthused because that so stupid *lol*
greetings SUBU1
Man I just don't know... Sorry :(
And does this hack mess up the selected color in the admin cp like another similar to it did? It made Options and Avatar both selected when you clicked either one...
Austin Dea
05-24-2003, 07:33 PM
That's because<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editoptions">Edit Options</a></b></smallfont></td>
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editavatar">Edit Avatar</a></b></smallfont></td>
Should be:<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editoptions">Edit Options</a></b></smallfont></td>
<td bgcolor="$cpnav[10]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editavatar">Edit Avatar</a></b></smallfont></td>
=)
Kars10
05-24-2003, 07:34 PM
@ Subu, ich bin fertig aber die anderen nicht, oder?
@ 006, check everything twice. I promise this hack works like a charm. :)
Kars
Kars10
05-24-2003, 07:35 PM
@ Austin Dea, youre right. I have the wrong File attached.. :(
I update Post #1 in a minute.
Thanks for your help
Kars
subu1
05-24-2003, 08:19 PM
ich habe ja 2 liebe Freunde dran gesetzt( ichschlingel) und warte aber auch ich bin etwas d?sig aber wir geben jetzt wieder Gas;)
Tubbie
05-24-2003, 09:49 PM
hehe voll offtopic nun ;)
welches forum ist es denn wo der bot schon l?uft?
Oh LOL. No i haven't tried this one yet. :)
I was just asking because there was another hack for this that didn't work correctly. I will install this tomorrow hopefully.
Thanks :)
Sam FT
05-31-2003, 01:43 PM
So which zip do I need to use the one from post #1 or post #5?
Chris M
05-31-2003, 01:46 PM
I believe they are both the same, but personally I would download the one in Post 1:)
Satan
Sam FT
06-04-2003, 01:33 AM
Hey has anyone come across this bug..if you click on the message tracking folder does the link "Edit Avatar" doesn't match. When I click on it I think it is using the firstaltcolor instead of the secondaltcolor.... Didn't know if anyone come across this bug?
Sam FT
06-04-2003, 02:05 AM
Ok I found it, there is still one file that you need to so that when you click on the message tracking folder for the "Edit Avatar" to match the rest of the links.
Open private2.php (1 File-Edit)
### Search for: (Line 73) ###
$cpnav[3]="{ secondaltcolor}";
*** Replace with: ***
$cpnav[3]="{ secondaltcolor}";
$cpnav[10]="{ secondaltcolor}";
Remember to take out the space before the secondaltcolor.
Alien
06-04-2003, 04:14 AM
Works excellent, thanks so much! :)
Music Pirate: Nice catch, I didn't even think to check in there!
-Jason
Kars10
06-04-2003, 05:30 AM
@ Music Pirate, i noticed the bug...but forget to update my zip. Sorry, will update it right now. :)
@ Alien, glad you like it. :)
Kars
Sam FT
06-04-2003, 06:32 PM
Today at 01:30 AM Kars10 said this in Post #20 (https://vborg.vbsupport.ru/showthread.php?postid=404229#post404229)
@ Music Pirate, i noticed the bug...but forget to update my zip. Sorry, will update it right now. :)
@ Alien, glad you like it. :)
Kars
No problem, I came across the error when I was installing and testing out the improved pm folder hack. At first I thouhgt I screwed up the Avatar Link Hack by installing the Improved PM hack. But I noticed the line 73 in the private2.php was there, so I edit it and then it worked.
But I really like this hack alot, because it makes so simple for my users.
Kars10
06-04-2003, 06:52 PM
Thanks Music Pirate!! :)
I think the same!!
It is much easier to edit the avatar with this Link.
I also removed the avatarbutton from the modifyoptions-template, no need for it anymore!! :)
Kars
Sam FT
06-04-2003, 07:19 PM
I think that would be good to add it to the hack as an optional part. Because I would like to have that hack to remove the link, but some may not. I am assuming that it is a simple template editing?
Kars10
06-04-2003, 07:32 PM
Thats pretty easy.
Just open modifyoptions-Template...
search for:
<tr>
<td bgcolor="{ secondaltcolor}"><normalfont><b>Avatar</b></normalfont><br>
<smallfont><a href="misc.php?s=$session[sessionhash]&action=showavatars" target="_blank">More info...</a></smallfont></td>
<td bgcolor="{ secondaltcolor}"><normalfont><img src="$bbuserinfo[avatarurl]" border="0" alt="Your current avatar" align="middle"> <input type="image" src="{ imagesfolder}/clear.gif" alt="" border=""><input type="submit" class="bginput" name="modifyavatar" value="Change Avatar"></normalfont></td>
</tr>
and delete it.
Note: ... ive made spaces in the above code( { secondaltcolor}, { imagesfolder}, because of the parsing here... ;)
Kars :)
Sam FT
06-04-2003, 11:58 PM
Thanks...thats great, will have to test out later tonight.
tkeil69575
06-21-2003, 07:44 AM
nice hack karsten :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.