Forum

Questions and discussions

Adding at top Link to Forum ?

Script's setup and configuration

Adding at top Link to Forum ?

Postby SPRINGERcollection » Tue May 13, 2014 1:04 pm

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 :-)
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby admin » Tue May 13, 2014 7:24 pm

You should edit the file on ftp:
/inc/box_categories.php
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: Adding at top Link to Forum ?

Postby SPRINGERcollection » Thu May 15, 2014 9:22 am

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 :-)
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby stockdiv » Thu May 15, 2014 11:45 am

-
Last edited by stockdiv on Wed May 06, 2015 10:33 pm, edited 1 time in total.
stockdiv
 
Posts: 119
Joined: Sat Feb 01, 2014 11:23 am

Re: Adding at top Link to Forum ?

Postby SPRINGERcollection » Thu May 15, 2014 12:18 pm

i changed my domain to my old one... www.pixpast.com
You can see the site there.

Ian :-
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby SPRINGERcollection » Thu May 15, 2014 12:20 pm

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 ?
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby stockdiv » Thu May 15, 2014 3:25 pm

-
Last edited by stockdiv on Wed May 06, 2015 10:33 pm, edited 1 time in total.
stockdiv
 
Posts: 119
Joined: Sat Feb 01, 2014 11:23 am

Re: Adding at top Link to Forum ?

Postby SPRINGERcollection » Thu May 15, 2014 7:26 pm

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);
?>
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby SPRINGERcollection » Mon May 19, 2014 11:35 am

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 :-)
SPRINGERcollection
 
Posts: 18
Joined: Fri Apr 25, 2014 12:38 pm

Re: Adding at top Link to Forum ?

Postby stockdiv » Tue May 20, 2014 11:02 am

-
Last edited by stockdiv on Wed May 06, 2015 10:34 pm, edited 1 time in total.
stockdiv
 
Posts: 119
Joined: Sat Feb 01, 2014 11:23 am

Next

Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.