Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mood Manager - with AJAX mood update. Details »»
Mood Manager - with AJAX mood update.
Version: 1.2.5, by -=Sniper=- -=Sniper=- is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.2 Rating:
Released: 09-21-2006 Last Update: 07-23-2007 Installs: 1132
DB Changes Uses Plugins Template Edits
 
No support by the author.

By http://www.vbulletinexpert.com

UPDATES ON 24/07/2007

1.2.5
-----

- Fixed XSS security issue
- Added Banned usergroup option

UPDATES ON 15/04/2007

1.2.4
-----

Credits to hambil - https://vborg.vbsupport.ru/member.php?u=57845 for this update

- Aligned text and images for a cleaner look
- Changed dropdown to contain mood images instead of text, with admin option
- Added optional auto replace for postbit and postbit legacy templates

UPDATES ON 08/10/2006

1.2.3
-----

- Changed how the dropdown menu looks slighty, better I think.

- One of the plugins was left inactive by mistake, now active.
which resulted in dead mood images e.g. cross displayed in IE

- Fixed a few mood names / images, so are the same.

- Added a few NEW mood images, thanks to GlitterKill

UPDATES ON 22/09/2006
~~~~~~~~~~~~~~~~~

1.2.0
------

Simply Import the product and make sure you select "allow overwrite"

- No Mood option added
- User Moods will no longer disaply in postbit if moods are disabled.


1.1.3
------

- thanks to basilrath for the moods.

PLEASE READ THE INSTALL FILE

What is It?

It allows users to set a personal mood, which can be changed without reloading the page. The moodis displayed in the members profile and postbit.

Instructions Incuded in the attached file.

Demo

Support I can provide better support at www.vbcmspro.com

Upgrade My other hack depended on another hack, this does not, so simply undo / delete the other hack.

Supporters / CoAuthors

Show Your Support

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

Comments
  #492  
Old 07-16-2007, 04:01 PM
kennethsia kennethsia is offline
 
Join Date: Apr 2007
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wonder is it possible to limit it to a certain usergroup?
Reply With Quote
  #493  
Old 07-17-2007, 04:36 PM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaceJunkie View Post
AdminCp>>>>vBa CMPS>>>>Default Settings>>>>
Look for Portal Output Global Variables

Add in the box
vbmoods
usermoods


Click Save at bottom of the page..
Thanks !!
Works perfectly.
Reply With Quote
  #494  
Old 07-18-2007, 09:48 AM
Poppet Poppet is offline
 
Join Date: Jan 2007
Location: Southport, UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working great :up:

Our members love it
Reply With Quote
  #495  
Old 07-18-2007, 12:10 PM
selwonk's Avatar
selwonk selwonk is offline
 
Join Date: Jul 2005
Location: Manchester, UK
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to speed the process up, if you create/rename your mood icons, this little bit of VBscript will create a file called _List.txt which looks like this:
Code:
Aggressive
Amazed
Amused
Angelic
Angry
Apprehensive
Approved
Asleep
Bahahaha
...
Wasted
Where
Wicked
Woot
Yeehaw
Just create a _List.vbs text file in the \images\mood\ folder and paste this code
Code:
	Function FileExists( str_FileName )
		Set obj_FSO = CreateObject("Scripting.FileSystemObject")
		If (obj_FSO.FileExists(str_FileName)) Then
			FileExists = True
		Else
			FileExists = False
		End If
		Set obj_FSO = Nothing
	End Function

	Function WriteToFile( str_FileName, str_Message )
		Set obj_FSO = CreateObject("Scripting.FileSystemObject")
		Set obj_OutputFile = obj_FSO.OpenTextFile(str_FileName, 2, True, 0)
		obj_OutputFile.WriteLine(str_Message)
	    obj_OutputFile.Close
	    Set obj_OutputFile = Nothing
		Set obj_FSO = Nothing
	End Function

	Function ReadTextFile( str_FileName )
		int_ReadTextFileCounter = 0
		While FileExists(str_FileName) = False And int_ReadTextFileCounter < 1000 ' 3.0
			int_ReadTextFileCounter = int_ReadTextFileCounter + 1
			' Wait for file to be created
		Wend

		Set obj_FSO = CreateObject("Scripting.FileSystemObject")
		Set obj_InputFile = obj_FSO.GetFile(str_FileName)
		Set obj_TextStream = obj_InputFile.OpenAsTextStream(1, TristateFalse)
		str_Text = obj_TextStream.ReadAll
	    Set obj_InputFile = Nothing
		Set obj_FSO = Nothing
		ReadTextFile = str_Text
	End Function

	Sub DeleteFile( str_FileName )
    	Set obj_FSO = CreateObject("Scripting.FileSystemObject")
		If obj_FSO.FileExists(str_FileName) Then
			obj_FSO.DeleteFile(str_FileName)
		End if
		Set obj_FSO = Nothing
	End Sub
	
	' Parameters
	Set obj_FSO = CreateObject("Scripting.FileSystemObject")
	GBL_IN = obj_FSO.GetAbsolutepathname("") & "\"
	GBL_OUT = obj_FSO.GetAbsolutepathname("_List.txt")
	Set obj_FSO = Nothing

	Set obj_FSO = CreateObject("Scripting.FileSystemObject")
	Set obj_Folder = obj_FSO.GetFolder(GBL_IN)

	str_Log = ""

	For Each obj_File In obj_Folder.Files
		str_FileName = obj_File.Name
		If Right(str_FileName, 4) = ".gif" Then
			WScript.Echo str_FileName
			str_Log = str_Log & Left(str_FileName, Len(str_FileName) - 4) & vbcrlf
		End If
	Next

	Set obj_Folder = Nothing
	Set obj_FSO = Nothing

	WriteToFile GBL_OUT, str_Log
Get to a DOS prompt, change to that folder and type
Code:
cscript _List.vbs
Edit the resultant file and paste the results into the Admin CP

Hope that helps...
Reply With Quote
  #496  
Old 07-21-2007, 12:16 PM
Poppet Poppet is offline
 
Join Date: Jan 2007
Location: Southport, UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by -=Sniper=- View Post
run this query
PHP Code:
UPDATE user SET mood 'newmood.gif' WHERE mood 'oldmood.gif' 
Please could you elaborate on this one (Sorry tired brain after reading 33 pages )

I've just had an issue with one of our members where I needed to reset their mood but didn't know how to Would it be possible to provide a way to reset moods in the Admin CP.
Reply With Quote
  #497  
Old 07-22-2007, 07:54 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kennethsia; i'll add the ability to ban/disable the mood feature for usergroups

Poppet; I'll add the options in the admincp -> user edit/add section to reset a users mood.

as for running the query;

in the admincp -> Maintenance -> Execute SQL Query -> enter the code I gave above!

I'll start to work on it after work tomorrow, so last chance to make suggestions
Reply With Quote
  #498  
Old 07-24-2007, 06:30 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HACK updated to fix XSS SECURITY ISSUE!
Reply With Quote
  #499  
Old 07-24-2007, 06:59 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx for the update

Jacquii.
Reply With Quote
  #500  
Old 07-24-2007, 07:04 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So in the upgrade to fix the XSS security issue would be to over write the product and thats all? :|
Reply With Quote
  #501  
Old 07-24-2007, 07:06 PM
odie3 odie3 is offline
 
Join Date: Mar 2007
Location: Kyle USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the update!
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:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05408 seconds
  • Memory Usage 2,322KB
  • Queries Executed 26 (?)
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
  • (3)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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete