Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2011, 01:06 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make code to work in register template

Ok, i'm stuck like hell here!
I am using Aniron's plugin https://vborg.vbsupport.ru/showthread.php?t=165951 in my 4.1.3 and want to add an extra tool to go with it.
Since i have a Prez generator and that we can build introduction from it, i want to be able to add a button in the "register" template for the member to use when they are registering on the forum and therefor adding the BBcode from the Prez to the plugin of Aniron.

Now, i managed to add the codes to the "modifyprofile" template to show the button and text info with out a problem but when it comes to the main registration page, the button doesn't show up !

This is my code for the button redirect to the Prez:

Code:
<!-- intro on reg -->
                  <h3 class="blocksubhead">{vb:rawphrase tool_intro}</h3>
		    <div class="section">
                       <div class="blockrow singlebutton"> 
                                <label>{vb:rawphrase mem_prez}:</label>                 
				<div class="rightcol">
					<!-- DO NOT REMOVE -->
					<input type="image" style="width: 1px; height: 1px;" src="clear.gif" />
					<!-- / DO NOT REMOVE -->
                                        <a href="http://mywebsite.com/prez/?page=membres/" target="_blank"><input type="button" class="button" tabindex="1" value="{vb:rawphrase button_prez}" name="Prezium" /></a>
				</div>
				<p class="description">
					{vb:rawphrase info_intro}
				</p>
                        </div>
                    </div>
<!-- intro on reg end -->
This is all good up to now and both the button and plugin text window from profile field are ok but i can't make it to show in the register template????

I tried under this code from it but nothing comes up

Register template:
Code:
		<vb:if condition="$show['customfields_profile']">
			<h3 class="blocksubhead">{vb:rawphrase additional_required_information_profile}</h3>
			<div class="section">
				{vb:raw customfields_profile}
				<vb:if condition="$show['birthday']">{vb:raw birthdayfields}</vb:if>
			</div>
		</vb:if>
and if i put it on top of this one
Code:
		<h3 class="blocksubhead">{vb:rawphrase additional_information}</h3>
		<div class="section">
			<vb:if condition="$show['referrer']">
			<div class="blockrow">
				<label for="referrerfield_ctrl">{vb:rawphrase referrer}:</label>
				<div class="rightcol">
					<div id="referrerfield" class="popupmenu nomouseover noclick nohovermenu">
						<input id="referrerfield_ctrl" type="text" class="primary textbox popupctrl" name="referrername" value="{vb:raw referrername}" tabindex="1" maxlength="{vb:raw vboptions.maxuserlength}" />
						<div id="referrerfield_body" class="popupbody"></div>
					</div>
					<script type="text/javascript" src="clientsc
it shows on the registration page but not where i want it to be obviously

I've attached some pic to show you guys

Hope someone can give me a little hand with this one

Tks
Attached Images
File Type: jpg cover3.jpg (63.7 KB, 0 views)
File Type: jpg cover.jpg (97.2 KB, 0 views)
File Type: jpg cover4.jpg (34.3 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03621 seconds
  • Memory Usage 2,189KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete