View Full Version : New Reply help please..
edpak
08-06-2002, 10:16 PM
Am trying to figure out how to make the page return to the top of the browser rather than the posting...
Am using the reverse order feature and am having some posters biatch because they have to scroll up the page about an inch to reach the "Post Reply" button in order to post again...
So what I'm trying to figure out is how to make the page return to the top so that the viewer can see the header after he submits a new posting...
Any suggestions would be appreciated...
Xenon
08-07-2002, 06:50 PM
at the end of a page theres also a postreply button, so why scrolling?
edpak
08-07-2002, 07:01 PM
Xenon... Thanks for replying...
K... I allow the posting of stock market chart images on the site and some of these tings are about 1200 pixels in length...
So when they post the image, they have to scroll up the page about an inch to see the Post Reply button again...
Need to get rid of the target that stops the page from returning to the top rather than the top of the posting... Can't find the location to make the change... :(
Scroll down the page a bit and you'll see images of the squawk...
TalkStox.com (http://www.talkstox.com/forum/showthread.php?threadid=287)
Thanks...
Ed
Xenon
08-07-2002, 07:08 PM
you have to edit newreply.php
theres a block:
// redirect
if ($prevpost[visible]) {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
edpak
08-07-2002, 07:11 PM
Oi ve... What do I change it to or delete???..
TIA...
Ed
Xenon
08-07-2002, 07:14 PM
change showthread.php?s=$session[sessionhash]&postid=$postid#post$postid
into showthread.php?s=$session[sessionhash]&threadid=$threadinfo['threadid']
for example
edpak
08-07-2002, 07:19 PM
Thanks... I'll give it a shot and see whut happens... :)
edpak
08-07-2002, 07:48 PM
Chit... Got this error now when you go to post... :(
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/sites/site2/web/forum/newreply.php on line 266
Xenon
08-08-2002, 12:59 AM
use this line:
$goto="showthread.php?s=$session[sessionhash]&threadid=".$threadinfo['threadid'];
edpak
08-08-2002, 11:50 AM
That one worked... Thank You... :)
Correction:... Still doesn't work... :(
Xenon
08-08-2002, 12:04 PM
can you give more details?
edpak
08-08-2002, 12:06 PM
K... The new reply still jumps back to the top of the posting and not to the top of the page to include the header...
Xenon
08-08-2002, 12:14 PM
are you sure you have replaced all instances of the block?
it appears at least two times
edpak
08-08-2002, 12:17 PM
No... I just replaced it at the location you stated above... Will look for more instances...
edpak
08-08-2002, 12:21 PM
Xenon... That's better... Works great now... Didn't realize the change had to be made in more than one location...
Thanks Again... :):):)
Xenon
08-08-2002, 12:24 PM
you're welcome
no matter, i've also forgotten to mention that ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.