Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me and earn some MyBux!
Author Message
Polarbear541
Manager



Posts: 888
Joined: Aug 2008
Reputation: 4
Thanked 0 Times in 0 Posts
MyBux: 958
Post: #11
RE: Help me and earn some MyBux!

just use ../global.php


Thanks, Polarbear541
MyBB Support Team


My Sites:
Tech Talk - http://techtalk.co.uk
YHM - http://yhm.techtalk.co.uk
06-21-2009 03:11 AM
Nickman
Manager



Posts: 1,919
Joined: May 2008
Reputation: 37
Thanked 35 Times in 19 Posts
MyBux: 950
Post: #12
RE: Help me and earn some MyBux!

(06-21-2009 03:11 AM)Polarbear541 Wrote:  just use ../global.php

If that doesn't work try .../global.php

Sidenote: You could also use the path to the file if you need to. For instance /home/cpanel_username/public_html/forums/global.php

06-21-2009 06:36 AM


ByteHunter
Senior Member


Posts: 386
Joined: Dec 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 396
Post: #13
RE: Help me and earn some MyBux!

Hey Nickam thanks.
PB thanks for help, I`ve sent 6 MyBux.
Now I want to develop the admin interface of the script

06-21-2009 07:05 AM
ByteHunter
Senior Member


Posts: 386
Joined: Dec 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 396
Post: #14
RE: Help me and earn some MyBux!

Hi. I need help with a tricky progress bar. In the progress bar 1 % = 2 px and not 1 px and If I put "{$mybb->user[vip_p]}" it will give me ex: 25 % even if the value its 50. So I need to get the vip_p value 2 times. I`ve tried {$mybb->user['vip_p' + 'vip_p']} but it dosn`t works :(
Thanks
ByteHunter


edit : {$mybb->user['vip_p'*2]} dosn`t works too :(
I don`t realy understand theese special MyBb functions and I can`t use the "classic" ones. :(

(This post was last modified: 06-23-2009 10:42 PM by ByteHunter.)
06-23-2009 10:38 PM


Alexandru21
Mod Team Leader



Posts: 395
Joined: Jun 2008
Reputation: 2
Thanked 4 Times in 3 Posts
MyBux: 177
Post: #15
RE: Help me and earn some MyBux!

Quote:edit : {$mybb->user['vip_p'*2]} dosn`t works too :(

You can use: {$mybb->user['vip_p']} * 2
OR
{$mybb->user['vip_p']}+{$mybb->user['vip_p']}


[Image: Alexandru21.png]
06-24-2009 12:52 AM
ByteHunter
Senior Member


Posts: 386
Joined: Dec 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 396
Post: #16
RE: Help me and earn some MyBux!

None of them works ... in php would work but I need to use it in a thempelate :(


edit : header tempelate

(This post was last modified: 06-24-2009 12:57 AM by ByteHunter.)
06-24-2009 12:57 AM


Alexandru21
Mod Team Leader



Posts: 395
Joined: Jun 2008
Reputation: 2
Thanked 4 Times in 3 Posts
MyBux: 177
Post: #17
RE: Help me and earn some MyBux!

You can write a variable in PHP like:

PHP Code:
$variable=$mybb->user['vip_p']*2

and then use the variable in the template.


[Image: Alexandru21.png]
06-24-2009 02:03 AM
ByteHunter
Senior Member


Posts: 386
Joined: Dec 2008
Reputation: 2
Thanked 0 Times in 0 Posts
MyBux: 396
Post: #18
RE: Help me and earn some MyBux!

I`ll try it. Thanks.
I just need to wait for my site to come online again.
If it will work I`ll send the 6 MyBux

06-24-2009 02:42 AM


 




New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?




Theme created by AK-47. Find more great themes and skins at K! Dezign Web Design
Wordpress Web Design
Youtube Video Free Bet Football Betting R1s