After you log on to your homepage, You can automatically log on to the dvbbs forum in a new browser. Verse visa

Source: Internet
Author: User
The method is to use
Http://bbs.dvbbs.net/dispbbs.asp? Boardid = 134 & id = 1237421 & replyid = 2188857 & Skin = 1

The downloaded slogin. asp file. Set the followingCodeGo to the webpage (home page) You want to log on.

<IFRAME src = "Forum/slogin. ASP "scrolling =" no "frameborder =" 0 "width =" 100% "Height =" 100 "name =" I1 "> </iframe>

In turn, when you log on to the Forum first, and then open the home page in a new browser, refer to the following twoArticleComplete
Article 1: http://www.xpb.cn/blog/article.asp? Id = 407
The article was original to a friend and sent to me. Please indicate the source for reprinting.

Description:

1This method is applicable to dynamic network forums.Dvbbs ver7.0And later versions, AccessDatabase2000And later versions.
2This modification method is for technical discussion and reference only. Please back up your database before modification. This site is not responsible for any problems such as data loss caused by the modification.

I. database merging methods:

First, assume that the database file to be merged (that is, the database file you will use on the Forum after the merge) isDvbbs. MDB, The database file to be merged (that is, after the merge, you will remove the unwanted) isDatabase. MDB

① First comeDvbbs. MDBCreate a database in the background of the ForumDatabase. MDB(Example:DvbbsThere are sub-forums A and B in the Forum,DatabaseThere are sub-forums A and C in the forum. You need to build a Sub-Forum C in the forum of the former, including level-2 sub-forums under categories.DatabaseThe merged data is stored inDvbbsFailed to find the original link)

② ChangeDvbbs. MDB,Database. MDBAll files are downloaded to the local machine and copied to the backup files. (Note that the operations are irreversible. Therefore, make sure to back up the original database .)

③ OpenDvbbs. MDB, Dot File--Obtain external data--Chain table, findDatabase. MDB, Click the link;

④ In the linked table shown by the dotForumTables, and then pressCTRLKey PointReforumTable, click OK;

⑤ Right-click the linkedForum1Table, click Copy, And Then paste to the blank area next to it. Add the data to the existing table and fill in the Table Name field.Forum, Click OK;

6. Right-click the linkedReforum1The table is processed as follows (only the table name column needs to be filled in)Reforum);

7.Forum1AndReforum1Delete two linked tables. In this way, the two databases are merged (DatabaseMergeDvbbs)!

Then, you willDvbbs. MDBUpload the Library to the space, go to the background forum management, andDatabasePosts in the sub-ForumsDvbbsDelete existing sub-ForumsDatabaseSub-Forum. The two forums are also merged successfully. log on to the background of the Forum to re-set the cache and update all Forum data!

2. Modify the online forum

1.Mobile Network ForumCookiesGeneral methods for the whole site

OpenINC/dv_clsmain.asp

The main purpose of this step isCookieThe name is defined as a common name.

Define variables at the beginning of this file 

Dim mybbsdir
Mybbsdir = "/"''Directory of your forum

Class cls_forum

Rem const

Find28Line(After adding the first two rows31Line)The original text of this line is:

Cachename = Replace (replace (server. mappath ("index. ASP ")," index. ASP ",""),":",""),"\","")Change

Cachename = "happy"

Find31Line(After adding the first two rows34Line)The original text of this line is:

 Forum_sn = cachename: vipuser = false: boardmaster = false

Change

Forum_sn = "happy"

2) ChangeCookiesDirectory The main purpose of this step isCookiesThe directory is defined as a global directory, that is, the root directory."/"

① OpenINC/dv_clsmain.asp

Search Response. Cookies (forum_sn). Path = cookiepath

There should be three

Replace:

 Response. Cookies (forum_sn). Path = "/"

② OpenLogin. asp
SearchResponse. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath

There should be a total of five, one of which is:Response. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath(There are spaces on both sides of the equal sign)

Replace:

Response. Cookies (dvbbs. forum_sn). Path = "/"
③ OpenLogout. asp

Search Response. Cookies (dvbbs. forum_sn). Path = dvbbs. cookiepath The27Line

There should be only one

Replace:

 Response. Cookies (dvbbs. forum_sn). Path = "/" So far, the modification is complete, that is,CookiesThe purpose of the whole site is universal.

2.Change the user logon return address:

① OpenLogin. asp

Add the following code to the file:

Response. expires = 0

Response. expiresabsolute = now ()-1

Response. addheader "Pragma", "No-Cache"

Response. addheader "cache-control", "private"

Response. cachecontrol = "no-Cache"

Find125Row:

 Dim comeurlname

If instr (lcase (Request ("comeurl"), "Reg. ASP ")> 0 or instr (lcase (Request (" comeurl ")," login. ASP ")> 0 or trim (Request (" comeurl ") =" "then
Comeurlname = ""

Comeurl = "index. asp"

Else

Comeurl = request ("comeurl ")

Comeurlname = "<li> <a href =" & request ("comeurl") & ">" & request ("comeurl") & "</a> </LI>"

End ifChange

Response. Redirect (request. servervariables ("http_referer "))

Session. Contents ("url") = request. servervariables ("url ")&"? "& Request. servervariables (" QUERY_STRING ")

Response. Redirect (Session ("url "))

② OpenLogout. asp

Add the following code to the file:

Response. expires = 0

Response. expiresabsolute = now ()-1

Response. addheader "Pragma", "No-Cache"

Response. addheader "cache-control", "private"

Response. cachecontrol = "no-Cache"

Find36Line
Response. Redirect dvbbs. forum_info (11)
Change

Response. Redirect (request. servervariables ("http_referer "))

Session. Contents ("url") = request. servervariables ("url ")&"? "& Request. servervariables (" QUERY_STRING ")

Response. Redirect (Session ("url "))3.Modify the backgroundCookiesName, otherwise you will not log on to the background of the dynamic network forum

① OpenAdmin/reloadforumcache. asp

Find11Line

Dvbbs. cachename = lcase (replace (mcachename ,":",""))

Dvbbs. forum_sn = Replace (dvbbs. cachename ,"_","")

Changed:

Dvbbs. cachename = "happy"

Dvbbs. forum_sn = "happy"

② OpenAdmin/INC/Const. asp

Find15Line

Dvbbs. cachename = lcase (replace (mcachename ,":",""))

Dvbbs. forum_sn = Replace (dvbbs. cachename ,"_","")
Changed:

Dvbbs. cachename = "happy"

Dvbbs. forum_sn = "happy"

All right, the change to the Internet forum is complete. At this point, your entire website can use the forumCookiesAnd will automatically return to your page upon login and exit You can get it elsewhere.CookiesThe data is:Request. Cookies ("happy") ("username ")''User name, corresponding[Dv_user]TableUsernameField
Request. Cookies ("happy") ("password ")''User random password, corresponding[Dv_user]TableTruepasswordField
Request. Cookies ("happy") ("userid ")''UserID, Corresponding[Dv_user]TableUseridField There are so many main modifications, and other directory permission settings, please solve them by yourself!

3. Modify the website login box

In this step, let's first take a look at the login box code of the mobile network forum:

 <TD class = lefttopcenter>※BytesMember login</TD> <TD class = lefttopright> </TD> </tr> </table>

<Table border = "0" cellspacing = "0" cellpadding = "0"> <tr>

<TD valign = top class = leftcentercenter Height = 170> <div>

<Form method = "Post" Action = "login. asp? Action = chk "> <Table> <TD Height = 5> </TD> </table>

User name:Partition <input name = "username" type = "text" style = "width: 100px "maxlength = '20' class =" yecao "> <Table> <TD Height = 5> </TD> </table>

PasswordBytesCode:<Input name = "password" type = "password" style = "width: 100px "maxlength =" 20 "class =" yecao "> <Table> <TD Height = 5> </TD> </table>

Retention period:Explain <select name = "cookiedate" class = "yecao">

<Option value = "0" selected>Not retained</Option>

<Option value = "1">Retained for one day</Option>

<Option value = "30">Retain for one month</Option>

<Option value = "365">Retained for one year</Option>

</SELECT> <Table> <TD Height = 5> </TD> </table>

<Input name = "Submit" type = "Submit" value ="Login Recording"Class =" put "onmouseover =" This. classname = 'overput' "" onmouseout = "This. classname = 'put'" class = "put">

<Input name = "Reg" onclick = 'window. Location = "Reg. asp" 'Type = "button" value ="Note Volume"Class =" put "onmouseover =" This. classname = 'overput' "onmouseout =" This. classname = 'put' "class =" put "FS>

</Form> <Table> <TD Height = 5> </TD> </table>

<Center> <a href = "lostpass. asp">Retrieve Password</A> </center>
In our website login file, you only need to use the form name and login file of the dynamic network forum, register and retrieve the password file!

References:

Integrated full-site Method-Mobile Network Forum7Version usersCookieAnd how to log on to the whole site for sharing ModificationChina Maintenance Network-Jing Yun

========================================================
Article 2: http://www.hotrich.com/blog/article.asp? Id = 20

In Wenzhang 1, "...There should be a total of three... "It is estimated that the early version of dvbbs is the case. In article 2, there is only one situation that fits your needs. I use dvbbs ver7.1 SP1.
See the specific content of Article 2, entitled "dynamic network user login http://www.hotrich.com/blog/article.asp? Included in cnblogs.com/cy163.

First, open the forum directly in a browser. After logging in successfully (note that you must choose to keep the cookie when logging in). Then, open a new browser window, how can I detect that my account is currently logged on ?, Use
Request. Cookies ("dvforum") ("username") are not empty for judgment.

L

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.