[undefined][/undefined] when pressing buttons

This mod will allow any part of DragonFly that uses bbcode to be able to use ItemStats
No longer maintained

[undefined][/undefined] when pressing buttons

Postby Doomie22 » Wed Jan 30, 2008 12:05 am

Hello all,

I seem to be having a little trouble with the buttons in the forum section.

I have done everything it says in the document and the buttons are there, but when I click them I just get [undefined][/undefined]

I have used the nbbcode.php and bbcode.php that comes with it and I have checked that they have:

Code: Select all
'item'      => array('Item:','[item]item[/item]'),
'itemico'   => array('Item Icon:','[itemico]item[/itemico]'),
 


Can anyone help me as I have looked around and I cannot see why its not accepting it.

Thanks

Doomie
Last edited by Doomie22 on Wed Jan 30, 2008 12:05 am, edited 1 time in total.
Doomie22
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Feb 03, 2007 11:12 pm

[undefined][/undefined] when pressing buttons

Postby zanix » Wed Jan 30, 2008 12:35 am

What version of DF do you use?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

[undefined][/undefined] when pressing buttons

Postby Doomie22 » Wed Jan 30, 2008 12:40 am

im using Dragonfly9.2.0.RC2.

I have only just started using this as I used to use php nuke. This item thing is the only issue I have had :D
Doomie22
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Feb 03, 2007 11:12 pm

[undefined][/undefined] when pressing buttons

Postby zanix » Wed Jan 30, 2008 2:38 am

ItemstatsDF was made for 9.1 and I haven't had a chance to test or even run ItemstatsDF on 9.2RC2
It's possible that they changed the bbcode system
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

[undefined][/undefined] when pressing buttons

Postby Doomie22 » Wed Jan 30, 2008 5:04 am

Which file should I be looking at, maybe I can fix it?

Sorry I am still learning php so I am not sure as to where I should start.

Doomie
Doomie22
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Feb 03, 2007 11:12 pm

[undefined][/undefined] when pressing buttons

Postby zanix » Wed Jan 30, 2008 11:27 am

Not sure to be honest
I would look over the manual install where it edits nbbcode.php
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

[undefined][/undefined] when pressing buttons

Postby Doomie22 » Wed Jan 30, 2008 7:49 pm

i have tested it out on 9.1 and just a fresh installation and coping the theme changes supplied, it worked. Did it on a 9.2 and they didn't.

I have been speaking to the people over at DF and they say it shouldn't cause any problems.

I have followed the instructions to the letter (done it about 5 times now :( ). Its so strange.
Doomie22
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Feb 03, 2007 11:12 pm

Re: [undefined][/undefined] when pressing buttons

Postby Doomie22 » Sun Feb 03, 2008 9:45 pm

Hello again,

I have managed to fix it for 9.2. Its a simple fix (took me ages as I am still learning php). All is needed is a small change in the document.

9.1 version

------------------
FIND
------------------
Code: Select all
<img alt="'.$bbcode_common['mail'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'mail\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'email\')" name="email" src="'.$bbbttns_path.'email.gif" border="0" />; 



------------------
ADD-AFTER
------------------

Code: Select all
if( is_active('item_stats') )
   {
      $content .= '
      <img alt="'.$bbcode_common['item'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'item\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this)" name="item" src="'.$bbbttns_path.'item.gif" border="0" />
      <img alt="'.$bbcode_common['itemico'][0].'" class="bbcbutton" style="border:0;" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'itemico\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this)" name="itemico" src="'.$bbbttns_path.'itemico.gif" border="0" />';
   }


9.2 version

------------------
FIND
------------------
Code: Select all
<img alt="'.$bbcode_common['mail'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'mail\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'email\')" name="email" src="'.$bbbttns_path.'email.gif" border="0" />; 



------------------
ADD-AFTER
------------------

Code: Select all
if( is_active('item_stats') )
   {
      $content .= '
      <img alt="'.$bbcode_common['item'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'item\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this,\'item\')" name="item" src="'.$bbbttns_path.'item.gif" border="0" />
      <img alt="'.$bbcode_common['itemico'][0].'" class="bbcbutton" style="border:0;" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'itemico\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this,\'itemico\')" name="itemico" src="'.$bbbttns_path.'itemico.gif" border="0" />';
   }


all that is added is ,\'item\' and ,\'itemico\' in the BBCode() section at the end.

I hope this helps everyone else that is having the same issues.

Doomie
Last edited by Doomie22 on Sun Feb 03, 2008 9:54 pm, edited 1 time in total.
Doomie22
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Feb 03, 2007 11:12 pm

Re: [undefined][/undefined] when pressing buttons

Postby soddoff » Sat Mar 08, 2008 1:58 am

I am using DF 9.2.1 and I am also getting [undefined][/undefined] when I click on either of the BBCode buttons. The buttons are there, and I can manually type in the bbcodes and they both work without a problem. Has anyone had any luck in finding the solution to this problem? I have checked the code suggestions that are posted here, but evidently those new/changed code sections have been added to the download version on this site.
soddoff
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Thu Feb 28, 2008 4:27 am

Re: [undefined][/undefined] when pressing buttons

Postby gatenet » Wed Apr 30, 2008 11:30 pm

Modificated original 9.2.1 nbbcode.php.

Overwrite existing one in "YOURSITE/includes/"
Attachments
nbbcod.zip
For Dragonfly 9.2.1
(8.54 KiB) Downloaded 404 times
gatenet
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Mon Aug 28, 2006 10:50 pm


Return to ItemStatsDF

Who is online

Users browsing this forum: No registered users and 1 guest

cron