Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is it possible to do a url check?
Ukshep Offline
Junior Member
**
Posts: 9
Joined: Oct 2014
Post: #4
RE: Is it possible to do a url check?
(11-16-2014 07:48 PM)ZiNgA BuRgA Wrote:  Try replacing your instances of $fid with ($fid ?: (THIS_SCRIPT=='forumdisplay.php' ? (int)$mybb->input['fid'] : 0))

Not tested, so IDK if it works.

(11-16-2014 06:19 PM)Sama34 Wrote:  IIRC in the header you will need to use {$mybb->input['fid']}, probably <?=($mybb->get_input('fid', 1))?> in 1.8 for security reasons, no sure if really necessary.
Unfortunately doesn't work for non-forumdisplay pages... :/
forumdisplay is actually special in that $fid isn't set in global.php

Seems to work perfectly Biggrin

thanks
11-16-2014 10:20 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Is it possible to do a url check? - Ukshep - 11-15-2014, 08:38 AM
RE: Is it possible to do a url check? - Ukshep - 11-16-2014 10:20 PM

 Standard Tools
Forum Jump: