vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   silly newb question (adding a button) (https://vborg.vbsupport.ru/showthread.php?t=208159)

dekaybrown 03-12-2009 10:03 PM

silly newb question (adding a button)
 
I'd like to add this button to my VB installation.

The image is a temporary one, but this button would save me a lot of time.

http://www.thamfriends.com/guide/here.gif

BB code not working??

I'd just like it to hyperlink back to the top of the page.

Thanks.

TigerC10 03-12-2009 10:25 PM

You need to edit a template

Template: SHOWTHREAD

Look for...

Code:

        <if condition="$show['largereplybutton']">
                <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
        <else />

There are two of them, one for the top, and one for the bottom. So make sure you've found the second one toward the bottom of the template.

Replace it with (or add the code in red)...
Code:

        <if condition="$show['largereplybutton']">
                <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>&nbsp;<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a></td>
        <else />


dekaybrown 03-13-2009 12:11 AM

You have my eternal gratitude Tiger... Thanks!

Problem, I just used dreamweaver to scan for the selected text, "none found in document?

The image will be top.gif


My members love it, the forum is never the same twice:eek:

I keep fiddling with the CSS and whatnot, want to learn all I can.:D

TigerC10 03-13-2009 01:05 AM

It's not in a PHP file. It's in a template in the database.

Go to your AdminCP > Styles and Templates > Style Name > Edit Templates > SHOWTHREAD

dekaybrown 03-13-2009 01:52 AM

Thats what I tried, I'd never fiddle with the PHP files:eek:

I'll look around some more, grab some screen shots of what I'm doing.

Appreciate the patience, Be assured though, once I learn, I never have to ask again.

Dangerous photographic memory....

TigerC10 03-13-2009 01:59 AM

Do you know the style that you're using? Because if you can't find that code it's probably customized a certain way, and they may not be using the same code that I gave you.

dekaybrown 03-15-2009 12:27 AM

I have modified "default" to suit my needs.

I just replaced the gradient gifs and tweaked the css, otherwise it is default.


All times are GMT. The time now is 09:24 PM.

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.01041 seconds
  • Memory Usage 1,725KB
  • 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
  • (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