Questions and discussions
We have to activate manually all new user's accounts because there are nearly 10-15 spam registrations per day. if your account isn't activated for some reasons you should Contact Us Adding at top Link to Forum ?
16 posts
• Page 1 of 2 • 1, 2
Adding at top Link to Forum ?On the top of my photo shop I have
-Photo -Categories -Site info How can I add one more option RIGHT from Site Info with the words User Forum and then a direct link to my history forum? That would be really cool ! Thanks. Ian
Re: Adding at top Link to Forum ?You should edit the file on ftp:
/inc/box_categories.php
Re: Adding at top Link to Forum ?can someone help me.
What do I need to add to this file.. /inc/box_categories.php so I have a link on the right side of Site Info with a direct link to my forum chat site. Thanks guys ! Ian
Re: Adding at top Link to Forum ?-
Last edited by stockdiv on Wed May 06, 2015 10:33 pm, edited 1 time in total.
Re: Adding at top Link to Forum ?so after the site info code...
I should paste in something like this.. {$hmenu.="<li><a href='"WWW.FORUM.COM"/index.php?sphoto=1'>".word_lang("Browse Database")."</a></li>";} Is that right ?
Re: Adding at top Link to Forum ?-
Last edited by stockdiv on Wed May 06, 2015 10:33 pm, edited 1 time in total.
Re: Adding at top Link to Forum ?here is the link to my forum
www.pixpast.com/forum/public_html/ and here is the box_categories.php Can you please help me put in the new information please ........................................................................... <? if(!defined("site_root")){exit();} $hmenu=""; $hmenu="<script type=\"text/javascript\" src=\"".site_root."/inc/ddsmoothmenu.js\"> /*********************************************** * Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> <script type=\"text/javascript\"> ddsmoothmenu.init({ mainmenuid: \"smoothmenu\", //Menu DIV id orientation: 'h', //Horizontal or vertical menu: Set to \"h\" or \"v\" classname: 'ddsmoothmenu', //class added to menu's outer DIV //customtheme: [\"#804000\", \"#482400\"], contentsource: \"markup\" //\"markup\" or [\"container_id\", \"path_to_menu_file\"] }) </script><div id=\"smoothmenu\" class=\"ddsmoothmenu\">"; $hmenu.="<ul>"; $hmenu.="<li class='home_link'><a href='".site_root."/'>".word_lang("home")."</a></li>"; if($global_settings["allow_photo"]==1) { $hmenu.="<li><a href='".site_root."/index.php?sphoto=1'>".word_lang("photo")."</a></li>"; } if($global_settings["allow_video"]==1) { $hmenu.="<li><a href='".site_root."/index.php?svideo=1'>".word_lang("video")."</a></li>"; } if($global_settings["allow_audio"]==1) { $hmenu.="<li><a href='".site_root."/index.php?saudio=1'>".word_lang("audio")."</a></li>"; } if($global_settings["allow_vector"]==1) { $hmenu.="<li><a href='".site_root."/index.php?svector=1'>".word_lang("vector")."</a></li>"; } //Build categories tree $itg=""; if (!$smarty->isCached('buildmenu6.tpl',"buildmenu|6|".$lng)) { $nlimit=0; buildmenu6(5); } $smarty->cache_lifetime = -1; $smarty->assign('buildmenu6', $itg); $itg=$smarty->fetch('buildmenu6.tpl',"buildmenu|6|".$lng); if(!isset($_SESSION["site_info_content"])) { $site_info_content=""; $sql="select id_parent,link,title,url from pages where siteinfo=1 order by priority"; $rs->open($sql); while(!$rs->eof) { $url=page_url($rs->row["id_parent"],$rs->row["url"]); if($rs->row["link"]!=""){$url=$rs->row["link"];} $site_info_content.="<li><a href='".$url."'>".word_lang($rs->row["title"])."</a></li>"; $rs->movenext(); } $_SESSION["site_info_content"]=$site_info_content; } else { $site_info_content=$_SESSION["site_info_content"]; } $hmenu.="<li><a href='".site_root."/members/categories.php'>".word_lang("categories")."</a>".$itg."</li>"; if($global_settings["userupload"]==1) { $hmenu.="<li><a href='".site_root."/members/users_list.php'>".word_lang("photographers")."</a></li>"; } $hmenu.="<li><a href='#'>".word_lang("site info")."</a><ul>".$site_info_content."</ul></li>"; if($global_settings["google_coordinates"]==1) { $hmenu.="<li><a href='".site_root."/members/map.php'>".word_lang("Google map")."</a></li>"; } $hmenu.="</ul>"; $hmenu.="</div>"; $box_categories=""; if (!$smarty->isCached('buildmenu0.tpl',"buildmenu|0|".$lng)) { $box_categories="<ul>"; //$sql="select a.id,a.id_parent,b.id_parent,b.title,b.url,b.photo from structure a,category b where a.id=b.id_parent and a.id_parent=5 and b.published=1 and b.password='' order by b.title"; $sql="select id_parent,title,url,photo from category where published=1 and password='' order by title"; $rs->open($sql); while(!$rs->eof) { $translate_results=translate_category($rs->row["id_parent"],$rs->row["title"],"",""); $box_categories.="<li><a href='".$rs->row["url"]."'>".$translate_results["title"]."</a></li>"; $rs->movenext(); } $box_categories.="</ul>"; } $smarty->cache_lifetime = -1; $smarty->assign('buildmenu0',$box_categories); $box_categories=$smarty->fetch('buildmenu0.tpl',"buildmenu|0|".$lng); $file_template=str_replace("{BOX_CATEGORIES}",$box_categories,$file_template); $file_template=str_replace("{HORIZONTAL_MENU}",$hmenu,$file_template); ?>
Re: Adding at top Link to Forum ?can some please help and put in the little code into the right place.
I have no idea how to do this. Thank you. Ian
Re: Adding at top Link to Forum ?-
Last edited by stockdiv on Wed May 06, 2015 10:34 pm, edited 1 time in total.
16 posts
• Page 1 of 2 • 1, 2
Who is onlineUsers browsing this forum: No registered users and 3 guests |