• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenPorta (Portal)

Status
Not open for further replies.
This is my .htaccess file

What is the best way to make http://www.smsmasters.co.uk/forum/index.php?portal/ appear when someone goes to the root http://www.smsmasters.co.uk

Thanks

#Mod_security can interfere with uploading of content such as attachments. If you
#cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#SecFilterEngine Off
#SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
RewriteEngine On

#If you are having problems with the rewrite rules, remove the "#" from the
#line that begins "RewriteBase" below. You will also have to change the path
#of the rewrite to reflect the path to your XenForo installation.
RewriteBase /forum

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
That's your XenForo .htaccess file.

You need to create one in your root and add this line to it:
DirectoryIndex index.php

Then create an index.php file in the root with this:
<?php
header('Location: http://www.smsmasters.co.uk/forum/index.php?portal/', true, 301);
 
[8wayRun.Com] XenPorta (Portal) v1.3.4 CHANGELOG
  • EventsUpcoming Block has been rewritten (needs v1.3.4 of XenAtendo).
    • If you have "streams only" enabled, javascript will try to find the live status of the stream.
    • If you have "show venue" disabled, the time stamp will display a shortened version as well.
  • RecentThreads Block now has an option to define the CUTOFF for thread searching, in days.
  • RecentNews Block has been rewritten to hopefully make it marginally faster.

Hi Jaxel,

I noticed this is slightly faster but ONLY when using prebreaks still. If i dont use prebreaks its still as slow as before. Ive been editing all my news posts and adding prebreaks, I can put 10 articles on the portal and it loads in about 3 seconds. But if just one of those posts does not have prebreaks it takes 13+ seconds to load. My news is automated now, this one post which is not even that big adds 10 or more seconds to the loading time of the portal. I added prebreak tags and BOOM back down to 3 seconds or so. I dont mind using the prebreaks for now I guess but I dont want to add text between the tags. If i put just prebreaks tags with nothing inside the word 'array' shows up and there is still no time difference, if I add 'read more' or something like that between the prebreak tags its lightning fast, is there any way you can make the prebreak tags allowed to be entered blank? Since there already is a 'Continue reading' link on every article?

Cheers
 
[PREBREAK][/PREBREAK] will work.

As well, try setting the cache time on your news portal to +1 hours. It will take 13+ seconds to load, only once per hour. Then for the rest of the time, it will load from the cache and be almost instantaneous. Its why I put a caching system in.
 
[PREBREAK][/PREBREAK] will work.

As well, try setting the cache time on your news portal to +1 hours. It will take 13+ seconds to load, only once per hour. Then for the rest of the time, it will load from the cache and be almost instantaneous. Its why I put a caching system in.
Hi Jaxel,

if my site was established I wouldnt care too much about the load times, but since im trying to get new users the load times are very imporant to me so caching wont really help.

If i use just the prebreak tags it says array, so i added a space in there and it works now thanks.

This is a good workaround for now Jaxel, thank you. Would it be feasible to add the blank prebreak tags to a future release of XenPorta?? The speed difference is massive. Maybe automatic prebreak tags to be entered at the end of the charecter limit?
 
Jaxel, on your site http://www.8wayrun.com/ is the portal and http://www.8wayrun.com/forum/ is your forum.

How exactly did you do this? Did you put your xenforo in the root of your domain?

On my site I am using a php redirect so http://www.smsmasters.co.uk redirects to http://www.smsmasters.co.uk/forum/portal but this doesn't look as good as how you did yours.

Thanks

Install xenforo on root server then option > Basic Board Information : Home Page URL > Leave this part blank .

If you already have installed portal go to options : Xenporta(portal ) > Set as Index Controller /Show navigation tab (choose these both) & save it .
 
Install xenforo on root server then option > Basic Board Information : Home Page URL > Leave this part blank .

If you already have installed portal go to options : Xenporta(portal ) > Set as Index Controller /Show navigation tab (choose these both) & save it .

THANKS!! Perfect! :)

P.S. I think this should be put in the first post, it was quite confusing for me.
 
Any idea why I'm getting this error, please?

Code:
Fatal error: Call to undefined function mb_strlen() in /xxxxxxx/xxxxxxx/library/EWRporta/Block/RecentNews.php on line 47
 
EventsUpcoming Block has been rewritten (needs v1.3.4 of XenAtendo).
If you have "streams only" enabled, javascript will try to find the live status of the stream.

If I have a mix of stream events, and other events, then checking "streams only" will cause only the streamed events to be listed in the Events Upcoming block?

If I take that approach, what do you mean when you say "find the live status of the stream"? It would say "LIVE" during streams? If so, what will happen if the stream is showing recorded content?
 
If I have a mix of stream events, and other events, then checking "streams only" will cause only the streamed events to be listed in the Events Upcoming block?

If I take that approach, what do you mean when you say "find the live status of the stream"? It would say "LIVE" during streams? If so, what will happen if the stream is showing recorded content?
Yes. Selecting "streams only" makes it so only events with a stream appear on the block. The live status is the "Currently Live (203 viewers)" text underneath the event information... Check this link http://www.8wayrun.com/ in about 2 hours after my event goes live tonight. For now, since the event isn't live, it just says "@ 08:00 PM (-04:00 EDT)"

1-png.13240


Any idea why I'm getting this error, please?

Code:
Fatal error: Call to undefined function mb_strlen() in /xxxxxxx/xxxxxxx/library/EWRporta/Block/RecentNews.php on line 47
I get this as well. Any idea?
mb_strlen is a built in PHP function... http://php.net/manual/en/function.mb-strlen.php

It's odd that you don't have it... I put it in this update to deal with non-english characters and the string substr. For now, go into class EWRporta_Block_RecentNews and remove all instances of "mb_" (there are 2). That should fix it. The mb_ version of these functions read multi-byte characters as a single byte. So while &nbsp; or &copy; are technically 6 characters each if you use strlen, if you use mb_strlen they will be read as 1 character.
 
mb_strlen is a built in PHP function... http://php.net/manual/en/function.mb-strlen.php

It's odd that you don't have it... I put it in this update to deal with non-english characters and the string substr. For now, go into class EWRporta_Block_RecentNews and remove all instances of "mb_" (there are 2). That should fix it. The mb_ version of these functions read multi-byte characters as a single byte. So while &nbsp; or &copy; are technically 6 characters each if you use strlen, if you use mb_strlen they will be read as 1 character.

mbstring is a http://www.php.net/manual/en/mbstring.installation.php]non-default extension[/url]. If it's already been compiled with your php as a shared extension (most likely) then you can just enable it.
Start by looking in php.ini under extensions to see if it's commented out and uncomment it and restart your webserver.

; linux/unix
extension=mbstring.so

; windows
extension=php_mbstring.dll
For php-5.3.6 have a look at which extensions are available in:
/usr/lib/php/extensions/no-debug-non-zts-20090626/
 
Install xenforo on root server then option > Basic Board Information : Home Page URL > Leave this part blank .

If you already have installed portal go to options : Xenporta(portal ) > Set as Index Controller /Show navigation tab (choose these both) & save it .
what if your xen is installed in "/forum/" currently. It would have to be moved to the root or

"Move forums to /forum/ and set /portal/ as the index. "
 
what if your xen is installed in "/forum/" currently. It would have to be moved to the root or

"Move forums to /forum/ and set /portal/ as the index. "

Yes you can move it to root but i think you need to set your board url properly in option before moving it.
 
mb_strlen is a built in PHP function... http://php.net/manual/en/function.mb-strlen.php

It's odd that you don't have it... I put it in this update to deal with non-english characters and the string substr. For now, go into class EWRporta_Block_RecentNews and remove all instances of "mb_" (there are 2). That should fix it. The mb_ version of these functions read multi-byte characters as a single byte. So while &nbsp; or &copy; are technically 6 characters each if you use strlen, if you use mb_strlen they will be read as 1 character.

I just went in and rebuilt PHP on my VPS. I'm surprised it wasn't already compiled with it..
 
Status
Not open for further replies.
Top Bottom