Notifications
Clear all

wpForo 1.x.x [Closed] Boxed layout to Full width.

2 Posts
2 Users
0 Likes
731 Views
Posts: 1
Topic starter
(@justfixit)
New Member
Joined: 4 years ago

I have looked high and low but clearly not far and wide.

https://atstradingsolutions.com/forum/

This is someones forum I am trying to make mine full-width like this instead of boxed?

How is this possible please? 

http://londoncaviar.net/connect/

This is the forum so far any other suggestions kindly.

Thanks

[Solution]

Plugin for full-width templates

New [problem]

I am trying to add 

add_filter('wpforo_content_after', 'wpforo_default_attachment_image_embed', 11);
function wpforo_default_attachment_image_embed( $content ){
if( preg_match_all('|<a class=\"wpforo\-default\-attachment\" href\=\"([^\"\']+)\"[^><]*>.+?<\/a>|is', $content, $data, PREG_SET_ORDER) ){
foreach($data as $array){
if(isset($array[1])){
$file = $array[1];
$e = strtolower(substr(strrchr($file, '.'), 1));
if( $e == 'jpg' || $e == 'jpeg' || $e == 'png' || $e == 'gif' ){
$filename = explode('/', $file); $filename = end($filename);
$html = '<a href="' . esc_url($file) . '" target="_blank"><img class="wpforo-default-image-attachment" src="' . esc_url($file) . '" alt="' . esc_attr($filename) . '" title="' . esc_attr($filename) . '" /></a>';
$content = str_replace($array[0], $html, $content);
}
}
}
}
return $content;
}
Its added into my active theme functions.php but it does not change anything?
1 Reply
Sofy
Posts: 4137
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @justfixit),

Please delete all caches before checking. We've checked the code one more time, it works fine.