Hosting info
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
just fyi: i had a serious cycling accident today and won't be able to do any real computer work for several weeks. so please don't complain if my site won't get updated for at least a month, possibly even more. even typing this message is quite awkward right now because i can use only my right hand (and i am left-handed...)
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
- Paul
- DRD Team Admin (Inactive)
- Posts: 1058
- Joined: Thu Jun 30, 2005 13:30
- Location: Poland - Grojec / Radom
- Contact:
- Tormentor667
- Stronghold Team
- Posts: 3555
- Joined: Sun Nov 13, 2005 23:15
- Location: Germany
- Contact:
- Paul
- DRD Team Admin (Inactive)
- Posts: 1058
- Joined: Thu Jun 30, 2005 13:30
- Location: Poland - Grojec / Radom
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Tormentor667
- Stronghold Team
- Posts: 3555
- Joined: Sun Nov 13, 2005 23:15
- Location: Germany
- Contact:
Would make sense if /idgames would have the latest updates of my files but Ty never seems to update them when I reupload themGraf Zahl wrote:one way to save space: Link to /idgames instead of hostinh your large files yourself.
Conc. the files, still no internet at home so I can't remove that stuff yet, will take a few more days, so don't worry. BTW, I already aksed for that but maybe Grubber can help me to optimize my Joomla, remove unused stuff and files therefore so I can save some more space. Would this be possible?
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
- Tormentor667
- Stronghold Team
- Posts: 3555
- Joined: Sun Nov 13, 2005 23:15
- Location: Germany
- Contact:
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Tormentor667 wrote:Would make sense if /idgames would have the latest updates of my files but Ty never seems to update them when I reupload themGraf Zahl wrote:one way to save space: Link to /idgames instead of hostinh your large files yourself.
Put a line in 'archive maintainer' at the top. Otherwise he might not notice that it's an update and think it's just a duplicate upload. He never accidentally lost a file of mine.
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
@BioHazard: This is what I've just created - generates perfect XHTML from all the bbcodes:
EDIT: (very) minor improvements.
EDIT: critical bugfix.
Code: Select all
function ParseBBCode (&$text)
{
$patterns[] = '/\[b\](.*?)\[\/b\]/s';
$replacements[] = '<b>\1</b>';
$patterns[] = '/\[i\](.*?)\[\/i\]/s';
$replacements[] = '<i>\1</i>';
$patterns[] = '/\[u\](.*?)\[\/u\]/s';
$replacements[] = '<u>\1</u>';
$patterns[] = '/\[s\](.*?)\[\/s\]/s';
$replacements[] = '<s>\1</s>';
$patterns[] = '/\[color=(.+?)\](.*?)\[\/color\]/s';
$replacements[] = '<span style="color: \1">\2</span>';
$patterns[] = '/\[size=([0-9]+)\](.*?)\[\/size\]/s';
$replacements[] = '<span style="font-size: \1pt">\2</span>';
$patterns[] = '/\[quote\](.*?)\[\/quote\]/s';
$replacements[] = '<div class="postbody"><b>citát:</b><br /><div class="bbquote">\1</div></div>';
$patterns[] = '/\[quote="(.+?)"\](.*?)\[\/quote\]/s';
$replacements[] = '<div class="postbody"><b>\1 napsal:</b><br /><div class="bbquote">\2</div></div>';
$patterns[] = '/\[code\](.*?)\[\/code\]/s';
$replacements[] = '<div class="postbody"><b>kód:</b><br /><div class="bbcode">\1</div></div>';
$patterns[] = '/\[list\].*?\[\*\](.*?)\[\/list\]/s';
$replacements[] = '<ul><li>\1</li></ul>';
$patterns[] = '/\[list=(.)\].*?\[\*\](.*?)\[\/list\]/s';
$replacements[] = '<ol type="\1"><li>\2</li></ol>';
$patterns[] = '/\[\*\]/';
$replacements[] = '</li><li>';
$patterns[] = '/\[img\](.*?)\[\/img\]/s';
$replacements[] = '<img src="\1" alt="image" />';
$patterns[] = '/\[url\](.*?)\[\/url\]/s';
$replacements[] = '<a href="\1">\1</a>';
$patterns[] = '/\[url=(.+?)\](.*?)\[\/url\]/s';
$replacements[] = '<a href="\1">\2</a>';
$patterns[] = '/\[email\](.*?)\[\/email\]/s';
$replacements[] = '<a href="mailto:\1">\1</a>';
$patterns[] = '/\[spoiler\](.*?)\[\/spoiler\]/s';
$replacements[] = '<div class="postbody"><input type="button" class="button" style="width: 50px" value="Show" onclick="node = this.parentNode.getElementsByTagName(\'div\')[0]; if (node.style.display != \'\') { node.style.display = \'\'; this.innerText = \'\'; this.value = \'Hide\';} else { node.style.display = \'none\'; this.innerText = \'\'; this.value = \'Show\'; }" /><br /><div class="bbspoiler" style="display: none">\1</div></div>';
$patterns[] = '/\[spoiler=(.+?)\](.*?)\[\/spoiler\]/s';
$replacements[] = '<div class="postbody"><input type="button" class="button" style="width: 50px" value="Show" onclick="node = this.parentNode.getElementsByTagName(\'div\')[0]; if (node.style.display != \'\') { node.style.display = \'\'; this.innerText = \'\'; this.value = \'Hide\';} else { node.style.display = \'none\'; this.innerText = \'\'; this.value = \'Show\'; }" /> \1<br /><div class="bbspoiler" style="display: none">\2</div></div>';
$patterns[] = '/\[table\].*?\[(m?)row color=(.+?)\](.*?)\[\/table\]/s';
$replacements[] = '<table><tr><td class="bb\1col" style="background-color: \2">\3</td></tr></table>';
$patterns[] = '/\[table\].*?\[(m?)row\](.*?)\[\/table\]/s';
$replacements[] = '<table><tr><td class="bb\1col">\2</td></tr></table>';
$patterns[] = '/\[(m?)row color=(.+?)\]/';
$replacements[] = '</td></tr><tr><td class="bb\1col" style="background-color: \2">';
$patterns[] = '/\[(m?)row\]/';
$replacements[] = '</td></tr><tr><td class="bb\1col">';
$patterns[] = '/\[(m?)col color=(.+?)\]/';
$replacements[] = '</td><td class="bb\1col" style="background-color: \2">';
$patterns[] = '/\[(m?)col\]/';
$replacements[] = '</td><td class="bb\1col">';
$patterns[] = '/\[hidden\](.*?)\[\/hidden\]/s';
$replacements[] = ''; // This needs special handling
$text = preg_replace ($patterns, $replacements, $text);
}
EDIT: critical bugfix.
Last edited by grubber on Sat Sep 02, 2006 17:39, edited 3 times in total.
- BioHazard
- Posts: 408
- Joined: Mon Jul 25, 2005 10:02
- Location: Middle of California where there is no air.
- Contact:
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact: