vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   need some help, please (https://vborg.vbsupport.ru/showthread.php?t=37740)

scsa20 04-22-2002 03:39 AM

need some help, please
 
1 Attachment(s)
okey, this is what I'm trying to do...since no one is kindly enough to make me this hack, I desided to do it myself, so here's the codes I have right now...

in newreply.php, I added:

PHP Code:

,newreply_tv 

after

PHP Code:

$templatesused.=",vbcode_smilies,vbcode_smiliebit,vbcode_smilies_getmore,vbcode_buttons,vbcode_sizebits,vbcode_fontbits,vbcode_colorbits,newpost_closethread 

so it'll look like this:

PHP Code:

$templatesused.=",vbcode_smilies,vbcode_smiliebit,vbcode_smilies_getmore,vbcode_buttons,vbcode_sizebits,vbcode_fontbits,vbcode_colorbits,newpost_closethread,newreply_tv"

and then I added:

[php]
eval("\$newreplytv = \"".gettemplate("newreply_tv")."\";");
[php]

before

PHP Code:

$maxattachsize_temp getmaxattachsize(); 

then I saved it and uploaded it....I then made a template called "newreply_tv" and put the following in it:

Code:

<div align=center><iframe name="cwindow" style="border:0" width=1100 height=300 src=$threadreviewbits></iframe></div>
then I edited "newreply" and searched for:

$threadreviewbits

and replaced it with

$newreplytv

but I just can't get it to work...here's what I see (see picture that's attached)...

can anyone help me out?? thanks

oh, here's the URL where I asked for this in the first place: https://vborg.vbsupport.ru/showthrea...threadid=37668 (call me stupid, but I'm new to hacking).

Neo 04-22-2002 04:16 AM

<div align=center><iframe name="cwindow" style="border:0" width=1100 height=300 src=$threadreviewbits></iframe></div>

This is your error.. unless $threadreviewbits is a link to a page it will not work.

scsa20 04-22-2002 05:39 AM

do you know a why to make it to work?? (as you can see...I'm prety stupid :rolleyes: )

Neo 04-22-2002 05:44 AM

$newreplytv now you can print this either of two usfull ways.

echo $newreplytv;

or put it in another template

scsa20 04-22-2002 05:48 AM

I'm sorry, can you clear it up for me to understand better (it's late night, and I'm not thinking stright...plus I don't know anything about PHP and I don't know where you want me to put "echo $newreplytv;" :( )

thanks for your help

scsa20 04-23-2002 06:35 AM

1 Attachment(s)
okey, this is what I did now...surpringing it worked :eek: but now I need some more help.....first let me start off that keeping the PHP file the same from the first post, I just edit newreply_tv template to show the following:

Code:

<div align=center><iframe name="cwindow" style="border:0" width=1100 height=300 src="showthread.php?s=$session[sessionhash]&threadid=$threadid"></iframe></div>
that worked...but now I get what you see in the picture...I want the newest post on top, plus I don't want that header and other junk in it, just the avatars, message, quotes/codeings, and the footer...now where do I go to edit that part?? any ideals to lead me to the right diration can be helpful.....thank you.

scsa20 04-24-2002 08:37 PM

anyone??


All times are GMT. The time now is 11:49 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.00933 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete