![]() |
I have tried removing forum, but the directory "images" is within it, so its needed in order to display.
May I ask, why are you not so keen on images in this hack? I mean your hack is brilliant but I wanted to add the IM icons and an xfire icon too which of course requires an image as well as makes it look better than just pure text. However I would understand the authors wish if so... EDIT: After including the full link to the image and not including "$post[field10].gif" the image displayed. Any ideas if that code mentioned above is incorrect or is unsupported? |
I changed it to orderid, and all it does is put every user in one group and messed it all up =/
|
When researching further into this, I believe that a particular variable needs to be customised in the showroster.php file.
Only thing is, looking at the code im not sure where it is located. Could this be something to do with the other issues above also? |
moo2.p - By keen, I didn't mean I wasn't interested in putting images in it. I was hoping to eventually do that as well. I just meant I haven't tried it yet so I didn't know an answer. I'll see what I can find out about the $post variable. I haven't used it before so not sure what it is. Can you tell me another page where it is used?
hellbringer80 - What table is the orderid located in? |
Sorry, I didnt understand properly before. Ok well.. This variable will post a particular field or image so to speak like $post[field10] etc.
The variable is also used in templates such as "postbit_legacy" Do a search to see the uses, but here are some examples: $post[musername] $post[usertitle] $post[avatarurl] $post['joindate'] $post[signature] Hope this helps... Out of interest, do you have xfire? I would be happy to help you on this one if needed :) Regards Matt |
orderid is int he groups table
|
moo2 - NP. Sadly, no chat programs here at work and I really don't use any of them cept for MSN a couple times a week. I rarely have time for them since I'm usually playing Vanguard when I'm at home. :) I need to work today, so not sure I'll get to work on this much more till tomorrow. I'll be sure to check into it though.
hellb - I'm guessing you mean the usergroup table right? Not sure why it isn't working. Can you export your usergroup table (.sql) when you get a chance and send it to me. You can rename it to .txt. I think that will help me figure this out. I'll look into it more today if I get the time else tomorrow. |
Ok no problem Sacroth. Keep me informed on how it goes as I think adding images to it would be a good step for a clan roster.
Thanks for your time |
Quote:
|
field10 is set to the country of a user. Like UK, Germany, France etc
This is linked to a image (.gif) on the server which means using $post[field10].gif will result in it displaying the members country flag on the roster :) |
Quote:
Edit: Figured it out...see two posts down. |
Ok ive managed to understand the variant and add images. This is my example below:
www.sog-team.co.uk/forum/showroster.php This is the information contained in the templates: showroster_usergroup Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> Code:
<tr> Hope that helps |
OK...I figured it out.
I had ALL of my usergroups included on the View Forum Leaders. (Namely because I want all my users to show on this special page if they filled out the custom field irregardless of their usergroup). Problem is, there's too many to list...so the white page. When I took the biggest usergroup off of the View Forum Leaders...the page started displaying perfectly. So...two things:
|
Quote:
Meaning. If Germany is their country, are you referring to Germany.gif? EDIT: I just saw your second post. That's exactly what I was going to be suggesting as long as the files were in the same format as the country name. Otherwise, I was going to put some code in the PHP file that would make the whole word lowercase. Glad you got it working. |
Quote:
Quote:
Quote:
|
Thanks Sarcoth,
I'd like it to only show users who have entered anything into field5. (so if nothing was entered in field5, they would not be included) Thanks a lot for your assistance! |
Quote:
Code:
if (sizeof($groupcache) >= 1) Code:
if (sizeof($groupcache) >= 1) |
I managed to get the users avatar working in mine using https://vborg.vbsupport.ru/showthread.php?t=83150
I am using this for more of an "About Us" page http://www.goblinarmy.com/community/aboutus.php My showroster_usergroup Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> My showroster_usergroupbit Code:
<tr height=150> |
That great SgtOliver. The funny thing is I have been working on it since yesterday and just got it work about an hour ago but went out to lunch. I'll post my changes here for you anyhow. Use them if you are interested.
Open the showroster.php file. *************************** Find: Code:
require_once('./global.php'); Code:
require_once(DIR . '/includes/functions_user.php'); Find: Code:
($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false; Code:
$avatarurl=fetch_avatar_url($user[userid]); Add a column for the Avatar header to your showroster_usergroup template. Code:
<td class="thead">Avatar</td> Add a column for the Avatar image to your showroster_usergroupbit template. Code:
<td class="$bgclass">$avatarimage</td> You would also have to make some table adjustments (ie. colspan) to get it all even again. The spacer.gif image I am using is attached if you want to use that as well. That's it. |
Thanks Sacroth.
I have another question, how do you create the title for the page like the one in your demo "Clan Roster"? Ie the title you have "Sacred Haven - Vanguard Guild Roster" |
I updated the hack to version 1.02 for anyone that is interested.
I am planning to add the ability to sort the columns but I'm concerned what effect that will have on the current design. I like the current usergroup/user look of it. If that doesn't flow with sorting, I may have to make a separate hack for it. BTW, please pay close attention to the fact that I changed the names of some variables. You do not need to do this upgrade if you are happy with your current version. If you update, follow all the steps over again so you don't miss anything. Thank you to all those that have installed this hack. |
Great "First Install" :D
|
Quote:
Code:
$stylevar[htmldoctype] |
can u make it where its shows differant groups than forum leaders?
|
Quote:
Also, check back to the following post in case that answers your question. https://vborg.vbsupport.ru/showpost....6&postcount=30 |
Quote:
|
the new mod doesnt seem to be functioning Sacroth. The page doesnt display (ie the usergroup bits) :S
|
Oh. Yes, it is possible. That is something I am working on as well. I forgot to mention that in post #61. My goal is to steer away from the showgroups and include a new group. I could probably get it working with a few code adjustments in the .php file, but I'd rather get it done the right way. Sounds like something I should focus on next and just put sorting off a little longer.
I'll send out an update message when I get that one done. |
Quote:
|
Quote:
thanks for the fast reply |
Quote:
Only problem is it still crashes (white screens) when I try to include all usergroups. Hmmmm....we'll get it figured out! |
Quote:
|
Pay close attention to the following changes if you do upgrade to the new version. I would recommend just going through all the steps again and copying the updated templates.
Templates were renamed:
Variables in templates were renamed:
Sorry for any confusion but I'm trying to fork away from the showgroups page. |
Quote:
Unfortunately, still getting the white screen of death on large usergroups....my main registered users group (which is the one it fails on) only has around 1,800 users. Any ideas? |
...also...(sorry for so many requests)
Since the php file changed, could you show what edits I would need to make to only show users who have filled out custom profile field 5 again (I tried myself, but could not make it work) |
Quote:
1,800 users. Really not sure why it would be failing. I'll see if I can come up with a way to page it out for you, but that is probably a bit above my knowledge right now. I'll see if I can figure it out. Quote:
Find: Code:
foreach ($users AS $user) { Code:
foreach ($users AS $user) { |
Thanks Sarcoth....
As for the large usergroups... I'm wondering if something similar can be done as what was with the Timeslip database. It created custom profile fields for all users and then only showed users who had them filled out. Not sure how they got around the white screens, but perhaps someone can chime in? Again...thanks for all of your help. You truly are a great supporter of your product! |
ok what code should I replace to pick the usergroups manually, is this possible. Would be much easier for me as I need to have multiple rosters.
|
Quote:
|
Quote:
Quote:
|
All times are GMT. The time now is 05:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|