vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - TfSEO: a Light Url-Rewrite (thread and forum only) (https://vborg.vbsupport.ru/showthread.php?t=173390)

superjeff 04-26-2008 06:38 AM

Ok, i have fixed it, but it is soo easy that i will not relase a new relase only for this.
You must only replace all the code in the plugin called "Query for last page in forumhome" with this:

PHP Code:

if (!empty($forum['lastpostinfo']) AND $forum['lastpostinfo'] != $vbphrase['private'] AND $forum['lastpostinfo'] != $vbphrase['never'] AND $forum['lastpostinfo'] != '-' AND $vbulletin->options['tfseo_attivo'] AND $vbulletin->options['tfseo_riscrivi'] AND $vbulletin->options['tfseo_page_index'])
{
$tfseo_tot_post $vbulletin->db->query_read_slave("
SELECT thread.replycount
FROM " 
TABLE_PREFIX "thread AS thread
WHERE threadid = '
$lastpostinfo[lastthreadid]'
"
);
$a mysql_fetch_assoc($tfseo_tot_post);
$a implode($a);
$a $a $vbulletin->options['maxposts'];
$a floor($a);
if (
$a 0)
{
$tfseo_total_page $a+1;
$tfseo_lastpage $vbulletin->options['tfseo_pagina'] . $tfseo_total_page ".html";
}



KSM899 04-26-2008 07:23 AM

Thanks for this add , but it always gives me "the page Cannot be found"!
Can you solve this please?

superjeff 04-26-2008 08:22 AM

Have you set up the .htaccess file?
Try to disable the 301 redirect, and fill the base url of the site field.

bazzup 04-26-2008 09:12 AM

Using a few different suggestions from here i have it working.

However for it to work properly I have had to switch off the 301 error is this going to affect my board?

superjeff 04-26-2008 09:18 AM

Is your setting fiel called Base url of tour site =
Code:

http://www.fonesandsport.com
?

bazzup 04-26-2008 10:38 AM

I have it set to http://www.funforums.co.uk/forum

as we have recently changed the url for the site from fonesandsport.com

superjeff 04-26-2008 11:06 AM

Set it to "http://www.fonesandsport.com" and activate the 301 redirect.

KSM899 04-26-2008 12:13 PM

Quote:

Originally Posted by superjeff (Post 1499597)
Have you set up the .htaccess file?
Try to disable the 301 redirect, and fill the base url of the site field.

I used the same one that on the zip file.
I filled the base url to: www.ar-web.org/vb
note: That my website is in arabic .. does this affect??

KSM899 04-26-2008 12:36 PM

It worked fine when I disabled 301 redirates.
What does 301 do?

A bug appeard to me:
Warning: implode() [function.implode]: Argument must be an array in /includes/functions_forumlist.php(374) : eval()'d code on line 9

superjeff 04-26-2008 01:22 PM

Your base forum url shoud be
Code:

http://www.ar-web.org
It is relative at the site, not forum.
To fix the bug, do this edit


All times are GMT. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01230 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete