You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 4 of 4)
parser.php:
Find:
'#\[img\]\s*(.*?)\s*\[/img\]#is',
Add after:
'#\[imgrs\]\s*(.*?)\s*\[/imgrs\]#is',
Find:
Add after:
Find (2 palces):
$text = preg_replace('#\[img\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#e', 'handle_img_tag(\'$1$3\')', $text);
Add after:
$text = preg_replace('#\[imgrs\]((ht|f)tps?://)([^\s<"]*?)\[/imgrs\]#e', 'handle_img_tag_res(\'$1$3\')', $text);
Find:
Add after:
function handle_img_tag_rs($url, $is_signature = false)
{
global $lang_common, $pun_config, $pun_user;
$img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';
if ($is_signature && $pun_user['show_img_sig'] != '0')
$img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
else if (!$is_signature && $pun_user['show_img'] != '0')
$img_tag = '<img width="500" class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /> <br> This image has been resized, click <a href="'.htmlspecialchars($url).'">here</a> to view the full-sized image.';
return $img_tag;
}
Save and upload
Hope that was everything, long time since I added it
Now you have a new image tag called
they are squeezed in with because of there is no overflow controll in the css.
You can add it but still annoying too have too scroll too see the rest.
I just added a new image tag instead. ex: the image gets resized too x width and i added a text under saying "This image has been resized, click here to view the full-sized image."
I can post the code if you like
Thank you!
Using the group id from punbb as a simple "login" ala:
define('PUN_ROOT', '../../forums/');
require PUN_ROOT.'include/common.php';
//debuging
echo $pun_user['g_id'];
//check if in usegroup or die
if ($pun_user['g_id'] == x || $pun_user['g_id'] == y || $pun_user['g_id'] == z ) {
}
else {
die;}
pretty crude but it works
My base URL for the forum is forums.epixplx.com but when you load the page with this "login" part, you it uses cookie info from epixplx.com/forums and not it's base url.
So the users have too login too both, forums.epixplx.com (too read and post normaly) and epixplx.com/forums if they whant too load this page
Is it possible too make it use the "original" cookie from forums.epixplx.com?
Ah didn't even notice it... ripped it out now.
thanks!
Having some pretty long loading times if a post have pictures in em.
No matter if it's 1 or 100.
Feks:
http://forums.epixplx.com/viewtopic.php?id=2386
and any thread in this forum:
http://forums.epixplx.com/viewforum.php?id=37
But if I load my news page it loads pretty fast.
News:
http://www.epixplx.com/
Base:
Punbb 1.2.14
Mods:
Private messaging
Gallery
RSS Manager
Broadcast Email
HTML for admins/mods and another group I added. (Still slow if the person is in a normal user group (non html))
Polls
Last posts hack
10-20ish home made bbcodes.
Modern bbcode.
probably some more but I cant remember all
my [img] function from the parser. (modern bbcode moded)
// Turns an URL from the [img], [imgr], [imgl] tags into an <img> tag or a <a href...> tag. ADDED BY MOD: MODERN BBCODE
//
function handle_img_tag_modern($align, $url, $is_signature = false)
{
global $lang_common, $pun_config, $pun_user;
$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
if ($is_signature && $pun_user['show_img_sig'] != '0')
$img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
else if (!$is_signature && $pun_user['show_img'] != '0')
{
if ($align != '')
$img_tag = '<img class="postimg" style="float: '.$align.'; clear: '.$align.'" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
}
return $img_tag;
}
//
// Turns an URL from the [img] tag into an <img> tag or a <a href...> tag
//
function handle_img_tag($url, $is_signature = false)
{
global $lang_common, $pun_config, $pun_user;
$img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';
if ($is_signature && $pun_user['show_img_sig'] != '0')
$img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
else if (!$is_signature && $pun_user['show_img'] != '0')
{
if (@fclose(@fopen($url, "r")))
{
$imagehw = GetImageSize($url);
$width = $imagehw[0];
$height = $imagehw[1];
$img_tag = '<img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
if ($width > 550)
{
$img_tag = '<a href="'.$url.'" rel="lightbox">' . $img_tag . '</a>';
}
}
else
{
$img_tag = '<strong>error: image ' . $url . ' cannot be loaded.</strong>';
}
}
return $img_tag;
}
Hope someone can help
well looks like it fixed it self....
well got the 1.2.5 double posting error( http://punbb.org/forums/viewtopic.php?pid=39852#p39852 ). the strange thing is that i havent changed any files in the last week or so.
Anyone got any ideas?
http://forums.epixplx.com/viewtopic.php?pid=9142#p9142
I would like too see a softdelete thread. Too many dumb admins sometime >x
Posts found: 76 to 88 of 88