Welcome, Guest. Please Login or Register.
November 29, 2024, 03:32:04 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] Global Cookies 1.1 « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Done 1.5.2] Global Cookies 1.1  (Read 13159 times)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
[Done 1.5.2] Global Cookies 1.1
« on: April 25, 2003, 06:54:38 AM »
Reply with quote

Package Server: http://unknown.network32.net
Boardmod: http://unknown.network32.net/better/globalcookies.zip

Another simple mod.  This makes it so that you can enable cross-subdomain cookies.

For example, if your forum is at:
http://yabbse.niceplace.com/

But your main website resides at:
http://www.niceplace.com/

Installing this mod will allow you to access the forum's cookie/login information from your site.

Thanks,
-[Unknown]
« Last Edit: July 21, 2003, 10:44:07 PM by [Unknown] » Logged
smacktalk
Full Member
***
Posts: 236


No Personal Text!!

WWW
Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #1 on: April 25, 2003, 08:51:47 AM »
Reply with quote

Quote from: [Unknown] on April 25, 2003, 06:54:38 AM(there's no rush, but I'm planning on putting this in my secret project.)

This secret projects sounds like Trinity!! ;D
Logged

As a well-spent day brings happy sleep, so a life well spent brings happy death.
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #2 on: April 25, 2003, 09:17:56 AM »
Reply with quote

You only have to ask ;)

<edit file>
dutch.lng
</edit file>

<search for>
if ($MenuType == 1)
</search for>

<replace>
$txt['globalCookies'] = 'Cookies gebruiken onafhankelijk van het subdomein?<br />Let op : Locaal opslaan van cookies uitschakelen!';

if ($MenuType == 1)
</replace>


<edit file>
helpadmin.help
</edit file>

<search for>
// Mod Settings
</search for>

<replace>
// Mod Settings

$helptxt['m_security'] = '
   Je kunt hiermee onafhankelijk van het subdomein de forumcookies gebruiken.  Bijvoorbeeld als....<br />
   Je website staat op http://www.yabbse.org/,<br />
   en je forum staat op http://forum.yabbse.org/,<br />
   met deze optie kun je de forum cookies gebruiken op je (hoofd)website.';
</replace>
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #3 on: April 25, 2003, 04:00:22 PM »
Reply with quote

german:

<edit file>
german.lng
</edit file>

<search for>
if ($MenuType == 1)
</search for>

<replace>
$txt['globalCookies'] = 'Subdomain unabhängige Cookies verwenden?<br />Achtung:Lokale Cookies muss abgeschaltet sein!';

if ($MenuType == 1)
</replace>


<edit file>
helpadmin.help
</edit file>

<search for>
// Mod Settings
</search for>

<replace>
// Mod Settings

$helptext['m_security'] ='
   Ermöglicht die Nutzung von Sudomain unabhängigen Cookies. Ein Beispiel:<br />
   Ihre Seite hat die Domain http://www.yabbse.org,<br />
   Und ihr Forum hat die Domain http://www.forum.yabbse.org,<br />
   Diese Veränderung ermöglicht es auf die Forum Cookies ihrer Seite zuzugreifen.

</replace>

-----
<mod info>
Erlaubt die Verwendung von Cookies auch bei Subdomains
</mod info>

Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #4 on: April 25, 2003, 07:11:00 PM »
Reply with quote

Please change ö in &ouml; etc. in the german translation.
« Last Edit: April 25, 2003, 07:27:17 PM by Daniel D. » Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #5 on: April 26, 2003, 01:15:02 AM »
Reply with quote

Thanks, Webby, Horseman, and Daniel D.  when I take it out of beta I will make sure those translations are in the mod.

Any comments?  Is it working for everyone?
Anything I could improve?

-[Unknown]
Logged
chvitaly
Noobie
*
Posts: 13


Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #6 on: April 26, 2003, 07:31:04 PM »
Reply with quote

Nice mod, thanks!

There seems to be a small mistake in ModSettings.php - help button is missing even though you're adding help text into adminhelp.help, also it's better to have local cookies and global cookies settings next to each other.

Change this:

<search for>
                     </tr><tr>
                        <td class="titlebg" bgcolor="' . $color['windowbg2'] . '" colspan="3" align="center"><b>' . $txt['yse294'] . '</b></td>
</search for>

<replace>
                     </tr><tr>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><font size="2">' . $txt['globalCookies'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="checkbox" name="globalCookies" value="1"' . ($modSettings['globalCookies'] ? ' checked="checked"' : '') . ' /></td>
                     </tr><tr>
                        <td class="titlebg" bgcolor="' . $color['windowbg2'] . '" colspan="3" align="center"><b>' . $txt['yse294'] . '</b></td>
</replace>


to this:

<search for>
                     </tr><tr>
                        <td valign="top" class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><a href="javascript:reqWin(\'' . $scripturl . '?action=helpadmin;help=m32\')" class="help"><img src="' . $imagesdir . '/helptopics.gif" border="0" alt="' . $txt[119] . '" /></a></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '">
                           <font size="2">' . $txt['yse314'] . '</font>
                        </td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '">
                           <input type="checkbox" name="localCookiesChecked" value="1"' . $localCookiesChecked . ' />
                        </td>
</search for>

<add after>
                     </tr><tr>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '" colspan="3"><hr size="1" width="100%" class="windowbg3" /></td>
                     </tr><tr>
                        <td valign="top" class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><a href="javascript:reqWin(\'' . $scripturl . '?action=helpadmin;help=m_security\')" class="help"><img src="' . $imagesdir . '/helptopics.gif" border="0" alt="' . $txt[119] . '" /></a></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><font size="2">' . $txt['globalCookies'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="checkbox" name="globalCookies" value="1"' . ($modSettings['globalCookies'] ? ' checked="checked"' : '') . ' /></td>
</add after>


Also, it would be better to boldify 'Warning:' in english.lng

Lastly I couldn't run globalcookies.php. I was getting this error: 'Fatal error: Call to undefined function: template_header() in /home/scantool/scantool-www/forum/Sources/Errors.php on line 56', so I had to add the value in the table manually.

Regards,

Vit
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.2] Global Cookies 1.0
« Reply #7 on: April 26, 2003, 07:55:35 PM »
Reply with quote

Good idea.  Sorry about the mistake of no help button... it IS still beta.

As far as the error.... you weren't logged in.  It only works for administrators.

Thanks,
-[Unknown]
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #8 on: May 01, 2003, 05:31:21 PM »
Reply with quote

Updated, translations included, put next to local cookies option.

-[Unknown]
Logged
Norbert
Noobie
*
Posts: 28


WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #9 on: May 18, 2003, 10:10:44 AM »
Reply with quote

QuotePackage Server: http://gbaetc.homeip.net/yypack
Boardmod: http://gbaetc.homeip.net/yypack/globalcookies.zip
The Links don't work.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #10 on: May 18, 2003, 06:11:48 PM »
Reply with quote

Quote from: Norbert on May 18, 2003, 10:10:44 AM
QuotePackage Server: http://gbaetc.homeip.net/yypack
Boardmod: http://gbaetc.homeip.net/yypack/globalcookies.zip
The Links don't work.

Read my personal text: (package server down for the week.)

Sorry, it happens.

-[Unknown]
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #11 on: July 18, 2003, 06:36:54 AM »
Reply with quote

I just tried to download and got a 404 error.  Did you move the files or something?
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #12 on: July 21, 2003, 10:21:19 PM »
Reply with quote

I must need this mod... can somebody give me a download link?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #13 on: July 21, 2003, 10:44:21 PM »
Reply with quote

Updated the URL.

-[Unknown]
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.5.2] Global Cookies 1.1
« Reply #14 on: July 21, 2003, 10:50:18 PM »
Reply with quote

tnx very usefull because my menu bar is not working on my normal site adres: http://www.onsforum.nl en my board: http://www.onsforum.nl/yabbse.index.php And i think this could help... got other tricks?

ps. plz update url also of: [Done 1.5.1] View posts per day in profile
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] Global Cookies 1.1 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.025 seconds with 20 queries.