Adding online/offline message in signature

How-to's, little tricks, tutorials, code examples (snippets) and read-me's.

Re: Adding online/offline message in signature

Postby stitch626 » 24 Mar 2008, 06:10

Ok Anne,
I will take a look at the file and get back with you.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7


Re: Adding online/offline message in signature

Postby stitch626 » 24 Mar 2008, 09:53

Ok Anne,
I took your file and loaded to my testboard and everything works just fine so I think your problem is in the custom profile filed itself. Go back over the instrctions portion on how to set up the profile fields in your ACP. Make sure you have configured them to show on Viewtopic & profile. Make absolutely sure that you are calling your profile filed names correctly. Also make sure you have purged your cache after making any template edits.

Hope this helps. If you are still having problems please let me know.
BTW those END IF statements are fine how you have them. I didn't realize at first that you were using prosilver.

@poppertom69,
Thanks, I appreiciate the comment. I think I do alright with the template stuff, it's the php that kills me. :grin:
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Adding online/offline message in signature

Postby stitch626 » 19 Jul 2008, 21:24

Updated first post.
Added instructions for Prosilver and also added instructions to hide the unnecessary extra fields when viewing a users profile.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Adding online/offline message in signature

Postby sunka » 04 Aug 2008, 14:00

Hi,
I am little confused...
For Prosilver instructions you have 1 FIND, and after that 2 AFTER ADD
What does it means?
Second AFTER ADD i add after what?

Offtopic: is there code to show font colour on replay, like is on this forum?
sunka    
Crewman
Crewman
 
Posts: 9
Joined: 07 Apr 2008, 09:39
Gender: Male
phpBB Knowledge: 2

Re: Adding online/offline message in signature

Postby stitch626 » 04 Aug 2008, 14:22

Hi there sunka,
I understand why you are confused. I had a little extra code in the instructions. I updated the first post.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Adding online/offline message in signature

Postby beggers » 05 Aug 2008, 19:23

Stitch, I had one question before I started installing this. Can the user apply any formatting commands to the text that appears in the sig? Where does the text actually appear?

The version I had in pbpbb2 allowed you to place a marker called [STATUS] anywhere you wanted it in your sig. You could surround that text with bold, italic, size, etc.
User avatar
beggers    
Supporter
Supporter
 
Posts: 166
Joined: 25 Jan 2008, 23:46
Favorite Team: Oakland Raiders
Gender: Male
phpBB Knowledge: 4

Re: Adding online/offline message in signature

Postby stitch626 » 05 Aug 2008, 20:26

Hi Beggers,
Unfortunately since this is a custom profile field you can't add text effects. The online/offline message text all depends on how you style it in viewtopic_body.html file.

This idea is based off the [STATUS] mod. This is where I got the idea from ;)

The message will appear just below the users signature looking like it is a part of the actuall signature. You can check out my test board at http://www.northerncountrymorels.com/testboard

username = test
password = tester

I am still looking for a way to display the CPF in the private messages
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Adding online/offline message in signature

Postby beggers » 05 Aug 2008, 21:06

I checked your board and the status looks good.

By the way, what mod are you using to generate that statistics banner in your sig? :)
User avatar
beggers    
Supporter
Supporter
 
Posts: 166
Joined: 25 Jan 2008, 23:46
Favorite Team: Oakland Raiders
Gender: Male
phpBB Knowledge: 4

Re: Adding online/offline message in signature

Postby stitch626 » 05 Aug 2008, 21:20

beggers wrote:By the way, what mod are you using to generate that statistics banner in your sig? :)

That would be this topic.
viewtopic.php?f=26&t=90
Take a look on page 33: I put together a little tweak on how display your text in color.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Adding online/offline message in signature

Postby beggers » 07 Aug 2008, 23:55

Worked fine the first time!

One minor thing. These parameters aren't quite nested right. Maybe change:

Code: Select all
<span style="color: #00FF00;"><i><strong>{postrow.custom_fields.PROFILE_FIELD_VALUE}</i></span></strong>

to:

<span style="color: #00FF00;"><i><strong>{postrow.custom_fields.PROFILE_FIELD_VALUE}</strong></i>
</span>


I know we talked about this before, but can you think of any way that users can apply formatting to custom fields?

Edit: I just found this mod that allows BBcodes to be parsed in custom fields:

http://www.phpbb.com/community/viewtopi ... &t=1115135

The thing is, it parses all the custom fields but I asked for some code so we could enable individual fields. Maybe you can take a look and see if we could apply it here. Thanks!
User avatar
beggers    
Supporter
Supporter
 
Posts: 166
Joined: 25 Jan 2008, 23:46
Favorite Team: Oakland Raiders
Gender: Male
phpBB Knowledge: 4

PreviousNext

Return to Tutorials and How-Tos

Who is online

Users browsing this forum: No registered users and 5 guests