vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Myspace UserCP Rewrite (https://vborg.vbsupport.ru/showthread.php?t=107394)

Darkfire122333 02-09-2006 04:36 AM

to create a new block right beside view profile, edit usercp template..

add:
Code:

</td>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editprofile"><div align="center">Edit Profile</div></a>
</td>
</tr>

(replace profile.php?do=editprofile with the location of the file and change Edit Profile to the name you want it to be displayed as)

After:
Code:

<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="$bburl/$bbuserinfo[username]"><div align="center">View my Profile</div></a>
<if condition="!$userinfo[profilepicurl]"></div></if>
</td>
</tr>

After that if you want to add anotehr row of 2... add this and do the same edit as above, only twice...

Find:
Code:

<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="$bburl/$bbuserinfo[username]"><div align="center">View my Profile</div></a>
<if condition="!$userinfo[profilepicurl]"></div></if>
</td>
</tr>

(remember what you put the one above as, becuase this goes right after that.)

Add after:
Code:

<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editavatar"><div align="center">Edit Avatar</div></a>
</td>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editprofilepic"><div align="center">Edit Profile Pic</div></a>
</td>
</tr>

(same thing.. edit the same things.. yadda yadda yadda....)

MissKalunji 02-09-2006 04:38 AM

Quote:

Originally Posted by Darkfire122333
Different layout... *Screenshot attached

clear USERCP template and paste this:
(backup of template reccomended)
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
        <title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%"><tr><td width="50%" valign="top"><div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" style="border-width:0px;" border="0" width="100%">
<!-- First Column -->
<tr>
<td colspan="2" style="border-style:solid;border-width:1px;" class="tcat" align="center">Hello, <strong>$bbuserinfo[username]</strong>!</td>
</tr><tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<div>Profile Picture:</div><img src="image.php?u=$bbuserinfo[userid]&type=profile" width="100" height="100" /><br />
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<div>Avatar:</div><img src="image.php?u=$bbuserinfo[userid]" /></td>
</tr>
<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editsignature"><div align="center">Edit Signature</div></a>
</td>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editprofile"><div align="center">Edit Profile</div></a>
</td>
</tr>
<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editoptions"><div align="center">Edit Options</div></a>
</td>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editpassword"><div align="center">Edit Password/E-mail</div></a>
</td>
</tr>
<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editavatar"><div align="center">Edit Avatar</div></a>
</td>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="profile.php?do=editprofilepic"><div align="center">Edit Profile Pic</div></a>
</td>
</tr>
<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="$bburl/$bbuserinfo[username]"><div align="center">View my Profile</div></a>
<if condition="!$userinfo[profilepicurl]"></div></if>
</td>
</tr>
<tr>
<td>
<br />
</td>
</tr>
<tr>
<td colspan="2" style="border-style:solid;border-width:1px;" class="tcat" align="center">Private messages</td>
</tr>
<tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control" colspan="2">
<div align="center">
<strong>$vbphrase[unread_x_nav_compiled]</strong> - <strong>$vbphrase[total_x_nav_compiled]</strong>
</div>
</td>
</tr>
<tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="private.php"><div align="center">Inbox</div></a>
</td>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="private.php?s=&pp=&folderid=-1"><div align="center">Sent Items</div></a>
</td>
</tr>
<tr>
<td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="private.php?do=newpm"><div align="center">Send New PM</div></a>
</td>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<a href="private.php?do=editfolders"><div align="center">Edit Folders</div></a>
</td>
</tr>
<tr>
<td>
<br />
</td>
</tr>
<tr>
<td colspan="3" style="border-style:solid;border-width:1px;" class="tcat" align="center">Miscellaneous</td>
</tr><tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<div align="center"><a href="$bburl/calendar.php?do=viewreminder">Event Reminders</a></div>
</td>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<div align="center"><a href="$bburl/profile.php?do=editattachments">Attachments</a></div>
</td>
</tr>
<!-- / First Column -->
</table>
</div>
</td>
<td width="50%" valign="top"><div align="center"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="border-width:0px;" align="center">
<!-- Second Column -->
<script type="text/javascript">
        <!--
        function pm(tform)
        {
                var users = new Array();
                var arrCount = 0;
                for (i = 0; i < tform.elements.length; i++)
                {
                        var element = tform.elements[i];
                        if ((element.name != "allbox") && (element.type == "checkbox") && (element.checked == true))
                        {
                                users[arrCount] = element.value;
                                arrCount++;
                        }
                }
                if (arrCount == 0)
                {
                        alert("$vbphrase[no_users_selected]");
                }
                else
                {
                        var querystring = "";
                        for (i = 0; i < users.length; i++)
                        {
                                querystring += "&userid[]=" + users[i];
                        }
                        if (opener && !opener.closed)
                        { // parent window is still open
                                opener.location="private.php?$session[sessionurl]do=newpm" + querystring;
                        }
                        else
                        { // parent window has closed or went to a different URL.
                                window.open("private.php?$session[sessionurl]do=newpm" + querystring, "pm");
                        }
                }
        }
        // -->
        </script>
<form action="private.php" method="post" target="_blank" name="vbform">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
        <td class="tcat" colspan="3">$vbphrase[buddy_list]</td>
</tr>
<tr>
        <td class="thead" align="center" colspan="3"><span class="smallfont">-- <strong>$vbphrase[online]</strong> --</span></td>
</tr>
$onlineusers
<tr>
        <td class="thead" align="center" colspan="3"><span class="smallfont">-- <strong>$vbphrase[offline]</strong> --</span></td>
</tr>
$offlineusers
<tr>
        <td class="tfoot" align="center" colspan="3">
                <input type="button" class="button" value="$vbphrase[reload]" onclick="history.go(0);" />
<input type="button" class="button" value="Edit List" onclick="window.location='profile.php?do=editlist';" />
                <input type="button" class="button" value="$vbphrase[pm_users]" onclick="pm(this.form);" title="$vbphrase[send_private_message_to_selected_users]" />
<input type="button" class="button" value="Open in this window" onclick="window.location='misc.php?$session[sessionurl]do=buddylist&amp;buddies=$buddies';" />
        </td>
</tr>
</table>

</form>
<if condition="$show['privatemessages']">
<div class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
<a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
</div>
<div id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
$messagelistbits
</div>
</if>
<!-- / Second column -->
</div>
</table>
</td></tr></table>
</div>
<script type="text/javascript">/*
<!-- Hack into hack - Nick -->
<table border="0"width="100%"><tr><td>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="50%" align="center">
<tr valign="top"><tr style="alt2"><table border="0"><tr valign="top"><td style="tcat">Hello, <strong>$bbuserinfo[username]</strong>!</td></tr><tr>
<if condition="$show['profilepic']"><td><img src="$userinfo[profilepicurl]" /></td></if>
<td class="alt2">
<a href="profile.php?do=editsignature">Edit Signature</a><br /><br />
<a href="profile.php?do=editprofile">Edit Profile</a><br /><br />
<a href="profile.php?do=editoptions">Edit Options</a><br /><br />
<a href="profile.php?do=editpassword">Edit Password</a><br /><br />
<a href="profile.php?do=editarcade">Edit Arcade Options</a><br /><br />
<a href="profile.php?do=editavatar">Edit Avatar</a><br /><br />
<a href="$bburl/$bbuserinfo[username]">View my Profile</a>
</td></tr></table></td></tr></table>
</td>
<td>

</td>
</tr></table>-->
<!-- / Hack into hack - Nick -->
<if condition="$show['privatemessages']">
<!-- ############## PRIVATE MESSAGES ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
                        <a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
        $messagelistbits
</tbody>
</table>
<br />
<!-- ############## END PRIVATE MESSAGES ##############  -->
</if>
        <!-- Start Edit profile - by SuperFly -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
                <td width="50%" align="right" valign="top">
<strong>Welcome Back</strong> $bbuserinfo[username]</td>
          </tr>
<tr>
        <td class="alt1"><strong>Link to profile: </strong>$vboptions[bburl]/$bbuserinfo[username]</td>
</tr>
<br />
<tr>
        <td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editprofile"><strong>Edit profile </strong></a></td>
</tr>
<br />


<tr>
        <td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editprofile"><strong><A href=$vboptions[bburl]/$bbuserinfo[username]>View profile </strong></a></td>
</tr>
        </table>
<!-- End -->
<!-- ############## SUBSCRIBED THREADS ##############  -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="7">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
                        <a href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[new_subscribed_threads]</a><span class="normal">: ($numthreads)</span>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
        <if condition="$show['threads']">
                <tr class="thead">
               
                        <if condition="$show['threadicons']">
                                <td class="thead" colspan="2">&nbsp;</td>
                        <else />
                                <td class="thead">&nbsp;</td>
                        </if>
                       
                        <td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
                        <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
                        <td class="thead" align="center">$vbphrase[replies]</td>
                        <td class="thead" align="center">$vbphrase[views]</td>
                </tr>
                $threadbits
        <else />
                <tr>
                        <td class="alt1" align="center" colspan="7"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
                </tr>
        </if>
        <tr>
                <td align="$stylevar[right]" colspan="7" class="tfoot">
                <span class="smallfont"><a href="subscription.php?$session[sessionurl]do=viewsubscription&amp;folderid=all">$vbphrase[view_all_subscribed_threads]</a></span>
                </td>
        </tr>
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED THREADS ##############  -->


<if condition="$show['forums']">
<!-- ############## SUBSCRIBED FORUMS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
                        $vbphrase[subscribed_forums]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
        <tr align="center" valign="bottom">
                <td class="thead" width="2%">&nbsp;</td>
                <td class="thead" align="$stylevar[left]" width="80%">$vbphrase[forum]</td>
                <td class="thead">$vbphrase[last_post]</td>
                <td class="thead">$vbphrase[threads]</td>
                <td class="thead">$vbphrase[posts]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="thead" width="20%">$vbphrase[moderator]</td>
                </if>
        </tr>
        $forumbits
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED FORUMS ##############  -->
</if>


<if condition="$show['reputation']">
<!-- ############## NEW REPUTATION ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="$reputationcolspan">
                        <span class="smallfont" style="float:$stylevar[right]">
                                <phrase 1="$bbuserinfo[reputation]">$vbphrase[x_points_total]</phrase>
                                &nbsp; &nbsp;
                                <a href="#top" onclick="return toggle_collapse('usercp_reputation')"><img id="collapseimg_usercp_reputation" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reputation].gif" alt="" border="0" /></a>
                        </span>
                        $vbphrase[latest_reputation_received]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_usercp_reputation" style="$vbcollapse[collapseobj_usercp_reputation]">
        <tr>
                <td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[thread]</td>
                <td class="thead">$vbphrase[date]</td>
                <if condition="$vboptions['showuserraters']">
                <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
                </if>
                <td class="thead">$vbphrase[comment]</td>
        </tr>
        $reputationcommentbits
</tbody>
</table>
<br />
<!-- ############## END NEW REPUTATION ##############  -->
</if>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
        <td width="100%">&nbsp;</td>
        <td align="$stylevar[right]">$forumjump</td>
</tr>
</table>
*/</script>
</html>




hallllllllllf of these things arent showing :-/

Darkfire122333 02-09-2006 04:40 AM

Quote:

Originally Posted by MissKalunji
hallllllllllf of these things arent showing :-/

you still have to do the usercp_shell edit too...

MissKalunji 02-09-2006 05:15 AM

Nice good work! iim trying to redesign the profile page....cause its so confusing!

wont be as good as HR3rdGen but should do my work!

vbreal 02-09-2006 05:21 AM

Issue New Invitation
Click Here To Invite New Users to Our Board!

how do we incorperate the invite system

vbreal 02-09-2006 05:25 AM

nevermind i got it

vbreal 02-09-2006 05:29 AM

its not displaying my subscribed threads :(

vbreal 02-09-2006 06:01 AM

i have a few issues. i wold like the profile pic to be a lil larger but it stretches the screen out and it looks funny. anyway that the frames can adjust based on the size of the profile pic.

also the who viewed my profile link isn't working. i had ot do an edit in the usercp_shell to do that here is the code

PHP Code:

   In Template USERCP_SHELL
   FIND
   
--------------------------------------------------------------------------------
   </
table>
   <!-- / 
usercp nav -->
   --------------------------------------------------------------------------------
   
ABOVE that ADD
   
--------------------------------------------------------------------------------
   <if 
condition="$permissions['profileviewpermissions'] & $vbulletin->bf_ugp_profileviewpermissions['canseeviews']">
   <
tr>
    <
td class="alt2" nowrap="nowrap"><class="smallfont" href="#" onclick="openWindow('misc.php?$session[sessionurl]do=profileviews', 300, 400); return false;">$vbphrase[who_viewed_my_profile]</a></td>
   </
tr>
   </if>
   -------------------------------------------------------------------------------- 

and my subscriptions were not populating but when i click onthe link it works. i see in the pic it worked for you.

one last thing i am trying to get my .htacess file to work my forum index is in www.mysite.com/forums/ and it didnt' work

also my friend has asite www.sub.doman.com and it didn't work for that either


thanks in advance for the help

SuperFly 02-09-2006 01:51 PM

Hmm, subscriptions thing is weird, did you replace most upadted code for both usercp and usercp_shell?

The .htaccess may not work if you do not have mod_rewrite on your server.


Has anyone forgotten to click https://vborg.vbsupport.ru/

[high]If you would not mind if you like/have installed the product please click it.[/high]

vbreal 02-09-2006 03:04 PM

i got the code last night. i will replace it again.

yes i clicked install

how do i get mod_rewrite


All times are GMT. The time now is 03:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01366 seconds
  • Memory Usage 1,858KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete