News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Let Your Guest Register...!!!

Started by SwapsRulez, June 20, 2008, 11:30:04 AM

Previous topic - Next topic

Hoochie Coochie Man

So.. There is no error in this tip. Thanks..
İnadına SMF 1.1.X

Sarge

I'm glad your problem is now solved. :)

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

tatore

There's something nice to read about the js that usually create issues with IE.
Mainly the trick is either uninstall the lightboxes (as you did) :P , or find a way to play around the

window.addEvent('domready', Lightbox.init.bind(Lightbox));

'Googling' with the code above it will be easy to find a way to use motools.js or slimbox.js without conflicts.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Sarge

There's a Integrate Lightbox 1.6 mod by quake101 (not the mod by karlbenson) that actually uses Slimbox (created with the mootools library).

The original mod (version 1.4) by karlbenson uses Lightbox2; quake101 took over the mod and updated it to use Slimbox.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

SwapsRulez

Quote from: Sarge on July 05, 2008, 09:47:19 AM
There's a Integrate Lightbox 1.6 mod by quake101 (not the mod by karlbenson) that actually uses Slimbox (created with the mootools library).

The original mod (version 1.4) by karlbenson uses Lightbox2; quake101 took over the mod and updated it to use Slimbox.

So what should i use to simulate that ? Slimbox or lightbox ? I cant find the slimbox mod anywhere in the forum. I know lightbox uses slimbox, but any chances to fix that error ?

@tatore, nice find. But i'm lost there in that webpage. :P Still i'll try out that...  Thanks for that link. :D
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

Sarge

Quote from: SwapsRulez on July 06, 2008, 12:11:50 AM
So what should i use to simulate that ? Slimbox or lightbox ? I cant find the slimbox mod anywhere in the forum. I know lightbox uses slimbox, but any chances to fix that error ?

Let me clarify: Slimbox is an alternative to Lightbox. I personally prefer Slimbox -- it achieves the same effect, uses less code and can be used as soon as the page opens in the browser, without the need to wait for all images to load. For more information about Slimbox, go to: http://www.digitalia.be/software/slimbox

The Integrate Lightbox 1.6 mod uses Slimbox. You can read the description and download the mod here:
http://custom.simplemachines.org/mods/index.php?mod=1158

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

nowakfilip

Is there any chance to make it work on version 1.1.5.

I would really appreciate that, thank you.

sohaib

Were can we post this
<a href="', $scripturl, '?action=register">Blah</a>?

SwapsRulez

Quote from: sohaib on July 15, 2008, 07:13:47 AM
Were can we post this
<a href="', $scripturl, '?action=register">Blah</a>?

You don't have to post that. After applying the modification, the guests will automatically get the registration page link instead of original link. You just have to do the modification in the subs.php as mentioned in the first post.

Quote from: nowakfilip on July 09, 2008, 10:48:20 PM
Is there any chance to make it work on version 1.1.5.

I would really appreciate that, thank you.

Can you please attach subs.php file here, so that i can look out for the modifications to be made in the subs.php for SMF 1.5.
Thanks.
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

nowakfilip

#29
Sure, here is my subs.php file.

hxxp:rapidshare.com/files/129915850/Subs.php.html [nonactive]

*I couldn't find an upload form here and I couldn't post the fie here, because it exceeded the maximum length.

Also is there a way site links cold be shown as text.

For example:

"http://simplemachines.org/" would show as "You need to register to be able to see the link" and when guests would click on it they would get forwarded to registration page.

But when members would login they would see the original site link "http://simplemachines.org".

I would really appreciate any help.

SwapsRulez

Hey nowakfilip, i checked your subs.php

There should not be any problem with it installing the trick. It will work perfectly with SMF 1.5 also.

Also about your problem, you'll need to use just plain javascript without an <a href> tag for making it plain. Also you'll have to use the onclick event to forward the user the registration page.

This will help you ---->          onClick="parent.location='index.php?action=register'"

Also one more useful link to check out which tags supports onclick.

http://www.w3schools.com/jsref/jsref_onclick.asp
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

Hoochie Coochie Man

Hi @SwapsRulez

What is that "bbc_link" thing?  :-\
There is no such a thing in subs.php

'content' => '<a href="$1" class="bbc_link">$1</a>',

'before' => '<a href="$1" class="bbc_link">',

İnadına SMF 1.1.X

SwapsRulez

@Hoochie Coochie Man,

I'm using SMF 2.0 Beta 3.1. You ?
Its there in 2.x

Don't know about 1.x :P
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

Hoochie Coochie Man

But you told that you've tested this MOD on SMF 1.5 :P
İnadına SMF 1.1.X

SwapsRulez

Quote from: Hoochie Coochie Man on August 11, 2008, 03:18:40 PM
But you told that you've tested this MOD on SMF 1.5 :P

Oops, Sorry! We have to use logics there. Not all people are able to understand that. Thanks mate for bringing that thing up. I'm making that changes in the main post.

Thanks again. :)
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

Hoochie Coochie Man

İnadına SMF 1.1.X

riker

#36
Quote from: SwapsRulez on June 20, 2008, 11:30:04 AM

You just need to put the follwing code in your subs.php file. I've tested this MOD on SMF 1.5 & 2.0 Beta 3.1
However you can let it work with little modifications for other versions.

For SMF 2.x

Open Subs.php


Find
'content' => '<a href="$1" class="bbc_link">$1</a>',

Replace With
'content' => $user_info['is_guest'] ? '<a href="', $scripturl, '?action=register" class="bbc_link new_win" onclick="alert(\'You need to login or register to see the link. Thank you.\')">$1</a>' : '<a href="$1" class="bbc_link">$1</a>',


Find
'before' => '<a href="$1" class="bbc_link">',

Replace With
'before' => $user_info['is_guest'] ? '<a href="', $scripturl, '?action=register" class="bbc_link new_win" onclick="alert(\'You need to login or register to see the link. Thank you.\')">' : '<a href="$1" class="bbc_link">',

Find
'content' => '<a href="$1" class="bbc_link">$1</a>',

Replace With
'content' => $user_info['is_guest'] ? '<a href="', $scripturl, '?action=register" class="bbc_link new_win" onclick="alert(\'You need to login or register to see the link. Thank you.\')">$1</a>' : '<a href="$1" class="bbc_link">$1</a>',

Find
'before' => '<a href="$1" class="bbc_link">',

Replace With
'before' => $user_info['is_guest'] ? '<a href="', $scripturl, '?action=register" class="bbc_link new_win" onclick="alert(\'You need to login or register to see the link. Thank you.\')">' : '<a href="$1" class="bbc_link">',

I get to this,

'before' => $user_info['is_guest'] ? '<a href="', $scripturl, '?action=register" class="bbc_link new_win" onclick="alert(\'You need to login or register to see the link. Thank you.\')">' : '<a href="$1" class="bbc_link">',

And it's not in the subs.  I've also downloaded the Large upgrade again and tried it on that subs.php just to be sure and it doesn't work on that either!

SwapsRulez

@riker : You need to find this

'before' => '<a href="$1" class="bbc_link">',

:)

Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

LOADING...


SaNoerdo

The code is not working for me. Using SMF 1.1.5.
I'm getting the error: Parse error: syntax error, unexpected ',' in /home/reisforum.net/Sources/Subs.php on line 1230

Just did what you described. Find the text, replace it with the new code. I really like to get this working :)

Advertisement: