PDA

View Full Version : showgroups mod or script


Alexey?
02-11-2009, 09:43 AM
Hey everybody
A few days ago i found a forum that his showgroups desinged very nice,
this is whe website
http://www.fxp.co.il/showgroups.php
Do you know how to do that?
What i mean is the administrator wiil have a small box.
and the other groups will have bigger and smaller
Do you know how to do that?

Marco van Herwaarden
02-11-2009, 09:53 AM
Looks pretty default to me.

More members or longer data in a group will grow/shrink the boxes as they are not set to a fixed length.

Alexey?
02-11-2009, 10:08 AM
i didnt meant that.
what i mean is the size of the "tcat" \header for each group name

Alexey?
02-11-2009, 03:11 PM
any one?

Lynne
02-11-2009, 04:25 PM
It seriously looks default to me. I compared it to my usergroups pages and the height of the headers looks the same.

Alexey?
02-11-2009, 05:55 PM
but cant you see the diffrent in the group name?
each gorup has a deiffrent size of box.
the widht size

Lynne
02-11-2009, 07:04 PM
The width? I thought when you mentioned the tcat, you meant the height of that row.

I suppose you could set the width of the table based on the usergroup or something - I think you would do it in the showgroups_usergroup template. (if $user['groupid'] is equal to XXXX then 90%, if $user['groupid'] is equal to YYYY then 80%, etc)

(Do you really think that looks nice? My first thought was that the guy did something wonky to his page when he centered it and threw the box width off cuz I think it looks 'wrong' when things are different widths.)

Alexey?
02-12-2009, 03:49 AM
In my country is look very good.
But i cant understand where put the code you gave me.
Whet i put it in showgroups_usergroup template it make an error

Lynne
02-12-2009, 04:22 AM
Paste the code you tried here and we'll see if we can see what is wrong.

Alexey?
02-12-2009, 09:07 AM
(if $user['6'] is equal to XXXX then 90%, if $user['8'] is equal to YYYY then 80%, etc)
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3">$user[title]</td>
</tr>
<tr>
<td class="thead">&nbsp;</td>
<td class="thead" width="100%">$vbphrase[user_name]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td>
<if condition="$show['contactinfo']"><td class="thead">הודעה פרטית</td></if>
</tr>
$usergroupbits
</table>
<br />


this is my showgroups_usergroup template
and my error is this
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/agooz2/domains/mydomain.com/public_html/includes/adminfunctions_template.php(3929) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Marco van Herwaarden
02-12-2009, 09:12 AM
What is this line:
(if $user['6'] is equal to XXXX then 90%, if $user['8'] is equal to YYYY then 80%, etc)
It is for sure not valid HTML.

Alexey?
02-12-2009, 09:45 AM
its the line that "Lynne" gave me

Marco van Herwaarden
02-12-2009, 11:12 AM
Lynne never gave a line, she wrote down what you would need to check in an if-statement.

Alexey?
02-12-2009, 12:34 PM
So where am i check this?
and i dont think you understant me courect.
lets try again step by step.
how can i do for each gorup her owe widht of name?
like super modetaror will be in 50% widht
and modetarors will be widht 60% widht
and keep it like that

tsach
02-12-2009, 01:07 PM
I also need it, I could not do it, I'd be happy to help also.

Lynne
02-12-2009, 02:08 PM
I was simply writing what the logic would be. I figured you would write out the condition yourself.
This would be the condition:
<if condition="$user['usergroupid'] == '6'">90%<else /><if condition="$user['usergroupid'] == '8'">80%<else />100%</if></if>

And put it in place of 100% in the table width at the top of the showgroups_usergroup template. If you have more problems, please post exactly what you did.

Alexey?
02-12-2009, 02:32 PM
TNXXXXXXXXXXXXX
thank you again.
this is works.
you can lock the thread