vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   End-User Options - GTUserCP - Enhanced USERCP Interface + USERCP Menu (https://vborg.vbsupport.ru/showthread.php?t=136321)

rayw 09-19-2007 12:04 AM

Quote:

Originally Posted by Princeton (Post 1341783)
If upgrading from a previous version you can revert the "USERCP_SHELL", "SUBSCRIBE", and "usercp_nav_folderbit" template.

Cheers!

I loved this mod before the product was created - but it's even better now that it's a product.

Thanks a lot. :)

slyreptile 09-20-2007 03:31 PM

With it being a product now, how can we go about modifying the USERCP_SHELL to add our own links?

Princeton 09-21-2007 11:03 AM

Add new links via it's template hooks.
If you want to hard code the values - edit the GTPM_USERCP_SHELL template.

triff 09-21-2007 07:05 PM

The product looks really good. I just wonder how hard it will be for someone with little programming experience to add edit avatar, edit profile, and edit profile picture to the options? Is there any instruction of how to do that added to the zip?

Sverre.

yoyoyoyo 09-21-2007 10:59 PM

Quote:

Originally Posted by triff (Post 1344028)
The product looks really good. I just wonder how hard it will be for someone with little programming experience to add edit avatar, edit profile, and edit profile picture to the options? Is there any instruction of how to do that added to the zip?

Sverre.

look one post above yours:

Add new links via it's template hooks.
If you want to hard code the values - edit the GTPM_USERCP_SHELL template.

triff 09-22-2007 07:10 AM

Quote:

Originally Posted by yoyoyoyo (Post 1344158)
look one post above yours:

Add new links via it's template hooks.
If you want to hard code the values - edit the GTPM_USERCP_SHELL template.

Hehe, let me stress: little programming experience! :o

I can do some html-coding, and I can find the template, but how do I edit it? This php-stuff is new to me.

If I would like to add edit avatar/profile/profile picture? How would I add it in the template?

I'd be grateful for any help! :)

Sverre.

triff 09-23-2007 07:36 AM

No one? I think those instructions would be a lot of help to us newbies out here considering the mod. Or at least some more tips on how we can figure it out.

SGL.

Smiry Kin's 09-24-2007 12:51 AM

need to make your self a little clear'er as to what your requesting.. why would you want to edit profile pic/profile etc?..

to edit profile you would have to edit memberinfo template..

yoyoyoyo 09-24-2007 01:20 AM

Quote:

Originally Posted by Smiry Kin's (Post 1345566)
need to make your self a little clear'er as to what your requesting.. why would you want to edit profile pic/profile etc?..

to edit profile you would have to edit memberinfo template..

I think he was asking about adding links to edit profile pic, etc., however they are already in there, so I am a bit confused:

http://img168.imageshack.us/img168/3579/errorir4.jpg

However, if you have certain links you want to add in there, you can add them easily.

Go to your Admin Control Panel -> Styles & Templates -> Edit Templates -> and click on the << >> button to expand your view of all of the templates. Highlight "GTPM_USERCP_SHELL" and click on the "Customize" button, and you will see the code in there.

Princeton has divided up all of the areas of the menu so you can easily find where the links and options are located. For example, if you want to add a new link in the "Miscellaneous" section, you would look for <!--misc--> in that template. All of the code in between the <!--misc--> and <!--/misc--> are the links that are listed. If you want to add a link, make sure it goes between other <tr> and </tr> (and be sure to avoid the <if> and </if> also.

For example, if you wanted to add a link for some reason between "Group Membership" and "Buddy/Ignore List" you would look for this code:

Quote:

<if condition="$show['publicgroups']">
<tr>
<td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td>
</tr>
</if>
<tr>
<td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_ignore_lists]</a></td>
</tr>
and change it to this:

Quote:

<if condition="$show['publicgroups']">
<tr>
<td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td>
</tr>
</if>
<tr>
<td nowrap="nowrap"><a class="smallfont" href="
ADD_YOUR_LINK_IN_HERE">LINK TEXT HERE</a></td>
</tr>

<tr>
<td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_ignore_lists]</a></td>
</tr>
(note - new code is highlited in red - put your link in place of ADD_YOUR_LINK_IN_HERE and your link text in place of LINK TEXT HERE)

Just look at the code that is listed, and you will figure it out. It's all fairly logical if you just read it, and follow the examples that are given in the template itself.

SuperTaz 09-24-2007 05:28 AM

I installed this mod the way it said to and I even installed the images in the /forums/images/misc/ folder and the images still do not show up. What am I doing wrong here?


All times are GMT. The time now is 01:54 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.01826 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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