Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is it possible to do a url check?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: Is it possible to do a url check?
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

My Blog
(This post was last modified: 11-16-2014 08:07 PM by ZiNgA BuRgA.)
11-16-2014 07:48 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? - ZiNgA BuRgA - 11-16-2014 07:48 PM

 Standard Tools
Forum Jump: