|
|
|
|
![]() ![]() |
May 13 2007, 04:23 AM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
Alright, i need a script that will change a number every time a button is clicked. the line it must change is:
http://www.notapplicable.rifehost.com/smf/...start=0;board=1 to: http://www.notapplicable.rifehost.com/smf/...start=1;board=1 and keep moving the "start=(#)" up. the forum is dedicated to this, so i dont have to worry about the post number or anything. it will be a strait up deal. Another feature, if possible, is to link a bunch of generators together. they all go off of the same post counter and then with that, they determine the line to put in. For example: The website request form has this post number: http://www.notapplicable.rifehost.com/smf/...tart=10;board=1 then the website modification for has this post number: http://www.notapplicable.rifehost.com/smf/...tart=11;board=1 so the script would link that line of code with all the other files. if someone can do this, i will send them the files. then it would be also appreciated if it could be explained to me. |
|
|
|
May 13 2007, 04:35 AM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,969 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
I don't have time to do this coding, but one method would be to create a text file with a single line of data, being the start number last used. Each time the button is clicked, read the file for the last value used, add one and write that to the file as an overwrite of the data, then store the value in the code to be used for the query string.
Sorry that i don't have the time to do it for you. Maybe read up on fread, fwrite functions and using the $_GET method to retrieve the query string over at the php.com site. |
|
|
|
May 13 2007, 05:38 AM
Post
#3
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,425 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
Like I mentioned earlier about this, the problem I see with doing a hack like that is it will mess up the post that use a unique number and then the increases by one every time a new post is made. When someone posts on the forum that has the same number as the link the forum generates, it could cause a possible error in the database. Unless you somehow create a separate database if the info programmed in and then generated through a php then it might work. Hopefully that gives an idea on where to start programming that.
|
|
|
|
May 13 2007, 03:29 PM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
im going to make a seperate forum for it so that does not happen. even if it does, all that happens is it says the post was already submitted.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 30th August 2008 - 01:47 AM |