Search found 113 matches

by Daniel_L
Sat May 15, 2010 7:04 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Only coming from url get access
Replies: 5
Views: 310

Re: Only coming from url get access

Interesting... so basically, I enable the php code, then write down in a file the code up there without the php tags and it should work? Is the code correct for what I want to do? Like I said, this must have been requested in the past, a quick search gave no results, maybe I should try to look for t...
by Daniel_L
Sat May 15, 2010 6:52 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Only coming from url get access
Replies: 5
Views: 310

Re: Only coming from url get access

therat wrote:You can't use php code in any of the template files, this would need to be done elsewhere, possibly index.php?
?? I have no idea.. this must have been done in the past.

Anyone?
by Daniel_L
Sat May 15, 2010 4:53 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Only coming from url get access
Replies: 5
Views: 310

Re: Only coming from url get access

After almost 1 hour trying to get this to work I realize the php code seems to be ignored. I added a simple echo "test"; and I don't see it on the page when I reload. Of course I purged the cache.

Any idea?
by Daniel_L
Sat May 15, 2010 2:44 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Only coming from url get access
Replies: 5
Views: 310

Only coming from url get access

Before getting acces to the forum, I want people to read a page then click the link to acces it which would be something like http://www.acceptedurl.com/forum My idea was to edit overall_header.html and add at the very top : <?php $comefrom=parse_url($_SERVER['HTTP_REFERER']) if ($comefrom['host'] !...
by Daniel_L
Tue Mar 23, 2010 1:51 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] User Reputation Points 0.3.1
Replies: 1429
Views: 147022

Re: [BETA] User Reputation Points 0.3.1

Is the author still around? At least his board is back so he's alive... :-)

Was wondering if this mod is still being worked on or supported.
by Daniel_L
Sat Mar 20, 2010 1:41 am
Forum: [3.0.x] MOD Requests
Topic: Any kind of reputation system?
Replies: 4
Views: 757

Re: Any kind of reputation system?

Yes, thanks! Which one seems best supported and trouble free, any recommendation?
by Daniel_L
Fri Mar 19, 2010 8:55 pm
Forum: [3.0.x] MOD Requests
Topic: Any kind of reputation system?
Replies: 4
Views: 757

Any kind of reputation system?

Yet I've done a search with 'reputation' and got few results and was wondering if there are other words to search for something similar to this. I'm looking for a kind of thumbs up/down system if someone post something helpful or not helpful at all then users will thumbs up/down a post/user and late...
by Daniel_L
Sun Dec 27, 2009 8:44 pm
Forum: [3.0.x] MOD Database Releases
Topic: Enable Browser Language Detection
Replies: 246
Views: 37300

Re: Enable Browser Language Detection

Hi Martin, Was looking for help by anyone with more knowledge than me but glad you replied. Doesn't your script return a 2 letters only language code? EDIT: I tried 'L_EN' => ($user->data['user_lang'] == 'en') ? true : false, 'L_FR' => ($user->data['user_lang'] == 'fr') ? true : false, and it works ...
by Daniel_L
Sun Dec 27, 2009 4:14 pm
Forum: [3.0.x] MOD Database Releases
Topic: Enable Browser Language Detection
Replies: 246
Views: 37300

Re: Enable Browser Language Detection

It's quiet here with the Holidays! ;)
by Daniel_L
Sat Dec 26, 2009 2:41 pm
Forum: [3.0.x] MOD Database Releases
Topic: Enable Browser Language Detection
Replies: 246
Views: 37300

Re: Enable Browser Language Detection

Would someone help me add a little extra? I'd like to know how I could use the result of this mod to display the board description in the proper language. I'm playing in the overall_header.html file and wanted to add an IF statement but I have no idea how to read the lang$ variable. And does lang$ a...
by Daniel_L
Thu Dec 24, 2009 2:40 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Is this safe?
Replies: 2
Views: 191

Re: Is this safe?

Thank you very much. Previous was working too but more logical your way and seems to work better. Also I fixed the subdomain problem by giving full URL.

Happy Holidays!
by Daniel_L
Thu Dec 24, 2009 3:15 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Is this safe?
Replies: 2
Views: 191

Is this safe?

Completly at the end of index.php I added this: <html> <head> <script><!-- window.onerror=null //--></script> <script language="javascript" type="text/javascript"> if (self == top) top.location.href="/forums.php"; </script> </head> </html> Is this safe? Why I am doing this? Because I want to build a...
by Daniel_L
Wed Dec 23, 2009 3:32 pm
Forum: [3.0.x] MOD Database Releases
Topic: Enable Browser Language Detection
Replies: 246
Views: 37300

Re: Enable Browser Language Detection

How many language packs have you installed at your board? Are these langauge packs really installed and activated? 2, en/fr Have you always purged the board after uploading modified files? yes, cache is not active for now... Have you always done your tests with new browser sessions? of course I dou...
by Daniel_L
Fri Dec 18, 2009 10:01 pm
Forum: [3.0.x] MOD Database Releases
Topic: Enable Browser Language Detection
Replies: 246
Views: 37300

Re: Enable Browser Language Detection

I've made the changes but it's not working, still showing only in english.

The last thing to do says to find:

Code: Select all

		$user['user_lang'] = $config['default_lang']
and add after

Code: Select all

 = $lang
so I end with

Code: Select all

$user['user_lang'] = $config['default_lang'] = $lang;
Normal?
by Daniel_L
Fri Dec 18, 2009 7:41 pm
Forum: [3.0.x] MOD Database Releases
Topic: Guests On Line Past 24 Hours
Replies: 76
Views: 12161

Re: Guests On Line Past 24 Hours

To have it in another language, do I only need to go in language/XX/common.php where XX is my language and add those two lines (translated of course)? Ot there is more to do? 'GUEST_ONLINE_24' => '%1$s Guest in the past 24 hours', 'GUESTS_ONLINE_24' => '%1$s Guests in the past 24 hours', Thanks

Go to advanced search