![]() |
|
Article Options |
#16
|
||||||||
|
||||||||
Try this
That will remove unnecessary spaces. Hence
If $newsflash has even a single space, it isn't empty. If it's nothing but spaces are there trim will removed them and leave it null. No members have liked this post.
|
#17
|
||||
|
||||
Michael, great tutorial. I've added the "Annoucements" and the "My Links". Both are working. I added one other conditional for those interested. I have a few members whose email keeps bouncing. So I created a new usergroup (Bounced Email), and added these members to it. Then created a new annoucement (announcement_bouncedmail) and added it to the array of annoucements in phpinclude_start. See below (XX is the number of this new group):
BTW, these messages have had the desired effect. Especially for the "noposts" and the "noposts14days". Quite a few of my users that have not posted or not posted in awhile, and have visited the forum, have gotten the message and made a post. In part of my nopost and nopost14days messages I put in a link to my "Indroduction" forum as a suggestion, and it's worked! I also created new phrases for insertion into the different announcement templates. Makes it easier to make message changes later on. One question. I have two new required profile fields on registration (forces new registrants, but not old members). Part of the messages for members (all old exsisting members) that I have now is for them to check these new fields in the UserCP, but it does not force them to fill these out. I guess I could create another usergroup for those members that have not filled out these fields and include it in the phpinclude_start as another annoucement or is there a way do include the conditional for these "$post[fieldX]'s" into the annoucement templates I have now? I was looking at Revan's "Newbie Lock mod" and thinking of adapting it for this purpose. But his mod forces the user to a particular forum, not reguired profile fields. It's never easy! ![]() Thanks, wirewolf No members have liked this post.
|
#18
|
|||
|
|||
Nice stuff, good work.. Added the My Links to my site, works great.. thx!
No members have liked this post.
|
#19
|
||||
|
||||
Originally Posted by wirewolf
I'm in the middle of switching the servers at ENWorld - when I'm done with that (hopefully by this time next week) I'll take a closer look at your questions and answer them if I can.
@Sooner95 - thx. No members have liked this post.
|
#20
|
||||
|
||||
Hi Michael.
This is a weird one. I've had "My Links" installed on my site (vb v.3.0.7) for awhile. Today I noticed something strange happening with the "My Links". If I view a post, any post, while logged in, select the "View Single Post" link, close that window, refresh the original post, I then see the list of "My Links" in the post. This happens with any post, no matter who posted it, not just mine. If I go to the edit box for that post and hit the Save Changes button, the post reverts back to normal. I asked one of my members that uses "My Links" also, to log in to the forum, pick out any post, and repeat the same sequence. He PM'd me and reported , in dis-believe, that he too saw his "Links" in the post. I had to go and open the edit box for that post, hit save changes, and the post reverted back to normal. Best way is to see some screen shots. Any clues to this one? BTW, checked the code in phpinclude_start, it's fine. No members have liked this post.
|
#21
|
||||
|
||||
This happened to me too - I uninstalled this hack after that started happening.
No members have liked this post.
|
#22
|
||||
|
||||
I didn't uninstall mine, but disabled the profilefield, and commented out the codes in the navbar and phpinclude_start templates. Posted a note to my members that were using "My Links" that it was now disabled.
Do you have any clue as to how it happened? John No members have liked this post.
|
#23
|
||||
|
||||
Nope. If I did I'd a fixed it instead of removing it.
No members have liked this post.
|
#24
|
||||
|
||||
Excellent tutorial, Michael. I had already stumbled on much of the info you gave, but if I'd found this thread a month ago I would've saved a lot of trial and error. I think it should be a sticky, even if the MyLinks hack isn't working properly anymore.
![]() No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:09.