PDA

View Full Version : Signature Image System


NTLDR
12 Mar 2004, 14:33
Signature Image System v1.0

Firstly if you use profile pictures on your forum, this hack isn't for you. Basicly this hack uses the user profile picture option in vB3 to upload an image for users to use in there signature on your site only.

This has been tested on vB3 Gamma, but should work on the RC's too.

Upload signature.php to your forums directory and make the following changes:

in includes/functions_showthread.php find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add after:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In profile.php find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add after:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In member.php find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add after:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In includes/functions.php add the end somewhere above the comment (note the comment varies for everyone:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In the MEMBERINFO template find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now you will need to visit the edit profile picture page in the User CP (profile.php?do=editprofilepic) and edit the phrases in the phrase manager to suit your needs. Searching for the text is easy so I'm not going to list all the phrases.

Now users can use [signatureimage] in there signature where they want the uploaded image to appear. Note you'll need to edit the usergroups permissions for Profile Pictures in the Usergroup Manager, where you can specify image size and file size restrictions.

Oblivion Knight
12 Mar 2004, 14:45
Very nice idea.. :)
Would be nice to have a separate upload area from the custom profile pic (I use the custom profile pics), but a great mod all the same.

VeoMorphine
12 Mar 2004, 14:54
ya, this would be very very good if you could make a seporate place for the sig to upload because i use profile pictures.

msimplay
12 Mar 2004, 15:08
not working on rc4

NTLDR
12 Mar 2004, 15:09
Can you expand? Not working doesn't exactly help ;)

gmarik
12 Mar 2004, 17:28
If only I could use several signatures. ..

colicab-d
12 Mar 2004, 18:46
nice was expecting a port of the vb2 sig system.. but still good work, if we didnt like / use our profile pics as much as me and the other staff do then this would be excellent

sabret00the
12 Mar 2004, 20:16
nice was expecting a port of the vb2 sig system.. but still good work, if we didnt like / use our profile pics as much as me and the other staff do then this would be excellent
aye i like the profile pics too :)

eXtremeTim
12 Mar 2004, 20:59
So any chance we can get a version not dependant on the profile pictures stuff?

NTLDR
12 Mar 2004, 21:02
Not in the near future, at least not by me. I only released this version because people wanted it.

Fi_InCogNiTo
12 Mar 2004, 23:50
I'm using RC4 and did everything step-by-step, but all I see is a red X in my sig. Maybe RC4 is different?

NTLDR
12 Mar 2004, 23:57
It should work, but as said I've not tested on the RC's as I use Gamma and I don't see much point when gold is out next week.

Whats the URL for the image? Note signature.php must be called within ~60 seconds of the page load and your browser must pass on the referer of the page and this must match the page that your trying to use the image on.

Fi_InCogNiTo
13 Mar 2004, 00:20
The url comes up as this if I click properties in my sig on the red X:
http://www.pc-nerd.com/signature.php?userid=1&sig=1079137304&req=24cf6c7dceb6b235aab34b66c922e904

If I click properties on the image that shows in my usercp under "Your Current Signature Image" I get this:
http://www.pc-nerd.com/image.php?u=1&type=profile&dateline=1079137226

Was I supposed to UL signature.php to forum root?

Fi_InCogNiTo
13 Mar 2004, 00:55
Also, in member.php mine is a lil different:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And not like what was in your instructions:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Could that maybe be why I'm getting the red X?

lasto
14 Mar 2004, 01:46
so this dont work on rc 4 ???

Nice hack NTLDR but wont install till someone confirms it works on RC4

Vb-Hispano
30 Mar 2004, 13:16
working in Gold?

NTLDR
30 Mar 2004, 14:32
Should work fine with every version after 3.0.0 Gamma, however I've not personally tested it with any other version.

GamerzWorld
30 Mar 2004, 15:07
"Now you will need to visit the edit profile picture page in the User CP (profile.php?do=editprofilepic) and edit the phrases in the phrase manager to suit your needs. Searching for the text is easy so I'm not going to list all the phrases.

Now users can use [signatureimage] in there signature where they want the uploaded image to appear. Note you'll need to edit the usergroups permissions for Profile Pictures in the Usergroup Manager, where you can specify image size and file size restrictions."

Can somneone explain this to me. I did the rest of the templates but when i go to user cp and click picture it stillc omes up with old page. I know i have to change it to the signature .php which it tells you how to do inm that bit up above but i dont undertsna dwhat exactly i do

NTLDR
30 Mar 2004, 15:30
The edit profile picture page becomes the edit signature image page, you need to edit the text shown on that page via the phrase manager to suit your needs.

Bad Bunny
31 Mar 2004, 18:19
The edit profile picture page becomes the edit signature image page, you need to edit the text shown on that page via the phrase manager to suit your needs.
My users are pretty novice (had to show one how to check his email...), so this would probably be best if it could automatically be called in the postbit. That should be possible, right? Do an if statement, and call it. Then when they post, it will appear automatially, and they can also have a signature (even though most are not even aware what a signature even is).

lasto
31 Mar 2004, 18:32
no one tired this on vb3 gold as yet

is hard to believe vb3 does`nt have a decent sig uploader already built into it

lasto
31 Mar 2004, 18:45
Dont work on Gold

I also get the red X when i use the [signatureimage] in me sig box

msimplay
31 Mar 2004, 19:32
i would try it but i like the idea of profile pictures :o

lasto
08 Apr 2004, 15:30
just re-tried this on another copy of vb3 gold and im still getting the red x where the sig should be

NTLDR
08 Apr 2004, 15:41
Whats the URL for the image? Note that the URL changes every request and that your browser must send the HTTP_REFERER variable and the referrer in the URL must match this and that it must be within ~60 of the URL being generated.

If you comment out lines 43-46 in signature.php and the image shows then thats the problem.

Works flawlessly for me on both 3.0.0 Gamma and 3.0.0.

lasto
08 Apr 2004, 16:55
still red x even if i comment out the lines in signature php

not sure why cause all i do is load the pic up using the profile page link - i can see it but it dont appear in my posts.


/forums/signature.php?userid=1&sig=1081439840&req=afe5abd7e1bbc945ccb8c852b528df1c

Yapluka
12 Apr 2004, 18:14
Exactly the same problem as lasto :

/image.php?u=1&type=profile&dateline=1081789262
/signature.php?userid=1&sig=1081789909&req=a7274137a1de6ef2e61114224ea68c0e

Still have the red X... what to do ?

Nice hack... when it works ! Thanks anyway.

JKeats
18 May 2004, 19:17
i've created a .txt for this hack that includes the phrase edits (there's 6 of them) and a USERCP_SHELL edit as well (to move the signature image link up to just under the signature edit link).

hope it helps some ppl.

as for me, i'm on 3.0.1, and i get the dreaded redX with this. i do feel, however, that it's a great hack for ppl not interested in profile pics. hopefully someone will be able to correct the redX problem for those of us currently experiancing it.

additionally, if somehow the [signatureimage] could be auto added to the signature, so that it was a one step deal (i.e. you upload a sig image, it's placed in your signature automatically) that would be awesome.

hope this one gets ironed out!

NTLDR
19 May 2004, 00:11
Try removing the following if block from signature.php:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thats the part that checks if the image is allowed to be shown or not. Note that this will enable hotlinking etc unless you add other measures to protect against it.

Yapluka
20 May 2004, 08:20
I still commented this part but always get the redX...

tHe Rk
13 Jun 2004, 02:37
Will this work with 3.0.1?

dutchbb
19 Jun 2004, 11:20
Doesn't work, also red X. Did everything like the instructions. This hack needs work.

error_22
21 Feb 2005, 11:14
will this work on any vB 3 version? I would love to use this!!!:)

Kruppa
03 Mar 2005, 19:08
It just doesn't go fetch the image. It uploads fine and I can see it in the userCP and admin CP but:

1) If I look up my profile from the forum page, only the text part of my signature is displayed

2) In the threads, only the text part appears under my posts

I'm running version 3.0.6


Can anyone help?

Scerina
09 Mar 2005, 23:01
how do we edit the Phrases part? What do we do? Am new to all this and I need some help in this area

CHIngs
14 Mar 2005, 06:24
It just doesn't go fetch the image. It uploads fine and I can see it in the userCP and admin CP but:

1) If I look up my profile from the forum page, only the text part of my signature is displayed

2) In the threads, only the text part appears under my posts

I'm running version 3.0.6


Can anyone help?
I am having the SAME problem :(

error_22
29 Mar 2005, 21:02
anyone who can make this work? thanks

lasto
29 Mar 2005, 21:54
none of the sig hacks work for vb3 - have tried quite a few on here and they all have one problem or another with them.Im really quite amazed that no one has made one as tbh it should be default in VB.

There is a new hack that does upload your sig to imageshack or something but thats only one i not tried as yet.

Jenta
04 Apr 2005, 17:03
won't work on a clean 3.0.7
only get [signatureimage] as text in signatures

error_22
09 Apr 2005, 09:41
too bad... Its a great add-on/hack! I would love to use this!!

boostedsti
29 Apr 2005, 21:44
You can always just simply do this above the sig in the postbit template..

<img src="image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /><br />