1781
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/18 22:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


So the block is loaded on the header and this way it cannot fecth the meta-keywords that are assigned latter by the module.

Thank you catz!!



1782
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/18 22:13

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Let me ask it in other way:
What is loaded first, blocks or modules?



1783
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/17 20:05

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I know how to overide meta description Damaster. I don´t know how to get it from a block. Yes, please tell me were I can learn that.



1784
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/17 19:21

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Damaster:

I do not want to assign keywords per module nor ride a bike. I just want to know if it is possible to get the current meta_descrition/keywords using a block.

Is a simple question, a hard problem.

This is helpful, for ex the news module assign meta-keywords taken form the text. Well, i want a block to display them. It can help me modifing the algo till I get the best result for automatic keywords.

I just want a block, a blooooock. Can i have a block?

Anyone?

Ps: the SEO module I was talking about is more related to Friendly urls, but it uses theme_changer. I´ll check that module DBCSS to.



1785
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/17 17:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi Stefan, thank you but I´m not looking for the system keywords, those can be fecth using this:

$xoopsConfigMetaFooter =& $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER);
if(isset($xoopsConfigMetaFooter['meta_description'])) {
return $xoopsConfigMetaFooter['meta_description'];
}


What I realy want is to fecth keywords that are assigned by modules:

$xoTheme->addMeta( 'meta', 'description', $meta_description);

Or
$xoopsTpl->assign('xoops_meta_description', $meta_description);

You see? After this assignements can a block get the information? How?



1786
trabis
Re: Get Metadata in a block- Is it possible?
  • 2008/4/17 12:30

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi Giba, I did mean a block, not a module, just for display the meta-keywords so I don´t have to view the source code of the page.

I´ll take a look into that module, thanks!

Pt-
O que eu quero é simplesmente criar um bloco para apresentar os dados META, assim posso ir seguindo as alterações página a página sem ter de editar o código fonte. Poderia simplesmente ecoar as variáveis directamente no tema, mas já agora, como isto é para um módulo que estou a montar para SEO do xoops, um bloco destes ficava bem. Um abraço!



1787
trabis
Get Metadata in a block- Is it possible?
  • 2008/4/16 22:35

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I´m trying to make a module block to display Meta description and keywords so I don´t have to hack the theme.
the problem is that I can´t see how to retrieve this information from the classes.

Is this info availiable before or after the block is rendered?

Smarty can´t help me.
<{$xoops_title}> works fine
<{$xoops_meta_description}> does not.

Thanks



1788
trabis
Re: How to add extra fields in the profile (WITHOUT Smartprofiles)
  • 2008/4/16 12:39

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Smartprofile integrates the core fields if youset it up in the admin side.

Without using modules to extend user profile you will have to Hack XOOPS core.
For adding more fields hacking the core you must:
Add a field in the "users" table.
Edit kernel/user.php so the extra field becomes available in $xoopsUser object (ex: $xoopsUser->getVar('myextrafield') )
Then you must edit forms and templates to get/show information.

It is not that hard but anyway, is better to keep away from hacking, it will get you extra work if you need to update the core.



1789
trabis
Re: How do you put text from a menu option into a variable?
  • 2008/4/12 15:35

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Take a look at the source code of the form (html)

In this comment submit form for example I have this:

<select size="1" onchange="if(this.options[this.selectedIndex].value.length > 0 ){
window.document.forms.forumform.submit();
}" name="editor" id="editor">

<option value="dhtmlext">Extended DHTML Form</option>
<option value="textarea">Plain Text</option>
</select>

If i was to get the value of this form I would have to find the name of the form (ex:name="editor"), so I would use:

$value=$_POST['editor'];


Ps:I did not understand your problem, can you explain it better?



1790
trabis
Re: MYQUIZ v3.0 final released
  • 2008/4/10 23:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thank you!




TopTop
« 1 ... 176 177 178 (179) 180 181 182 ... 190 »



Login

Who's Online

143 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

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

Latest GitHub Commits