Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2002, 09:39 AM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HELP - Lesanes Store Addon - Sig Uploader

This is basically for Lesane to see if this if possible to add to the store.
I have installed this hack


[Re-Release] Signature Image System by dabean (https://vborg.vbsupport.ru/showthrea...ght=Sig+Editor)

Excellant hack in its own right but i wanted to charge people to have a sig.
So i was messing with the code and managed to call the sig box in the store but thats as far as i got.It works and everything but needs some code as to charge people to use it which it dont do at the moment.

Lets see if i can explain a bit better

first ov u need to install the Signature Image System hack and when in the instructions it says to edit <b>member.php</b> DONT instead just add the code to the <b>store.php</b>

Now thats that bit sorted.

Now for it to work in the store we need a template and seeing as i dont know how to make them and call them in i used one which was already installed. I choose Calendar template.

I removed all the code from there and Inserted this instead.


PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head>
<
title>$bbtitle Signature Addon</title>
</
head> <body$header 
<!-- breadcrumb -->
<!-- /
breadcrumb -->
<
br>
<
br>

<
center>
</
center>

<
form action="member.php" method="post" name="vbform"
<
input type="hidden" name="s" value="$session[sessionhash]">

<
table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="95%" align="center"><tr><td>
        <
table cellpadding="4" cellspacing="1" border="0"  width="100%">
          <
tr
            <
td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="2"><normalfont color="#000000"><b>Edit 
              Signature Box There is a Fixed fee of 
?? points to use this.</b></normalfont></td>
          </
tr>
          <
tr
            <
td bgcolor="#1C5780" valign="top"><b><normalfont>Signature:</normalfont></b><br>
              <
smallfont>Optional signature you may use to appear at bottom of 
              your posts
.</smallfont
              <
p><smallfont>HTML code is $htmlonoff<br>
                <
a href="misc.php?s=$session[sessionhash]&action=bbcode">vB Code</A
                
is $bbcodeonoff<br>
                [
imgcode is $imgcodeonoff<br>
                <
a href="misc.php?s=$session[sessionhash]&action=showsmilies">Smilies</a
                
are $smiliesonoff </smallfont></p>
            </
td>
            <
td bgcolor="#1C5780"
              <
script language="Javascript" type="text/javascript">
<!-- 
function 
myimagepopup(x,y,sessionhash) {
// overflow window.
window.open("simage.php?action=alterimg&s"+sessionhash"smilies""toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

function 
sigimg(sigtext) {
// inserts smilie text
document.vbform.signature.value += "[sig="+sigtext+"]"
document.vbform.signature.focus();
}
// -->
</script>
              <
textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea>
              
$sigimages </td>
          </
tr>
          <
tr
            <
td bgcolor="#1D6AA0" colspan="2">&nbsp;</td>
          </
tr>
        </
table>
</
td></tr></table>

<
br>

<
table cellpadding="2" cellspacing="0" border="0" width="95%"  align="center">
<
tr>
    <
td align="center"><normalfont>
    <
input type="hidden" name="action" value="updateprofile">
    <
input type="submit" class="bginput" name="Submit" value="Submit Modifications" accesskey="s">
    <
input type="reset" class="bginput" name="Reset" value="Reset Fields">
    </
normalfont></td>
</
tr>
</
table>

</
form>

$footer

</body>
</
html
All it is,is a modified version of member profile and may need further editing by those who know whats best.
So now the template works we can change sigs from the store but the main thing is missing - and that is to make it so it charges them.Even though its set to the calendar option some html i think needs adding so once you pick your sig etc it then updates your points etc to reflect it and its this bit im lost at.

Now waste of time flaming me if you dont like this idea but like i say its only something i was messing with and the code is from the Sig Editor and is not mine at all.All credit goes to <b>dabean</b> for his top hack.

All i want to know is,can this be done and how???

Flame away
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 01:48 PM.


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.03304 seconds
  • Memory Usage 2,264KB
  • Queries Executed 11 (?)
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)bbcode_php
  • (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
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete