Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 blog mod - help

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
phoenixtaz13 Posted - 12 March 2009 : 06:07:32
good day to all.... :)

i cant seem to find my old post... :(

anyways, carefree assisted me on this mod... everything were working fine... until i ran into this prob.... when i decided to lock the post or topic i encountered an error...

heres the error message:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'objRec'
/forum/blogs.asp, line 160

and it points out to the one in red:
set objRec = my_Conn.Execute(strSql)
DTString = " WebBlogs "
if not objRec.BOF and not objRec.EOF then
if Request.QueryString("member") <> "" or Request.QueryString("log_id") <> "" then
DTString = " <a href=""blogs.asp?member=" & objRec("MEMBER_ID") & """>Back to " & objRec("M_NAME") & "'s Blog list</a>"
end if
else
DTString = " Nothing found !"
set objRec=Nothing
set objDict=Nothing
end if
TMember_ID = objRec("MEMBER_ID")

tried searching for the prob, no luck... :(
any help would be greatly appreciated... :)

thanks...
15   L A T E S T    R E P L I E S    (Newest First)
phoenixtaz13 Posted - 08 April 2009 : 16:08:01
Hello... good day to all... :)

Carefree, hope you have time.... :)

i was playing around or testing blog.asp, and i found out, when i embed or use the [tube]url[/tube] tag, the video is not displaying... but in the topic.asp the video is displaying....

what do u think i miss?... or what should i look into?...

thanks in advance.... :)

typo error.... solve the prob already.... :)

phoenixtaz13 Posted - 21 March 2009 : 11:59:16
hi huwr..... :)

i just did what u suggested.... :)

thanks....
phoenixtaz13 Posted - 21 March 2009 : 06:44:49
hi huwr.... :)

found some codes in pop_lock.asp and typed it in my blog.asp....
heres what i did:

quote:
Response.write "<form name=""input"" method=""post"">" & vbNewLine & _

"<input type=""button"" value=""Lock"" name=""buttonlock""/>" & vbNewLine & _

if buttonlock = "Lock" then
strSql = "UPDATE " & strTablePrefix & "TOPICS "
strSql = strSql & " SET T_STATUS = " & 0
if Request.Form("noArchiveFlag") = "1" then
strSQL = strSql & ", T_ARCHIVE_FLAG = " & 0
else
strSQL = strSql & ", T_ARCHIVE_FLAG = " & 1
end if
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID

my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end if
Response.Write "</form>" & vbNewLine


im confuse on how the buttons work... no matter how many times i click the button, it wouldnt execute the code to change the T_STATUS... :(

can u pls shed some light on this pls..... :)

thanks for ur time again..... :)
HuwR Posted - 21 March 2009 : 05:56:29
you could just clone pop_lock and maybe call it pop_lockblog or something, and then only show the link to the blog author, if it is using normal topics to simulate the blog, you need to check mLev to determine if you are the author or not.

an mLev of 2 should indicate you are the author
phoenixtaz13 Posted - 21 March 2009 : 04:12:44
hi huwr.... :)

i added the code tag and it didnt do the same as urs.... so i just use the quote tag.. :(

about my blog.asp... :)

what i intend to do, is only the author of the topic is allowed to delete and lock his own topic in my blog.asp file and not in any other area.... i just want to allow the author the ability to decide wether he/she wants people to comment out on his blog.

since u mentioned about other members will be able to delete and lock topics, this mean its not good to modify the pop_lock.asp and pop_delete.asp but what if a code similar to pop_lock and pop_delete added in my blog.asp file.... how can i do that?...

thanks for ur time huwr.... :)
HuwR Posted - 21 March 2009 : 03:57:24
a normal member can delete a post but only if nobody has replied, you SHOULD NOT change this otherwise you forum will just become a joke as people will just be able to delete topics if somebody makes a comment that they do not agree with, IT IS AN EXTREMELY BAD IDEA.
phoenixtaz13 Posted - 21 March 2009 : 03:38:50
hello again guyz.... :)

good day to all.... :)

btw, while i was beta testing my blog, i've noticed that only admin and moderators are allowed to delete and lock post....

how can i allow the author of the topic to delete and lock his own topic without making him the moderator?...

i added this in my blog.asp file:
quote:
if (T_Status = 0) then
Response.Write " <a href=""JavaScript:openWindow('pop_open.asp?mode=Topic&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & strWeblogsForum & "&CAT_ID=" & Cat_ID & "')"">" & getCurrentIcon(strIconFolderUnlocked,"Un-Lock Topic","") & "</a>" & vbNewLine
else
Response.Write " <a href=""JavaScript:openWindow('pop_lock.asp?mode=Topic&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & strWeblogsForum & "&CAT_ID=" & Cat_ID & "')"">" & getCurrentIcon(strIconFolderLocked,"Lock Topic","") & "</a>" & vbNewLine

end if
<a href=""post.asp?" & ArchiveLink & pollLink & "method=EditTopic&REPLY_ID=" & Topic_ID & "&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & strWeblogsForum & """>" & getCurrentIcon(strIconFolderPencil,"Edit Topic","hspace=""0""") & "</a>" & vbNewLine
'Response.Write " <a href=""JavaScript:openWindow('pop_delete.asp?" & ArchiveLink & pollLink & "mode=Topic&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & strWeblogsForum & "&CAT_ID=" & Cat_ID & "')"">" & getCurrentIcon(strIconFolderDelete,"Delete Topic","") & "</a>" & vbNewLine


and when i click on the LOCK icon, i get this "No Permissions to Lock Topic"

what should i look into?.... what should i do?....

thanks in advance... :)
HuwR Posted - 14 March 2009 : 03:34:56
they will only stretch if

a) there are no spaces in a line
b) the text has been placed in a code tag.

to prevent a) is pretty much impossible with out doing some serious rewrites of the code or heavy use of regexp, to prevent b there is code around which creates scrolling code boxes.
phoenixtaz13 Posted - 13 March 2009 : 23:27:18
thanks for the added info Huwr... :) ur right on that, i'll consider what u said... :)

thanks carefree... i'll check out the link.... :)

very last question, how do u prevent post messages from expanding the width of the forum? or send me a link topic that deals with this problem, i dont know how to call it in the search page... i got into a situation when im testing my forum and posted a link and it didnt break, instead it expanded my forum width..... :(

Carefree Posted - 13 March 2009 : 11:49:27
That's called the "topic preview" mod.
HuwR Posted - 13 March 2009 : 11:29:49
probably called something like topic hover mod maybe ?

don't forget however that if you insist on putting the content of a topic in a tooltip it will dramatically increase the size of the page you are sending to the ckient, and consequently slow it down and increase the bandwidth your site uses.
phoenixtaz13 Posted - 13 March 2009 : 10:50:36
hi Huwr.... :)

i saw this in one of the member's site, when u hover the mouse pointer on top of the topic post, it displays or shows partial content of the topic....

HuwR Posted - 13 March 2009 : 10:16:10
it is the 'title' attribute of the link which gets diaplayed as a 'tooltip'
phoenixtaz13 Posted - 13 March 2009 : 10:11:54
wow!.... thanks again carefree!....

what u suggested solved my prob.... :)

and this is the only thing i modified:
strSQL = strSQL & strTablePrefix & "TOPICS.T_AUTHOR = " & strMemberTablePrefix & "MEMBERS.MEMBER_ID AND " & strTablePrefix & "TOPICS.T_STATUS < 2 AND " & strTablePrefix & "TOPICS.T_STATUS > 0 "

changed it to this:
strSQL = strSQL & strTablePrefix & "TOPICS.T_AUTHOR = " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "


thank u very much carefree.... :)

btw, what do u call the thing when u hover the mouse pointer above a link and then a small
square or rectangle pops up at the side of the mouse showing a portion of the content of that link?...

thank you carefree sooooooooo much..... :)
god bless you.... :)
HuwR Posted - 13 March 2009 : 07:52:23
carefree, would it not have been simpler to just use one scroolcode box for that? it is extremely difficult to read when you have all those scrollcode boxes with only one line in them.

maybe like this



146
strSQL = strSQL & strTablePrefix & "TOPICS.T_AUTHOR = " & strMemberTablePrefix & "MEMBERS.MEMBER_ID AND " & strTablePrefix & "TOPICS.T_STATUS < 2 AND " & strTablePrefix & "TOPICS.T_STATUS > 0 "

429

		if T_STATUS <> 0 then

907

				if Reply_Status < 2 then

954

					if (Cat_Status <> 0 and Forum_Status <> 0 and T_STATUS <> 0) or (AdminAllowed = 1) then

958

				if ((Cat_Status <> 0 and Forum_Status <> 0 and T_STATUS = 1) or (AdminAllowed = 1 and T_STATUS <= 1)) and ArchiveView = "" then

967

					if (Cat_Status <> 0 and Forum_Status <> 0 and T_STATUS <> 0) or (AdminAllowed = 1) then

1101

	if T_STATUS <> 0 then



Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07