vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - DJ's Living Avatars User CP/Admin CP "Integration" (https://vborg.vbsupport.ru/showthread.php?t=215431)

Digital Jedi 06-04-2009 10:00 PM

DJ's Living Avatars User CP/Admin CP "Integration"
 
1 Attachment(s)
PGAmerica released something similar to this a while back for an older version of Living Avatars based on some template modifications I had made in my forum. I figure we were about due for an update and I thought how much easier it might be to have this in the form of a product. Since I had thrown this together for myself last night, I decided I might as well release it right quick for those who need it.


WHAT DOES THIS DO?

This product "integrates" Living Avatars for you and your users. Technically, Living Avatars is already integrated, but a lot of us like to have the controls and admin functions in familiar places. We'd also like it to blend with our forum a little better. This not only makes the Living Avatars Admin Panel accessible from your Admin CP, but also puts the Edit Screen for LA in an iframe where you can then further customize the Theme to make it blend with your forum and skin.


SCREENSHOTS

See screenshots at the bottom of this post.

LIVE DEMO

Login with the username Test and password test to see a live demo. All I ask is that you please refrain from making excessive edits to the avatar, as I don't know what a bunch of you online at the same time making edits to the same avatar might do. Yes, the guy in the dress is hilarious. (Also, please don't use the Test account to try and contact me. That's not what I created it for.)


CREDITS

Credits really go out to everyone here who has directly or indirectly brought me to this point in vB coding.

Also, the script utilizes a dynamically resizing iframe, provided here by the Dynamic Drive website. And before you ask, yes, several of us have asked several times now. We can use their scripts in mods, provided we don't remove the copyright, or try to redistribute the script by itself. Remember that the copyright must stay intact, even on your own personal website.


INSTALLATION
  1. Download and Unzip the contents of the ZIP file.
  2. Upload the contents of the UPLOAD folder to your forum's root directory. (This is the directory where your vBulletin is physically installed.)
  3. Go to Plugins & Products >> Manage Products >> Add/Import Products and import the product-djs_la_usercp_admincp.xml file.
  4. Refresh your Admin CP if it doesn't do it automatically and your Living Avatars manager menu should be right below your regular Avatars manager menu. Your users will now have a link in their User CP that takes them to living_avatars.php.
  5. If you hadn't already done so, you may now edit the Living Avatar Theme to better match your forum colors. And remember that you now have access to that Theme in your Admin CP.

OTHER OPTIONS


If you activated the "Add Forum Link" option when you first installed Living Avatars (this is the setting within Living Avatars that puts the big image link on the page with your regular avatars) you'll want to edit where those links now point to. Follow the template edit below to change that for each style your forum uses. (Alternatively, you could also go into cPanel on your server and make living_avatars a redirect to living_avatars.php.)

In modifyavatar look for:
Code:

<a href="living_avatars/"><img src="living_avatars/includes/images/living_avatars_forum_logo.gif" border="0" /></a>
<div style="padding-top: 10px">
<a href="living_avatars/">Click here to create or update your Living Avatar.</a><br /><br />
The more you post on our forum, the more points you earn! Use these points
to collect items such as clothing to create your own unique avatar!
</div>

Change the code in red to living_avatars.php


TROUBLESHOOTING


Is the User CP link still not showing up? You may need to edit the template directly then. First find out of your running Princeton's GTUserCP - Enhanced USERCP Interface + USERCP Menu. Make whichever template edit below applies to you. (Additionally, there might be a whole bunch of other modifications similar to Princeton's mod. If for any reason a modification you're running changes the template your User CP uses to another set of templates, find the custom set of templates that modification uses and make the edits there. Otherwise, these changes won't show up.)


Typical Template Edit

If you are not using Princeton's Enhanced USER CP interface, simple edit your USERCP_SHELL template. Find:
Code:

<tr><td class="thead">$vbphrase[settings_and_options]</td></tr>
Above add:
Code:

<tr><td class="thead">$vbphrase[living_avatars_options]</td></tr>
<tr><td class"alt2" nowrap="nowrap"><a class="smallfont" href="living_avatars.php?$session[sessionurl]">$vbphrase[edit_living_avatar]</a></td></tr>



OR



GTUserCP - Enhanced USERCP Interface + USERCP Menu Template Edit

If you are using Princeton's Enhanced USER CP interface, then you need to edit a different template then normal. Look for your GTUserCp Templates group.

In your GTPM_USERCP_SHELL template find:

Code:

<tr><td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('settings_and_options')"><img id="collapseimg_settings_and_options" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_settings_and_options].gif" alt="" border="0" /></a> $vbphrase[settings_and_options]</td></tr>
Above add:
Code:

<tr><td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('living_avatars_options')"><img id="collapseimg_living_avatars_options" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_living_avatars_options].gif" alt="" border="0" /></a> $vbphrase[living_avatars_options]</td></tr>
</tbody>
<tbody id="collapseobj_living_avatars_options" style="$vbcollapse[collapseobj_living_avatars_options]">
<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="living_avatars.php?$session[sessionurl]">$vbphrase[edit_living_avatar]</a></td></tr>
</tbody>
<tbody>


Digital Jedi 06-05-2009 07:43 PM

If your wondering about the Return to vBCommerce/Return to Standard Avatars links in my Screenshot and Live Demo, all I did there was edit the Theme for LA, which, if you installed correctly, is now accessible via your vB Admin CP.

I also changed the path of the default Living Avatars banner to the boxed-shaped one LA uses in the standard avatar links. The default one has a white background and is cropped right up to the edges, so it looked out of place against my dark colored background. This is also accessable in your Theme's Header.

Digital Jedi 06-05-2009 07:44 PM

reserved

Daniel_HBK 06-05-2009 08:12 PM

nice hack!

Daniel_HBK 06-05-2009 08:12 PM

can i see an example,please ?

Digital Jedi 06-05-2009 08:13 PM

Quote:

Originally Posted by Daniel_HBK (Post 1824125)
can i see an example,please ?

You mean, like in the demo link provided? ;)

Daniel_HBK 06-05-2009 09:28 PM

thanks :) you r awesome :)

goxy63 06-05-2009 09:32 PM

This is VERY interesting, will try it out ASAP

Thanks

Nominated, rated

josh2007 06-08-2009 08:45 PM

this is not working for me. Nothing appears in UserCP. One reason (im guessing) is because there is nothing going in the admincp folder

Digital Jedi 06-09-2009 02:05 PM

Nothing is supposed to go the admincp folder.

Your Admin controls are in your includes/xml folder. It's only the physical pages that would go in the admincp folder. But since all those pages are already part of Living Avatars, this just adds controls that link to them.

You said nothing is showing in the UserCP, which wouldn't have anything to do with the admincp folder anyway. Did you do one of the two template edits suggested when it didn't show up, or did you mean AdminCP?


All times are GMT. The time now is 09:54 AM.

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.01171 seconds
  • Memory Usage 1,753KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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