Edit Caption Font Size
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Im trying to change the font size in the edit caption URL field. Does anyone know how to do this ?? I would greatly apreaciate any help , thanks.Mark |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
what is the "edit caption URL field"? |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Its right below where you put the title of the pic under summary it allows you to put a url in. I tried using some diferent code to change the font size but it just doesnt work for me. example code I also would like to have it open in a new window but I couldnt get it to do that either, any suggestions would be greatly appreciated. Could you help me to modify the above code for a larger font and open in a new window? Mark |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
bbcode (intentionally) limits when you can do. if you wish, visit Site Admin / General and change the site to use full html. then you can put <font> or <script> or whatever you like in your captions. this may be ok if only you have edit privileges.. it's risky if others can add stuff, as they could put <script> tags that do bad things.. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
alternatively, if you have some coding ability you could edit lib/smarty_plugins/modifier.markup.php and make the bbcode syntax support the things you want.. for example, add [=..]text[/] support and/or [url=.. popup=true]..[/url] |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Ill try that because Im not alowing others to post. |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I took a look at the markup.php but Im not sure how to add these two things, Im just learning PHP. Cn you give me an exaple of code and where to put it in? Thanks |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
look at the existing $this->_bbcode->addCode calls.. you can add more calls to support additional [..] tags. |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Thanks, I have to go to a family thing but ill try when I get home. Thanks mark |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Im not sure exactly what you mean I see simple replace in the file but do not see [Big]can you explain a little more detailed I would greatly appreciate it. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
existing code: $this->_bbcode->addCode('i', 'simple_replace', null, array('start_tag' => '<i>', 'end_tag' => '</i>'), 'inline', array('listitem', 'block', 'inline', 'link'), array());
if you copy this and just change the 'i' and start_tag/end_tag values then you get support for a new simple tag. $this->_bbcode->addCode('big', 'simple_replace', null, array('start_tag' => '<font size="+2">', 'end_tag' => '</font>'), 'inline', array('listitem', 'block', 'inline', 'link'), array()); |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I found the code but could not find the code I appreciate all your help with this, thanks mark |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
even though the 2.1.x code is a little different, you should be able to apply the concept i describe above.. you can see how 'i' is mapped to <i> and </i>.. give it a shot. |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I tried this but it didnt seem to make a difference. $this->_bbcode->addCode('b', 'simple_replace', null, array ('<b>', '</b>'), Mark |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
you're missing a " after +4 |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Ok Ive added the " I am very new to this so it still doesnt seem to work. When IO add the URL during the edit caption process do I need to add the font size info in the html code <font size="+4">Hot babes </font Im still not sure how to make it work. mark |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
did you add a caption using bbcode?
|
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
Im a little lost can you give me just a little more detail Im sorry for being new to this but I really appreciate your egforts to help me. mrk |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I added what ou had asked me to in the url field and itr showed test in big letters |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I know Ive already asked but I sure could still use your help with this. Thanks |
|
markmusicman
Joined: 2004-12-21
Posts: 31 |
![]() |
I changed it to use HTML and was able to fix ther issue by editing pics one at a time , if I tried to edit all of them together I would get a cache error page. Thanks mark |
|