vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Signatures Gallery Hack (https://vborg.vbsupport.ru/showthread.php?t=54169)

all-the-vb 06-10-2003 10:00 PM

Signatures Gallery Hack
 
Signatures Gallery Hack

by All-the-vb

How the hack works:
It works like a signatures gallery

Features:
1) You can see all signatures instead of going through every member profile to see his signature. So without this hack, if you want to see all signatures then you need to spend hundreds of years, while with this hack you can see them in one page.

2) Members can vote for any signature they like, and number of votes will be beside every signature.

3) You can specify number of signatures that'll be displayed in the page.

4) You have the choice to display the image in the signature, or to be as an address only.

5) You can allow/disallow visitors to vote.

6)You can allow visitors to vote as many as you specify.

7) Detect other features ;)


Note!: all vbcode codes will be enabled automatically.

Except php: code: qute:
since it may distort the page.

Files to upload: (1)
Files to edit: (0)
Queries to Run: (2)
Templates to edit: (0)
Templates to add: (5)

all-the-vb 06-11-2003 12:37 PM

screen:

all-the-vb 06-11-2003 12:39 PM

Don't forget to edit :

// to show images in the signatures, set to 1.
// to show images as addresses, set to other than 1.
$img=1;

// Max number of pages.
$max=80;

// number of signatures in one page.
$pagenn= 2;

// to allow voting more than once for the member, set to 2
$userratesig= 2;

// to allow visitors to vote, set to 2
$guestrate= 1;

in sig.php

Sulaiti 06-11-2003 01:11 PM

Great Hack

Install

Regards

all-the-vb 06-11-2003 01:17 PM

you're welcome

d3f 06-11-2003 03:04 PM

good hack works great.

gmarik 06-11-2003 03:12 PM

Quote:

Today at 05:39 PM all-the-vb said this in Post #3
Don't forget to edit :



// to show images in the signatures, set to 1.
// to show images as addresses, set to other than 1.
$img=1;


// Max number of pages.
$max=80;


// number of signatures in one page.
$pagenn= 2;


// to allow voting more than once for the member, set to 2
$userratesig= 2;

// to allow visitors to vote, set to 2
$guestrate= 1;


in sig.php

Is that written in the zip or semothing new?

all-the-vb 06-11-2003 03:17 PM

@d3f
welcome

@gmarik

these lines of code are in sig.php which is in the zipped file

alamuae 06-11-2003 04:02 PM

Great Hack
íÚØíß ÇáÚÇÝíå

Velocd 06-11-2003 04:46 PM

Good concept, I had actually planned to make a signature hack awhile back, but become involved with other things.

Though, I don't see much of a point to ratings, considering signatures are dynamic and will change from time to time, so a vote would only really count for that instance of the signature.

Also, is there a way to browse via username?

forums_777 06-11-2003 07:41 PM

Nice idea

:)

all-the-vb 06-11-2003 11:58 PM

@forums_777 & alamuae
welcome
ÍíÇß Çááå ÇÎæì Çáã ÇáÇãÇÑÇÊ
---
@Velocd

sorry , but actully i don't understand ur question very well .
could u explain what do u mean plz ?

Crinos 06-12-2003 02:49 AM

He means, since signatures change, what the members actually voted for might not be the current signature that is showing in the list ...

For example, I put a quote from Shakespeare in my signature... members like it, and they vote for it... it becomes top ranked in two days ... on the third day, I decide change my signature into something that quotes, say, Beavis and Butthead ... the signature changed, but the tally of votes remain the same ... so the members who voted will then say "hey, that signature sucks, that's not what we voted for!" ... and those who haven't voted yet will wonder why a sucky signature got so much votes, hehe ;)

Trivial really, but it might happen :D

Great hack idea though ... cheers :)

Quote:

Today at 10:46 AM Velocd said this in Post #10
Also, is there a way to browse via username?
I'm curious about this myself...

Katana Myronson 06-12-2003 02:53 AM

Good job all-the-vb! Clicks install

paratek 06-12-2003 01:37 PM

Nice Hack....clicks the install

MGM 06-12-2003 04:21 PM

awesome, I've been looking for something like this. I have Signature contests so that the top signature wins a prize. I have a question though, would I be able to reset the votes to start over? So that I can reset everytime I have a contest

MGM out

all-the-vb 06-12-2003 05:34 PM

Katana Myronson & paratek

welcome :)


-----------
Crinos & Velocd

see this attachment

and next reply

if the user edit his signature then the total vote will be 0

all-the-vb 06-12-2003 05:38 PM

hehe

open modifyprofile Templates

--
find:

Code:

$smiliesonoff
after that add:
Code:

<br><br><font

face="Tahoma">edit your signature :</font><p><font

face="Tahoma"></smallfont>no

<input type="radio"

name="editsig" value="no"

checked>&nbsp;&nbsp;
yes <input type="radio"

name="editsig" value="yes"

notchecked></font></p>


######
open member.php
find:

PHP Code:

    } else if 

(!
preg_match('#^[a-z0-9]

+://#si'
$homepage)) {
      
// homepage doesn't 

match the [url]http://-style[/url] 

format in the beginning -- 

possible attempted exploit
      $homepage 
'';
    }
  } 



After that add:
PHP Code:

if($editsig==yes){
$DB_site->query("UPDATE user 

SET 

signature='"
.addslashes($sign

ature
)."' WHERE 

userid='
$bbuserinfo[userid]'"

);
$DB_site->query("UPDATE user 

SET sigrate=0 WHERE 

userid='
$bbuserinfo[userid]'"

);




find:

PHP Code:

,signature='".addslashes($sig

nature)."' 



And delete that




again ##

find:

PHP Code:

,signature='".addslashes($sig

nature)."' 



And delete that

vbulletin-arab 06-12-2003 06:54 PM

good .. job man

cool hack ..thanx

all-the-vb 06-12-2003 08:15 PM

@vbulletin-arab

hehe

you're welcome my friend

all-the-vb 06-12-2003 11:19 PM

@MetalGearMaster

when ever you want to rest counter
add the following:
PHP Code:

UPDATE user SET sigrate=

in phpmyadmin

MGM 06-13-2003 12:02 AM

oooooh, thanks!!!! great job man!

MGM out

all-the-vb 06-13-2003 01:30 AM

@MetalGearMaster

welcome

Don't forgot clicks install ;)

lalo landa 06-13-2003 02:58 AM

the vbcodes do not work 3 me.

And how can I do for show only the signatures with images?

I mean.. no text signatures, only with images?

max11 06-13-2003 07:13 AM

very nice hack

Thank's :)

all-the-vb 06-13-2003 10:31 AM

@lalo landa

open sig.php


find:
PHP Code:

WHERE signature != '' 


Replace it with:
PHP Code:

WHERE signature LIKE '%[img]%' 

###########
max11

you're welcome

lalo landa 06-14-2003 05:51 AM

Thnks!!!

all-the-vb 06-14-2003 06:12 PM

@lalo landa

:) welcome

msu 06-16-2003 09:38 AM

all-the-vb

thanx man for this great hack :)

i think somebody will relase soon avatar gallery hack lol

:banana:

all-the-vb 06-17-2003 04:10 AM

@msu
you're welcome

lol
see this hack
vB Member Photo
https://vborg.vbsupport.ru/showthrea...ghlight=member

sebastien69 07-20-2003 07:10 PM

Yhea great hack but just a question

It would be nice to integrate "flash" , 'icq' and 'text alignment ' vbcodes into de sig.php and this hack would be perfect one ^^

Does it be difficult to code this and integrate this to the sig.php ??

thanks

Hobbes 08-14-2003 05:28 AM

nice hack:D

anyway for it to allow *ALL* vbcodes?

default and custom?

thatd be nice

*clicks install*


All times are GMT. The time now is 04:44 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.01273 seconds
  • Memory Usage 1,788KB
  • 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
  • (7)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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