Forum's Website Development & Bugs & Problems Reporting

Locked
User avatar
Sublevel 114
layer restorer
Posts: 16587
Joined: 11 Dec 2012 20:23

Re: Bugs & Problems Reporting

Post by Sublevel 114 »

1024x600
User avatar
admin
Site Admin
Posts: 117
Joined: 01 Jan 1970 01:00

Re: Bugs & Problems Reporting

Post by admin »

Sublevel 102 wrote:1024x600
Really? Because the actual content of the forum is set at width of 1025 px, which means you should be able to see at least all of the forum at that size.

I am still leaving the scrollbars here in case anyone here have resolution lower than 1000 px. I will need to tweak the coding so that people can view the forum from any resolution without scrolling horizontally.

-------

EDIT: Ha! It's quite simple. The whole content is now responsive to fit any resolution! All I had to do was to change the code "width: 1025px" to "max-width: 1025px" and viola! You should be able to read the forum without needing the horizontal scrollbar.

BOOM.

-------

EDIT 2: Polling is now permitted! You can create polls and vote on them! Be sure not to abuse the system or I will remove the privileges. As of now, the polls are limited to General Discussion section.

Enjoy 8-)
{Admin account of AK, former forum host. --Ancient Crystal}
User avatar
Sublevel 114
layer restorer
Posts: 16587
Joined: 11 Dec 2012 20:23

Re: Development & Bugs & Problems Reporting

Post by Sublevel 114 »

Thanks, Pastel God!
:3

And it's quite annoying, but...
When can we wait A'LLUKIUN story?
User avatar
admin
Site Admin
Posts: 117
Joined: 01 Jan 1970 01:00

Re: Development & Bugs & Problems Reporting

Post by admin »

Ok, bad news.

I am still unable to find any viable solution to fix the GO TO PAGE and VIEW UNREAD POSTS. As far I know, any solutions that I found through phpBB are simply incompatible with this Serenity-styled forum. I simply have no idea how Mateusz got them to work in the first place.

If anyone and I mean ANYONE know how to fix them, please let me know. Otherwise, I am ceasing any further attempts to pursue this matter.

EDIT: Since the GO TO PAGE is literally useless, I have disabled it via CSS. If solution is found and sought in near future, I will reactivate the link.
{Admin account of AK, former forum host. --Ancient Crystal}
User avatar
Sublevel 114
layer restorer
Posts: 16587
Joined: 11 Dec 2012 20:23

Re: Development & Bugs & Problems Reporting

Post by Sublevel 114 »

I compared sources...

Code: Select all

function jumpto()
{
	var page = prompt('Enter the page number you wish to go to:', '5');
	var per_page = '10';
	var base_url = './viewtopic.php?f=9&t=502';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}
}
That's missing

from thread of old forum

Was that thing that not worked?

Edit: lol I successfully jumped to page of April Fools thread
:D
Last edited by Sublevel 114 on 30 Apr 2015 19:51, edited 1 time in total.
User avatar
admin
Site Admin
Posts: 117
Joined: 01 Jan 1970 01:00

Re: Development & Bugs & Problems Reporting

Post by admin »

Sublevel 102 wrote:I compared sources...

Code: Select all

function jumpto()
{
	var page = prompt('Enter the page number you wish to go to:', '5');
	var per_page = '10';
	var base_url = './viewtopic.php?f=9&t=502';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}
}
That's missing

from thread of old forum

Edit: It jumped to April Fools thread
:D
Aside from jumping to April Fools thread, I need to know where did you find that string of code.

Please :?
{Admin account of AK, former forum host. --Ancient Crystal}
User avatar
Sublevel 114
layer restorer
Posts: 16587
Joined: 11 Dec 2012 20:23

Re: Development & Bugs & Problems Reporting

Post by Sublevel 114 »

admin wrote:I need to know where did you find that string of code

Please :?
you mean when did I get that source code?
as I said, it's taken from mht file of archived pages of oldforum

for example, archived page of April Fools thread
page 5

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="en-gb" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />

<title>Pastel Forum - View topic - April Fools</title>
 
<link rel="alternate" type="application/atom+xml" title="Feed - Pastel Forum" href="http://www.pastelportal.com/forum/feed.php" /><link rel="alternate" type="application/atom+xml" title="Feed - New Topics" href="http://www.pastelportal.com/forum/feed.php?mode=topics" /><link rel="alternate" type="application/atom+xml" title="Feed - Forum - general discussion" href="http://www.pastelportal.com/forum/feed.php?f=9" /><link rel="alternate" type="application/atom+xml" title="Feed - Topic - April Fools" href="http://www.pastelportal.com/forum/feed.php?f=9&t=502" />

<!--
   phpBB style name: Serenity
   Based on style:   subsilver2
   Original author:  Tom Beddard ( http://www.subBlue.com/ )
   Modified by:      stsoftware ( http://www.stsoftware.biz/ )
-->

<link rel="stylesheet" href="./styles/serenity/theme/stylesheet.css" type="text/css" />

<script type="text/javascript">
// <![CDATA[

	var onload_functions = new Array();
	var onunload_functions = new Array();
	var ca_main_width = '100%';



function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('Enter the page number you wish to go to:', '5');
	var per_page = '10';
	var base_url = './viewtopic.php?f=9&t=502';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}
}
EDIT: The code that Sublevel provided has been trimmed down to FUNCTION JUMPTO() section. It is to give thanks to Sublevel as it was his code input that leads me to pinpoint the solution for the forum's coding problems.

It is also to reduce the amount of space it has taken on this page x3
User avatar
admin
Site Admin
Posts: 117
Joined: 01 Jan 1970 01:00

Re: Development & Bugs & Problems Reporting

Post by admin »

O_O

This might be very very useful...

Do you have the link to the archived pages of the old forum? Perhaps I could find something that would give me a consistent code I can use for all relevant pages here.
{Admin account of AK, former forum host. --Ancient Crystal}
User avatar
Sublevel 114
layer restorer
Posts: 16587
Joined: 11 Dec 2012 20:23

Re: Development & Bugs & Problems Reporting

Post by Sublevel 114 »

Do you have the link to the archived pages of the old forum?
I can't, because it's in my comp

and it's just mht files of all threads
because I feared our forum will be lost forever, so I just CTRL+Sed all threads XD

I think Wayback machine has it...
User avatar
admin
Site Admin
Posts: 117
Joined: 01 Jan 1970 01:00

Re: Development & Bugs & Problems Reporting

Post by admin »

Sublevel 102 wrote:
Do you have the link to the archived pages of the old forum?
I can't, because it's in my comp

and it's just mht files of all threads
because I feared our forum will be lost forever, so I just CTRL+Sed all threads XD

I think Wayback machine has it...
They did, in fact. The most recent archived intact forum I was able to go back and find was Aug 30, 2014. That was when the forum was using pastelportal.com domain name.
Pastel Portal 2014

I also found the old forum with old image header that everyone used to love. Perhaps I could use that here too :3
Old Pastel Forum 2013

Thanks, Sublevel. I will check and see if I can get this working tomorrow.

EDIT: HUGE THANKS go to Sublevel for pinpointing a smallest possible direction to the solution with GO TO PAGE problem. With the archived pages and current pages compared and scrutinized, I followed the trail through the mess of HTML and PHP that finally leads to a couple of little files called overall_heading.html and pagination.html.

A little explanation: overall_heading.html controls the action of main header of the whole forum, including the GO TO PAGE section and pagination.html controls the structure of GO TO PAGE section. The problem with GO TO PAGE itself? I found that a small bit of Javascript coding in overall_heading.html DID NOT MATCH with the coding in pagination.html at all! And that's why the whole GO TO PAGE functionality didn't works in the first place!

So I tweaked the codes in the overall_heading.html and upload the file and found that GO TO PAGE functionality finally works!

WHHOOOOOO!!!

But then... I broke the forum.

:?

OOPS?

Well, broke the styling of the forum. I don't know why specifically, but the tiny bit of coding seems to revert the whole structure back to the way previous Pastel Portal forum looks. I will need to investigate the changes in structure since it's appears that some of my stylings remain intact. Perhaps any further changes in the CSS will need to be done to get the whole forum back to the way it used to look.

HOORAY?

:mrgreen:
{Admin account of AK, former forum host. --Ancient Crystal}
Locked