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

Reply
 
Thread Tools
SR Away/Status Hack 1.0.0 Details »»
SR Away/Status Hack 1.0.0
Version: 1.00, by Gio~Logist Gio~Logist is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-20-2006 Last Update: Never Installs: 63
 
No support by the author.


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

Show Your Support

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

Comments
  #62  
Old 04-22-2006, 12:18 AM
NR Fatal NR Fatal is offline
 
Join Date: Mar 2006
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gio, that link worked me, I made all the edits and such. Now I have another problem, well, I have Vbadvanced so you know the problem but i'll give ya a screenshot to see the problem. The drop down menu is empty, I've set up a few options in the admincp for it. what do ya think?
Reply With Quote
  #63  
Old 04-22-2006, 01:19 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kihon Kata
I'll ask this again:

if a user selected a status then the admin decided to change the name of the status, it still shows the old name. How can one update this?
Nothing can be done for this, unless you manually run an update query like
Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user
                                                SET sr_away_status = 'what you want here'
                                                WHERE sr_away_status = 'what it used to be'
                                                 ");
Reply With Quote
  #64  
Old 04-22-2006, 01:21 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NR Fatal
Gio, that link worked me, I made all the edits and such. Now I have another problem, well, I have Vbadvanced so you know the problem but i'll give ya a screenshot to see the problem. The drop down menu is empty, I've set up a few options in the admincp for it. what do ya think?
Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).
Reply With Quote
  #65  
Old 04-22-2006, 11:00 AM
zane99 zane99 is offline
 
Join Date: Jan 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zane99
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
can no1 help?:surprised:
Reply With Quote
  #66  
Old 04-22-2006, 11:20 AM
PabloAM PabloAM is offline
 
Join Date: Jan 2006
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gio~logist
Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).
You are the master, You will fix, sure
Reply With Quote
  #67  
Old 04-22-2006, 09:43 PM
NR Fatal NR Fatal is offline
 
Join Date: Mar 2006
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zane99
can no1 help?:surprised:
u said you found
PHP Code:
$vbphrase[posts]: $post[posts
you have to add it AFTER the </div> tag

like this
PHP Code:
$vbphrase[posts]: $post[posts]
        </
div>
<if 
condition="$post[sr_away_status] != 'none'">
<if 
condition="$vboptions[sr_away_onoff]">
        <
div>
            
$vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
    </if>
</if>                    
</
div
Reply With Quote
  #68  
Old 04-22-2006, 09:44 PM
NR Fatal NR Fatal is offline
 
Join Date: Mar 2006
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gio~logist
Yes, that's a problem with vbadvanced itself. I am still looking for the solution. Like i said before, hacks are made to be compatible with vbulletin itself. I can't always consider what hacks you may have installed. Even so, this hack effects global.php which is pulled in every file on your site. Therefore, theoretically, it should work. However, this will be looked into, and i will try my best to make it vba compatible (as i have vba on my site as well).
No doubt man, i'm sure you'll get it
Reply With Quote
  #69  
Old 04-23-2006, 12:56 PM
zane99 zane99 is offline
 
Join Date: Jan 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NR Fatal
u said you found
PHP Code:
$vbphrase[posts]: $post[posts
you have to add it AFTER the </div> tag

like this
PHP Code:
$vbphrase[posts]: $post[posts]
        </
div>
<if 
condition="$post[sr_away_status] != 'none'">
<if 
condition="$vboptions[sr_away_onoff]">
        <
div>
            
$vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
    </if>
</if>                    
</
div


OK this is wat my code looks like as i have a few other postbit add ons too...

$vbphrase[posts]: $post[posts]

Code:
<if condition="$post[field5] != ''"><div>
					Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
				</div></if>
| <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&aid=9&username=$post[username]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: $post[points] (<a href="ushop.php?do=a&aid=1&username=$post[username]" target="_blank">Donate</a>)
					</div>

					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>


					<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
				</div>

Now then ive tried adding the
Code:
<if condition="$vboptions[sr_away_onoff]">
		<div>
			$vbphrase[sr_away_status]: <a href="#" title="$post[sr_away_message]">$post[sr_away_status]</a>
		</div>
	</if>
in a few places in there but nothing....
Reply With Quote
  #70  
Old 06-01-2006, 08:49 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx - great Hack !
Reply With Quote
  #71  
Old 06-01-2006, 10:41 PM
Lady Divus Lady Divus is offline
 
Join Date: Feb 2006
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice Hack. I installed it and it works perfectly. Thank you for sharing -

Lady Divus *Clicks Install*
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 07:06 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.04610 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (7)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
  • (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