PDA

View Full Version : Forum Staff like vbulletin.org


Nickbe
10-04-2007, 09:10 AM
I was wandering if anybody could make a forum staff section like the one here
https://vborg.vbsupport.ru/info.php?do=staff

DivisionByZero
10-05-2007, 10:59 AM
thats a souped up version of the rarely used file "showgroups.php". All you'd have to do is add your own custom sidebar (a chimpanzee could do this) and edit the userbits for the listings.

Lastly, just edit each usergroup for which ones you want to show on the page, and thats it.

About an hour's work.

Paul M
10-05-2007, 11:30 AM
Damn clever these chimpanzee's .... ;)

sholiz
10-06-2007, 01:45 PM
Could add extra profile fields for whatever info you want, and create a phrase for them, and do it that way to display the little data -- aswell as the online/offline image could be switched to a users avatar. Sounds like template editing more than plugins.

nexialys
10-06-2007, 02:35 PM
Paul, when MisterPop is talking about Chimps, he talk about the vb guys here... lol

lasto
10-06-2007, 04:05 PM
i was interested in this as well.May be easy to some if u know how to do it etc but remember we all aint coders :)

i was thinking more along the lines for staff to have say a couple of extra fields in profile and the text they entered there showed up on the staff pages.

Anyone want to tell us how to code it :)

* lasto hands out bananas

DivisionByZero
10-06-2007, 09:27 PM
nobody... NOBODY (well maybe except for a few people) uses showgroups.php. just edit the templates. its not that hard.

WhaLberg
10-08-2007, 08:54 AM
You are saying just edit the template but I am sure hundreds of vB owners here do not even know what template is.

Nickbe
10-08-2007, 10:25 AM
I have been coding for 2 months and I built an entire site that looks pretty good. I just have not done any vBull stuff I know its easy after you look at it and you see what needs to be done. The problem is I have not seen what needs to be done so if somebody can make the mod I will definitely look at the code and next time I will be on the other side saying how 'easy' it is.

edgecutioner
10-08-2007, 10:41 AM
You are saying just edit the template but I am sure hundreds of vB owners here do not even know what template is.

lol what a comment...

StuntFactoryX
10-08-2007, 11:02 AM
i wish the chimpanzis would let us in on it. looks sharp and i would direct people to it more if the standard vb wasnt so boring.

DivisionByZero
10-08-2007, 11:35 AM
if you guys buckled down and looked at the simple html templates, you could have had this done by now. its THAT easy!

For those of you who don't understand how it works:

The HTML templates are in the admincp under "styles". This particular showgroups.php page uses two templates: a shell and a userbit. the shell template creates the outer layer of the page while the userbit template repeats itself for every user record being listed.

Nickbe
10-08-2007, 03:17 PM
I have looked at simple HTML templates and I can design simple stuff. I tried addint to this but it simply does not work. What code do I use to bring up the users avatar for example? what code do I use to bring up the users profile, with the location, msn, skype info?

That is not simple code. Not for me atleast, that goes into the real of PHP with which I have limited experience.

therogueforums
12-09-2007, 08:53 PM
No, this isn't a simple code, at least not to those who don't know php or html all that well. I, for example, can add color to user names. I can even bold words! Huzzah! But that's the extent of it. Posting messages like:

"Zomg! it's soo easy! just change the codes, lawlz! uber h4x!"
...does absolutely jack for us coding fetuses. In what way is that helpful? None.

I, as well as MANY others, are very interested in this modification. If you aren't willing to make it for us, simply post that, instead of trying to belittle those who don't know how to do it.

Lynne
12-09-2007, 09:22 PM
I'm not interested in this one, but I can point you to the template. The one the shows the mod info over and over is showgroups_usergroupbit. I pasted it below and bolded some of the fields so you can see what is used. Probably to find the other fields you may use, look up the showgroups.php page and take a look at the query. It looks like many of those are columns in the user table and usertextfield table and usergroup table. If you have a test site, I suggest you play around with it on there.

<tr>
<td class="$bgclass">$user[onlinestatus]</td>
<td class="$bgclass">
<a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
<if condition="$show['location']"><div class="smallfont" title="$vbphrase[location_perm]">$user[location]</div></if>
</td>
<if condition="$showforums">
<td class="$bgclass"><div class="smallfont">$user[forumbits]</div></td>
</if>
<td class="$bgclass" nowrap="nowrap">
<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="<phrase 1="$user[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if>
<if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/email.gif" alt="<phrase 1="$user[username]">$vbphrase[send_message_via_email_to_x]</phrase>" border="0" /></a></if>
</td>
</tr>