 | [Solved] bbcode problems |  |
Posted: 05/29/2007 2:48 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
| Iv just installed 3 new bbcode mods into my test forum, but they dont seem to work even though they installed perfectly fine! I also tried the simple bbcode mod, that installed but didnt seem to add anything, but iv backed that one up to try others out, but they all seem to be no different, am i missing summat here? Since iv started adding bbcodes iv had problems with everyone! Wish things was easier!! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] bbcode problems |  |
Posted: 05/31/2007 7:01 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
Hi NR
Iv uninstalled the bbcodes which wasnt doing anything which i mentioned above just so i can try new things untill you are back! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: bbcode problems |  |
Posted: 05/31/2007 3:57 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:59 PM
Location: St Pete, FL
|

|
|
|
|
 |
Many BBCode MODs fail to add BBCode buttons to the BBCode panel. So once you have successfully installed those MODs, then you have to go back and add the code to add the buttons to the BBCode panel as well. If you have both the Multi-BBCode and BBCode Organizer MODs installed, adding the buttons is very easy. The files to modify are the includes/bbcode.php and subSilver/posting_body.tpl files. Here is where you would add the new code in these files...
OPEN
includes/bbcode.php
FIND
| Code:
|
|
$EMBB_widths = array(
|
IN-LINE FIND
IN-LINE BEFORE, ADD
What you are adding here is the width of the button. I chose 55, but you can make the width any reasonable value that you want...
FIND
| Code:
|
|
$EMBB_values = array(
|
IN-LINE FIND
IN-LINE BEFORE, ADD
Here you would change Button Name to be the text that you want to display on the button. For example, if you added the Center BBCode MOD, you might want to name it Center for the button text...
OPEN
templates/subSilver/posting_body.tpl - of course you would want to modify the posting_body.tpl file on all alternate templates too...
FIND
| Code:
|
|
bbtags = new Array('
|
IN-LINE FIND
IN-LINE BEFORE, ADD
| Code:
|
|
,'[center]','[/center]'
|
This would be the code that the MOD would use for the begin and end tags for the bbcode. You should be able to look in the MOD script to see what the MOD would recognize. For example, the Simple BBCodes MOD adds , so the tags that it would install would be:
| Code:
|
|
[br], [hr], [h1] - [h6], [rainbow], [sub], [sup], [serif], [sans], [mono], [md5] and [reverse]
|
You would want to make sure each addition has a begin and end bbcode tag in the posting_body.tpl file. For br and hr, there is no such thing as [/br] and [/hr], so you would simply duplicate them in the added code like this:
| Code:
|
,'[br]','[br]'
,'[hr]','[hr]'
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: bbcode problems |  |
Posted: 05/31/2007 4:04 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:59 AM
|

|
|
|
|
 |
Great post, I'll need to do this soon  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] bbcode problems |  |
Posted: 05/31/2007 4:22 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
Actually think you have told me this before, i was struggling with a mod bbcode strikethrough, as i was trying to install whilst waiting for a reply here, and i added the missing parts you sed above coz i managed to work it out myself but then there was another error:
| Code:
|
FIND FAILED: In file [templates/subSilver/posting_body.tpl] could not find:
<select name="addbbcode16" onChange="bbfontstyle('[color=' + this.form.addbbcode16.options[this.form.addbbcode16.selectedIndex].val ue + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
MOD script line #164
|
But i looked in posting_body.tpl and i couldnt even find this, so i just couldnt modify it!
There wa salso another one i tried to install: BBcode Scroll Left/Right/Up/Down aka Marquee and i had an error:
| Code:
|
Critical Error
FIND FAILED: In file [posting.php] could not find:
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''
|
I also couldnt find this in posting.php uness i missed these i aint got a clue, i wanted to see if i could fix the errors! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: bbcode problems |  |
Posted: 05/31/2007 4:46 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:59 PM
Location: St Pete, FL
|

|
|
|
|
 |
Which version of the BBCode Strikethrough MOD are you attempting to install? I have BBCode StrikeThrough by Serj21 version 1.3.0 and it is not trying to make the modification that you listed above. Your copy doesn't seem to be accounting for having the Multi-BBCode and BBCode Organizer MODs installed. I'll make my copy available for you just in case you need it:
BBCode StrikeThrough 1.3.0
I don't have a copy of the BBcode Scroll Left/Right/Up/Down aka Marquee MOD, so could you provide a link to the MOD topic and/or download. It sounds like it is an old MOD too...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] bbcode problems |  |
Posted: 05/31/2007 5:00 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: bbcode problems |  |
Posted: 05/31/2007 5:04 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
| Nightrider wrote:
|
Which version of the BBCode Strikethrough MOD are you attempting to install? I have BBCode StrikeThrough by Serj21 version 1.3.0 and it is not trying to make the modification that you listed above. Your copy doesn't seem to be accounting for having the Multi-BBCode and BBCode Organizer MODs installed. I'll make my copy available for you just in case you need it:
BBCode StrikeThrough 1.3.0
|
I downloaded this and it worked straight away, mine wa san older version i think!! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: bbcode problems |  |
Posted: 05/31/2007 5:24 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:59 PM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, your's was definitely an older version. I'm glad my copy worked for you. Congratulations Karen...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] bbcode problems |  |
Posted: 05/31/2007 5:28 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 1:59 AM
Location: west midlands:uk
|

|
|
|
|
 |
| I wish this site http://www.phpbbhacks.com/ would just add the updated versions lol be a lot easier and less hassle! Looking at some mods there, there can be a few thats litterally the same mod, what do you go for lol |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|