Is there a variable or something I can edit so when the user Previews their post not only is their message displayed but their name is there as well?
We have some very afraid users who are newbies who cannot have their name in their post(yes I know ..dont put it there) but a few have made the mistake in our other forum
There has to be a way to add that somewhere..please tell me there is <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
Because sometimes our users mistakenly put in their name or email ..they want to be able to be make sure they can see their whole post including their name before they post it
This has happened on a few occasions with newbies who have to protect their identity(they help animals and some of theip opposers are a bit radical
I just want their name there on the Preveiw Post
I can believe they are giving this grief about it..its their responsiblity to monitor what they post..but I am but a servant to their needs
You can do this with a modification to the code in 2 files.
OK - First thing: Hacking your code is bad (from a support standpoint). Modify at your own peril. LOL
Infopop can't support you if you modify your own code. What I suggest you do, is make a backup copy of these two files.... and save them, so you can put them back (in their original state) should you need to, or should you make a mistake with this mod.
In addpost.php find this: <pre> // ----------------------------------------------------------------------- // If this is from an unregistered user, we need to make sure the username // isn't registered, it doesn't contain any special characters, and that it // is the proper length. But not if we already previewed the post. No // need to do it twice. </pre>
Just ABOVE it - add this:
<pre> // Must define welcome message here for the template since it is different // if the user isn't logged in. if ($user['U_Username']) { $welcomemessage = "You are Logged in As: {$user['U_Username']}"; } else { $welcomemessage = "Not Logged In"; } </pre>
In your /templates/default/ directory, edit the addpost_preview.tmpl file:
Now when you preview the post.... at the top, just below it says "Preview Post", it will say "You are logged in as: Username" in bold letters.
The template is pretty much basic HTML. You could put the "<b>$welcomemessage</b>" anywhere in the template that you wanted..... if you wanted it to appear in a different location. Just make a backup, then play with it.
Hope that helps you.
Josh
"Happiness comes through doors you didn't even know you left open. "
thanks for the warning about modding code I figured that much
I have backups of the files and am not doing the mods you suggested
My question is you said to put the code ABOVE that text Do I put it ABOVE that dotted line?
IE Heres how it reads now
// -----------------------------------------------------------------------// If this is from an unregistered user, we need to make sure the username// isn't registered, it doesn't contain any special characters, and that it// is the proper length. But not if we already previewed the post. No// need to do it twice.
Heres how I have added it
// Must define welcome message here for the template since it is different // if the user isn't logged in. if ($user['U_Username']) { $welcomemessage = "You are Logged in As: {$user['U_Username']}"; } else { $welcomemessage = "Not Logged In"; } // ----------------------------------------------------------------------- // If this is from an unregistered user, we need to make sure the username // isn't registered, it doesn't contain any special characters, and that it // is the proper length. But not if we already previewed the post. No // need to do it twice. if (!$frompreview) {
OR does it go just below that ------- dotted line and just above: // If this is from an unregistered user, we need ..
Make sense?
Btw, Infopop should hire you <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
What if an anon user who isnt registered logs in and posts? We have a lot of those All it would have to say is You are not logged in ANON or whatever name they chose
Right now we dont want to force them to register until they feel comfortable
Now it just says PREVIEW POST NOT LOGGED IN
is there something I can mod to recognize their name whether they are logged in or not?
This code reminds me of Macromedia Director's Lingo
I finally understand what you are asking for, and it's actually a worthwhile feature. You must be allowing Anonomous users to post.... thus people type their names in...whee it says username...but then don't realize when they posted it.
So you want the preview screen to show the username they entered when they made a post as an anonomous user:
OK - Got it.......
Here are new instructions. Either edit my changes or start with a new COPY of the clean files.
In addpost.php find this:
<pre>// ----------------------------------------------------------------------- // If this is from an unregistered user, we need to make sure the username // isn't registered, it doesn't contain any special characters, and that it // is the proper length. But not if we already previewed the post. No // need to do it twice. </pre>
Just ABOVE it - add this:
<pre> // Must define welcome message here for the template since it is different // if the user isn't logged in. if ($user['U_Username']) { $welcomemessage = "You are Logged in As:"; } else { $welcomemessage = "You are Not Logged in. You are Posting as: "; } </pre>
In your /templates/default/ directory, edit the addpost_preview.tmpl file: Find this around line 10:
Now when you preview the post.... at the top, just below it says "Preview Post", it will say "You are logged in as: Username" in bold letters. If they are not logged in, it will say: You are Not Logged In. You are posting as: username".
Thanks so much Josh thats EXACTLY what I was looking for!
You have now made my life easier and have stopped the whining of many newbies <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
IT is actually a very useful feature but I do understand why they might not think of it as many boards dont allow anon users and posters
Now lets hope they are happy campers..but I have a feeling they will find something <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
You see they really dont want to move from the existing very simple free board to a new more complicated one They spent a month learning the simple one <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
Approve posts Expire threads Close threads Open threads Keep threads Unkeep threads Delete posts from a user
Now there are a multitude of Anon posts at the moment for testing purposes..is there anyway I can view all the posts in the particular forum or section..say with check boxes beside them so I can delete a post individually rather than just deleting all from a particular user?
I may only want to delete one post
I clicked on Keep Threads and its supposed to show a list of posts for that forum that I can keep but I got a blank list and theres over 20 posts and 8 threads in that forum
But I would rather see the posts in a listed format ie (* indicates a checkbox)
* test....posted by Anon * tst1 ...posted by Anonymous * test....posted by Anon * test....posted by Leanna
So say I wanted to just delete post 1 & 3?
Or even if Leanna posted something in another section..I wouldnt want to delete all of her posts..just one.
Use the Expire Threads option. Choose a forum to view. Then check the boxes of the post you want to delete. It will list the subject and who posted it. You can click on the subject if you need to read the post.
Hope that helps!
"Happiness comes through doors you didn't even know you left open. "