테스트 사이트 - 개발 중인 베타 버전입니다

Edit $menu[$i]['href']

MarcoPolo 2년 전 조회 2,470

Hi im new to gnuboard, I build 2 website with a single codebase that have the same database and deployed in two different web sites.  

 

how can i edit this link ['href']

https://example.com

 

#edit

Im learning gnuboard for a project

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

Allforone08
2년 전

This is the source code

<?php 

for ($i=1; $i < $menu_cnt; $i++) {

if(!$menu[$i]['gr_id']) continue;

// Do not output excluded menus

if($is_top_menu && in_array($menu[$i]['gr_id'], $menu_top_list)) continue;

?>

              

<li class="menu-li <?php echo $menu[$i]['on'];?>">

<a class="menu-a nav-height" href="<?php echo $menu[$i]['href'];?>" <?php echo $menu[$i]['target']; ?>>

<span id="mu-link">

<p data-hover="<?php echo $menu[$i]['name'];?>"><?php echo $menu[$i]['name'];?></p>

</span>

<?php if($menu[$i]['new'] == "new") { ?>

<i class="fa fa-bolt new"></i>

<?php } ?>

</a>

<?php if($menu[$i]['is_sub']) { //Is Sub Menu ?>

<div class="sub-slide sub-1div">

<ul class="sub-1dul">

<?php for($j=0; $j < count($menu[$i]['sub']); $j++) { ?>

<?php if($menu[$i]['sub'][$j]['line']) { //separator line ?>

<li class="sub-1line"><a><?php echo $menu[$i]['sub'][$j]['line'];?></a></li>

 <?php } ?>

 

<li class="sub-1dli <?php echo $menu[$i]['sub'][$j]['on'];?>">

 <!-- main nav down hover-->    

<a href="<?php echo $menu[$i]['sub'][$j]['href'];?>" class="sub-1da<?php echo ($menu[$i] ['sub'][$j]['is_sub']) ?' sub-icon' : '';?>" <?php echo $menu[$i]['sub'][$j]['target '];?>>

<?php echo $menu[$i]['sub'][$j]['name'];?>

<?php if($menu[$i]['sub'][$j]['new'] == "new") { ?>

<i class="fa fa-bolt sub-1new"></i>

<?php } ?>

</a>

<!-- end main nav down hover-->

All navigation variables work next to the last item and when clicked, another website page is displayed.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

You can modify the links at here.

/adm/menu_list.php

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

M
MarcoPolo
2년 전
코드를 확인했는데 안타깝게도 내가 찾고 있는 코드가 아닙니다. 내비게이션 바에서 링크를 변경하고 싶습니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인