[Realm 667] Revision 6 Developement

General discussion about DRD & website stuff.
User avatar
grubber
Site Founder
Posts: 230
Joined: Wed Jun 29, 2005 18:57
Location: Czech Republic, Zlin
Contact:

Post by grubber »

Tormentor667 wrote:That's sadly true but it's not very easy for someone like me to choose a good CMS with all the necessary features I want to have from the hundred of CMS out there, PHPNuke, Mambo, Typo, Freeflux etc.
I can help you develop phpbb-based cms with (hopefully) everything you need ;).
BioHazard wrote:Valid XHTML is the biggest bugger for me. I had to write a ton of preg_replace() functions to deal with that. I still can't use \
  • or \
    • with them.
I'm thinking about rewriting some parts of the forum template to be more XHTML-friendly - it pisses me that the main page is valid XHTML, but only without the stuff fetched from forum.
BioHazard wrote:I'm writing hooks into my database to deal with those problems though. I'll have the fancy XHTML version of the post and some special data (category etc) in my database while pulling comments, linkage and graphics from Fetch. Nifty system. A bit cumbersome to edit though.
I'm doing most of the stuff like that by embedding information into [hidden] tags in posts and then processing it outside of the forum.
User avatar
BioHazard
Posts: 408
Joined: Mon Jul 25, 2005 10:02
Location: Middle of California where there is no air.
Contact:

Post by BioHazard »

[hidden]Woah! Hidden blocks![/hidden]Cool. I never knew about [hidden] stuff... I'll have to fiddle with that a bit.
All I need now is [html] so I can do stuff like:
[html]<div class="main"><h2>Important thing!</h2><p><img src="uselesspicture.png" alt="Picture thing" style="float: right;"/>
This is important text. I'll have a real reason to use html when I can incorperate CSS from my page.
</p></div>[/html]
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Thx for the offer but for now I will leave it as it is. I put so much work now into the whole system to make it look and work like I want it and I don't want to change that again, really!
User avatar
Sir_Alien
Posts: 80
Joined: Tue Sep 13, 2005 8:23
Location: Sydney, Australia
Contact:

Post by Sir_Alien »

Tormentor667 wrote:Thx for the offer but for now I will leave it as it is. I put so much work now into the whole system to make it look and work like I want it and I don't want to change that again, really!
I think you're missing the point. It's not so much about what you want, it's about what the person who's paying for the webspace wants.
User avatar
grubber
Site Founder
Posts: 230
Joined: Wed Jun 29, 2005 18:57
Location: Czech Republic, Zlin
Contact:

Post by grubber »

Heh. I'm not forcing anybody to do anything ;). But still, I prefer small & clean things, not bloated & dirty.
BioHazard wrote:Cool. I never knew about [hidden] stuff... I'll have to fiddle with that a bit.
That's because I've added it yesterday ;).
BioHazard wrote:All I need now is [html] so I can do stuff like:
[html]<div class="main"><h2>Important thing!</h2><p><img src="uselesspicture.png" alt="Picture thing" style="float: right;"/>
This is important text. I'll have a real reason to use html when I can incorperate CSS from my page.
</p></div>[/html]
You can do something like [hidden]Html: stuff[/hidden] and make your page parse that.
User avatar
Sir_Alien
Posts: 80
Joined: Tue Sep 13, 2005 8:23
Location: Sydney, Australia
Contact:

Post by Sir_Alien »

Grubber wrote:Heh. I'm not forcing anybody to do anything ;).
Oh, I'm not saying you were. I was merely implying that completely dismissing your host's request (especially when they are offering their own concessions to accomodate your needs) isn't entirely respectful... ;)
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Well, Grubber, I won't delete Joomla again and restart to add all the content back to yet another cms or phpbb based thing but if you want me to help cutting down Joomla by removing all the useless code, the useless modules and everything that isn't needed I'd be okay with that :) I know there's lots of stuff in there that I don't need actually but as I said: I want to keep it!
User avatar
grubber
Site Founder
Posts: 230
Joined: Wed Jun 29, 2005 18:57
Location: Czech Republic, Zlin
Contact:

Post by grubber »

I've just checked the ftp and there's 344 MB (!!!) in 11331 files in your directory. Can you tell me what is all that content?
I, [url=http://forum.drdteam.org/viewtopic.php?t=1052]here[/url], wrote:There isn't a limit on size of your site, but it should not exceed 50 MB.
User avatar
BioHazard
Posts: 408
Joined: Mon Jul 25, 2005 10:02
Location: Middle of California where there is no air.
Contact:

Post by BioHazard »

Grubber wrote:I'm thinking about rewriting some parts of the forum template to be more XHTML-friendly - it pisses me that the main page is valid XHTML, but only without the stuff fetched from forum.
I've been using this function I wrote to convert most of the BBCode to XHTML. Note that you have to set a fetch variable so it works properly.

Code: Select all

$CFG['posts_enable_bbcode'] = false;

Code: Select all

 ///////////////////////////////////////////////////////
// XHTM_BBCode : Converts most BBCode to valid XHTML or just butchers the code mercilessly
function XHTM_BBCode($in){
	while(preg_match("/\[b\](.+?)\[\/b\]/i",$in,$out)){
		$in=str_replace($out[0],"<b>".$out[1]."</b>",$in);
	}while(preg_match("/\[i\](.+?)\[\/i\]/i",$in,$out)){
		$in=str_replace($out[0],"<i>".$out[1]."</i>",$in);
	}while(preg_match("/\[url=(.+?)\](.+?)\[\/url\]/i",$in,$out)){
		$in=str_replace($out[0],"<a href="".$out[1]."">".$out[2]."</a>",$in);
	}while(preg_match("/\[size=(.+?)\](.+?)\[\/size\]/i",$in,$out)){
		$in=str_replace($out[0],"<span style="font-size:".($out[1]*2)."px">".$out[2]."</span>",$in);
	}while(preg_match("/\[img\](.+?)\[\/img\]/i",$in,$out)){
		$in=str_replace($out[0],"<img src="".$out[1]."" alt=""/>",$in);
	}
	// IYAA! I hate to do all these with <span>s
	while(preg_match("/\[quote:.+?="(.+?)"\](.+?)\[\/quote\]/i",$in,$out)){
		$in=str_replace($out[0],"<br/><span class="quote">".$out[1]." wrote:<span class="quotetxt">".$out[2]."</span></span>",$in);
	}while(preg_match("/\[quote\](.+?)\[\/quote\]/i",$in,$out)){
		$in=str_replace($out[0],"<br/><span class="quote">Quote:<span class="quotetxt">".$out[1]."</span></span>",$in);
	}while(preg_match("/\[code\](.+?)\[\/code\]/i",$in,$out)){
		$in=str_replace($out[0],"<br/><span class="quote">Code:<span class="code">".str_replace("  ","&nbsp;&nbsp;",$out[1])."</span></span>",$in);
	}
	// GAH! Lists!
	while(preg_match("/\[\*\](.+?)\[\*\]/i",$in,$out)){
		$in=str_replace($out[0],"<li>".$out[1]."</li>[*]",$in);
	}while(preg_match("/\[\*\](.+?)\[\/list\]/i",$in,$out)){
		$in=str_replace($out[0],"<li>".$out[1]."</li>[/list]",$in);
	}while(preg_match("/\[list\](.+?)\[\/list\]/i",$in,$out)){
		$in=str_replace($out[0],"<ul>".str_replace("<br/>","",$out[1])."</ul>",$in);
	}
	$in = str_replace("<ul></li>","<ul>",$in); // nested lists quirk #1
	$in = str_replace("</ul>","</li></ul>",$in); // nested lists quirk #2
	$in = str_replace("</li></li></ul>","</li></ul>",$in); // nested lists quirk #3
	while(preg_match("/<br\/><ul>(.+?)<\/ul>\s/i",$in,$out)){ // DIRTIEST HACK EVER
		$in=str_replace($out[0],"</p><ul>".$out[1]."</ul><p>\n",$in);
	}
	return $in;
}
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Grubber wrote:I've just checked the ftp and there's 344 MB (!!!) in 11331 files in your directory. Can you tell me what is all that content?
I, [url=http://forum.drdteam.org/viewtopic.php?t=1052]here[/url], wrote:There isn't a limit on size of your site, but it should not exceed 50 MB.
Damn, this is something I must have missed... I uploaded some of my image galleries but obviously they need so damn much space that I should remove them again. I will do this as soon as I have internet access at home again... or can I leave them as they are?
User avatar
grubber
Site Founder
Posts: 230
Joined: Wed Jun 29, 2005 18:57
Location: Czech Republic, Zlin
Contact:

Post by grubber »

Try to fit it under 100 MB, but better under 50 MB. Your data is now more than 2 times bigger than all the other hostees' data.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Pictures have already been removed, now I wait for /idgames to update my files and then I will also remove the downloads!
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Dear DRDTeam.org Admins
thx for the last months of hosting my page and supporting me but now I don't need that service anymore. Though, thx gladly and feel free to remove necessary stuff. My page is now located over at allinkl.com (paid space)
Greets,
Dan
Post Reply

Return to “General”