vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=235326)

Sarcoth 03-11-2010 07:29 PM

4.0.1 is now available. Please read the instructions before you upgrade. There have been a LOT of changes to the code. Let me know if there are any problems with the update. Please take note that some options have not been added back yet. I'll readd them if more people show interest. Feel free to ask questions or request code feedback. I will only respond to those that have clicked installed. Also, if the requests are too complex, I may not be able to help you till I have more time (summer). I'll do my best though.

Next version: The goal for the next version is to further improve sorting, add more column options, and to finally remove the requirement of editting usergroups. The last one of the list there is something I've been trying for a couple months now and I just can't figure out how to move it to the Settings/Options area.

I'd like to thank everyone that has clicked install.

Sarcoth 03-12-2010 12:57 PM

I found something I missed when converting the code to vB4. This is causing a problem when clicking on the username links. To fix it, you'll need to go into the showroster_userbit template.

Find: {vb:raw userinfo.onlinestatus}&nbsp;&nbsp;<a href="member.php?$session[sessionurl]u=$userinfo[userid]">{vb:raw userinfo.musername}</a>

Change to: {vb:raw userinfo.onlinestatus}&nbsp;&nbsp;<a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>

I'll get the zip file updated and uploaded. Now that I notice, apparently the online status indicator isn't working either. I'll try to get that fixed in the next version.

Sarcoth 03-14-2010 05:34 AM

I'm putting the updates for the next version in the 3rd post: https://vborg.vbsupport.ru/showpost....87&postcount=3.

Once enough people show interest, I'll go ahead and get the new version posted. Otherwise, I'll do it as soon as I have everything I want added.

juan71287 03-14-2010 01:24 PM

this looks cool thanks a lot want it :)

k10i 03-14-2010 01:44 PM

how replace join date on last visit\activity?

Code:

<vb:if condition="$show[coldatejoined]"><td class="{vb:var bgclass}" nowrap="nowrap" align="center">{vb:raw userinfo.lastvisit}</td></vb:if>
Result:

field joined date, text in field 1268459774

kevius 03-14-2010 05:01 PM

Great ! i'm very happy with this mod. Hope to see 4.0.2 soon !!

Sarcoth 03-15-2010 01:21 AM

Quote:

Originally Posted by k10i (Post 2003413)
how replace join date on last visit\activity?

Code:

<vb:if condition="$show[coldatejoined]"><td class="{vb:var bgclass}" nowrap="nowrap" align="center">{vb:raw userinfo.lastvisit}</td></vb:if>
Result:

field joined date, text in field 1268459774

Try changing the {vb:raw userinfo.lastvisit} to {vb:raw userinfo.datejoined}. I'll tell you for sure tomorrow if that doesn't work. I'll get it added in the next version though so you don't have to edit anything. Sorting won't work for it though.

Front Range 4x4 03-15-2010 06:02 AM

Nice job Sarcoth! Installed, any tips on getting the users avatars to display?

k10i 03-15-2010 08:48 AM

In it that and the problem - me is not necessary registration date in a roaster. It is necessary for me, that date of last visiting of a forum was in the field deduced

If try {vb:raw userinfo.datejoined} registration date is deduced normally.

Sarcoth 03-15-2010 12:34 PM

@ k10i - I apologize, but I don't understand what you are saying.

@ Front Range - I'll work on that today and if I get it figured out, I'll let you know what to do.

Sarcoth 03-15-2010 03:08 PM

Quote:

Originally Posted by k10i (Post 2003948)
In it that and the problem - me is not necessary registration date in a roaster. It is necessary for me, that date of last visiting of a forum was in the field deduced

If try {vb:raw userinfo.datejoined} registration date is deduced normally.

I see what you were asking now. You want to have Last Visit displayed. Use the following:

{vb:raw userinfo.lastactive}

I have it in the next version already.

Sarcoth 03-15-2010 03:37 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2003899)
Nice job Sarcoth! Installed, any tips on getting the users avatars to display?

I have the Profile Pics and Avatars now working, but there was a lot of code changes to the php file involved. Rather than give a walk through on how to do it all, I'd rather wait until the new version is released. There are still a lot of things I'd like to update, but I may release it tonight or tomorrow. If not, Friday will be the target release day. Why not Wed or Thurs? I have a couple tests those days and I will be busy studying and taking tests.

Front Range 4x4 03-15-2010 05:07 PM

I think everyone would rather wait until you're ready to release the update. Thanks for your effort.

CoZmicShReddeR 03-16-2010 08:24 AM

I think what your doing is totally awesome!

I tried this update for some reason nothing is working with the styles...

But then I might have goofed something... I do have profile fields that have the same numbers. Will look into it more later today...

Sarcoth 03-16-2010 01:36 PM

@ Cozmic - That's the first time I've heard of it not working. Let me know if you continue to have issues and let me know what you've done. Double check my instructions too.

CoZmicShReddeR 03-16-2010 07:34 PM

Template in the database from Show Roster 4.00 didn't uninstall had to use phpmyadmin and remove it...

There was other information that that didn't uninstall from 4.00 had to remove from database as well...

I think it was a glitch from the older version with the group permissions not being uninstalled...

Found a blank permissions row in user groups add group showroster in admincp
under it was the show roster permissions

After I wiped everything from the database I cleared the catche and reinstalled worked beautiful!

Great job on this your surely headed in a great direction!:up:

k10i 03-16-2010 08:19 PM

Quote:

Originally Posted by Sarcoth (Post 2004127)
I see what you were asking now. You want to have Last Visit displayed. Use the following:

{vb:raw userinfo.lastactive}

I have it in the next version already.

thx, all work )

Sarcoth 03-16-2010 11:35 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2004987)
Template in the database from Show Roster 4.00 didn't uninstall had to use phpmyadmin and remove it...

There was other information that that didn't uninstall from 4.00 had to remove from database as well...

I think it was a glitch from the older version with the group permissions not being uninstalled...

Found a blank permissions row in user groups add group showroster in admincp
under it was the show roster permissions

After I wiped everything from the database I cleared the catche and reinstalled worked beautiful!

Great job on this your surely headed in a great direction!:up:

Ahhh, did you try to revert the template (That's in Step 0)? That's the way to remove your edited templates without having to go into the DB. I'm glad you got it working though.

Quote:

Originally Posted by k10i (Post 2005005)
thx, all work )

NP.

Sarcoth 03-17-2010 01:37 PM

4.0.2 has been released. Let me know if you encounter any problems upgrading.

If you are upgrading from 4.0.0, you need to uninstall everything first and revert your templates if you made changes. Remember to back everything up first (templates & php file). Upload the new files (php and bitfield.xml) and install the product.xml.

If you are upgrading from 4.0.1, you probably don't need to uninstall everything. Backup your templates if you made changes though. Upload the new php file; no changes to the bitfield file.

There are a lot of settings that you can change in the ShowRoster Settings so enjoy. Remember to adjust the Usergroup setting so the correct usergroups can view the roster. I forgot to add permissions for the Roster tab AGAIN so I'll try to add that next time. Basically, all usergroups can see the tab, but only the usergroups you add can see the page. I'm going to try to also give you more ability to control where the tab is displayed in the next version. Eventually, I also want to control the sorting from the mini menu where you see Default Sort, but I'm still not quite sure on how I'm going to do that yet.

I have a lot of things I'd like to do, so I'll continue upgrading this as time permits. I'll get back to work on upgrades Friday. I have a test tomorrow though so back to studying. Feel free to ask questions and I'll answer them the best I can.

Oh, and the PHP file is a little dirty. I haven't removed unneeded code this version because I want to make sure everything is working fine before I start removing things. I put // in front of those items so it won't hurt or slow down anything.

Sarcoth 03-19-2010 01:55 PM

1 Attachment(s)
I had a major breakthrough yesterday; the displaygroups option finally works which will allow you to avoid editing each usergroup. The install now allows you to make all setting adjustments from the ShowRoster Settings page.

Since it is only one update, I'm not going to release a package for it yet, but if you are interested, I'll attach a sneak preview of the two files here. If you use these, please remember to delete the bitfield_showroster.xml file in the includes/xml directory (it is no longer needed). You'll also have to do an uninstall this time around to remove the showrosteraddpermissions column in your usergroup table.

Please forgive the code mess in the php file. I usually don't clean up things until it is ready for full release.

Enjoy!

EDIT: xml removed and added back 2 posts down.

CoZmicShReddeR 03-19-2010 04:08 PM

Well 4.02 is sweet!

I did try to load the pre-release product xml for 4.03 said there was an error "XML Error: Invalid document end at Line 412"

But there were only 322 lines of code.

Sarcoth 03-19-2010 05:05 PM

1 Attachment(s)
@ Cozmic - I'm not sure why you are getting that error. I just did a full uninstall of the mod and then a fresh install with no errors.

I just finished adding the permissions to the roster tab, so I'll provide a fresh file here. The showroster.php file isn't changing so I won't add that again (look up 2 posts). I'll gladly put my time into figuring out the problem you are having since I'd hate to see that happen during the release. Try the new file and describe everything in detail to me.

CoZmicShReddeR 03-19-2010 05:14 PM

Yeah silly me I tried to install the showroster.php wasn't paying attention!:eek:

Sarcoth 03-19-2010 05:17 PM

ROFL. Good one. :p

CoZmicShReddeR 03-19-2010 06:10 PM

Ok so the next release we will be able to chose the display groups order?

Also I had to revert from the test 4.03 because it wasn't allowing me to add a group to show roster the input was there but the field there was no text...

Sarcoth 03-19-2010 06:43 PM

@ Cozmic - Actually, I don't have a clue on how to setup a display order for the usergroups. The display setting I added won't care what order you type the numbers, it only sees the numbers as the usergroups you are allowing to be displayed.

So, that means you no longer control that setting from the usergroups area. Just type in all the usergroups you want on the roster in the ShowRoster Settings options area:
Usergroups displayed on the roster (comma separated ID list). Example: 19,13,24,20,17,18

I probably should have put them in numerical order, but that's how I added them as I went.

It is the 3rd setting down on the list. If you remove the bitfield xml file in the includes/xml folder, the input line in the edit usergroups area should be gone.

ViktorDA 03-19-2010 07:52 PM

Thank you! This is wonderful!

I turned on the avatar, but the picture does not appear avatar - help.
Can I do this: in Showroster included only one group, but the result Showroster can watch all the groups?

Sarcoth 03-19-2010 07:57 PM

@ Viktor - Click install please.

Another setting somewhere else must be interfering with your avatar selection. I just turned mine on and it works fine. I'll go install this on my operation site so you can see what it looks like.

I'm not sure what your 2nd question is asking though.

Front Range 4x4 03-19-2010 08:14 PM

I installed the update but don't get the avatar or last visited. :(

ViktorDA 03-19-2010 08:20 PM

Quote:

Originally Posted by Sarcoth (Post 2006688)
@ Viktor - Click install please.

Sorry. Fixed.

Quote:

Originally Posted by Sarcoth (Post 2006688)
I'm not sure what your 2nd question is asking though.

Not quite understand ... Can or not?

Sarcoth 03-19-2010 08:21 PM

@ Viktor - Okay, it's installed. A bit crowded because of everything I have on, but it is working. I think I know the problem though because it didn't work for me at first either. I had all my templates edited from the previous version. You need to click on each of your edited showroster templates and then click on revert (to the right). When you do that, they will revert over to the newer version.

BEFORE you do that though, please remember to backup each of your templates. Copy/Paste them to a notepad or something. Do this in case you need to customize the new ones for some reason.

Let me know if that wasn't it. But, to be honest, I don't know what else it could be since mine worked. Here's the link to my roster:

http://sacredhaven.org/forumsh/showroster.php

Sarcoth 03-19-2010 08:23 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2006690)
I installed the update but don't get the avatar or last visited. :(

Same to you Front Range. Make sure the templates are reverted. :) Backup prior if you need to. I'm heading home now so I'll check back on your status later tonight.

Sarcoth 03-19-2010 08:27 PM

Quote:

Originally Posted by ViktorDA (Post 2006694)
Not quite understand ... Can or not?

I don't understand your question.

ViktorDA 03-19-2010 08:30 PM

Quote:

Originally Posted by Sarcoth (Post 2006695)
Here's the link to my roster:
http://sacredhaven.org/forumsh/showroster.php

Yes ... Beautifully ...

You do not know how to configure URL ShowRoster of vBSEO to display a friendly URL?

ViktorDA 03-19-2010 08:40 PM

Quote:

Originally Posted by Sarcoth (Post 2006699)
I don't understand your question.

Forgive me, I'm bad at english. :(

I want to include ShowRoster only for one group of users. What would have looked ShowRoster all groups. Now ShowRoster sees only one group that participates in ShowRoster

Sarcoth 03-19-2010 08:58 PM

Quote:

Originally Posted by ViktorDA (Post 2006706)
Forgive me, I'm bad at english. :(

I want to include ShowRoster only for one group of users. What would have looked ShowRoster all groups. Now ShowRoster sees only one group that participates in ShowRoster

I figured English was not your primary language, so no worries. I will try to help, but I still do not understand. I am sorry. :(

If I were to guess what you want. You want to display only one usergroup on the roster but you want to give access to all usergroups. Let me know if you understand that and whether that is what you want or not.

Front Range 4x4 03-20-2010 01:55 AM

Quote:

Originally Posted by Sarcoth (Post 2006696)
Same to you Front Range. Make sure the templates are reverted. :) Backup prior if you need to. I'm heading home now so I'll check back on your status later tonight.

I've reverted templates, deleted files, re-installed and can't get anywhere. Not sure why but I might have modified too many things to expect it to work. :o

I'm not even thinking of uninstalling because it's doing what I need wonderfully, just thought the avatar, join date and last visited would be nice.

Sarcoth 03-20-2010 06:28 AM

FrontRange - I'll take a look at your templates if you want. Either post them here or send me a PM with a login to your forums (w/template admin access).

In other news. I just successfully got a couple new features working. The ability to set the default sort (ASC or DESC) for each column and whether the roster is sorted by groups or not. I haven't added it for all columns yet, but if you want an idea of what I mean, check out my roster. If you click on the Status sorter at the top, you'll see an example of sorting without groups. If you click on the Character Name sorter, you'll see an example of sorting DESC (descending or reverse).

http://sacredhaven.org/forumsh/showroster.php

Now, for the big question. I'm noticing that I keep adding more and more options to the settings page. My question is, is it too much? I want to make it as customizable as possible, but the settings page is getting huge. What do you think? What do you want?

I'm off to bed!

ViktorDA 03-20-2010 07:36 AM

Sarcoth, I figured out the groups!:o

Left open the question of avatars - they are not, do not appear in ShowRoster :(
I reinstalled modes, but it did not help. Avatars always included.

Sarcoth 03-20-2010 01:36 PM

Does anyone have the avatar's working? If not, can someone set me up with access to their site. I want to figure out what is wrong. I've installed mine over and over and everything works fine on my test site and home site.


All times are GMT. The time now is 09:45 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.01560 seconds
  • Memory Usage 1,842KB
  • 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
  • (2)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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