PDA

View Full Version : Integration with vBulletin - DJ's Living Avatars User CP/Admin CP "Integration"


Digital Jedi
06-04-2009, 10:00 PM
PGAmerica (https://vborg.vbsupport.ru/member.php?u=246849) 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 (http://www.livingavatars.com/) 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 (http://www.cogonline.net/forums/living_avatars.php)

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 (http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm) 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
Download and Unzip the contents of the ZIP file.
Upload the contents of the UPLOAD folder to your forum's root directory. (This is the directory where your vBulletin is physically installed.)
Go to Plugins & Products >> Manage Products >> Add/Import Products and import the product-djs_la_usercp_admincp.xml file.
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.
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:
<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 (https://vborg.vbsupport.ru/showthread.php?t=136321). 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:
<tr><td class="thead">$vbphrase[settings_and_options]</td></tr>Above add:
<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:

<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:
<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
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?

josh2007
06-09-2009, 02:07 PM
opps im sorry i meant nothing is appearing in ADMINCP it shows fine in user cp lol i get backwards sometime and no i didnt because i could not find the templates

Digital Jedi
06-10-2009, 01:14 PM
opps im sorry i meant nothing is appearing in ADMINCP it shows fine in user cp lol i get backwards sometime and no i didnt because i could not find the templates
Okay, then you wouldn't need to do any template edits, as the Admin CP doesn't use any.

Make sure the cpnav_living_avatars.xml file is located in the includes/xml directory. The menu should appear right below your regular avatar manager, unless you've modified your other cpnav_ files to change the display order in the past.

josh2007
06-10-2009, 04:59 PM
cpnav_living_avatars.xml file is located in the includes/xml directory. It still dont appear. I have not changed anything with my cpnav files before

Digital Jedi
06-10-2009, 09:12 PM
cpnav_living_avatars.xml file is located in the includes/xml directory. It still dont appear. I have not changed anything with my cpnav files before
What happened after you imported the product? Did the page refresh?

Mellymonster
06-10-2009, 09:35 PM
Oh this is super cool and I think this will be great addition to my forum. I will install it soon, just adding it to my list of things to install :) Thanks

Mellymonster
06-15-2009, 04:44 AM
I am having the same problem, I installed everything the way you said too, and I can't for the life of me get the living avatar in the admin cp... :( the page refreshed for me after I installed.

baophong
06-25-2009, 07:14 AM
I dont see living avatar in admin CP either !

Digital Jedi
06-25-2009, 04:29 PM
For those not seeing it in the Admin CP the only thing I suggest is to verify the cpnav_living_avatars.xml file uploaded to the right location. It needs to be in your includes/xml folder. Other than that, the only thing that can be done is to give me temp Admin and a temp FTP account so I can see why it's not showing.

vidan
06-30-2009, 03:36 AM
not work using opera

josh2007
07-05-2009, 02:39 PM
Trust me i have that file where you have it listed and its still not showing and i can give you temp admin or ftp

zombietom
08-04-2009, 10:51 PM
I love the ideal of this and all works well except the link in admin cp does not show up...any ideal why

zombietom
08-04-2009, 10:53 PM
i still clicked install because it does load the admin panel inside the forums...but i never got a link to show up in admincp...but i don't see a problem with it yet ..so all is good and thanks for this mod.

TheChaosFactor
09-25-2009, 08:30 AM
You CAN'T be serious? Everybody on my board was just making meez avatars and showing them off. These guys are going to flip when they find out it's a board feature now.

Thanks. This made my day, and I promise it'll delight the members of my forum to no end. :)

Digital Jedi
09-25-2009, 05:46 PM
You CAN'T be serious? Everybody on my board was just making meez avatars and showing them off. These guys are going to flip when they find out it's a board feature now.

Thanks. This made my day, and I promise it'll delight the members of my forum to no end. :)
Thank you. Be sure to mark as Installed so you'll get updates. Like the one I just made after you posted.

Digital Jedi
09-25-2009, 05:47 PM
***UPDATE***

Hopefully this update will correct the problems some of you were having with the Admin CP not showing up. All that's necessary for this update is to re-import the product XML file, remembering to allow overwrite.

peleh
09-26-2009, 07:02 AM
Not Found

The requested URL /forum/living_avatars/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

TheChaosFactor
09-26-2009, 10:23 AM
I still haven't managed to get this working in my adminCP... It's in includes/xml for certain.

I dunno what to do differently.

Digital Jedi
09-27-2009, 05:40 AM
Not Found

The requested URL /forum/living_avatars/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Er, if you don't have Living Avatars installed, how do you expect this add-on to work?


I still haven't managed to get this working in my adminCP... It's in includes/xml for certain.

I dunno what to do differently.
Did you allow overwrite when you imported the new product?

anthony parsons
09-28-2009, 11:16 PM
Yep, I also cannot see it in the ACP. I downloaded the latest version listed, put it into a new install of vb3.8.4 with LA installed, checked all the files, import, etc, not showing in the ACP still.

Must say though... still very cool and thank you very much for an excellent piece of work. The frontend alone is worth it, let alone once the backend functions correctly. Thanks and much appreciated.

Digital Jedi
09-28-2009, 11:18 PM
Yep, I also cannot see it in the ACP. I downloaded the latest version listed, put it into a new install of vb3.8.4 with LA installed, checked all the files, import, etc, not showing in the ACP still.

Must say though... still very cool and thank you very much for an excellent piece of work. The frontend alone is worth it, let alone once the backend functions correctly. Thanks and much appreciated.
If you give me temp Admin CP access, maybe I can see why people are having this problem. Or at least, rule stuff out. I'm pretty sure I checked everything, but sometimes it takes looking at it on different servers.

bada_bing
10-07-2009, 04:01 PM
I have just installed this and I am not getting the menu in my admincp as listed in the directions

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.

I have made sure the xml file is in the correct location

bada_bing
10-21-2009, 07:13 PM
I have just installed this and I am not getting the menu in my admincp as listed in the directions

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.

I have made sure the xml file is in the correct location

Can someone please help me please to how I can get this to show up in my admincp

bluej
11-21-2009, 09:24 AM
not showing in ACP, also found that when using the this mod below that the link will not show up in UCP

https://vborg.vbsupport.ru/showthread.php?t=170558&page=18

Digital Jedi
12-11-2009, 06:35 PM
Can someone please help me please to how I can get this to show up in my admincp
I don't know why it's not showing in some users ACP. As long as the files are where they are supposed to be, I don't see any reason why they shouldn't. But so far, no one having this problem has allowed me to look at their Admin CP to see if I can track down the problem.


not showing in ACP, also found that when using the this mod below that the link will not show up in UCP

https://vborg.vbsupport.ru/showthread.php?t=170558&page=18
Check to see if the modification uses it's own templates in place of default ones. That's the reason why I have two sets of instructions for people using the default templates or the GTUserCP - Enhanced USERCP Interface + USERCP Menu (https://vborg.vbsupport.ru/showthread.php?t=136321), which is essentially the same thing. You have to make the edits to whatever custom template the modification is using.

bada_bing
12-11-2009, 06:54 PM
Im getting frustrated because I have everything installed as noted and not using any of these mods GTUserCP - Enhanced USERCP Interface + USERCP Menu but yet I still cant get the links to showup in admincp ???????

Digital Jedi
12-15-2009, 04:19 AM
Im getting frustrated because I have everything installed as noted and not using any of these mods GTUserCP - Enhanced USERCP Interface + USERCP Menu but yet I still cant get the links to showup in admincp ???????
Well, the GTUserCP stuff doesn't have any effect on the Admin CP, so that wouldn't be the problem for anyone, installed or not.

Like I said, if you can give me temp access to your Admin CP and I can try and troubleshoot for you. At least, maybe, I can root out the cause problem. But until then, I can't even hazard a guess.

choccyclaire
12-17-2009, 09:45 PM
Hi there

The reason why it does not show up in member's admincp navigation is because there is a slight error in your cpnav_living_avatars.xml file. I have highlighted in purple what needs to be altered to correct this. :)

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="djs_la_usercp_admincp">
<navgroup text="Living Avatars" displayorder="185">
<navoption displayorder="10">
<phrase>la_acp_groups_and_items</phrase>
<link>../living_avatars/admin/groups_and_items.php</link>
</navoption>
<navoption displayorder="20">
<phrase>la_acp_install_new_items</phrase>
<link>../living_avatars/admin/install_new_items.php</link>
</navoption>
<navoption displayorder="30">
<phrase>la_acp_settings</phrase>
<link>../living_avatars/admin/settings.php</link>
</navoption>
<navoption displayorder="40">
<phrase>la_acp_theme</phrase>
<link>../living_avatars/admin/theme.php</link>
</navoption>
<navoption displayorder="50">
<phrase>la_acp_admins</phrase>
<link>../living_avatars/admin/admins.php</link>
</navoption>
</navgroup>
</navgroups>

Digital Jedi
12-18-2009, 06:14 PM
Hi there

The reason why it does not show up in member's admincp navigation is because there is a slight error in your cpnav_living_avatars.xml file. I have highlighted in purple what needs to be altered to correct this. :)

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="djs_la_usercp_admincp">
<navgroup text="Living Avatars" displayorder="185">
<navoption displayorder="10">
<phrase>la_acp_groups_and_items</phrase>
<link>../living_avatars/admin/groups_and_items.php</link>
</navoption>
<navoption displayorder="20">
<phrase>la_acp_install_new_items</phrase>
<link>../living_avatars/admin/install_new_items.php</link>
</navoption>
<navoption displayorder="30">
<phrase>la_acp_settings</phrase>
<link>../living_avatars/admin/settings.php</link>
</navoption>
<navoption displayorder="40">
<phrase>la_acp_theme</phrase>
<link>../living_avatars/admin/theme.php</link>
</navoption>
<navoption displayorder="50">
<phrase>la_acp_admins</phrase>
<link>../living_avatars/admin/admins.php</link>
</navoption>
</navgroup>
</navgroups>
Okay, see, this was fixed during the last update and I assumed that it had saved properly before I uploaded. Thank you, choccyclaire. If someone had given me ACP access, I could have tracked this down a long time ago.

Digital Jedi
12-18-2009, 06:51 PM
**Update**
This update should correct the Admin CP problem everyone was having. Update your files and re-import the product XML.

sidew
12-19-2009, 09:43 PM
when user go to http://www.site.com/forum/living_avatars.php its show blank pages only and nothing happens.

whats the problem?

Digital Jedi
12-20-2009, 12:14 AM
when user go to http://www.site.com/forum/living_avatars.php its show blank pages only and nothing happens.

whats the problem?
It probably means you're missing the living_avatar template. When you imported the product, it should have been added to each of your styles.

bada_bing
12-21-2009, 02:32 AM
**Update**
This update should correct the Admin CP problem everyone was having. Update your files and re-import the product XML.

Awe thank you that worked....

Taurus1
12-25-2009, 05:55 AM
Thank you very much for this. It works great, and I have the link in my ACP. The place the link is not showing up is in the UCP. When clicking the edit avatar the normal one is there, but it is not on the left side as you show on your screenshot. I dont have any of those Enhanced interface mods installed, and I did the template edit you instruct to do in the USERCP_SHELL template. Still nothing!

Can you please help me here! Thanks!

Digital Jedi
12-25-2009, 06:36 AM
Thank you very much for this. It works great, and I have the link in my ACP. The place the link is not showing up is in the UCP. When clicking the edit avatar the normal one is there, but it is not on the left side as you show on your screenshot. I dont have any of those Enhanced interface mods installed, and I did the template edit you instruct to do in the USERCP_SHELL template. Still nothing!

Can you please help me here! Thanks!
Do you have any modifications that make changes or add to the User CP installed on your forum besides this modification?

Redneck-Melly
02-10-2010, 10:38 PM
This is not working on my forum at all, the link in User CP works but my LA is not showing.

Digital Jedi
02-10-2010, 11:06 PM
This is not working on my forum at all, the link in User CP works but my LA is not showing.
Post a link and test account so I can take look at it.

Digital Jedi
02-10-2010, 11:35 PM
I'm able to view it just fine.
112072

I can't access LA's adminstrative features though. Double check those and see if maybe you've locked out a Usergroup your in from accessing LA, or maybe you have JavaScript disabled in your browser.

Redneck-Melly
02-10-2010, 11:58 PM
How weird, Java is enabled, so I'm not sure why...

Redneck-Melly
02-11-2010, 12:01 AM
Maybe its my browser because I see it fine in Google Chrome but I can't make it out at all in Opera.

Digital Jedi
02-11-2010, 12:11 AM
It appears there's a problem with iFrames and Opera. I think Dynamic Drive has an update for that somewhere, but I'll have to look into it.