vb.org Archive

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

almighty one 08-05-2001 06:01 PM

where would i restrict the deminsions of ims in sigs? or can this not be done? or could it be hacked? if it could be hacked please could a mod move it to requested hacks if it is easy to do can someone tell me how to do so thank you
keep in mind it isnt the bytes im so worried with it is deminsions restrictin buytes to 100kb would be nice as well

Dakota 08-07-2001 02:59 AM

Well I am not sure how to restrict the actual file size of the sig, but as for the img dimensions, all you need to do is create another BB code for them to use. I just used
PHP Code:

[sig][/sig

and here is the html needed for it
Code:

<img src="http://www.bidforpower.com/forum/admin/cp_logo.gif" height="101" width="455">
You can just change the dimensions to whatever you want, but this will stretch every image used in a sig to that size.

almighty one 08-07-2001 09:45 PM

see i dont want to strecth the sig to a size i want to keep users from using a sig graphic that exceeds a size and they can use anything under that size lets say 550pixels by 200 pixels as an example they can use anything upto this size but no more then this size is what i ned thanx for tryin though

Dakota 08-08-2001 04:04 PM

Well I think the only way you could do that is by doing something like what the custom avatar uses. You would most likely have to upload the users sig into the database or something.

Preasidium 06-06-2002 11:08 AM

I have a question about img in sigs.

If I have the option off to show img in posts why does the img in sigs not show up? I thought that it was a dif template. And I have the sig options all turned on to yes. So I dont know why its not showing. Anyone know whts wrong?

Chris M 06-06-2002 11:42 AM

Im not sure if I understand what you mean...

Satan

Preasidium 06-06-2002 11:53 AM

ok, i will explain in more detail. sorry about that.

On my board I have Attachments as links. I dont allow images to be shown in the threads.

Now in my sig, i want to display an image but all I get it a link to where the image is. Not the actual image.

Here is the code he used to display his img.
PHP Code:

[url=www.empire-forums.com][img]http://www.yoursighost.com/members/Furasaki/sig1.jpg[/img][/url] 

Is there anything wrong with this? Or is there something I have to do in the CP. I have enabled HTML, BB Code, everything. I just dont get it :(

Chris M 06-06-2002 12:26 PM

Ah...

You cannot mix HTML and vB code in a tag...

Either do :

Code:

<a href="url"><img src="imageurl"></a>
Or

Code:

[ url="url" ][ img ]imageurl[ /img ][ /url ]
Satan

Figment 03-14-2003 08:10 PM

Hi, I am using the [sig] codes to limit the size of signature images, but is there any way to prevent users putting the [sig] code into the body of posts/replies to get around images being switched off?

filburt1 03-14-2003 08:12 PM

Requires hacking. Also notice how this thread was started two years ago.

Lesane 03-14-2003 08:58 PM

Figment, you could check the post if it contains [sig]. If so, then show "postbit_nosig" template.

To do so, open admin/functions.php and find:

PHP Code:

//highlight words for search engine 

Add above it:

PHP Code:

i$string_find="[sig]";
if(
strstr($post[pagetext], $string_find)) {
eval(
"standarderror(\"".gettemplate('post_nosig')."\");");


Then make a new template named post_nosig with the message that you don't allow the tag [sig] in any of the posts.


All times are GMT. The time now is 03:51 AM.

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.01019 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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