PDA

View Full Version : HELP - Lesanes Store Addon - Sig Uploader


Mr_P
10-30-2002, 09:39 AM
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/showthread.php?threadid=28520&highlight=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.



<!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>
[img] code 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

Mr_P
10-30-2002, 08:20 PM
I know where the prob lies here

Cause im using a modified copy of the template user profile it has the submit button on it.Which in turn whe pressed after doing your sig returns back to main forum.

What is needed is for when that button is pressed is for it to carry on with the remainder of the action for the calendar event.Such as removing point from user and then sending you back to the store.

(Note i say calendar as i posted above im using this template to base this sig hackon on.)

I know im close to it but that last bit defeats me.