vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   SR Away/Status Hack 1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=113626)

Gio~Logist 04-20-2006 10:00 PM

SR Away/Status Hack 1.0.0
 

Brought to you by:
DopeGFX
-----------------------------------------------------------------
LOGOS | WEBSITES | SKINS | HTML | PHP(Limited) | AND MUCH MUCH MORE!
-----------------------------------------------------------------
In Conjunction With
SiteResort


**Copyright**
This script cannot be redistributed, reproduced, or published in any way unless given permission my the author (me). Modifying this script and sharing your modification elsewhere without the author's knowledge is not allowed as well.

**Before Making An Add on **
Please consult with me before making an add on to this hack. As it is my work and such, the add ons that you are trying to make for it may be in the next release.

What does this do?
This hack allows your members to have an away/status message. This message can be edited at any time on any page and is displayed
in posts, and in member profiles.


What features does this hack provide?
  • Users can have away/status message
  • Easily edited via the navbar, while viewing any page
  • Away/Status Message Appears In Profile
  • Away/Status Message Appears In Postbit
  • List status options
  • Turn system on and off
What does this hack require?
Template Edits: 4
Products Imported: 1

[high]4 Easy Steps[/high]
Step 1. Import the following product: product-sr_away.xml
Step 2. Do the edits located below
Step 3. Update newly added options
Step 4. Enjoy the hack.

Don't forget to click INSTALL

[high]As always, feel free to make a donation to:[/high]
gio@dopegfx.com

https://vborg.vbsupport.ru/external/2006/07/12.gif

Gio~Logist 04-20-2006 11:42 PM

Here are some screenshots

Roxie 04-21-2006 12:11 AM

Looks good. *installs*

Roxie 04-21-2006 12:24 AM

Question...why does it appear in the postbit as a link?

Gio~Logist 04-21-2006 12:27 AM

Quote:

Originally Posted by Roxie
Question...why does it appear in the postbit as a link?

Hover over it and you'll see :p Take a look at the screenshot.

Roxie 04-21-2006 12:29 AM

Okey..it's the message. Got it.

2 things (nothing major). Can't use ( ' ) when adding new statuses to the menu and the menu of statuses is blank on a vbadvanced page. I think this would be awesome if the users could just add their on custom status.

Nonetheless, great hack!!

Stop 04-21-2006 12:33 AM

I'll try it.

Gio~Logist 04-21-2006 12:33 AM

Quote:

Originally Posted by Roxie
Okey..it's the message. Got it.

2 things (nothing major). Can't use ( ' ) when adding new statuses to the menu and the menu of statuses is blank on a vbadvanced page. I think this would be awesome if the users could just add their on custom status.

Nonetheless, great hack!!

I was able to use 't"'e's't'''' just fine. What are you trying to use? As for the users having their own statuses, that can be done by changing the drop down to another input. I made it like that just so that you can have some control. And the vbadanced page, options can't be called there at all for some reason. Vbadavanced uses the global.php file in a weird way. I will look into making it compatible with vba.

Roxie 04-21-2006 12:42 AM

One of my options was Please Don't Bother Me. When I selected it, I got a database error:

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't Bother Me',

I just changed it to Please Dont Bother Me.

Gio~Logist 04-21-2006 12:51 AM

I see the problem for that Roxie :p

Forgot to add
Code:

        $message = $vbulletin->db->escape_string($message);       
        $status = $vbulletin->db->escape_string($status);

Anyways, i updated the zip. Just add that code under
Code:

        $status= $vbulletin->GPC['status'];
        $message= $vbulletin->GPC['message'];

In the "Save Away/Status Message" Plugin if you already installed it.

NR Fatal 04-21-2006 01:24 AM

your 1st image is what I'm referring to.
anyway to change the text "away/status" to something else? Like,
Currrent game/project?
considering you can change the status name and the message that'd be somethin l'd like to do.
:-) Nice hack!

Gio~Logist 04-21-2006 01:26 AM

Quote:

Originally Posted by NR Fatal
your 1st image is what I'm referring to.
anyway to change the text "away/status" to something else? Like,
Currrent game/project?
considering you can change the status name and the message that'd be somethin l'd like to do.
:-) Nice hack!

Thank you, and yes you can :p

Simply edit the following phrases:
sr_away_status
sr_away_awaystatus
sr_away_message

Also, do not forget to click install. Support will not be given to those who don't (i just realized you didn't).

NR Fatal 04-21-2006 01:47 AM

hm.. can't find
PHP Code:

$vbphrase[posts]: $post[posts] <br

in postbit.

Gio~Logist 04-21-2006 01:51 AM

Quote:

Originally Posted by NR Fatal
hm.. can't find
PHP Code:

$vbphrase[posts]: $post[posts] <br

in postbit.

Your template must have been customized. Try just searching for $vbphrase[posts]: $post[posts] and then look for a <br> or a </div> next to it.

Kihon Kata 04-21-2006 01:52 AM

Quote:

Originally Posted by gio~logist
Thank you, and yes you can :p

Simply edit the following phrases:
sr_away_status
sr_away_awaystatus
sr_away_message

Also, do not forget to click install. Support will not be given to those who don't (i just realized you didn't).

Hi Gio! Nice hack! I am installing it now. One question, in the postbit, when they don't have a status selected, is there a way to NOT show the line "Status: None" at all? Leaving the complete line blank if they don't select any status?

NR Fatal 04-21-2006 01:52 AM

found this

PHP Code:

<div>
                        
$vbphrase[posts]: $post[posts]
                    </
div


Gio~Logist 04-21-2006 01:55 AM

Quote:

Originally Posted by Kihon Kata
Hi Gio! Nice hack! I am installing it now. One question, in the postbit, when they don't have a status selected, is there a way to NOT show the line "Status: None" at all? Leaving the complete line blank if they don't select any status?

Ad an <if condition="$post[sr_away_status] != 'none'"> before the code that you need to add in postbit. And an </if> after.

Gio~Logist 04-21-2006 01:56 AM

Quote:

Originally Posted by NR Fatal
found this

PHP Code:

<div>
                        
$vbphrase[posts]: $post[posts]
                    </
div


Then add it after the </div> :p

Kihon Kata 04-21-2006 01:59 AM

Quote:

Originally Posted by gio~logist
Ad an <if condition="$post[sr_away_status] != 'none'"> before the code that you need to add in postbit. And an </if> after.

w00t! that worked like a charm! Installed!

NR Fatal 04-21-2006 02:01 AM

ok got that but now when I go to change the Member info template and edit I get this error. know why?
Not Acceptable
An appropriate representation of the requested resource /admincp/template.php could not be found on this server.

Gio~Logist 04-21-2006 02:08 AM

Quote:

Originally Posted by NR Fatal
ok got that but now when I go to change the Member info template and edit I get this error. know why?
Not Acceptable
An appropriate representation of the requested resource /admincp/template.php could not be found on this server.

Does this happen while saving the template or viewing the page. If it happens while editing the template, then either you are putting it in the wrong place or you have a misconfigured if statement.

NR Fatal 04-21-2006 02:09 AM

Quote:

Originally Posted by gio~logist
Does this happen while saving the template or viewing the page. If it happens while editing the template, then either you are putting it in the wrong place or you have a misconfigured if statement.

even if I don't edit the template, if I just click save or save and reload I get that error.

Gio~Logist 04-21-2006 02:11 AM

Quote:

Originally Posted by NR Fatal
even if I don't edit the template, if I just click save or save and reload I get that error.

Then this means that your template itself has an error.

NR Fatal 04-21-2006 02:11 AM

Quote:

Originally Posted by gio~logist
Then this means that your template itself has an error.

well that sucks, lol. How do I fix this?

Gio~Logist 04-21-2006 02:13 AM

Quote:

Originally Posted by NR Fatal
well that sucks, lol. How do I fix this?

You will have to post this in another forum for support. I will take a look when i can :p However, if it happens without you making an edit, then it's the template itself.

NR Fatal 04-21-2006 02:17 AM

Quote:

Originally Posted by gio~logist
You will have to post this in another forum for support. I will take a look when i can :p However, if it happens without you making an edit, then it's the template itself.

ok, thanks man, I appreciate the help and would appreciate it if you could look into it for me, I can send you the code if needed. when/if you get time.

Gio~Logist 04-21-2006 02:21 AM

Quote:

Originally Posted by NR Fatal
ok, thanks man, I appreciate the help and would appreciate it if you could look into it for me, I can send you the code if needed. when/if you get time.

If you'd like, you can PM me with details with admincp access and such and i will take a look at it tommorow if it has not yet been solved, as it is getting late for me :)

Tyegurl 04-21-2006 02:39 AM

everything installed just wonderfully....two problems...yes it doesn't work on vbadvance's pages....secondly i can get it to submit rather quickly but then it tries to open misc.php and it takes forever to load....i haven't had the patience to wait past 2 minutes....any ideas?

Gio~Logist 04-21-2006 02:40 AM

Quote:

Originally Posted by Tyegurl
everything installed just wonderfully....two problems...yes it doesn't work on vbadvance's pages....secondly i can get it to submit rather quickly but then it tries to open misc.php and it takes forever to load....i haven't had the patience to wait past 2 minutes....any ideas?

1) Yes, i need to look into the vbadvanced situation.
2) I suggest you take a look at your misc.php and hooks on it, as this shouldn't happen.

Tyegurl 04-21-2006 02:42 AM

what am i looking for? cuz i have no clue.....lmfao i am sorry...i am still learning to understand this stuff. please be patient with me.

Gio~Logist 04-21-2006 02:45 AM

Quote:

Originally Posted by Tyegurl
what am i looking for? cuz i have no clue.....lmfao i am sorry...i am still learning to understand this stuff. please be patient with me.

Ah i see. Well, it will be a bit difficult to locate the problem if you do not know what it is. Try disabling certain products (besides this one) and see which one causes the lag. This hack shouldn't take anywhere near long to update your message as it doesn't do many things :p. The only thing it can be is either a little connection issue on your side or a hack you have installed.

Kihon Kata 04-21-2006 05:00 AM

Mine is working good! Users are loving it. I had to change it up a bit with the locations of things since my templates are modded up pretty good. It did help that I have a pretty good knowledge of the inner workings of vB though :-)

Thanks again

ShadowOne 04-21-2006 05:29 AM

great hack... but when will you be adding th ability for users to have a custom status?

Omranic 04-21-2006 08:55 AM

Great
** Installed **

Testing.....

PabloAM 04-21-2006 11:24 AM

Very Good! Installing!!

PabloAM 04-21-2006 12:00 PM

Its in black in navbar of vbadvanced :(
why???

BoYagoob 04-21-2006 12:28 PM

installed

PabloAM 04-21-2006 12:30 PM

In Navbar of vbadvaced not WORK :(
http://img510.imageshack.us/img510/5...barhome2gr.jpg
but in navbar of forum view topic WORK!! :S
http://img510.imageshack.us/img510/6...mnavbar1fy.jpg

Why?? please help me! :)

zane99 04-21-2006 12:52 PM

OK everything works fine but it doesnt show up in postbit

i tried finding $vbphrase[posts]: $post[posts] <br>

but couldnt but i found $vbphrase[posts]: $post[posts]

so i tried adding the code under there but nothing.

Help Please

Tyegurl 04-21-2006 01:17 PM

i am very heavily modded...i will take some time and see if i can't get it to work...i understand things somewhat and through trial and error i usually get it ;) ty


All times are GMT. The time now is 05:19 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.01642 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (17)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