![]() |
no sig image
Im look for a hack similiar to the no avatar image hack, but this one will work for users with no signature txt or image, this should be an easy one, can any one tackle this down.
If the user doesnt have an sig image , the admin can specify a default sig image to like advertise a product etc. If the user doesnt have any txt the admin can specify a default sig text thanks |
The txt would be hard, because if they have a Sig Image, the [IMG] code would be counted as text;)
Satan |
:classic: ok fair enough, lets scratch the text part then :bandit:
|
The sig image part...
I was having a think of a way to do this, but it doesnt seem that easy to achieve... It depends what type of image you would want inserted - Would it be just a random image url, or one standard url, which grabs a random image? Satan |
Random image would be nice, but I rather just stick with a standard image :classic:
|
Hmmm...
Lemme see now... I need to find a Query that can search the User table, and detect if there is any content in the signature row... Hmmm... Satan |
<i>Edit: Doesnt work...:cry:</i>
Satan |
Damn that doesnt work:(
Satan |
hey I know you are pretty busy, hows it coming along, talk ta ya on Friday
|
Its ok dave...Im here this week;)
Not next week though... Im still experimenting with it:) Satan |
Should be pretty easy IMO, just a smal edit to functions.php should be required. When I have access to my laptop I will take a look ;)
|
I thought that...
It didnt work:( Satan |
Open admin/functions.php find:
PHP Code:
PHP Code:
|
works like a charm on this end
|
Hmmm...Thats exactly what I tried on my machine, and it caused a Parse error:confused:
Ah well - :) Satan |
what did you put in place for abc
|
<img src=\"$sigimgurl\">
Then I added a setting in the vBulletin Options to define "$sigimgurl" as a default Sig Image url:) Satan |
Quote:
|
I take it we can use HTML?
Satan |
It uses the standard rules for sigs, so if HTML is on you can use if, if not it shouldn't work.
|
Right I see...
Anyone know how to do a line break in vBcode? Satan |
Use a textarea in the options so you get multiple lines, I think that should work ;)
|
Cool...I'll let you know;)
Satan |
It didnt work:(
Satan |
[*IMG*]http://www.path.to.im/com/image.gif[*/IMG*]
thats what I used :rolleyes: take out the * of course |
I tried to do it via the Admin Cp;)
Satan |
you mean you making an acp side of this hack :cross-eyed:
|
Yeh...
I changed it via admin/functions.php:) Now It has advertisement info in it:D Why shouldn't I spam my advertising? It may get me more referrals;) Satan |
Quote:
See you reading my mind now :bunny: |
Lol...
It works, and its on my site, so I dont care what others think:D Satan |
Thanks for this little mod, works great NTLDR.
-Arunan |
Have you seen it in action @ DarkBlazes?
Search for one of Teapot's posts;) Satan |
Hehe, jup I saw it :)
Seems really nice, though I am have doubts, cuz I don't know what to put lol -Arunan |
Well...You could put a Sponsor's banner, or a Banner to another site of yours/a friend's...
Satan |
Thanks for the suggestions, maybe I will put "No sig selected" :)
-Arunan |
Lol...
Why not signup at Commission Junction and get advertising out of it? Satan |
Quote:
my users didnt like the no sig image i made, lol |
Lol...
I havent got the gfx skills to:( Satan |
I'll look into some nice CP integration and posiblbly random sigs so hellstatan can have random CJ banners displayed :p (not sure on the query side of that though)
|
Quote:
that would be very nice, let us know how that goes |
All times are GMT. The time now is 09:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|