2007-05-11, 07:39 AM
2007-05-11, 02:10 PM
Thats cool. Did you just want to share to us that you "could do it" or were you going to actually release the mod?
2007-05-15, 04:15 AM
Templates--Modify / Delete -->New Thread Templates---newthread (Click Edit)
Delete all code in 'newthread'
Insert this code
Note: Then find and edit link to your post 'http://vnsay.com/forum/showthread.php?tid=332'
download expandnewthread.zip and extract, then upload in ROOT HOST
Same :
Delete all code in 'newthread'
Insert this code
Note: Then find and edit link to your post 'http://vnsay.com/forum/showthread.php?tid=332'
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=121"></script>
<script type="text/javascript" src="/script/switchcontent.js" ></script>
<style type="text/css">
/*Style sheet used for demo. Remove if desired*/
.handcursor{
cursor:hand;
cursor:pointer;
}
</style>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php" method="post" enctype="multipart/form-data" name="input">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong><br /><div style="margin:auto">{$smilieinserter}</div></td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
<h2>BBCode Tutorial </h2>
<h3 id="bobcontent1-title" class="handcursor">Normal BBCode ?</h3>
<div id="bobcontent1" class="switchgroup1">
[b]This text is bold[/b]<br> <b>This text is bold</b>
</p><p>[i]This text is italicized[/i]<br> <i>This text is italicized</i>
</p><p>[u]This text is underlined[/u]<br> <u>This text is underlined</u>
</p><p>[s]This text is striked out[/s]<br> <strike>This text is striked out</strike>
</p><p><br>[url]http://www.example.com/[/url]<br> <a href="http://www.example.com/">http://www.example.com/</a>
</p><p>[url=http://www.example.com/]Example.com[/url]<br> <a href="http://www.example.com/">Example.com</a>
</p><p>[email][email protected][/email]<br> <a href="mailto:[email protected]">[email protected]</a>
</p><p>[[email protected]]E-mail Me![/email]<br> <a href="mailto:[email protected]">E-mail Me!</a>
</p><p>[[email protected]?subject=spam]E-mail with subject[/email]<br> <a href="mailto:[email protected]?subject=spam">E-mail with subject</a>
</p><p><br>[quote]Quoted text will be here[/quote]<br> <quote>Quoted text will be here</quote>
</p><p>[code]Text with preserved formatting[/code]<br> <code>Text with preserved formatting</code>
</p><p><br>[img]http://www.php.net/images/php.gif[/img]<br> <img src="http://www.php.net/images/php.gif">
</p><p>[img=50x50]http://www.php.net/images/php.gif[/img]<br> <img src="http://www.php.net/images/php.gif" height="50" width="50">
</p><p><br>[color=red]This text is red[/color]<br> <font color="red">This text is red</font>
</p><p>[size=3]This text is size 3[/size]<br> <font size="3">This text is size 3</font>
</p><p>[font=Tahoma]This font is Tahoma[/font]<br> <font face="Tahoma">This font is Tahoma</font>
</p><p><br>[align=center]This is centered[/align]</p><div align="center">This is centered</div>
<p>[align=right]This is right-aligned[/align]</p><div align="right">This is right-aligned</div>
<p><br>[list]<br>[*]List Item #1<br>[*]List Item #2<br>[*]List Item #3<br>[/list]<br></p><ul><li>List item #1</li><li>List item #2</li><li>List Item #3</li>
<br>
<a href="http://vnsay.com/forum/showthread.php?tid=332" > <b>More...(insert flash, movie...)</b></a>
</div>
<script type="text/javascript">
//?? MAIN FUNCTION: new switchcontent("class name", "[optional_element_type_to_scan_for]") REQUIRED
//1) Instance.setStatus(openHTML, closedHTML)- Sets optional HTML to prefix the headers to indicate open/closed states
//2) Instance.setColor(openheaderColor, closedheaderColor)- Sets optional color of header when it's open/closed
//3) Instance.setPersist(true/false)- Enables or disabled session only persistence (recall contents' expand/contract states)
//4) Instance.collapsePrevious(true/false)- Sets whether previous content should be contracted when current one is expanded
//5) Instance.defaultExpanded(indices)- Sets contents that should be expanded by default (ie: 0, 1). Persistence feature overrides this setting!
//6) Instance.init() REQUIRED
var bobexample=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "div" elements
bobexample.setStatus('<img src="http://img242.imageshack.us/img242/5553/opencq8.png" /> ', '<img src="http://img167.imageshack.us/img167/7718/closedy2.png" /> ')
bobexample.setColor('darkred', 'black')
bobexample.setPersist(true)
bobexample.collapsePrevious(true) //Only one content open at any given time
bobexample.init()
</script>
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="yes" tabindex="7" {$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
<label><input type="checkbox" class="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="8" {$postoptionschecked['emailnotify']} /> {$lang->options_emailnotify}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$attachbox}
{$pollbox}
{$captcha}
</table>
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />??<input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="fid" value="{$fid}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>
download expandnewthread.zip and extract, then upload in ROOT HOST
Same :
http://yourdomain.com/script/switchcontent.js
2007-05-15, 10:17 AM
I think it looks kind of ugly. Nice in concept, but it lacks the style points to make it really work IMHO.
2007-05-15, 11:21 AM
This is a good feature to have , but i agree with Paul, its kinda ugly, maybe when clicking the link a pop up window appears or compact the explanations a bit, or have the link to the right of the text box instead?
Would need some tweaking before i used it, but other wise a good idea
Would need some tweaking before i used it, but other wise a good idea
2007-05-16, 12:26 AM
myb123 Wrote:I change code in newthread (very cool)
That's a very good feature. Thanks myb123. I like your forum too. You are also welcome to visit my forum.
http://edcu.net/forums
Regards