Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Can the UBB software be configured to do this.

Your not logged in.
Your reading a post, you decide to reply to the post that your reading, you log in, after you log in, the software reverts you back to the post that you have been reading.
Rather than to the forum list page.

Thanks,

Last edited by jorb; 02/14/2014 9:58 PM. Reason: Grammar correction

Truth Seeker
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
That is a good one.
the methodology is not quite correct.
But I get it.
You read a post as a guest. Then decide to reply as a user.
Then the software rolls you over the the summary. then you need to find the post again.
I don't see any way to circumvent it with the current version!

Another revision change request?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Its possible and simple to do.

In templates/default/showflat.tpl

at line 8 and line 222, FIND:
Code
{if $closed != 1 && $reply == "on"}

REPLACE WITH:
Code
{if $closed != 1}

done smile

Now, when someone who is not logged in clicks the reply button, they will be brought to a "UBB Message" page that says they dont have access to reply here, and that they need to log in. Once logged in from there, they will be brought back to that post.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Very good hack!
Will that work with quick reply also.
And what if the guest has read only access.

Last edited by Ruben; 02/14/2014 6:46 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
If you have Quick Reply turned on, the user who is not logged in, will not see the Quick Reply box.

If they only have read only access or are not logged in, they will see,

[Linked Image]

After entering their login information, they will be taken to the post reply page for the post they were just viewing.

---

On one install where I've made quite a few customizations, I've modified the language file to instead say,
Quote
You are not logged in or you have read-only privileges for this forum. This could be due to one of several reasons:

1. You are not logged in. Fill in the form at the bottom of this page and try again.
2. You may not have sufficient privileges to access this page.
3. If you are trying to post, your account may be awaiting activation.

Control Panel > Languages > Language Editor
Select language file: newreply.php
Click: GO
Modify: READ_PERM

-OR-

Just edit the file directly: languages/default/newreply.php
$ubbt_lang['READ_PERM'] = "You have read-only privileges for this forum.";



Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
In the past,
I would log in, then after being sent to the forums list page.
I then would click the browser back button a couple times to get back to the post I was reading. Refresh that page, after refreshing it now shows I'm logged in.
I then could reply.

What do you feel the difficulty level is, to do what you described in the previous post?

Thanks for info,


Truth Seeker
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
the difficulty of the first thing I listed is probably a 1 on a scale of 10.

Control Panel > Templates
SELECT: showflat.tpl
CLICK: Edit Selected Template
FIND: the "FIND" code I quoted
REPLACE: the "REPLACE WITH" code I quoted
CLICK: Update

Profit!

The second thing I listed, also a 1 on a scale of 10. I've already listed the step-by-step directions in that post.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Great, I'll pass it along.
Thanks for the help


Truth Seeker
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Originally Posted by id242
Its possible and simple to do.

In templates/default/showflat.tpl

at line 8 and line 222, FIND:
Code
{if $closed != 1 && $reply == "on"}

REPLACE WITH:
Code
{if $closed != 1}

done smile

Now, when someone who is not logged in clicks the reply button, they will be brought to a "UBB Message" page that says they dont have access to reply here, and that they need to log in. Once logged in from there, they will be brought back to that post.

Will this same code change also work on UBB.threadsâ„¢ PHP Forum Software 7.5.9
It worked for 7.5.8


Truth Seeker
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
yes.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2007
Posts: 361
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 361
Likes: 8
Originally Posted by jorb
Originally Posted by id242
Its possible and simple to do.

In templates/default/showflat.tpl

at line 8 and line 222, FIND:
Code
{if $closed != 1 && $reply == "on"}

REPLACE WITH:
Code
{if $closed != 1}

done smile

Now, when someone who is not logged in clicks the reply button, they will be brought to a "UBB Message" page that says they dont have access to reply here, and that they need to log in. Once logged in from there, they will be brought back to that post.

Will this same code change also work on UBB.threadsâ„¢ PHP Forum Software 7.5.9
It work for 7.5.8
I'm testing it now.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Thank You


Truth Seeker
Joined: Mar 2013
Posts: 51
J
Journeyman
Journeyman
J Offline
Joined: Mar 2013
Posts: 51
Baldeagle,

Code change on UBB.threadsâ„¢ PHP Forum Software 7.5.9
Test successful,

Thank You,




Truth Seeker

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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 868 guests, and 467 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)