vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   New Reply help please.. (https://vborg.vbsupport.ru/showthread.php?t=42002)

edpak 08-06-2002 10:16 PM

New Reply help please..
 
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

Thanks...

Ed

Xenon 08-07-2002 07:08 PM

you have to edit newreply.php

theres a block:
PHP Code:

      // 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... :(


All times are GMT. The time now is 10:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01146 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete