1
Widget
How to change xcGallery title?
  • 2005/12/22 9:47

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


I've been searching for the answer but I can't seem to find it. Could someone tell me how to change the xcGallery title to something else. What template should I modify? What codes? Thanks in advance.
Greetz,
Widget

2
davidthomas1
Re: How to change xcGallery title?

You'll need to modify the php file that generates the page content. Just go to the page where you want the page title to change and check the name of the file in the browser address bar. That's the one you need to edit.

At some point in the file (after any other page_title assignments) you can assign the page_title using this code:

$xoopsTpl->assign('xoops_pagetitle''Your Title'); // browser page title


The good thing is, because it modifies the php code, you don't need to update the module or the templates either. It should just work.

Remember, always make a backup of the file before modifying any code.

HTH
みんなちがってみんないい。

XOOPS 2.0.13.2

3
Widget
Re: How to change xcGallery title?
  • 2005/12/27 3:23

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Thank you davidthomas1 for you reply but I can't seem to change the title "xcGallery" i tried looking in the module folder and opening index.php but i can't seem to find the codes that you posted or anything similar that may change the title of the page. I know this could be done but i just don't know what page or template to modify or what codes to look for. I have searched in google and saw examples of xcgallery and they managed to modify the "xcGallery" title to something like "Gallery" that is what I need to change. Thanks. i hope someong could help me figure this out.
Greetz,
Widget

4
davidthomas1
Re: How to change xcGallery title?

I'm not using the module myself, so I can't test it but.

I just downloaded and looked at the code for xcgal/index.php

It looks like the code is in there at the end of the index.php file:

//$xoopsTpl->assign('xcgal_main', $temp);
$xoopsTpl->assign('gallery'$xoopsModule->getVar('name'));
main_menu();
//$xoopsTpl->assign('xcgal_footer', pagefooter());
do_footer();
include_once 
"../../footer.php";


// Note: some of the lines have been commented out

You could try changing

$xoopsTpl->assign('gallery'$xoopsModule->getVar('name'));
to
$xoopsTpl
->assign('gallery''Gallery');


or you could add

//$xoopsTpl->assign('xcgal_main', $temp);
$xoopsTpl->assign('gallery'$xoopsModule->getVar('name'));
main_menu();
//$xoopsTpl->assign('xcgal_footer', pagefooter());
do_footer();
include_once 
"../../footer.php";
//add this next line
$xoopsTpl->assign('xoops_pagetitle''Gallery'); // browser page title


That should work
みんなちがってみんないい。

XOOPS 2.0.13.2

5
Koolkam
Re: How to change xcGallery title?
  • 2005/12/27 9:37

  • Koolkam

  • Just popping in

  • Posts: 5

  • Since: 2002/1/26


The answer to this I believe is quite simple due to XOOPS intelligent design.

Step 1. Go into site admin , and into the modules in prefererences.

Step 2. Rename the Xcgallery module to the right of it something else like Gallery and hit submit!

Step 3. accept changes and volia! Yer all done!!

Love the Xoops!

6
erzon
Re: How to change xcGallery title?
  • 2005/12/27 10:42

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


yah thats correct if you only want to change the module name.. login to admin. and change the module name

7
davidthomas1
Re: How to change xcGallery title?

Yes, the question isn't so clear.

I'm not sure if Widget wants to change the page title (i.e the browser title bar) or just the module name in the main menu.

I assumed Widget wants to change the title in the browser title bar. correct?

If you want to change the module name, menu entry etc...

1) Click Administration Menu > System > Modules
2) Replace the xcGallery text with your own text.
みんなちがってみんないい。

XOOPS 2.0.13.2

8
Widget
Re: How to change xcGallery title?
  • 2005/12/28 5:25

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Thanks everyone for your excellent help! How could something so simple like that give me a headache? I'm glad you guys are here! Thanks again!
Greetz,
Widget

9
defwind77
Re: How to change xcGallery title?
  • 2006/1/20 18:26

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Hi guys, can I ask - how could I change the code so it displays an image instead of text? I've made a logo and I'd like that instead of the name in text - the method above works great for text, I just need to know the code to insert.

Many thanks!

10
davidthomas1
Re: How to change xcGallery title?

You would need to edit your main menu template file to do that. There should be info in the FAQ section.
みんなちがってみんないい。

XOOPS 2.0.13.2

Login

Who's Online

183 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

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

Latest GitHub Commits