. .
pragmaMx Support Forum 25 Mai 2012, 12:28:29 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: Bridge & meta keywords  (Gelesen 2643 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
algebre
weiss was
***
Offline Offline

Geschlecht: Männlich
Beiträge: 155

algebre


WWW
« am: 18 April 2007, 18:23:39 »

Hi

When we click on view source of any page from the forum ( pragmamx.otg or any site based on it) we have this:

Code: [Select]  
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" >

And this on the rest of site:

Code: [Select]  
<meta name="keywords" content="pragmaMx, maax, vkpMx, vkp-maxi, vkp-mxxx, PHP, portal, Opensource, MySQL, CMS, Content Managemant System, PHP-Nuke, phpnuke, pragmaMx 0.1.9">

Proposition:

In Forum/smf/theme/XXXXXX/index.template.php (mx_port, babylon, default, classic)

Replace these lines:

Code: [Select]  
[code]function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
[/code]

by these lines :

Code: [Select]  
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings, $metakeywords;

2 delete this line:

Code: [Select]  
<meta name="robots" content="noindex" />', '<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

3 add this tline:

Code: [Select]  
?>
<meta name="keywords" content="<?php echo htmlentities($GLOBALS['metakeywords']) ?>, <?php echo MX_VERSION ?>, <?php echo "bulletin, board, free, open, source, smf, simple, machines, forum" ?>">
<?php

after:

Code: [Select]  
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

Result:

Code: [Select]  
<meta name="keywords" content="pragmaMx, vkpMx, deineSeite, yoursite, pragmaMx 0.1.9, bulletin, board, free, open, source, smf, simple, machines, forum">


now smf is integreted 100%. smile
Gespeichert
Andi
Administrator
******
Offline Offline

Geschlecht: Männlich
Beiträge: 19.424

Andi


WWW
« Antworten #1 am: 19 April 2007, 14:33:09 »

Hi Smiley

yes, that's correct  thumbup

Hmm, i think it's a bug in SMF  gruebel
We should write a modification to implement this feature in the bridge...


PS:
realy hardcoded  mad2
http://www.simplemachines.org/community/index.php?topic=87444.0
Gespeichert

schön´s Grüssle, Andi
Kein Support über PN, Mail oder ICQ!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!
DirkE
öfter hier
**
Offline Offline

Geschlecht: Männlich
Beiträge: 29


« Antworten #2 am: 24 Juli 2007, 12:38:15 »

Hallo,

after including the changes in the script, I receive an errror and it is not possible to Edit the text with the build in functionalites....
I have added mit index.template .php. It would be fine, if someone could have a look on it.
Thanks Dirk


* index.template.php (28.75 KB - runtergeladen 206 Mal.)
Gespeichert
cihan
Spezialist
*****
Offline Offline

Beiträge: 581


WWW
« Antworten #3 am: 24 Juli 2007, 15:19:10 »

Hi  Smiley

Zitat
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.
Gespeichert
DirkE
öfter hier
**
Offline Offline

Geschlecht: Männlich
Beiträge: 29


« Antworten #4 am: 24 Juli 2007, 17:17:20 »

Hello,

no the error looks like the appended screen shot and appears only in the edit mode. gruebel

cu
Dirk


* fehler.jpg (71.15 KB, 506x316 - angeschaut 392 Mal.)
Gespeichert
DirkE
öfter hier
**
Offline Offline

Geschlecht: Männlich
Beiträge: 29


« Antworten #5 am: 27 Juli 2007, 21:42:52 »

Hello,

does not have anybody an idea, how I get the problem solved?   gruebel

Thanks Dirk
Gespeichert
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
design by hENNE, layout based on YAML