|
v7 Sekti ?i tem Spausdinti tem bb codes or smth..
|
| dasp |
parašyta 2010-03-21 15:20
|
Pradinukas

Reputacija:
0
Pranešimai: 44
Įstojo: 2009-10-03
|
Sveiki. kaip padaryti, kad pvz paspaudus ant straipsnio kategorijos paveiksliuko (kuris yra vietoj kategorijos apra?ymo) atidarytu tame paiame lange? ra?au be http:// |
| |
|
|
| Wyciokazz |
parašyta 2010-03-21 15:43
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
nutrink target
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img] |
| |
|
|
| dasp |
parašyta 2010-03-21 17:05
|
Pradinukas

Reputacija:
0
Pranešimai: 44
Įstojo: 2009-10-03
|
tai kad nera?au target.. ia kiek ?inau bb_code_include reikia tvarkyt ar ka?k pana?aus |
| |
|
|
| Wyciokazz |
parašyta 2010-03-21 18:16
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
bbcode turi su rast url ir ten bus.
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img] |
| |
|
|
| Rinas |
parašyta 2010-03-21 18:28
|
Administratorius

Reputacija:
0
Pranešimai: 204
Įstojo: 2009-06-10
|
Duok includes/bbcodes/url_bbcode_include.php ar pan. ir a? paredaguosiu, kad atidaryt tame paiame tabe. |
| |
|
|
| Wyciokazz |
parašyta 2010-03-21 20:19
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
v7 gi yra atsikiri tie bb kodai ar ne?
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img] |
| |
|
|
| dasp |
parašyta 2010-03-22 16:46
|
Pradinukas

Reputacija:
0
Pranešimai: 44
Įstojo: 2009-10-03
|
url_bbcode_include kodas:
Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: url_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
//Url BBCode with auto triming long links
$text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\\"]*?)([\r\n]*)\[/url\]#sie', \"''.trimlink('\\2\\3', 20).(strlen('\\2\\3')>30?substr('\\2\\3', strlen('\\2\\3')-10, strlen('\\2\\3')):'').''\", $text);
$text = preg_replace('#\[url\]([\r\n]*)([^\s\'\\"]*?)([\r\n]*)\[/url\]#sie', \"''.trimlink('\\2', 20).(strlen('\\2')>30?substr('\\2', strlen('\\2')-10, strlen('\\2')):'').''\", $text);
$text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '\4', $text);
$text = preg_replace('#\[url=([\r\n]*)([^\s\'\\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '\3', $text);
?>
|
| |
|
|
| Rinas |
parašyta 2010-03-22 17:05
|
Administratorius

Reputacija:
0
Pranešimai: 204
Įstojo: 2009-06-10
|
Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: url_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
//Url BBCode with auto triming long links
$text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\\"]*?)([\r\n]*)\[/url\]#sie', \"''.trimlink('\\2\\3', 20).(strlen('\\2\\3')>30?substr('\\2\\3', strlen('\\2\\3')-10, strlen('\\2\\3')):'').''\", $text);
$text = preg_replace('#\[url\]([\r\n]*)([^\s\'\\"]*?)([\r\n]*)\[/url\]#sie', \"''.trimlink('\\2', 20).(strlen('\\2')>30?substr('\\2', strlen('\\2')-10, strlen('\\2')):'').''\", $text);
$text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '\4', $text);
$text = preg_replace('#\[url=([\r\n]*)([^\s\'\\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '\3', $text);
?>
Jei ra?ysi bet http:// atidarys tame paiame tabe, jei su - kitame. |
| |
|
|
| dasp |
parašyta 2010-03-22 17:18
|
Pradinukas

Reputacija:
0
Pranešimai: 44
Įstojo: 2009-10-03
|
dkui rinai :) |
| |
|