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)

NR Fatal 04-22-2006 12:18 AM

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?

Gio~Logist 04-22-2006 01:19 AM

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'
                                                ");


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

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).

zane99 04-22-2006 11:00 AM

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:

PabloAM 04-22-2006 11:20 AM

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 ;)

NR Fatal 04-22-2006 09:43 PM

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


NR Fatal 04-22-2006 09:44 PM

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 :)

zane99 04-23-2006 12:56 PM

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....

redlabour 06-01-2006 08:49 PM

Thx - great Hack ! ;)

Lady Divus 06-01-2006 10:41 PM

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

Lady Divus *Clicks Install*


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