phpBB3 Website Integration Framework | Whizby Basic

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Re: phpBB3 Website Integration Framework | Whizby Basic

Postby topdown » 23 Jul 2010, 14:54

You have different image paths in your stylesheet, not sure why.

Also in your templates the images are being called from /images, they are probably static links.
If you copy them to the /test/images it would work, but it would not allow all styles to work as the others will use the same images that are in test/images/

Thats what the problem is and I doubt it will be resolved easily if at all.
I don't think this will work well with Subsilver 2 based styles because of the static image links.
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3021
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: phpBB3 Website Integration Framework | Whizby Basic

Postby renathy » 20 Aug 2010, 07:25

After loging in, I need to redirect to page that contains get parameters (lika index.php?a=1&b=2). However, phpbb3 ucp login system uses "redirect" parameter (that should be passed as GET) to redirect to page after loging in.
Problem occures, when GET['redirect'] (or request_var(redirect, "...")) contains "&".

How you suggest to correct tihs?
renathy
Crewman
Crewman
 
Posts: 3
Joined: 14 Dec 2009, 07:31
Gender: Female

Re: phpBB3 Website Integration Framework | Whizby Basic

Postby iKeirNez » 24 Jan 2011, 12:02

First thing. After finding this forum almost just 24hrs ago I have read a lot of posts and I almost have my integrated page working and I will definetely be visiting this forum most days!

Secound I have done a lot of styling work because I use a Style from Skin-Lab there themes are awesome. Thanks to the person that said about the stylesheets that was my main problem.

But below is a screenshot of my forum. I use a mod called Advertisement Manager but because of the way this is setup I don't seem to be able to get this new section to pull in the ads from advertisement manager.

Advertisement Manager uses
Code: Select all
{ADS_2}
and some other coding to pull the ads in. Is it because of the way it is integrated that it is not able to pull this in? The problem is where the red arrow is pointed to!

Also I have some pages that only show when a user is logged in but only the guest links show. I have loocked but cannot get it to work. I think this may relate to the error above. I think it relates to the error above because it has tags around like for search it has
Code: Select all
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST -->

but yet the admin links show!

This problem occurs where the white arrow is pointing to! You can see what I mean by going to http://www.multitouchmad.co.uk/int mods if it is not okay to post a link then please just remove it!

Thanks You sooo much if you can solve this. I will definetely post a link to Star Trek Guide if this is able to be solved!

Screenshot:
stg screenshot.PNG
Screenshot

Thanks
Keir
iKeirNez    
Cadet IV
Cadet IV
 
Posts: 43
Joined: 23 Jan 2011, 11:52
Gender: Male
phpBB Knowledge: 7

Problem parsing BBcode :/

Postby HavocK » 12 Feb 2011, 22:00

Hey, this is a nice frame work but i've got some trouble here.

I can't parse all BBcode using this framework. Some does parse (b, u, i, color) others don't.

Code: Select all

define
('IN_SITE', true);
define('SITE_ROOT', './');
define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(
SITE_ROOT . 'common.' . PHP_EXT);
include(
SITE_ROOT . '/includes/functions.' . PHP_EXT);

// Vars
$page_title = 'Home';
$online_registered = obtain_users_online_string(obtain_users_online());

$template->assign_vars(array(
    'ONLINE_REGISTERED' => $online_registered['online_userlist']
));

$site->page_header($page_title);

$template->set_filenames(array(
    'body'    => 'index_body.html',
));

$search_limit = 5;

$forum_id = array(2, 98);
$forum_id_where = create_where_clauses($forum_id, 'forum');

$posts_ary = array(
'SELECT' => 'p.*, t.*',

'FROM' => array(
POSTS_TABLE => 'p',
),

'LEFT_JOIN' => array(
array(
'FROM' => array(TOPICS_TABLE => 't'),
'ON' => 't.topic_first_post_id = p.post_id'
)
),

'WHERE' => str_replace( array('WHERE ', 'forum_id'), array('', 't.forum_id'), $forum_id_where) . '
AND t.topic_status <> '
 . ITEM_MOVED . '
AND t.topic_approved = 1'
,

'ORDER_BY' => 'p.post_id DESC',
);

$posts = $db->sql_build_query('SELECT', $posts_ary);

$posts_result = $db->sql_query_limit($posts, $search_limit);

while ($posts_row = $db->sql_fetchrow($posts_result))
{
    $topic_title = $posts_row['topic_title'];
    $topic_author = get_username_string('full', $posts_row['topic_poster'], $posts_row['topic_first_poster_name'], $posts_row['topic_first_poster_colour']);
    $topic_date = $user->format_date($posts_row['topic_time']);
    $topic_link = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=" . $posts_row['topic_id']);
        
    $post_text 
= nl2br($posts_row['post_text']);
    $bbcode = new bbcode(base64_encode($bbcode_bitfield));
    $bbcode->bbcode_second_pass($post_text, $posts_row['bbcode_uid'], $posts_row['bbcode_bitfield']);
    $post_text = smiley_text($post_text);
    
    
    $template
->assign_block_vars('announcements', array(
        'TOPIC_TITLE' => censor_text($topic_title),
        'TOPIC_AUTHOR' => $topic_author,
        'TOPIC_DATE' => $topic_date,
        'TOPIC_LINK' => $topic_link,
        'POST_TEXT' => censor_text($post_text),
        'TOPIC_FORUM_ID' => $posts_row['forum_id'],
        'TOPIC_VIEWS' => $posts_row['topic_views'],
        'TOPIC_REPLIES' => $posts_row['topic_replies'],
    ));
}

$site->page_footer();
 


I tried everything, and it still doesn't work :/

Any clues?


Edit :
Yay after a looooong night, i've foun out a solution. I post it here for others ^^
And i thank Topdown for putting me on the right track. => viewtopic.php?f=98&t=9456&start=90#p121638

In fact BBcode does not parse correctly because the framework uses it's own user settings. So you just have to comment 2 lines in common.php

Code: Select all
//include(SITE_ROOT . 'includes/site_user.' . PHP_EXT);
//$user        = new site_user();
 


And voila ^^
HavocK
Crewman
Crewman
 
Posts: 1
Joined: 10 Jan 2007, 17:36
Gender: Male

Previous

Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: No registered users and 10 guests