[Realm 667] Revision 6 Developement

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1.5 MiB.

Expand view Topic review: [Realm 667] Revision 6 Developement

by Tormentor667 » Mon Nov 13, 2006 2:40

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

by Tormentor667 » Tue Sep 19, 2006 16:51

Pictures have already been removed, now I wait for /idgames to update my files and then I will also remove the downloads!

by grubber » Fri Aug 25, 2006 16:37

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.

by Tormentor667 » Fri Aug 25, 2006 11:06

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?

by BioHazard » Thu Aug 24, 2006 18:06

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;
}

by grubber » Thu Aug 24, 2006 9:27

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.

by Tormentor667 » Wed Aug 23, 2006 14:38

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!

by Sir_Alien » Wed Aug 23, 2006 12:18

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... ;)

by grubber » Wed Aug 23, 2006 11:57

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.

by Sir_Alien » Wed Aug 23, 2006 11:44

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.

by Tormentor667 » Wed Aug 23, 2006 11:24

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!

by BioHazard » Tue Aug 22, 2006 17:13

[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]

by grubber » Tue Aug 22, 2006 12:00

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.

by BioHazard » Mon Aug 21, 2006 20:58

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.

      Also you can't have more control over design, you get text and whatever BBCode will allow (not much).

      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.

by jallamann » Mon Aug 21, 2006 19:23

exactly what features do you require that phpbb integration won't readily comply with?

Top