Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
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" />

Thanks in advance

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
Not sure what you mean....

When they preview their post... you want it to remind them what user they are logged in as?

Sort of like "you are logged in as 'Username'" above the preview post area?

"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
Yes

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

Is their some kind of Php file code for this?


Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
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:

Find this around line 10:

<pre>
{$ubbt_lang['PREV_POST']}
</pre>


Change it to this:

<pre>
{$ubbt_lang['PREV_POST']}<br />
<b>$welcomemessage</b>
</pre>

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. "

Anonymous
Unregistered
Anonymous
Unregistered
LOL

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" />


Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
that was a great fix Josh..I love it!

I know nothing about code but am learning quickly

Now I hate to do this to ya and ask again BUT

That mod works fine IF youre logged in

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

But I suppose most code is the same anyways eh?

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
OK -

Yes the code would go above the dotted line.

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:

<pre>
{$ubbt_lang['PREV_POST']}
</pre>

Change it to this:

<pre>
{$ubbt_lang['PREV_POST']}<br />
<b>$welcomemessage $postername</b>
</pre>


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".

Hopefully that's what you were looking for!

<img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
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" />


Thanks again Josh.

Stay tuned

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
Hire me? LOL
Don't I wish.

Glad it worked for you!

You'll find that with a little code knowledge and the power of the templates in threads that you can do alot.

Good luck with your board! <img border="0" title="" alt="[Cool]" src="images/icons/cool.gif" />

"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
This one may be a hard one

This is more for me than anything else.

Under Post Management in the Admin section

The choices are:

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.

Any thoughts?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
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. "

Anonymous
Unregistered
Anonymous
Unregistered
..again..fastest gun in the west Josh <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

I feel silly that I didnt see that..but its not really logically named

Regardless..thank you

Lerosia


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Gizmo), 857 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)