Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random pics in sigs Details »»
Random pics in sigs
Version: , by ULTIMATESSJ ULTIMATESSJ is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-22-2002 Last Update: Never Installs: 0
 
No support by the author.

Most of my members moan about not being able to use flash in their sigs so they can display more than 2 in their sig, so i thought of making a hack to help them display a random picture in their signiture, i looked into this and seen this code

PHP Code:
$images = array(=> "image1.gif"=> "image2.gif"); // and so on....
$ni rand(110); // $ni = next image;)
header("Location: $images[$ni]"); 
how would i be able to integrate this with vBulletin and give the users the ability to do this?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-24-2002, 02:41 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #3  
Old 07-24-2002, 07:36 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, this would be a difficult hack to make, unless you enable HTML in your signatures I suppose.

Here is my suggestion:
Create X amount of new fields (lets say 4) in the usercp profile page under the signature field. Then allow the user to enter up to 4 different URL's of signatures. Then you could probably work your way somehow with one of those banner rotation scripts and integrate it with vBulletin to allow a member to rotate their 4 banners. You could have more than 4 ofcourse, or you could even allow the user to specify how many he wants, ofcourse this adds more coding on your part.

Attached is the simplest banner-rotation script I know of.
Attached Files
File Type: (21.3 KB, 39 views)
Reply With Quote
  #4  
Old 07-25-2002, 02:09 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd
Hmm, this would be a difficult hack to make, unless you enable HTML in your signatures I suppose.

Here is my suggestion:
Create X amount of new fields (lets say 4) in the usercp profile page under the signature field. Then allow the user to enter up to 4 different URL's of signatures. Then you could probably work your way somehow with one of those banner rotation scripts and integrate it with vBulletin to allow a member to rotate their 4 banners. You could have more than 4 ofcourse, or you could even allow the user to specify how many he wants, ofcourse this adds more coding on your part.

Attached is the simplest banner-rotation script I know of.
i had attempted it using that method, by adding a new part to the usercp telling them where to put it, it sorta worked, but i am still looking into how i could make them specify how many they want, and looking for another way other than profile fields
Reply With Quote
  #5  
Old 07-25-2002, 06:17 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know if replacements might work?

I am guessing they won't, I am thinking of a way to do this...why don't you just allow flash? with the [swf] replacement...I think I saw some addon about flash somewhere.

Drk
Reply With Quote
  #6  
Old 07-26-2002, 03:43 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't see how this would work without having some type of profile field...the user has to somehow enter the URL's of the images that need to be rotated, the method you had thought of and that I suggested is the only way I could see it being done. That way the info can be stored in the database via a query.

As for the quantity of signatures, to get this you just have a field that allows the user to type in a number, and upon hitting the "go" button, it generates X amount of new siggie fields.

There is one way easier for users, the only other way I could see it being done. Have the user make a animated gif with all the signatures inside, set at slow frame speed

...now that I think of it though, there might be another way, but a probably very hard to code way--and this is probably the way that would best suit you and your members.

Somehow create a new tag, that possibly looks like:
Code:
[randomsig][*]http://www.mysite.com/images/sig.1jpg[*]http://www.mysite.com/images/sig.2jpg[*]http://www.mysite.com/images/sig.2jpg
[/randomsig]
This code could be placed in the signature field, and would output, after integration somehow in the randombanner script, as one signature that changes upon refresh.

Now how all this is done, I have no clue
Reply With Quote
  #7  
Old 07-26-2002, 11:08 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd

...now that I think of it though, there might be another way, but a probably very hard to code way--and this is probably the way that would best suit you and your members.

Somehow create a new tag, that possibly looks like:
Code:
[randomsig][*]http://www.mysite.com/images/sig.1jpg[*]http://www.mysite.com/images/sig.2jpg[*]http://www.mysite.com/images/sig.2jpg
[/randomsig]
This code could be placed in the signature field, and would output, after integration somehow in the randombanner script, as one signature that changes upon refresh.

Now how all this is done, I have no clue
hmmm, not a bad idea, only problem is with having limited lines in your signiture, if you want to have around 10 sigs rotating randomly it's gonna take up around 12 lines, which with most forums, you won't be allowed to do so
Reply With Quote
  #8  
Old 12-26-2002, 03:42 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HELP this is a great idea i would also like to have a random sig !
Reply With Quote
  #9  
Old 01-03-2003, 07:20 AM
PSI|Dr-X PSI|Dr-X is offline
 
Join Date: Aug 2002
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats very easy you can do that with GD library
Reply With Quote
  #10  
Old 01-03-2003, 10:12 AM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perhaps you could get this hack made then, i have a small idea on what you could do, but i'm a php n00b still
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:12 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.04457 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete