Variable returning 1?
#1
This user has been denied support. This user has been denied support.
Hey guys im implementing mybb to work with my site OGPaste but using this block of code

if (isset($_COOKIE['mybbuser'])) {
$p_member = print_r ($mybb->user['username']);
} else {
$p_member = "Guest";
}

The variable just puts 1 in the database instead of the users name

The variable works elsewhere

http://ogpaste.com/ like when you login it uses the name right but when you assign a paste http://ogpaste.com/7 it doesnt use the right value it just prints 1 nomatter what its not the UID either used multiple users same return of 1 it says By 1 thats the issue
Reply
#2
Minimum Copyright
MyBB is licenced under the LGPL and therefore users may remove the MyBB copyright and credit notice from the footer of their forum, however those who choose to do so are ineligible for support on the community forums.

To receive support users must display at the very least the following "powered by" notice on every page of their forum:

Powered by MyBB.
The text must contain a link to https://mybb.com, an image of the text is acceptable however it must still link to https://mybb.com.

If your theme does not already carry the powered by message it can be added by going into your admin control panel > Templates & Styles > Templates > *Select template* > Footer templates > Footer and then adding the following code:

Powered by <a href="https://mybb.com" target="_blank">MyBB</a>.
Users that are found to violate this rule will be denied support temporarily (for the first offense) until rectified, or permanently for repeated offenders.

Appropriateness of Content
For ethical and legal reasons the MyBB Group also chooses not to provide support to websites containing any of the following:

Hacking (includes "leaks")
Pornography
Illegal file distribution or piracy
Illegal use of electronic assets, including but not limited to violation of theme licensing (e.g. removing author name from footer)
Any other forms of illegal activity
Racist or hateful content
Discussions that encourage, promote or demonstrate methods of producing, consuming, using, cultivating, buying, selling, distributing or supplying drugs that could reasonably be considered illegal
Users known to operate a website which contains any of the above will be noted by staff and they will be denied support in all future instances, regardless of whether the support is intended for another acceptable site operated by the user. This is because otherwise MyBB staff can not be certain if their support is benefiting an acceptable site or one that is not.

Note: The MyBB Group doesn't classify game or console modding as hacking, providing it is not used for malicious purposes.

Other instances
The MyBB Group reserves the right to deny support to any member in any case they feel it is an appropriate consequence to other rule violations committed by the user. Examples of this might be abuse towards staff or members in a support threads, or if the user repeatedly sends mass private messages to staff for support.

I have been denied support, what now?
The MyBB Community Forums are not the only source of support available for MyBB. You may be able to find an answer to your problem on the Docs site or on another unofficial MyBB resource website.

If you believe your support denial was unjustified, or you have rectified the issue that resulted in the denial, you may discuss the matter in the Private Inquiries, which may include removal of the support denial, at the sole judgment of the MyBB Group.
Been awhile since using MYBB.
Reply
#3
This user has been denied support. This user has been denied support.
OGPaste.com abides by the rules mybb is on OgPaste.com/support/ not the main directory and i havent implemented mybb themes into the main site yet!
Reply
#4
(2016-08-24, 06:02 PM)GamesPuff Wrote: OGPaste.com abides by the rules mybb is on OgPaste.com/support/ not the main directory and i havent implemented mybb themes into the main site yet!

You have Been Denied support
Been awhile since using MYBB.
Reply
#5
Because print_r returns a boolean which gets converted to 1, why are you wrapping it in that? You'll need to pass true as the second parameter to print_r to return it, but I'm not really sure why you're using it in the first place.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)