Welcome, Guest. Please Login or Register.
May 14, 2025, 05:41:09 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Pay to register « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Pay to register  (Read 919 times)
Ozric
Noobie
*
Posts: 3


Ozric Tentacles!

Pay to register
« on: June 11, 2003, 06:42:30 PM »
Reply with quote

YaBB SE Version: 1.5.3
PHP Version:
MySQL Version:
Server Platform:
Link to Forum:

Problem Description:
Hi folks having installed Yabb SE, which works great, I have a question.

I have a forum, which requires a small membership fee, is it possible to mod a file, so that when someone clicks the register button, rather than going to the register page it jumps to another web page of my choosing.

I have tried the application mod as suggested, but it does not do what I want it to.

All I need is a bit of code, so when someone clicks register, it jumps to a web address, that I have specified.

Any help, greatly appreciated.

Alan   ;D

Logged
Ozric
Noobie
*
Posts: 3


Ozric Tentacles!

Pay to register
« Reply #1 on: June 12, 2003, 06:19:22 PM »
Reply with quote

YaBB SE Version:
PHP Version:
MySQL Version:
Server Platform:
Link to Forum:

Problem Description:
Hi folks having installed Yabb SE, which works great, I have a question.

I have a forum, which requires a small membership fee, is it possible to mod a file, so that when someone clicks the register button, rather than going to the register page it jumps to another web page of my choosing.

I have tried the application mod as suggested, but it does not do what I want it to.

All I need is a bit of code, so when someone clicks register, it jumps to a web address, that I have specified.

Any help, greatly appreciated.

Alan  

Dear moderators, please don`t move this post, as where you posted before, no one visited
Logged
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:Pay to register
« Reply #2 on: June 12, 2003, 06:21:47 PM »
Reply with quote

Actually the people who write mods visit the place where noone visits, whether they all visit this board is unlikely.

Posting it in the wrong place again is only likely to put people off helping you.
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Pay to register
« Reply #3 on: June 12, 2003, 07:30:54 PM »
Reply with quote

With all due respect, this thread does not belong in Other help, it belongs in the Mods Suggestion forum.  Please do not repost in any of the Help sections, aside from the Mods Suggestion forum for this issue.

Thanks.
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Pay to register
« Reply #4 on: June 12, 2003, 07:51:48 PM »
Reply with quote

Quote from: ozric on June 12, 2003, 06:19:22 PM
I have a forum, which requires a small membership fee, is it possible to mod a file, so that when someone clicks the register button, rather than going to the register page it jumps to another web page of my choosing.
That can't be hard to implement. Give me a couple of hours, and I will look into it for you. I'm sure that would be very simple.  :)
Logged
Smitty
Noobie
*
Posts: 21


WWW
Re:Pay to register
« Reply #5 on: June 12, 2003, 09:31:44 PM »
Reply with quote

Quote from: Douglas on June 12, 2003, 07:30:54 PM
With all due respect, this thread does not belong in Other help, it belongs in the Mods Suggestion forum.

What's the difference in a "Mod Suggestion Forum" & "Mod Idea Forum"? I probably would have posted it here too ;D
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Pay to register
« Reply #6 on: June 14, 2003, 02:03:20 AM »
Reply with quote

Sorry for the delay, but making sense of all these files is a bit easier said than done...  ::)

Anyway, open Register.php in a text editor. Directly after the two functions Register() and Register2() are started (just after the {, just before the lines that start with global), add this on a new line:

header("Location: http://www.youraddress.com");

(of course replace the URL after Location with the actual URL you want to jump to when someone clicks Register - Be sure to enter the full URL, including http://)

And that's pretty much all there is to it.

I'm sure there are easier and more efficient ways to do it for people more experienced with the YaBB SE code, but this works anyway - I just tested it on my forum.

As this seems to specific to your needs, I won't bother turning this into a mod - It's just too much work...
Logged
Ozric
Noobie
*
Posts: 3


Ozric Tentacles!

Re:Pay to register
« Reply #7 on: June 14, 2003, 01:43:56 PM »
Reply with quote

Hi Daniel

I am afraid that does`nt work, any ideas.

Alan   :(
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Pay to register
« Reply #8 on: June 15, 2003, 09:51:21 AM »
Reply with quote

try this:

in index.php look for

      'register' => array("$sourcedir/Register.php", 'Register'),

and change it to:

      'register' => array("URL/to/other/page.php", 'Register'),

Note: This may give undesired effects such as the forum template, Although you will be able to use all the yabbse variables.

An alternate way if you want members to just be sent to another page is:

in subs.php look for

      $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";


and change it to


      $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"Your/URL/Here.php\">$img[register]</a>";


This will send them directly to another page.

Another way would be to add extra fields to register.php
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Pay to register « 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.124 seconds with 21 queries.