Wszystko jest ok.. tak jak by, gdyż z chwilą gdy klikam na link, przekierowuje mnie na podstrone w serwisie, ale nie z iframe'em. a Ja chce aby bezposrednio przekierowywał na strone z iframe'em + przyjazne linki dokladnie jak na w wykopie. Przyznam ze nie ogarniam php i tpl'e aby samemu sobie poradzic. Mówimy o www.przestrzal.pl/beta
w zalanczam kod odpowiadajacy za moduł toolbar i tpl odpowiadajacy za wyswietlanie linkow (linia 68) + wycinek z htacces'a odpowiadajacy za linki z toolbara i za 'przyjazne' linki z całego serwisu.
Help!

link_summary.tpl - linia 68
... <div class="title" id="title-{$link_shakebox_index}"> <h2> {checkActionsTpl location="tpl_pligg_story_title_start"} {if $use_title_as_link eq true} {if $url_short neq "http://" && $url_short neq "://"} <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} {if $story_status neq "published"}rel="nofollow"{/if}>{$title_short}</a> {else} <a href="{$story_url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a> {/if} {else} {if $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"} <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} {if $story_status neq "published"}rel="nofollow"{/if}>{$title_short}</a> {else} <a href="{sotry_url}">{$title_short}</a> {/if} ...
pligg_web_toolbar_main.php
<?php //require("includes/myfunctions.php"); function pligg_web_toolbar_showpage(){ force_authentication(); $canIhaveAccess = 0; $canIhaveAccess = $canIhaveAccess + checklevel('god'); if($canIhaveAccess == 1) { $main_smarty->assign('pagename', pagename); // Method for identifying modules rather than pagename $main_smarty->assign('modulename', modulename); $navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel'); $navwhere['link1'] = getmyurl('admin', ''); $navwhere['text2'] = $main_smarty->get_config_vars('PLIGG_pligg_web_toolbar_BreadCrumb'); $navwhere['link2'] = URL_pligg_web_toolbar; $navwhere['text3'] = ''; $navwhere['link3'] = ''; $navwhere['text4'] = ''; $navwhere['link4'] = ''; if($action == 'enable'){ enable_pligg_web_toolbar(); } if($action == 'disable'){ disable_pligg_web_toolbar(); } $main_smarty = do_sidebar($main_smarty); $main_smarty->assign('navbar_where', $navwhere); $main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel')); $main_smarty->assign('tpl_center', pligg_web_toolbar_tpl_path . 'pligg_web_toolbar_main'); $main_smarty->display($template_dir . '/admin/admin.tpl'); } else { } } function enable_pligg_web_toolbar(){ misc_data_update('pligg_web_toolbar', "enabled"); } function disable_pligg_web_toolbar(){ misc_data_update('pligg_web_toolbar', "disabled"); } function pligg_web_toolbar_story(&$vars) { if(pligg_web_toolbar == true) { global $URLMethod, $my_base_url, $my_pligg_base, $main_smarty, $the_template, $link, $view, $db, $current_user; // $_SESSION['linkid'] = 222;//$link->id; if ($URLMethod==2) { $link->url = my_base_url.my_pligg_base."/toolbar/".$link->id; }else{ $link->url = my_base_url.my_pligg_base."/modules/pligg_web_toolbar/toolbar.php?id=".$link->id; $main_smarty->assign('story_link_id', $link->id); $main_smarty->assign('current_user_id', $current_user->user_id); } } } ?>
.htaccess
Kod
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/([^/]+)/?$ story.php?title=$1 [L]
RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)/?$ edit.php?id=$1&commentid=$2 [L]
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1 [L]
RewriteRule ^toolbar/story/([0-9]+)/(\d+)/?$ modules/pligg_web_toolbar/toolbar.php?id=$1
RewriteRule ^story/([^/]+)/?$ story.php?title=$1 [L]
RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)/?$ edit.php?id=$1&commentid=$2 [L]
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1 [L]
RewriteRule ^toolbar/story/([0-9]+)/(\d+)/?$ modules/pligg_web_toolbar/toolbar.php?id=$1
Na prawdę, nikt mi nie umie pomóc ?

