XF 2.2 Thread ID and Forum ID for use in Advertising slots

BIG LLC

Active member
In XF 2.1 our developer had set up two variables that could be used anywahre - $forum_ID and $thread_ID

With 2.2 these were lost, and we don't have a new full time developer yet.

Last known global value for forum ID I have is: $__globals.forum.node_id

Is this still valid in 2.2? Initially it looks like it is but if anyone knows different please let me know.

I do not know the global variable for thread ID - anyone got one I can use?
 
Dumping all the variables to inspect them causes my browser to run out of memory most times. Then I can't make head nor tail of the output when it does show.
 
Depends also on the templates, on thread template advertisements I use <xf:if is="$post.user_id == xx"> or <xf:if is="$post.Thread.last_post_id == xxx">
 
Top Bottom