Previous Thread
Next Thread
Print Thread
Rate Thread
#225405 09/26/2002 7:07 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Allen requested this and with some trial and error I think I got it working.


What this will do is return you to the post in question after editing or creating the post. Consider this beta so expect bugs. (although I think it's working pretty well right now)


This is also in use here at ThreadsDev. The text file is attached.



I've updated the instructions to include what DeepHull has pointed out.
Attachments
57689-anchorsaway.txt (0 Bytes, 101 downloads)

Last edited by JustDave; 10/02/2002 8:24 PM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yes!


- Allen wavey
- What Drives You?
Joined: Sep 2002
Posts: 8
Newbie
Newbie
Offline
Joined: Sep 2002
Posts: 8
JustDave,

Thanks for the mod! I found a small discrepency in your instructions and figured I would let ya know (maybe my board is missing the proper code, who know?).

In step 2 you instruct the following template files with:

[]
editpost_nopoll.tmpl
editpost_withpoll.tmpl
modifypost_approve.tmpl
modifypost_makesticky.tmpl
modifypost_makeunsticky.tmpl
previewedit_approve.tmpl
previewedit_makesticky.tmpl
previewedit_makeunsticky.tmpl
previewedit_preview.tmpl

find this line:

<input type="hidden" name="Number" value="$Main" />

and change it to this:

<input type="hidden" name="Number" value="$Main" />
<input type="hidden" name="Main" value="$Main" />

[/]

However, in those particular files I could not find the line you suggested, however I did find:

code:
<input type="hidden" name="Number" value="$Number" />



So I just nestled the added line after that. Thanks again for the mod!

Joined: Sep 2002
Posts: 8
Newbie
Newbie
Offline
Joined: Sep 2002
Posts: 8
Oh, one question, I am fairly new to UBBThreads, can you tell me where the message...

[] Your post has been entered. In a moment you will be automatically returned to the forum. [/]

...can be found? I would like to change it to:

[] Your post has been entered. In a moment you will be automatically returned to your message. [/]

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
The text will be located in the language files. I'm not sure which language file would contain that text but you can try the "generic.php" language files first. Just going over the file names may give you a idea of what to open.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Your right about the code being different. I guess depending on the file it can have your line or the one I showed. No matter what the line has for the variable it is the line that sets the "Number" variable so as long as we follow that rule we'll be ok.

Thanks for pointing that out. I did it all rather fast... lol and while running live here.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The instructions say:

-------------------------------------------------------------------------------
find this line:

<input type="hidden" name="Number" value="$Main" />

or this line:

<input type="hidden" name="Number" value="$Number" />

and change it to this:

<input type="hidden" name="Number" value="$Main" />
<input type="hidden" name="Main" value="$Main" />

(some templates have more than one occurance)
-------------------------------------------------------------------------------


I believe is should be this:

-------------------------------------------------------------------------------
find this line:

<input type="hidden" name="Number" value="$Main" />

or this line:

<input type="hidden" name="Number" value="$Number" />

and AFTER it ADD this:

<input type="hidden" name="Main" value="$Main" />

(some templates have more than one occurance)
-------------------------------------------------------------------------------


When I did it the first way... when I edited posts both the reply and the main post got changes.

Also.... this doesn't seem to work for the first post of a new thread yet. Doesn't seem to here either.

Otherwise is now working great. Thanks!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I didn't update the instructions but thought that I had summed it up above in reply to DeepHull's post.


I'll append the instructions now with your block. Thanks.



As far as new posts go I'll have to look at updating that. I was only thinking about replies when I did it. Will probably have to add some modifications to addpost.php to take into account new threads.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx, something like this is highly requested on our boards. But if only works if the answer and the posted that ist replied to are on the same site. Or i'm missing something?
It would be really nice if it would work when you reply to a posting on site 1 of a thread and it redirects you to site 5 where the answer occurs.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)