Some questions about images, avatars and smilies - نوشته شده در (2028 Views)
New Member
radiodelicate
مطلب: 53
53
Hi! I recently joined, but have been lurking for months. I cannot even begin to say how much help I've had of these forums, so I'd just like to say thanks for that to begin with.
Now, I have a couple of questions/requests about MODs. I've done my best trying to search for them, but haven't been able to find any satisfying results.
1. Is it possible to just allow images in a certain part of the forum? FIXED! bigsmile I've turned images off in my forum as it is now, since I do not want the topics to be cluttered with images and take too long time to load. I have however a part of the forum where the members are encouraged to post links to their photographs, artworks and so on. I would love it if it was possible to allow images just for this specific forum, while images still stay turned off in the other parts.
2. Simple avatars I like the possibility for my users to use avatars, but I'm not particularly fond of the existing Avatar MODs. If I were to choose, I'd like something far more simple. No galleries, no uploading, nothing like that. Just a simple field on the profile where they can paste the URL, much like the Profile Image.
3. Allow smilies in profile bios? Is there some way I can make it so my users will be able to use the smiley codes in their profiles, and make the smilies display properly? I mean, forum code works, why not smilies? - never mind that one, I was being a twerp.

Might also add that I'm fairly new to ASP, and English isn't my first language, so apologies if I've expressed myself foggily.
I hope this is the right part of the forum to ask for things like this.<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Originally posted by radiodelicate
3. Allow smilies in profile bios? Is there some way I can make it so my users will be able to use the smiley codes in their profiles, and make the smilies display properly? I mean, forum code works, why not smilies?
Silly question, but do the smilies work everywhere else? I ask only because (without the code in front of me) I would think that if forum code was working, the smilies would be too... I'll have to go and double-check, but it never hurts to start with the obvious questions. wink<
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
Originally posted by radiodelicate
3. Allow smilies in profile bios? Is there some way I can make it so my users will be able to use the smiley codes in their profiles, and make the smilies display properly? I mean, forum code works, why not smilies?
Smilies do work in the profile. You just need to enter the smilie code inside of the brackets to get it to display.<
نوشته شده در
New Member
radiodelicate
مطلب: 53
53
Originally posted by radiodelicate
3. Allow smilies in profile bios? Is there some way I can make it so my users will be able to use the smiley codes in their profiles, and make the smilies display properly? I mean, forum code works, why not smilies?
Smilies do work in the profile. You just need to enter the smilie code inside of the brackets to get it to display. haha weeeird. I've tried that, but it didn't work. I'll have to try again :P

edit: okay, it's working now, I must've done something wrong the last time 'round.<
نوشته شده در
New Member
radiodelicate
مطلب: 53
53
Originally posted by AnonJr There is some code floating around here that will let you use the profile image as the avatar. As for anything else, you would either have to write it yourself or sweet talk someone into developing something like that. If you decide to sweet talk someone into developing another Avatar MOD, I'd post the request in a new topic and be as descriptive as you can.
All things being equal, it sounds like using the profile image for an avatar will be the easiest solution.
Ok, I'll have a look at that MOD then, because that sounds like the best solution to me as well smile
thanks for your help<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
The quick and dirty way to do 1 isn't too hard if you're ok with modding the files. In inc_func_common.asp around line 128 (in green)
Code:

	if strAllowForumCode = "1" then
fString = ReplaceURLs(fString)
fString = ReplaceCodeTags(fString)
if strIMGInPosts = "1" then fString = ReplaceImageTags(fString)
end if
end if
Change that to be
Code:
if strIMGInPosts = "1" and Forum_ID = <number_of_forum> then
Change <number_of_forum> to whatever forum you need. This has not been tested. If you need to allow for many forums just change it to
Code:
if strIMGInPosts = "1" and (Forum_ID = <number_of_forum> or Forum_ID = <number_of_forum2> or Forum_ID = <number_of_forum3> ...) then
<
نوشته شده در
New Member
radiodelicate
مطلب: 53
53
Originally posted by phy1729
The quick and dirty way to do 1 isn't too hard if you're ok with modding the files. In inc_func_common.asp around line 128 (in green)
Code:

	if strAllowForumCode = "1" then
fString = ReplaceURLs(fString)
fString = ReplaceCodeTags(fString)
if strIMGInPosts = "1" then fString = ReplaceImageTags(fString)
end if
end if
Change that to be
Code:
if strIMGInPosts = "1" and Forum_ID = <number_of_forum> then
Change <number_of_forum> to whatever forum you need. This has not been tested. If you need to allow for many forums just change it to
Code:
if strIMGInPosts = "1" and (Forum_ID = <number_of_forum> or Forum_ID = <number_of_forum2> or Forum_ID = <number_of_forum3> ...) then
cheers, I'll give it a go. I'll have to allow images first, yeah?<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
The way he's got it coded, yes you will have to allow images - but images will only work in the forum(s) that you specify.<
نوشته شده در
New Member
radiodelicate
مطلب: 53
53
phy1729, it works a charm, thanks!<
نوشته شده در
New Member
radiodelicate
مطلب: 53
53
another question regarding images: is it possible to modify the code so I can restrict the number of images allowed in each post? I've been trying to search for it, but haven't had any luck so far.<
نوشته شده در
Average Member
phy1729
مطلب: 589
589
Glad I could help.<
شما باید یک متن وارد کنید