Forum

Rules📌

Help keep our community respectful and collaborative by following these rules:

  • No Unsolicited Payment Requests:Do not ask for money or paid services unless the person seeking help requests it.
  • Keep Discussions Public:Questions and answers should stay in the forum unless the original poster requests a private conversation.
  • Post in Correct Categories:Place each post in its specific category to help keep the forum organized and accessible.
  • No Spam or Self-Promotion: Advertising unrelated products, services, or self-promotion without consent is not allowed.
  • Respectful Communication: Engage with others respectfully and avoid offensive or disruptive behavior.

Violating these rules may result in warnings or bans.

Read more here

Fixing Forum Seo Tutorial, I am sharing this from the forum as sample

Lets fix the seo for the forums?
First we will create 3 language key like this

forum_seo_title

Add you new forum title

forum_seo_description

add your own description, I have mine like
Join the ScriptsTribe community forums—a dedicated space for users of WoWonder and popular scripts. Get expert support, discover free tutorials and hacks, share tips, and connect with other developers and users. Perfect for anyone looking to enhance their skills, solve issues, and grow their knowledge in script customization and troubleshooting.

forum_seo_keywords

my keywords, WoWonder support community, WoWonder forums, script add-ons forum, PHP script customization help, free WoWonder tutorials, script hacks and tips, WoWonder troubleshooting, community for script developers, WoWonder help, popular scripts support


Now open sources/forum/forum.php
and replace all the code with

<?php
if ($wo['config']['forum_visibility'] == 1) {
if ($wo['loggedin'] == false) {
header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
exit();
}
}
if ($wo['config']['forum'] == 0) {
header("Location: " . $wo['config']['site_url']);
exit();
}

$wo['description'] = $wo['lang']['forum_seo_description'];
$wo['keywords'] = $wo['lang']['forum_seo_keywords'];
$wo['page'] = 'forum';
$wo['active'] = 'forums';
$wo['sections'] = Wo_GetForumSec(array("forums" => true,"limit" => 300));
$wo['f-total'] = Wo_GetTotalForums();
$wo['title'] = $wo['lang']['forum_seo_title'] . ' | ' . $wo['config']['siteTitle'];
$wo['content'] = Wo_LoadPage('forum/forum');


Now lets add the title to the Threads
Open sources/forum/forum_showthread.php
and replace all the code with

<?php
if ($wo['config']['forum_visibility'] == 1) {
if ($wo['loggedin'] == false) {
header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
exit();
}
}
if ($wo['config']['forum'] == 0) {
header("Location: " . $wo['config']['site_url']);
exit();
}
if (isset($_GET['tid']) && is_numeric($_GET['tid'])) {
$thread = Wo_GetForumThreads(array("id" => $_GET['tid'], "preview" => true));
if (count($thread) > 0) {
Wo_AddThreadView($_GET['tid']);
$wo['description'] = $wo['lang']['forum_seo_description'];
$wo['keywords'] = $wo['lang']['forum_seo_keywords'];
$wo['page'] = 'forum';
$wo['active'] = null;
$wo['thread'] = $thread[0];
$wo['forums'] = Wo_GetForums();
$wo['forumeditor'] = true;
$wo['title'] = $wo['thread']['headline'];
$wo['content'] = Wo_LoadPage('forum/showthread');
}
}



Now let add of:meta
Open themes/yourTheme/layout/container.phtml and look for

<?php if ($wo['page'] == 'forum') { ?>
<script src="<?php echo $wo['config']['theme_url'];?>/javascript/forum/script.master.js"></script>
<script src="<?php echo $wo['config']['theme_url'];?>/javascript/forum/forum.ajax.js"></script>

After that add

<meta property="og:type" content="article" />
<meta property="og:image" content="<?php echo $wo['thread']['user_data']['avatar']?>" />
<meta property="og:title" content="<?php echo $wo['thread']['headline'];;?>" />
<meta property="og:description" content=" <?php echo ($wo['lang']['forum_seo_description'])?>" />

Clear you browser cache a few times, try posting on twitter or facebook to test.
The Threads will have the keywords and description of the form but the title is it's own so everytime you share a forum thread, lets say in facebook it will show te thread title

Reply to this topic Share on my timeline

1 Replies

Avatar

edy lee·

great tips