Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
nicpon
Hangin' Around



Joined: Apr 07, 2007
Posts: 32
Location: Columbus,OH/Poland

PostPosted: Sun Jul 08, 2007 7:48 pm Reply with quote

Hey,
I wrote my own module, but I'm having trouble with redirecting user to login and back to my module.
I'm using the redirect code like this:
Code:
$redirect = 'mymodule&op=add_practice';

header("Location: modules.php?name=Your_Account&redirect=".$redirect);

but then after login it redirects to
modules.php?name=Forums&file=Treningi&op=add_practice

I looked at YourAccount module and can someone tell me what $t,$f and $mode variables in function login?
Thanks


Last edited by nicpon on Tue Jul 10, 2007 6:01 am; edited 1 time in total 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Jul 08, 2007 9:12 pm Reply with quote

Who in their right mind would create two global variables named $t and $f?

LOL...

It looks like they are tying together the forums and Your_Account together somehow. If you look in modules/Forums/nukebb.php you can see them being used in there. $t is a topic id and $f is a forum id. Maybe they are for watching a topic or forum for new messages?

As for your redirect problem...are you using short links?

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Jul 09, 2007 6:34 am Reply with quote

Yes, pretty sure it is ShortLinks as I think the GTZ-PageTap.php file is causing his link to be re-written.

What version of ShortLinks are you using? If you are not using ShortLinks, but some other URL rewriting tool, and you have tapped your new module, the issue lies within that tap file...

Regarding the redirect, I am not sure that will work for your own module as it is a "kludge" to get PHP-Nuke and phpBB to integrate. They both have user registration capabilities but forums redirects to YA to process the registration.

I am not 100% certain how it works, so we'll have to see if Evaders99 is lurking and knows more (or anyone else with more experience there).

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
nicpon







PostPosted: Mon Jul 09, 2007 10:06 am Reply with quote

I can always add some code to login function to make it work, but I'm trying to get my modules as much stand alone as possible. Meaning I don't want to make many changes to core files as it becomes painful to update the system.

To answer your question. I'm using latest release of RN, but I haven't touched shortlinks yet. I'm moving from nuke 8.0 and my new site on RN is still running on IP instead of domain name and I will wait with shortlinks until domain is transferred to new IP.

Somehow, mode variable is set during redirection and I will look deeper into it tonight to find out what exactly is going on there.
 
montego







PostPosted: Mon Jul 09, 2007 7:19 pm Reply with quote

nicpon, aarrrggghhhhh.... I see what happened now. it is actually Raven's GoogleTap codes that modified what you posted. Sorry about the confusion.
 
nicpon







PostPosted: Tue Jul 10, 2007 6:05 am Reply with quote

One thing that I just noticed, when I posted in my first post this link
Code:
m o d u l e s .p h p ? n a m e = F o r u m s &file=Treningi&op=add_practice - I have to write it with spaces otherwise it's changed by shortlinks
, it was changed to
Code:
forums.html?file=Treningi&op=add_practice
and in my problem is the first case.

BTW the module I'm talking here about is for sharing workout practices. It's still under development, but once it's done I'll be glad to share it with anyone.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©