![]() |
Lesson #6 added. Sorry for the long delay - been getting back into the swing of classes and also having trouble coming up with new ideas for lessons.
|
Bump - Lesson 7 added.
|
Michael-
Tried to apply your lesson on announcements but have not succeeded. Somewhere I'm missing something. Hope you can help! 1. created new templates: newsflash_all newsflash_guest newsflash_noposts newsflash_pending newsflash_staff newsflash_subexpiring 2. Added the following to phpinclude_start: PHP Code:
HTML Code:
$newsflash it doesn't display the content of the newsflash template. What did I miss? --DON |
You don't have a default - so it could be working silently in the background.
I don't see anything straight off, but check things one line at a time. First check to make sure the insert to your forumhome template is working correctly. To do this put $newsflash in the template and then set it to a value straight out in the PHPINCLUDE_START template PHP Code:
(Note - if you have multiple styles it's important to put these templates into either one grand parent of all your styles or into each style individually - fetch template can't call up a template that doesn't exist in the current style). If that works check your conditionals, one at a time, to insure they work. If you have any other problems check with me. |
Michael-
Quote:
PHP Code:
The If statement tests false--with 'newsflash_all' as empty as I can make it. I don't know enough php to know if this is a mal-formed statement, or something else. --don |
Try this
PHP Code:
Hence PHP Code:
|
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):
Quote:
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! :rolleyes: Thanks, wirewolf |
Nice stuff, good work.. Added the My Links to my site, works great.. thx!
|
Quote:
@Sooner95 - thx. |
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. |
All times are GMT. The time now is 02:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|