Civ Duel Zone  

Go Back   Civ Duel Zone > Site Stuff > Site Feedback
Home

Reply
 
Thread Tools Display Modes
Old 06-06-2003, 13:38   #1
DrAlimentado
Moderator
 
Join Date: Apr 2003
Location: the cookie jar.
Posts: 1,568
Default Can we do this??


A small request... if it's at all possible can we make the post preview popup resizeable? And while your at it the edit smilie list popup too.

Of course there is probably a reason you can't... asp code and shit. But the post preview thing would be very useful indeed, it took quite a few edits as it is before I got my map-making guide to fit on a 1024 wide screen.
DrAlimentado is offline   Reply With Quote
Old 06-06-2003, 13:57   #2
anarres
anarchist butcher
 
Join Date: Mar 2003
Location: United States of Whatever.
Posts: 4,677
Default

hehe, I've never even clicked on the 'Post Preview' button! []

I will see what I can do, or PP can if he gets time. What's wrong with the smilie popup? And have you tried editing your personal list of smilies yet btw?

__________________
<b>Calculate the probability of culture flips: Flip Calc</b>
anarres is offline   Reply With Quote
Old 06-06-2003, 14:44   #3
DrAlimentado
Moderator
 
Join Date: Apr 2003
Location: the cookie jar.
Posts: 1,568
Default


hehe, I have added ALL the normal size smilies into my personal list... and there's nothing wrong with the smilie popup as such, it just won't let you resize it so to view them you have to scroll through a tiny window.
DrAlimentado is offline   Reply With Quote
Old 28-02-2005, 17:46   #4
Pastorius
Custard used tile
 
Pastorius's Avatar
 
Join Date: Jul 2003
Location: Opening a can
Posts: 3,158
Default

please fix the smiley list (add a maximization of window tag to the code)

Yes, it is resizable, but I am too lazy to drag it into the right proportions. I want a 1 click resizing option please
__________________
Pastorius is offline   Reply With Quote
Old 28-02-2005, 19:07   #5
DrAlimentado
Moderator
 
Join Date: Apr 2003
Location: the cookie jar.
Posts: 1,568
Default


just to be contrary, but in firefox at least the edit smilie and show smilie lists are definitely not resizeable at all. (if they resize somehow in IE its because IE ignores the WCW html-standards...)

I know this seems like an unimportant request (and it is... just a very niggly annoyance) but to increase the chance of it happening here is all the donkeywork I can do without getting my hands dirty with asp:

The relevant outputted html is this; (from the last 2 rows of the table that hold all the smilie sidebar stuff in post.asp)

Quote:
quote:
&lt;tr align="center"&gt;
&lt;td align="center" height="20" &gt;&lt;font face="Verdana, Arial, Helvetica" size="1"&gt;&lt;a href="JavaScriptpenWindow3('pop_members_smiles.as p')"&gt;&lt;b&gt;Edit Smile List&lt;/b&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="center"&gt;
&lt;td align="center" height="20" &gt;&lt;font face="Verdana, Arial, Helvetica" size="1"&gt;&lt;a href="JavaScriptpenWindow3('pop_new_smiles.asp')"&gt;&lt;b&gt;Show Entire Smile List&lt;/b&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;/table&gt;
the javascript is defined in the head;

Quote:
quote:
function openWindow3(url) {
popupWin = window.open(url,'new_page','width=400,height=450,s crollbars=yes')
}
function openWindow4(url) {
popupWin = window.open(url,'new_page','width=400,height=525')
}
function openWindow5(url) {
popupWin = window.open(url,'new_page','width=450,height=525,s crollbars=yes,toolbars=yes,menubar=yes,resizable=y es')
}
If the smilie links called function 5 then they would be resizeable. Alternatively... (and maybe easier to find in the code?) you could just decide that all the popups calling function3 could be resizeable and modify the java definitions in the header code (presumably a header.asp or header.inc file?)

If you are too busy to sort it I am happy to modify a copy of the asp code for you (mail me the post.asp page)


DrAlimentado is offline   Reply With Quote
Old 28-02-2005, 19:21   #6
DrAlimentado
Moderator
 
Join Date: Apr 2003
Location: the cookie jar.
Posts: 1,568
Default


I forgot about the preview reply page.

The same thing applies but the javascript called is 'openPreview()' in the 'inc_code.js' external script.
Here's a modified inc_code.js where I have changed this:
Quote:
quote:
function OpenPreview()
{
if (document.PostTopic.Message) {
if (trim(document.PostTopic.Message.value)=="") {
alert("Nothing to Preview!")
return false
}
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=750,height=450')
return true
}
}
to this:

Quote:
quote:
function OpenPreview()
{
if (document.PostTopic.Message) {
if (trim(document.PostTopic.Message.value)=="") {
alert("Nothing to Preview!")
return false
}
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=750,height=450,resizable=yes ')
return true
}
}

Download Attachment: [img]icon_paperclip.gif[/img] inc_code.zip
441Bytes

I doubt it will fuck anything but test and use at own peril

DrAlimentado is offline   Reply With Quote
Old 28-02-2005, 19:45   #7
anarres
anarchist butcher
 
Join Date: Mar 2003
Location: United States of Whatever.
Posts: 4,677
Default

Seems fine, PP or me can update it later (I hope)...
__________________
<b>Calculate the probability of culture flips: Flip Calc</b>
anarres is offline   Reply With Quote
Old 28-02-2005, 20:06   #8
Pastorius
Custard used tile
 
Pastorius's Avatar
 
Join Date: Jul 2003
Location: Opening a can
Posts: 3,158
Default

DrA. I tested it with Mozilla 1.7.5, and just assumed that it was possible to resize (seing as anarres probably had done this already), but IIRC, by adding a line like resizable=yes or something should do the trick. Not sure if that is crossbrowser code - since I learned html the non-school IE way of looking at source + 2 pages in a Norwegian magazine...

__________________
Pastorius is offline   Reply With Quote
Old 28-02-2005, 20:31   #9
DrAlimentado
Moderator
 
Join Date: Apr 2003
Location: the cookie jar.
Posts: 1,568
Default

yeah the 'resizeable=yes' is a javascript bit that should work in all modern browsers.

('should' wrongly assumes that there is a rock-solid javascript standard in browsers, in this case I happen to know that both IE3.0+ and Firefox1.0+ will understand it )
DrAlimentado is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 16:08.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.