PDA

View Full Version : online or offline in member info how to achieve?


Wajow-community
11-05-2013, 11:36 PM
Hi,

What I have seen on another vbulletin forum is that you are in the user info status offline or online are red in color, offline and online green. Seemed to me very useful instead of just an icon but also a text in the userinfo both show thread as member info. I think to myself User Profile Field to enter this?

But my question is how is this possible to achieve? 've Looked through the source code and saw this:

<dl class="userinfo_extra">
<dt class="pbit1"> Status </ dt> <dd class="pbit2" style="color:#FF0000"> Offline </ dd>

what can I do to achieve this?

thanks

ozzy47
11-05-2013, 11:40 PM
Try this search link, https://vborg.vbsupport.ru/search.php?searchid=21402495

Wajow-community
11-05-2013, 11:43 PM
Try this search link, https://vborg.vbsupport.ru/search.php?searchid=21402495

I have see butt its only with button/images i want only text.. for example look this:

http://forums.hababam.nl/showthread.php?t=170052&p=6950426#post6950426

You see status: Offline of a user howe to set like that?

ozzy47
11-05-2013, 11:49 PM
Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

<vb:if condition="$onlinestatus==0">Offline
<vb:elseif condition="$onlinestatus==1" />Online
<vb:elseif condition="$onlinestatus==2" />Invisible</vb:if>

Wajow-community
11-05-2013, 11:51 PM
Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

<vb:if condition="$onlinestatus==0">Offline
<vb:elseif condition="$onlinestatus==1" />Online
<vb:elseif condition="$onlinestatus==2" />Invisible</vb:if>

thnx!!

en with color where to set the color code? End Status: like the link for example i give?

ozzy47
11-05-2013, 11:55 PM
This should do it, but it is untested.

<vb:if condition="$onlinestatus==0"><span style="color: green;">Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Invisible</span></vb:if>

Wajow-community
11-05-2013, 11:58 PM
This should do it, but it is untested.

<vb:if condition="$onlinestatus==0"><span style="color: green;">Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Invisible</span></vb:if>

Thnx for youre help..

This is what i search butt i want to set it under the avatar like this look the Status of the member:

http://forums.hababam.nl/showthread.php?t=170052&p=6950426#post6950426

i want it like this

Status: Offline under the avatar above the registration time.

--------------- Added 1383721746 at 1383721746 ---------------

nobody?

--------------- Added 1383754986 at 1383754986 ---------------

where can i set this?

--------------- Added 1383772726 at 1383772726 ---------------

who can help me with this???

Wajow-community
11-08-2013, 10:38 AM
thnx!!

en with color where to set the color code? End Status: like the link for example i give?

can sameone help?

Krusty1231
11-08-2013, 07:14 PM
In your postbit legacy find:

{vb:raw post.onlinestatus}

and place it where you want it.

For exaMPLE:

Find:

{vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>

put the {vb:raw post.onlinestatus} under that.

You might have to play with to find exactly where you want it.

Wajow-community
11-08-2013, 11:39 PM
I dont get it like tha forum what i have give link of..

I want with Status: online

ozzy47
11-08-2013, 11:44 PM
Use the code I provided and add Status: before the other text, Online, Ofline Invisible.

Wajow-community
11-08-2013, 11:51 PM
Use the code I provided and add Status: before the other text, Online, Ofline Invisible.

Yess butt its nearly to offline like this

Status:Online

I want Status: Online


Just like how you see it on the site forum that i have gived

Look pleasse at: http://forums.hababam.nl/showthread.php?t=156543&p=6954721#post6954721 then you see what i mean.

ozzy47
11-08-2013, 11:54 PM
Paste the code you added to the template please.

Wajow-community
11-09-2013, 12:04 AM
Paste the code you added to the template please.

I have do that, butt it's show like here nearly the nickname online

I want it in the userinfo_extra:

Status: Online/offline/inviseble
Joined: 09-11-2013


etc..

ozzy47
11-09-2013, 12:09 AM
Then I think you are looking for a mod, not just what you originally asked for, https://vborg.vbsupport.ru/showthread.php?t=274568&highlight=postbit

Wajow-community
11-09-2013, 12:18 AM
Then I think you are looking for a mod, not just what you originally asked for, https://vborg.vbsupport.ru/showthread.php?t=274568&highlight=postbit

No thats not what i search its change the info in showthread.

ozzy47
11-09-2013, 12:40 AM
Well you have managed to completely confuse me. I answered your original question, have provided you with a link to make the postbit look like the link you posted.

Maybe someone else can figure out exactly what it is you want, or possibly if you could post a mockup in photoshop of how you want it to look on your site.

Wajow-community
11-09-2013, 12:59 AM
Well you have managed to completely confuse me. I answered your original question, have provided you with a link to make the postbit look like the link you posted.

Maybe someone else can figure out exactly what it is you want, or possibly if you could post a mockup in photoshop of how you want it to look on your site.

It's actually quite simple for scripters what I want. I use a standard style vbulletin 4.2.1.

I would like the forum I just gave the left of the:

Status: Online / offline under the avatar above the message counter t forum

So just the bit of text: Status: few spaces such as:

Joined date: 09-11-2013

with next line in green color or red status please visit: http://forums.hababam.nl/showthread.php?t=170682&p=6954085 # post6954085 then you will see clearly Status: online

Then you see the status what I mean and hope someone finally understands this.

ozzy47
11-09-2013, 01:04 AM
Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

<vb:if condition="$onlinestatus==0"><span style="color: green;">Status: Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Status: Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Status: Invisible</span></vb:if>

The above will give you the text you want. To move it, follow what Krusty said.

quote=Krusty1231;2459187]In your postbit legacy find:

{vb:raw post.onlinestatus}and place it where you want it.

For exaMPLE:

Find:

{vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>put the {vb:raw post.onlinestatus} under that.

You might have to play with to find exactly where you want it.[/quote]

Wajow-community
11-09-2013, 01:09 AM
Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

<vb:if condition="$onlinestatus==0"><span style="color: green;">Status: Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Status: Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Status: Invisible</span></vb:if>

The above will give you the text you want. To move it, follow what Krusty said.

quote=Krusty1231;2459187]In your postbit legacy find:

{vb:raw post.onlinestatus}and place it where you want it.

For exaMPLE:

Find:

{vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>put the {vb:raw post.onlinestatus} under that.

You might have to play with to find exactly where you want it.[/QUOTE]

Eg Member since: and the few spaces organized?

{vb:raw post.onlinestatus} need a script text before and after because I have tried to post it but can not get it as the site forum that I gave as an example

ozzy47
11-09-2013, 01:19 AM
So now we are back again to the point that you want more than what you originaly asked for. If you use the mod I linked you to in post,#15, you can use that as a starting point, and customize it to suit your needs.

If that will not work, or you don't have the knowledge to modify it, I would suggest posting in the paid section, to have someone customize your postbit to suit your needs.

Wajow-community
11-09-2013, 01:50 AM
Ok thnx for helping gonne contact my scripter.