vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Random pics in sigs (https://vborg.vbsupport.ru/showthread.php?t=41382)

ULTIMATESSJ 07-22-2002 02:37 PM

Random pics in sigs
 
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?

ULTIMATESSJ 07-24-2002 02:41 PM

bump

Velocd 07-24-2002 07:36 PM

1 Attachment(s)
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.

ULTIMATESSJ 07-25-2002 02:09 PM

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

DrkFusion 07-25-2002 06:17 PM

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

Velocd 07-26-2002 03:43 AM

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 :)

ULTIMATESSJ 07-26-2002 11:08 PM

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

corsacrazy 12-26-2002 03:42 PM

HELP this is a great idea i would also like to have a random sig !

PSI|Dr-X 01-03-2003 07:20 AM

Thats very easy you can do that with GD library

ULTIMATESSJ 01-03-2003 10:12 AM

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


All times are GMT. The time now is 03:47 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.01115 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete