WebDev

EhPortal => EhPortal Support => Topic started by: dvdweed on November 17, 2022, 03:35:31 AM

Title: Forum clone in the bbc block.
Post by: dvdweed on November 17, 2022, 03:35:31 AM
Hello,

I'm sorry for my english but it's not my mother language .....

I have a problem whith a bbc block , when i want put inside a link sp page php

exemple :
Quote[*url="https://exemple/index.php?page=test"][*size=2][*color=white]title[/color][/size][/url](page test is a page php)

I get window (<-- clone of my forum )in a window (<-- bbc block )

In my page php , i put only
Quote<?php
define('include',NULL);
include('test.php');?>

PS : I have already change "&#39;" to "&#039;" in the bdd ....

Somebody have a idea for this bug ?

For info : EhPortal 1.39 © 2022, WebDev
SMF 2.1.2 © 2022, Simple Machines

I shearch through the net but i don't get a solution for my problem

thanks for your help

Dvdweed
Title: Re: Forum clone in the bbc block.
Post by: Chen Zhen on November 17, 2022, 09:03:57 PM
I'm not quite sure where your php file is located but you shouldn't be defining an existing php function.

Assuming the file is in your main forum directory, just use this in your PHP page code:
global $boarddir;
require_once($boarddir . '/test.php');
Title: Re: Forum clone in the bbc block.
Post by: dvdweed on November 18, 2022, 04:05:35 AM
hello,

Thanks for your answer !!!!

But the bug was comming from a bad configuration off another block !

So problem solved :)

EhPortal 1.39.6 © 2024, WebDev