Announcement

Collapse
No announcement yet.

How you get &u=* to work?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pandemikk
    replied
    Yeah, okay. I usually post here because support is much better here. If I get the solution I will post it here.

    Leave a comment:


  • Lynne
    replied
    The best thing to do would be to go over to vbulletin.org and post your code over there and see if someone can help you.

    Leave a comment:


  • Pandemikk
    replied
    I've cleaned it but to no avail. I really don't see why this doesn't work.

    Leave a comment:


  • Lynne
    replied
    This should help - http://www.vbulletin.org/forum/showt...hlight=cleaner

    Leave a comment:


  • Pandemikk
    replied
    I don't think so^. How would I go about doing that?

    Leave a comment:


  • Lynne
    replied
    Did you throw the variable through the cleaner first before trying to use it?

    Leave a comment:


  • ENF
    replied
    Strange - I couldn't make this work either, I tried several different variations of code.

    Please post the final result if you get this working, I'd be curious as to what the magic combination is here.

    Leave a comment:


  • Pandemikk
    replied
    That's what I figured and by all means it should work but it doesn't.

    I have a variable much like $recipient let's call it $variable

    $variable is recognized in the PHP file. I've confirmed this by doing a simple test: $variable = test;

    However, $variable = $vbulletin->GPC['userid']; should put u=90 as $variable. But it doesn't.


    I think there is another snippet of code somewhere but private.php is a very large file and I can't seem to find anything in it.

    Leave a comment:


  • ENF
    replied
    There is a specific function attached to the "do" statement inside that calls up the users name based on the request "private.php?do=newpm&u=90".

    You can look at private.php and the specific function that does what you are asking. (As an example)

    It's line #1368 in a regular private.php file.

    A quick snippet:
    Code:
                //set up for standard new PM
                // insert username(s) of specified recipients
                if ($vbulletin->GPC['userid'])
                {
                    $recipients = array();
                    if (is_array($vbulletin->GPC['userid']))
                    {
                        foreach ($vbulletin->GPC['userid'] AS $recipient)
                        {
                            $recipients[] = intval($recipient);
    That is a sub-function of line #1301 (Start New PM)

    Leave a comment:


  • Pandemikk
    started a topic How you get &u=* to work?

    How you get &u=* to work?

    I was wondering how private.php?do=newpm&u=90 manages to add the name that userid belongs to in the recipient's field.

    It would be nice to know so I could add it to other areas of my forum.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X