vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBmoods 1.0 (https://vborg.vbsupport.ru/showthread.php?t=41883)

Velocd 08-03-2002 10:00 PM

vBmoods 1.0
 
vBmoods
Version 1.0 | by Velocd ^_^


Update - 8/5/02 - Nakkid & Firefly Quick Reply Add-On's ;)
In the updated zip are two text documents that each contain an add-on for either Nakkid's or Firefly's quick reply hack. I HIGHLY suggest you install these add-ons (that is if you have a quick reply installed) because they make things much easier and cooler.
You can view a screenshot of Nakkid's qrb here
.


Update - 8/4/02 - Bug fix
Fixed a bug where when editing a post, if you don't specify a new mood and mood message, you will lose your last ones. Also gave instructions on adding the templates to the templates used list, to prevent excess queries. Sited by TheDutch here. Refer to 8-4-02fix.txt in the zip for instructions on how to fix.



What does this hack do?

This is an interesting hack on my part. I tried to create this very hack about a month and half ago, but failed miserably wasting 7 hours of my life (a small fraction to how many hours I've really wasted doing other things ;)). Just 2 days ago I was looking on vB.org for a good mood hack, but there were only 2 and they didn't satisfy my tastes at all. So I decided to give it another shot, knowing that my PHP/MySQL experience was much more advance then it was a month ago. With about 14 hours of coding, trial & error, troubleshooting, running breaks (for my sports), I finally finished about 9pm tonight. My previous hacks are what helped me alot to create this one, even though they weren't all that good, it gave me the experience needed by trial & error to create a really good hack. And as with me I'm also very persistant in my coding and designing, not to give up so easily. A lesson alot of use could use *cough* Neo *cough* ;)

Uh, anyway, getting alittle side tracked. This hack will give your users the option to choose a mood every time they post a new reply, new thread, or edit their post. These moods are in the form of images, and can be whatever images you want. It's fully integrated into the ACP (admin control panel), and should be easy to install and use.



Features:
  • Moods are based are on smilies! :)
  • Set a message for your mood, that will show up on mouseover of your mood icon! This mood message is filtered by the censored using your vBulletin censor list. If you don't want a mood message, it's easy to code out.
  • Moods can be set by newreply, newthread, and edit post screens.
  • Add/Modify/Delete moods via the ACP (admin cp)
  • Deleting moods via the ACP that are being used in the forum will remove them from those posts (instead of leaving you a annoying box with a red x in it).



Could this make a good add-on for Lesane store hack?
Yes it could! ;) But I have no intention on implementing it myself, so please don't ask so in this thread.

Screenshots?
Screenshots can be found in the next few posts.

Bugs?
None that I know of, but if you find any please let me know!



-----------------------------------------

Attached is the zip, with instructions inside. The instructions for this hack took damn long to make, so please if you used this hack CLICK INSTALL :)

Suggestions and comments are always welcomed :)

Velocd 08-04-2002 04:52 AM

New post screenshot:

Velocd 08-04-2002 04:53 AM

Postbit screenshot:

Velocd 08-04-2002 04:54 AM

Admincp shot:

Austin Dea 08-04-2002 05:08 AM

Nice. ;)

[high]* Austin Dea is feeling happy :)[/high]

Link14716 08-04-2002 05:10 AM

Nice, I will probably install this on later :D

Neo 08-04-2002 05:37 AM

Quote:

Originally posted by Velocd

A lesson alot of use could use *cough* Neo *cough* ;)

LOL, I havent quit making hacks, just releasing them.

Joo you one of my fav hackers on VB.org you got some skillz G :cool:


*installs*

TheDutch 08-04-2002 06:41 AM

Very nice Velo!!!
I will install it today at http://www.flashdevils.com

BTW: I replied on your post about the mail tag color change ;)

Yours,
Erwin

TheDutch 08-04-2002 07:25 AM

Alright, i installed the hack and everything is working very smooth.
Only one thing:

Because of a 50% width in a TD the layout is not as usual anymore so do this:

In template: newposting_usermoodbit
EREASE: width="50%"

Great work VeloCD!!!!

TheDutch 08-04-2002 07:38 AM

Hi Velocd,

One other thing, when i edit a post all my data about the mood has been reset to nothing. Could you please change that?

Thank You!

Chris M 08-04-2002 09:13 AM

Cool...

*Installs*

Satan

Kars10 08-04-2002 12:55 PM

Installs!! And works great.
Thank you very much VeloCD!!! :)

ULTIMATESSJ 08-04-2002 03:16 PM

hmmm looks pretty interesting, nice work velocd

DestyNova 08-04-2002 03:49 PM

Best mood hack :thumb up:

Velocd 08-04-2002 08:51 PM

Quote:

Originally posted by TheDutch
Hi Velocd,

One other thing, when i edit a post all my data about the mood has been reset to nothing. Could you please change that?

Thank You!

Quote:

Originally posted by TheDutch
Alright, i installed the hack and everything is working very smooth.
Only one thing:

Because of a 50% width in a TD the layout is not as usual anymore so do this:

In template: newposting_usermoodbit
EREASE: width="50%"

Great work VeloCD!!!!

Updated both those problems, refer to the 8-4-02fix.txt in the zip to fix them. Also in the 8-4-02fix it will add the templates used to the TEMPLATES USED list, which I accidentally forgot to mention. Doing this saved me about 2 queries on the posting pages.

Attached is the update fix, you can also download in the original zip. ;)

TheDutch 08-05-2002 05:40 PM

Thanx VeloCD, briljant!!!
Only one more thingy ;)

When you edit a post you see that the icon was the one you had but the icon doesnt automaticly appear next to the listbox, only when you start selecting again.

Erwin

Austin Dea 08-05-2002 06:08 PM

Any quick way to incorporate this with the qrb? If not, don't worry about it =P.

Velocd 08-05-2002 08:06 PM

@TheDutch: Yup I noticed this, but I'm not sure how to fix it ;)

@Austin Dea: What is qrb? ^^;;

edit:

Ohh, quick reply box :) (just figured it)

Yes actually I'm gonna integrate it today with the qrb since I've realized alot of my users totally depend on the qrb and might not use the moods because of it.

I'll release two integrations: Firefly's quick reply, and Nakkid's.

[t4e]Kicks 08-05-2002 08:12 PM

Nice hack, but I did have one thing I had to change for the postbit template.

You say to search for:

$post[editedreason]
<p align="right"><smallfont>

All I could find was:
<p>$post[editedby]</p>
<p align="right"><smallfont>

I applied the appropriate change accordingly. Just thought I'd point that out

TheDutch 08-05-2002 08:36 PM

Quote:

Originally posted by Velocd
@TheDutch: Yup I noticed this, but I'm not sure how to fix it ;)

No Problem, i will try it tomorrow myself and when i fix it i post it here :D.

Thanx for everything Velocd!

Yours,
Erwin

Martin64 08-05-2002 10:06 PM

Sweet one, I instantly removed my own mood hack and installed this :)

Velocd 08-05-2002 11:20 PM

Alrighty, I just made two add-ons for Firefly's & Nakkid's quick reply hacks. It looks very nice also.

I personally am using Nakkid hack, which you can see a screenshot of it attached.

The zip has been updated, so go check it out (note: you might have to clear your cache if you can't find the files in the zip).

Austin Dea 08-06-2002 12:14 AM

Sweet, thanks.

Velocd 08-06-2002 01:00 AM

There is a very small bug in the quick reply I just noticed (Nakkid quick reply). If you take a look at my screenshot attached in post #22 you can see that the mood message field says "mood message..", well..if your user doesn't want a mood message and at defaults just selects a mood and hits submit, then their mouseover text will say "mood message..".

So to fix this, in newreply.php find:
PHP Code:

$usermoodmessage censortext($usermoodmessage); 

And below it place:
PHP Code:

if($usermoodmessage == "mood message..")
       {
       
$usermoodmessage '';
       } 

Replace the "mood message.." part with whatever text you have. If you have no text in it, then don't even use this fix. :P

TECK 08-06-2002 01:54 AM

cute one. great job. :)

Velocd 08-06-2002 03:42 AM

Thnx ;)

I'm sure this hack will become a hit any minute now..I can sense it... ^_^'

Martin64 08-06-2002 08:10 PM

I've got FireFly's quick reply hack installed, and I'm looking at the instrucations for FireFly's add-on. It says to look for this in (I assume) showthread.php:

Code:

Now find:
---------------------------
forumdisplay_loggedinuser,forumdisplay_loggedinuser
---------------------------

And replace it with:
---------------------------
newposting_usermoodbits,forumdisplay_loggedinuser,forumdisplay_loggedinuser

I can't find this in showthread.php, or isn't that where I should look? My guess would be forumdisplay.php but it doesn't say so.

Edit: Yes, I changed that info in forumdisplay.php and it works fine. :)

Velocd 08-06-2002 09:12 PM

Martin, it wont help you to change the info in forumdisplay, because the templates are not being called there.

In showthread.php, search for this instead:
PHP Code:

// ##############################################################################
// ############################# SHOW THREAD ####################################
// ##############################################################################

$templatesused 

And replace it with:
PHP Code:

// ##############################################################################
// ############################# SHOW THREAD ####################################
// ##############################################################################

$templatesused 'newposting_usermoodbits, 

That should work ;)

Martin64 08-06-2002 10:12 PM

Thanks Velocd. Yeah, I suspected so. The hack worked with me adding it to forumdisplay.php though :p

Austin Dea 08-07-2002 03:56 AM

The whole alt message I type in isn't showing up :-\..It only shows 50 characters...

Velocd 08-07-2002 06:49 PM

Yes I know, the image ALT has a max of 50 characters...if somebody knows how to change this, maybe with stylesheet properties or something, let me know :D

I know for URL links you can make the ALT text very long, but I'm not sure how to do it with an image ALT..

Seifer 08-08-2002 09:28 PM

Works great =DDD

KISS 08-08-2002 11:20 PM

Anyone know of a way to implemete this into Fireflys Quickreply?

Austin Dea 08-09-2002 01:44 AM

They're in the instucs. Look at the first post.

KISS 08-09-2002 02:36 AM

Sorry musta missed the Update.

Austin Dea 08-09-2002 03:53 AM

;D

NuclioN 08-10-2002 04:55 PM

-- problem solved -- Now a new one? When i reply or edit the mood dissapears untill i assign a new one.

sub 08-24-2002 01:45 AM

I seem not able to figure out why it's erroring out like this. *blink*


Quote:

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE post SET pagetext='gawd this betta work',MOOD='',allowsmilie='1',showsignature='0',ic onid='0',attachmentid='0' WHERE postid=''
mysql error: Unknown column 'MOOD' in 'field list'

mysql error number: 1054

Date: Friday 23rd of August 2002 10:34:59 PM
Script: http://www.xxxxxx.com/forums/forums/newthread.php
Referer: http://www.xxxxxx.com/forums/newthre...read&forumid=2

eXtremeTim 08-24-2002 03:18 AM

I will proble install this tommorrow. :)

Travis641 08-24-2002 04:55 PM

Quote:

Originally posted by sub
I seem not able to figure out why it's erroring out like this. *blink*
Did you run the Queries?


All times are GMT. The time now is 04: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.01240 seconds
  • Memory Usage 1,829KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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