1
jayjay
title tag hack for wfdownloads
  • 2005/1/26 8:13

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

I found a quick and dirty way to add a custom title tag for categories in wfdownloads.

Just add this at the bottom of viewcat.php:

$xoopsTpl->assign('xoops_pagetitle'$myts->makeTboxData4Show($description));

This'll add the "description" information of your categories in the title tag


I also use this code in singlefile.php. Credits to original poster:

$xoopsTpl->assign('xoops_pagetitle'$myts->makeTboxData4Show($down_arr['title']));


If anyone finds a better solution, please let me know!

Greets,

Jay Jay

2
Hisoka
Re: title tag hack for wfdownloads
  • 2005/3/27 13:24

  • Hisoka

  • Just popping in

  • Posts: 39

  • Since: 2005/3/2 1


Hi,

That didn't work on my website so i do like that to display title of categories, sub-categories and downloads in page's title:

*For viewcat.php:

Before :
include XOOPS_ROOT_PATH '/footer.php';


Put:
$affiche $mytree->getNicePathFromId($cid"title");
$afficher strip_tags ($affiche);
$module_name $myts->makeTboxData4Show($xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle',$module_name' : ' .$afficher);


*For singlefile.php:

Before:
include XOOPS_ROOT_PATH '/include/comment_view.php';


Put:
$affiche $mytree->getNicePathFromId($cid"title");
$afficher strip_tags ($affiche);
$module_name $myts->makeTboxData4Show($xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle',$module_name.  ' : ' .$afficher$myts->makeTboxData4Show($down_arr['title']));


Demo:
http://www.easy-achat.com/wfdownloads+index.htm

°°++

3
jayjay
Hack: xoops_pagetitle for wfdownloads 3.1
  • 2007/5/24 6:52

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Howdie!

Just a quick update on this for the latest version of WF-Downloads:

Add this in viewcat.php just before "include 'footer.php';"

$xoopsTpl->assign('xoops_pagetitle'$categories[$cid]->getVar('title').' | '.$xoopsModule->name());


Add this in singlefile.php just before "include 'footer.php';"

$xoopsTpl->assign('xoops_pagetitle'$download->getVar('title').' | '.$xoopsModule->name());


I wonder why this wasn't included by smartfactory?

4
skenow
Re: Hack: xoops_pagetitle for wfdownloads 3.1
  • 2007/5/24 13:15

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Quote:

I wonder why this wasn't included by smartfactory?


Have you posted this at their site?

5
jayjay
Re: Hack: xoops_pagetitle for wfdownloads 3.1
  • 2007/5/25 13:18

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


I tried subscribing on their website but I never got a subscription confirmation mail. Maybe their webserver won't send any mails or they are on a spam blacklist. Anyway, I hope they read it here

6
vaughan
Re: title tag hack for wfdownloads
  • 2007/5/25 19:24

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


i'll add this to the 3.2 RC2 release being as it's a simple hack & not detrimental or changing of any other function at this stage of release.

7
jayjay
Re: title tag hack for wfdownloads
  • 2008/4/22 7:29

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Another update!

I found that my addie destroyed the catarray functionality (you know: sort by letter or number...) so I moved the code. Find this in viewcat.php:
if (isset($cid) && $cid && isset($categories[$cid])) {


and add this between the brackets:
$xoopsTpl->assign('xoops_pagetitle'$categories[$cid]->getVar('title').' | '.$xoopsModule->name());


I hope this gets added if there ever comes a new wf-downloads

Login

Who's Online

203 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits