Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
elnegro
Hangin' Around



Joined: Aug 25, 2006
Posts: 34
Location: Verona (ITALY)

PostPosted: Sat Aug 02, 2014 6:35 am Reply with quote

Hi everybody,
does somebody knows how to customize the title which appears in the browses upper bar?

Now, when I create a module appears
Quote:
Module Name - - Site name

and I'd like to change it. What do I have to write?

Thanks in advance

_________________
Bye, Luca

Last edited by elnegro on Sun Aug 03, 2014 1:19 am; edited 1 time in total 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Sat Aug 02, 2014 7:07 am Reply with quote

This is automatically generated! If you are logged in as admin and you are inside the module then press the SEO button in the navigation. There you can override the automatically generated settings.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
neralex







PostPosted: Sat Aug 02, 2014 7:40 am Reply with quote

The magic behind this is very simple.

Its using the folder-name of the module. While the activation of the module in the module-administration is a module-title created. This data would be used for the generated titles.

In the module you are getting the module folder-name with:

php Code:
$module_name = basename(dirname(__FILE__));


In the admin-area you are getting the module folder-name with:

php Code:
$module_name = basename(dirname(dirname(__FILE__)));


In this case you can rename the folder in what do you want as long as you are using within the module everytime the variable $module_name.

To manipulate the automatically generation you should try a look in the files of the folder: /includes/NukeSEO/ ! You can create for each module a own dh-file inside the /dh/-folder and/or the /content/-folder but here you can't type simply a string to add a new title because this works with the database-entries. I have it done in my Gallery module but it was a hard way and i'm using there a database-entry of a config-db-table from my Gallery module.
 
elnegro







PostPosted: Sun Aug 03, 2014 1:17 am Reply with quote

neralex wrote:
This is automatically generated! If you are logged in as admin and you are inside the module then press the SEO button in the navigation. There you can override the automatically generated settings.


Thanks neralex!

Besides: I spent ten minutes searching for SEO button without finding it and then I realized that I had a custom (and old) theme. I have changed it and then found the button Embarassed Smile
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sun Aug 03, 2014 6:24 am Reply with quote

elnegro, you can also activate the nukeSEO block, recommended for Admins only.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©