DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 20, 2018, 10:38:21 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: session id's  (Read 5115 times)
0 Members and 1 Guest are viewing this topic.
zousug
Guest
« on: May 04, 2004, 02:46:07 AM »

hello..

ive looked over this forum and cant find any thing so here i go..

how do i remove session id's from links??

(I.e the ?c=xxxxxx)

(like the ye old mail section)

but i dont want it to open into a lil popup window.. i still want it to look like the other pages..

(this is for my post office mod)

thanx
Logged
markneill
Guest
« Reply #1 on: May 04, 2004, 06:36:37 AM »

I don't believe you can - that is how LOTGD keeps track of users moving on the right path in the game - i.e. you shouldn't normally be able to move from the Inn to, say, Dark Horse Tavern.  
Logged
Kendaer
Guest
« Reply #2 on: May 04, 2004, 07:35:29 AM »

the ?c= is not a session id.

It is used as part of the URL to make sure someone isn't backtracking.
It is added to the url as part of the addnav() if you really want to try and remove it, but I would suggest leaving it alone.
Logged
zousug
Guest
« Reply #3 on: May 04, 2004, 04:36:02 PM »

hey.

mm, i was looking at removeing it because my post office dosnt work.. (I.e you canr delete read for write messages..  (it shows u ones u have but u cant do anything with it yet))

i was looking at the origonal mail system and it dosnt have the ?c=xxxxxx when u goto open it (i think its because its a popup window i could be wrong)

any ideas?

thnx
Logged
anpera
Guest
« Reply #4 on: May 04, 2004, 07:55:54 PM »

"Ye Olde Mail" doesn't have the nav system at all. Whole mail.php is excluded from that system in common.php. And yes, it is because it is a popup window.

The reason why your post office doesn't work is not the c=XXXX. I guess it is because the navs you want to use aren't allowed. For every <a href='BLA'>xyz</a> and for every <form action='BLA' ...> there must be an addnav("","BLA"); if you want to use the post office as part of the game.
Logged
Kendaer
Guest
« Reply #5 on: May 04, 2004, 10:54:44 PM »

hey.

mm, i was looking at removeing it because my post office dosnt work.. (I.e you canr delete read for write messages..  (it shows u ones u have but u cant do anything with it yet))

i was looking at the origonal mail system and it dosnt have the ?c=xxxxxx when u goto open it (i think its because its a popup window i could be wrong)

any ideas?

thnx

The ?c=xxx is added by the addnav function.. Since the Ye Old Maile doesn't use addnav (it doesn't need to since it's set up differently) it doesn't add those hooks.

I would *strongly* recommend that you understand what you are doing before you change things Smiley

And yes, listen to anpera, he is wise Smiley
Logged
zousug
Guest
« Reply #6 on: May 05, 2004, 03:56:17 AM »

"Ye Olde Mail" doesn't have the nav system at all. Whole mail.php is excluded from that system in common.php. And yes, it is because it is a popup window.

The reason why your post office doesn't work is not the c=XXXX. I guess it is because the navs you want to use aren't allowed. For every <a href='BLA'>xyz</a> and for every <form action='BLA' ...> there must be an addnav("","BLA"); if you want to use the post office as part of the game.

hello..

thanx

so for this

output("<td><a href='post.php?op=read&id=$row[messageid]'>",true);

i would need a addnav("post",post.php");

Huh

Logged
Artte
Guest
« Reply #7 on: May 05, 2004, 04:01:48 AM »

hello..

thanx

so for this

output("<td><a href='post.php?op=read&id=$row[messageid]'>",true);

i would need a addnav("post",post.php");

Huh

Try addnav("","post.php");   Make sure that first argument is blank.  You do this to add post.php to the allowed_navs list so you won't get sent to badnav.php when you click it.
Logged
zousug
Guest
« Reply #8 on: May 05, 2004, 04:06:25 AM »

hey..

ok so this would go before the a href?
Logged
anpera
Guest
« Reply #9 on: May 05, 2004, 06:12:14 AM »

so for this

output("<td><a href='post.php?op=read&id=$row[messageid]'>",true);

i would need a addnav("post",post.php");

Huh

The correct nav for <a href='post.php?op=read&id=$row[messageid]'> would be addnav("","post.php?op=read&id=$row[messageid]"); and can be located somewhere before or somewhere after the line that contains <a href...

Come on. This is not so difficult as what you want to make out of it.
Quote
For every <a href='BLA'>xyz</a> and for every <form action='BLA' ...> there must be an addnav("","BLA");
Logged
zousug
Guest
« Reply #10 on: May 05, 2004, 03:45:10 PM »

for some one who is new to php it isnt that easy to do...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
70 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search